|
14 | 14 | */ |
15 | 15 | public class DetectorDataDgtz implements Comparable<DetectorDataDgtz> { |
16 | 16 |
|
17 | | - private final List<ADCData> adcStore = new ArrayList<>(); |
18 | | - private final List<TDCData> tdcStore = new ArrayList<>(); |
19 | | - private final List<VTPData> vtpStore = new ArrayList<>(); |
20 | | - private final List<SCALERData> scalerStore = new ArrayList<>(); |
21 | | - private Long timeStamp = 0L; |
| 17 | + private final List<ADCData> adcStore = new ArrayList<>(); |
| 18 | + private final List<TDCData> tdcStore = new ArrayList<>(); |
| 19 | + private final List<VTPData> vtpStore = new ArrayList<>(); |
| 20 | + private final List<SCALERData> scalerStore = new ArrayList<>(); |
| 21 | + private Long timeStamp = 0L; |
| 22 | + private int trigger = 0; // Trigger number ( usually only 1 trigger due to rol2(?) ); |
22 | 23 |
|
| 24 | + |
23 | 25 | private final DetectorDescriptor descriptor = new DetectorDescriptor(); |
24 | 26 |
|
25 | 27 | public DetectorDataDgtz(){ |
@@ -66,6 +68,9 @@ public long getTimeStamp(){ |
66 | 68 | public DetectorDescriptor getDescriptor(){ |
67 | 69 | return this.descriptor; |
68 | 70 | } |
| 71 | + |
| 72 | + public int getTrigger() { return trigger;} |
| 73 | + public DetectorDataDgtz setTrigger(int trig) { trigger = trig;return this;} |
69 | 74 |
|
70 | 75 | @Override |
71 | 76 | public String toString(){ |
@@ -330,19 +335,22 @@ public int compareTo(ADCData o) { |
330 | 335 | */ |
331 | 336 | public static class TDCData implements Comparable<TDCData>{ |
332 | 337 |
|
333 | | - private int tdcOrder = 0; // Used for sorting |
334 | | - private int tdcTime = 0; |
335 | | - private int tdcToT = 0; // Time over threshold |
| 338 | + private int tdcOrder = 0; // Used for sorting |
| 339 | + private int tdcTime = 0; |
| 340 | + private int tdcToT = 0; // Time over threshold |
| 341 | + private Long timeStamp = 0L; |
336 | 342 |
|
337 | 343 | public TDCData() {} |
338 | 344 | public TDCData(int time) { this.tdcTime = time;} |
339 | 345 | public TDCData(int time, int ToT) { this.tdcTime = time; this.tdcToT = ToT;} |
340 | 346 | public int getTime() { return this.tdcTime;} |
341 | 347 | public int getToT() { return this.tdcToT;} |
342 | 348 | public int getOrder() { return tdcOrder;} |
| 349 | + public long getTimeStamp(){ return this.timeStamp; } |
343 | 350 | public TDCData setOrder(int order) { tdcOrder = order;return this;} |
344 | 351 | public TDCData setTime(short time) { tdcTime = time;return this;} |
345 | 352 | public TDCData setToT(short ToT) { tdcToT = ToT;return this;} |
| 353 | + public TDCData setTimeStamp(long time){ timeStamp = time;return this; } |
346 | 354 |
|
347 | 355 | @Override |
348 | 356 | public String toString(){ |
|
0 commit comments