Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
* @author gavalian
*/
public class CLASDecoder {

// truncate EVIO waveforms longer than this:
final static int MAX_BANK_WF_LENGTH = 30;

protected DetectorEventDecoder detectorDecoder = null;
protected SchemaFactory schemaFactory = new SchemaFactory();
Expand Down Expand Up @@ -203,7 +206,7 @@ public Bank getDataBankWF(String name, DetectorType type) {
b.putLong( 4, i, a.get(i).getADCData(0).getTimeStamp());
b.putInt("time", i, (int)a.get(i).getADCData(0).getTime());
DetectorDataDgtz.ADCData xxx = a.get(i).getADCData(0);
for (int j=0; j<xxx.getPulseSize(); ++j)
for (int j=0; j<xxx.getPulseSize() && j<MAX_BANK_WF_LENGTH; ++j)
b.putShort(j+5, i, xxx.getPulseValue(j));
}
return b;
Expand Down