Belle II Software  release-05-02-19
TOPRawDigit.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Marko Staric *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 #include <framework/datastore/RelationsObject.h>
14 
15 namespace Belle2 {
26  class TOPRawDigit : public RelationsObject {
27  public:
28 
32  enum ErrorFlags {
33  c_HeadMagic = 0x0001,
34  c_TailMagic = 0x0002,
35  c_HitMagic = 0x0004,
36  c_HitChecksum = 0x0008
37  };
38 
43  enum EDataTypes {
45  c_MC = 1,
46  c_Interim = 2,
47  c_Production = 3,
48  c_ProductionDebug = 4,
49  c_Other = 99
50  };
51 
55  enum {
57  };
58 
62  TOPRawDigit()
63  {}
64 
70  TOPRawDigit(unsigned short scrodID, EDataTypes dataType):
71  m_scrodID(scrodID), m_dataType(dataType)
72  {}
73 
78  void setCarrierNumber(unsigned short carrier) {m_carrier = carrier;}
79 
84  void setASICNumber(unsigned short asic) {m_asic = asic;}
85 
90  void setASICChannel(unsigned short channel) {m_channel = channel;}
91 
96  void setASICWindow(unsigned short window) {m_window = window;}
97 
102  void setStorageWindows(const std::vector<unsigned short>& windows)
103  {
104  m_windows = windows;
105  }
106 
111  void setLastWriteAddr(unsigned short window) {m_lastWriteAddr = window;}
112 
117  void setTFine(unsigned short tfine) {m_TFine = tfine;}
118 
123  void setSampleRise(unsigned short sample) {m_sampleRise = sample;}
124 
129  void setDeltaSamplePeak(unsigned short dsample) {m_dSamplePeak = dsample;}
130 
136  void setDeltaSampleFall(unsigned short dsample) {m_dSampleFall = dsample;}
137 
142  void setValueRise0(short adc) {m_VRise0 = adc;}
143 
148  void setValueRise1(short adc) {m_VRise1 = adc;}
149 
154  void setValuePeak(short adc) {m_VPeak = adc;}
155 
160  void setValueFall0(short adc) {m_VFall0 = adc;}
161 
166  void setValueFall1(short adc) {m_VFall1 = adc;}
167 
172  void setIntegral(int integral) {m_integral = integral;}
173 
178  void setRevo9Counter(unsigned short revo9Counter) {m_revo9Counter = revo9Counter;}
179 
185  void setPhase(unsigned short phase) {m_phase = phase;}
186 
191  void setLookBackWindows(unsigned short lookBack) {m_lookBackWindows = lookBack;}
192 
197  void setErrorFlags(unsigned short flags) {m_errorFlags = flags;}
198 
202  void setOfflineFlag() {m_offline = true;}
203 
208  EDataTypes getDataType() const {return m_dataType;}
209 
214  unsigned getScrodID() const {return m_scrodID;}
215 
220  unsigned getCarrierNumber() const {return m_carrier;}
221 
226  unsigned getASICNumber() const {return m_asic;}
227 
232  unsigned getASICChannel() const {return m_channel;}
233 
234 
239  unsigned getScrodChannel() const {return m_channel + m_asic * 8 + m_carrier * 32;}
240 
245  unsigned getASICWindow() const {return m_window;}
246 
251  const std::vector<unsigned short>& getStorageWindows() const {return m_windows;}
252 
257  unsigned getLastWriteAddr() const {return m_lastWriteAddr;}
258 
263  unsigned getTFine() const {return m_TFine;}
264 
269  unsigned getSampleRise() const {return m_sampleRise;}
270 
275  unsigned getDeltaSamplePeak() const {return m_dSamplePeak;}
276 
281  unsigned getSamplePeak() const {return m_sampleRise + m_dSamplePeak;}
282 
287  unsigned getDeltaSampleFall() const {return m_dSampleFall;}
288 
293  unsigned getSampleFall() const {return m_sampleRise + m_dSampleFall;}
294 
299  int getValueRise0() const {return m_VRise0;}
300 
305  int getValueRise1() const {return m_VRise1;}
306 
311  int getValuePeak() const {return m_VPeak;}
312 
317  int getValueFall0() const {return m_VFall0;}
318 
323  int getValueFall1() const {return m_VFall1;}
324 
329  int getIntegral() const {return m_integral;}
330 
335  unsigned short getRevo9Counter() const {return m_revo9Counter;}
336 
341  unsigned short getLookBackWindows() const {return m_lookBackWindows;}
342 
347  unsigned short getPhase() const {return m_phase;}
348 
353  unsigned short getErrorFlags() const {return m_errorFlags;}
354 
359  double getLeadingSlope() const {return getValueRise1() - getValueRise0();}
360 
365  double getFallingSlope() const {return getValueFall1() - getValueFall0();}
366 
371  double getCFDLeadingTime() const
372  {
374  }
375 
380  double getCFDFallingTime() const
381  {
383  }
384 
390  double getCFDLeadingTimeError(double rmsNoise) const
391  {
392  return rmsNoise * timeErrorCoefficient(m_VRise0, m_VRise1);
393  }
394 
400  double getCFDFallingTimeError(double rmsNoise) const
401  {
402  return rmsNoise * timeErrorCoefficient(m_VFall0, m_VFall1);
403  }
404 
409  double getFWHM() const {return getCFDFallingTime() - getCFDLeadingTime();}
410 
415  bool isLeadingEdgeValid() const {return checkEdge(m_VRise0, m_VRise1, m_VPeak);}
416 
421  bool isFallingEdgeValid() const {return checkEdge(m_VFall1, m_VFall0, m_VPeak);}
422 
427  bool isFEValid() const
428  {
430  }
431 
436  bool isPedestalJump() const;
437 
445  bool isAtWindowDiscontinuity(unsigned short storageDepth = 508) const;
446 
454  bool areWindowsInOrder(unsigned short storageDepth = 508) const;
455 
462  double correctTime(double time, unsigned short storageDepth = 508) const;
463 
469  bool isWindowConsistent() const
470  {
471  if (m_windows.empty()) return true;
472  return m_windows[0] == m_window;
473  }
474 
479  bool isMadeOffline() const {return m_offline;}
480 
481  private:
482 
490  double timeCFDCrossing(int sample, int value, double slope) const
491  {
492  if (slope == 0) return sample;
493  return (int(m_VPeak) - 2 * value) / (2 * slope) + sample;
494  }
495 
502  double timeErrorCoefficient(double y1, double y2) const;
503 
507  bool checkEdge(int v1, int v2, int vp) const
508  {
509  return (vp > 0 and v1 < v2 and 2 * v1 <= vp and v2 <= vp)
510  or (vp < 0 and v1 > v2 and 2 * v1 >= vp and v2 >= vp);
511  }
512 
513  unsigned short m_scrodID = 0;
514  unsigned short m_carrier = 0;
515  unsigned short m_asic = 0;
516  unsigned short m_channel = 0;
517  unsigned short m_window = 0;
518  unsigned short m_TFine = 0;
519  unsigned short m_sampleRise = 0;
520  unsigned short m_dSamplePeak = 0;
521  unsigned short m_dSampleFall = 0;
522  short m_VRise0 = 0;
523  short m_VRise1 = 0;
524  short m_VPeak = 0;
525  short m_VFall0 = 0;
526  short m_VFall1 = 0;
527  int m_integral = 0;
528  unsigned short m_revo9Counter = 0;
529  unsigned short m_phase = 0;
530  unsigned short m_lookBackWindows = 0;
531  unsigned short m_errorFlags = 0;
532  unsigned short m_lastWriteAddr = 0;
533  std::vector<unsigned short> m_windows;
534  bool m_offline = false;
539  };
540 
541 
543 } // end namespace Belle2
544 
Belle2::TOPRawDigit::isMadeOffline
bool isMadeOffline() const
Returns offline flag.
Definition: TOPRawDigit.h:487
Belle2::TOPRawDigit::c_ProductionDebug
@ c_ProductionDebug
from production debugging format
Definition: TOPRawDigit.h:56
Belle2::TOPRawDigit::setCarrierNumber
void setCarrierNumber(unsigned short carrier)
Sets carrier board number.
Definition: TOPRawDigit.h:86
Belle2::TOPRawDigit::setSampleRise
void setSampleRise(unsigned short sample)
Sets sample number just before 50% CFD crossing at leading edge.
Definition: TOPRawDigit.h:131
Belle2::TOPRawDigit::isFEValid
bool isFEValid() const
Checks if feature extraction points make sense.
Definition: TOPRawDigit.h:435
Belle2::TOPRawDigit::getValuePeak
int getValuePeak() const
Returns ADC value at peak (e.g.
Definition: TOPRawDigit.h:319
Belle2::TOPRawDigit::setTFine
void setTFine(unsigned short tfine)
Sets fine timing for 50% CFD at rising edge (within two samples)
Definition: TOPRawDigit.h:125
Belle2::TOPRawDigit::m_errorFlags
unsigned short m_errorFlags
feature extraction error flags (see enum)
Definition: TOPRawDigit.h:539
Belle2::TOPRawDigit::c_HeadMagic
@ c_HeadMagic
if magic number not 0xA
Definition: TOPRawDigit.h:41
Belle2::TOPRawDigit::setASICWindow
void setASICWindow(unsigned short window)
Sets first storage window number (logical window number)
Definition: TOPRawDigit.h:104
Belle2::TOPRawDigit::setValuePeak
void setValuePeak(short adc)
Sets ADC value at m_sampleRise + m_dSamplePeak (e.g.
Definition: TOPRawDigit.h:162
Belle2::TOPRawDigit::getValueRise0
int getValueRise0() const
Returns ADC value at leading edge (at m_sampleRise)
Definition: TOPRawDigit.h:307
Belle2::TOPRawDigit::getValueFall0
int getValueFall0() const
Returns ADC value at falling edge (at m_sampleRise + m_dSampleFall)
Definition: TOPRawDigit.h:325
Belle2::TOPRawDigit::setErrorFlags
void setErrorFlags(unsigned short flags)
Sets error flags.
Definition: TOPRawDigit.h:205
Belle2::TOPRawDigit::areWindowsInOrder
bool areWindowsInOrder(unsigned short storageDepth=508) const
Checks if storage windows come in the consecutive order before the last sample (no gaps before the la...
Definition: TOPRawDigit.cc:54
Belle2::TOPRawDigit::setASICChannel
void setASICChannel(unsigned short channel)
Sets ASIC channel number.
Definition: TOPRawDigit.h:98
Belle2::TOPRawDigit::setPhase
void setPhase(unsigned short phase)
Sets beam orbit synchronisation phase (production firmware only) 9-state count: valid values are 0 - ...
Definition: TOPRawDigit.h:193
Belle2::TOPRawDigit::setStorageWindows
void setStorageWindows(const std::vector< unsigned short > &windows)
Sets storage windows of waveform segments.
Definition: TOPRawDigit.h:110
Belle2::TOPRawDigit::m_channel
unsigned short m_channel
ASIC channel number.
Definition: TOPRawDigit.h:524
Belle2::TOPRawDigit::getScrodID
unsigned getScrodID() const
Returns SCROD ID.
Definition: TOPRawDigit.h:222
Belle2::TOPRawDigit::getLeadingSlope
double getLeadingSlope() const
Returns leading edge slope.
Definition: TOPRawDigit.h:367
Belle2::TOPRawDigit::getSamplePeak
unsigned getSamplePeak() const
Returns peak position.
Definition: TOPRawDigit.h:289
Belle2::TOPRawDigit::m_VRise0
short m_VRise0
ADC value at m_sampleRise.
Definition: TOPRawDigit.h:530
Belle2::TOPRawDigit::getValueRise1
int getValueRise1() const
Returns ADC value at leading edge (at m_sampleRise + 1)
Definition: TOPRawDigit.h:313
Belle2::TOPRawDigit::setValueFall0
void setValueFall0(short adc)
Sets ADC value at m_sampleRise + m_dSampleFall.
Definition: TOPRawDigit.h:168
Belle2::TOPRawDigit::isAtWindowDiscontinuity
bool isAtWindowDiscontinuity(unsigned short storageDepth=508) const
Checks if feature extraction points are at window discontinuity (e.g.
Definition: TOPRawDigit.cc:36
Belle2::TOPRawDigit::getValueFall1
int getValueFall1() const
Returns ADC value at falling edge (at m_sampleRise + m_dSampleFall + 1)
Definition: TOPRawDigit.h:331
Belle2::TOPRawDigit::setValueRise0
void setValueRise0(short adc)
Sets ADC value at m_sampleRise.
Definition: TOPRawDigit.h:150
Belle2::TOPRawDigit::getLastWriteAddr
unsigned getLastWriteAddr() const
Returns current (reference) ASIC window number.
Definition: TOPRawDigit.h:265
Belle2::TOPRawDigit::m_scrodID
unsigned short m_scrodID
SCROD ID.
Definition: TOPRawDigit.h:521
Belle2::TOPRawDigit::getASICChannel
unsigned getASICChannel() const
Returns ASIC channel number.
Definition: TOPRawDigit.h:240
Belle2::TOPRawDigit::setOfflineFlag
void setOfflineFlag()
Sets offline flag: telling that this digit was extracted offline in basf2.
Definition: TOPRawDigit.h:210
Belle2::TOPRawDigit::getTFine
unsigned getTFine() const
Returns fine timing for 50% CFD (within two samples)
Definition: TOPRawDigit.h:271
Belle2::TOPRawDigit::getErrorFlags
unsigned short getErrorFlags() const
Returns error flags.
Definition: TOPRawDigit.h:361
Belle2::TOPRawDigit::setLookBackWindows
void setLookBackWindows(unsigned short lookBack)
Sets number of look-back windows.
Definition: TOPRawDigit.h:199
Belle2::TOPRawDigit::isWindowConsistent
bool isWindowConsistent() const
Checks if the first window number is the same as the first one in m_windows Note: returns true if m_w...
Definition: TOPRawDigit.h:477
Belle2::TOPRawDigit::m_phase
unsigned short m_phase
carrier phase
Definition: TOPRawDigit.h:537
Belle2::TOPRawDigit::m_lastWriteAddr
unsigned short m_lastWriteAddr
current (reference) window number
Definition: TOPRawDigit.h:540
Belle2::TOPRawDigit::c_TailMagic
@ c_TailMagic
if magic bits not '101' = 0x5
Definition: TOPRawDigit.h:42
Belle2::TOPRawDigit::getFWHM
double getFWHM() const
Returns signal full width half maximum.
Definition: TOPRawDigit.h:417
Belle2::TOPRawDigit::EDataTypes
EDataTypes
Enum for data types needed to steer time conversion in TOPRawDigitConverter.
Definition: TOPRawDigit.h:51
Belle2::TOPRawDigit::c_MC
@ c_MC
from MC digitization
Definition: TOPRawDigit.h:53
Belle2::TOPRawDigit::ErrorFlags
ErrorFlags
Enum for error flags; bits set if corresponding data not consistent.
Definition: TOPRawDigit.h:40
Belle2::TOPRawDigit::m_revo9Counter
unsigned short m_revo9Counter
number of clock ticks since last revo9 flag
Definition: TOPRawDigit.h:536
Belle2::TOPRawDigit::m_asic
unsigned short m_asic
ASIC number.
Definition: TOPRawDigit.h:523
Belle2::TOPRawDigit::m_dSamplePeak
unsigned short m_dSamplePeak
peak position relative to m_sampleRise
Definition: TOPRawDigit.h:528
Belle2::TOPRawDigit::getStorageWindows
const std::vector< unsigned short > & getStorageWindows() const
Returns storage window numbers of waveform segments (not always available!)
Definition: TOPRawDigit.h:259
Belle2::TOPRawDigit::m_integral
int m_integral
integral of a pulse (e.g.
Definition: TOPRawDigit.h:535
Belle2::TOPRawDigit::c_Undefined
@ c_Undefined
undefined
Definition: TOPRawDigit.h:52
Belle2::TOPRawDigit::setDeltaSampleFall
void setDeltaSampleFall(unsigned short dsample)
Sets falling edge sample number just before 50% CFD crossing relative to m_sampleRise.
Definition: TOPRawDigit.h:144
Belle2::TOPRawDigit::isFallingEdgeValid
bool isFallingEdgeValid() const
Checks if falling edge is consistently defined.
Definition: TOPRawDigit.h:429
Belle2::TOPRawDigit::ClassDef
ClassDef(TOPRawDigit, 6)
ClassDef.
Belle2::TOPRawDigit
Class to store unpacked raw data (hits in feature-extraction format) It provides also calculation of ...
Definition: TOPRawDigit.h:34
Belle2::TOPRawDigit::getSampleFall
unsigned getSampleFall() const
Returns sample number at falling edge just before 50% CFD crossing.
Definition: TOPRawDigit.h:301
Belle2::TOPRawDigit::m_offline
bool m_offline
feature extraction flag: by firmware or software
Definition: TOPRawDigit.h:542
Belle2::TOPRawDigit::getCFDLeadingTimeError
double getCFDLeadingTimeError(double rmsNoise) const
Returns leading edge CFD time uncertainty (assuming uncorrelated noise)
Definition: TOPRawDigit.h:398
Belle2::TOPRawDigit::getFallingSlope
double getFallingSlope() const
Returns falling edge slope.
Definition: TOPRawDigit.h:373
Belle2::TOPRawDigit::m_VFall1
short m_VFall1
ADC value at m_sampleRise + m_dSampleFall + 1.
Definition: TOPRawDigit.h:534
Belle2::TOPRawDigit::getDeltaSampleFall
unsigned getDeltaSampleFall() const
Returns sample number at falling edge just before 50% CFD relative to m_sampleRise.
Definition: TOPRawDigit.h:295
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TOPRawDigit::getIntegral
int getIntegral() const
Returns integral of a pulse (e.g.
Definition: TOPRawDigit.h:337
Belle2::TOPRawDigit::getCFDFallingTimeError
double getCFDFallingTimeError(double rmsNoise) const
Returns falling edge CFD time uncertainty (assuming uncorrelated noise)
Definition: TOPRawDigit.h:408
Belle2::TOPRawDigit::m_VRise1
short m_VRise1
ADC value at m_sampleRise + 1.
Definition: TOPRawDigit.h:531
Belle2::TOPRawDigit::m_VFall0
short m_VFall0
ADC value at m_sampleRise + m_dSampleFall.
Definition: TOPRawDigit.h:533
Belle2::TOPRawDigit::m_VPeak
short m_VPeak
ADC value at m_sampleRise + m_dSamplePeak.
Definition: TOPRawDigit.h:532
Belle2::TOPRawDigit::correctTime
double correctTime(double time, unsigned short storageDepth=508) const
Corrects time after window discontinuity by adding missing samples.
Definition: TOPRawDigit.cc:68
Belle2::TOPRawDigit::setLastWriteAddr
void setLastWriteAddr(unsigned short window)
Sets current (reference) window number.
Definition: TOPRawDigit.h:119
Belle2::TOPRawDigit::c_HitMagic
@ c_HitMagic
if magic number not 0xB
Definition: TOPRawDigit.h:43
Belle2::TOPRawDigit::timeErrorCoefficient
double timeErrorCoefficient(double y1, double y2) const
Calculate the coefficient of time error.
Definition: TOPRawDigit.cc:86
Belle2::TOPRawDigit::setRevo9Counter
void setRevo9Counter(unsigned short revo9Counter)
Sets number of global clock tics since last revo9 flag (production firmware only)
Definition: TOPRawDigit.h:186
Belle2::TOPRawDigit::checkEdge
bool checkEdge(int v1, int v2, int vp) const
Checks if values v1, v2 and vp are consistent.
Definition: TOPRawDigit.h:515
Belle2::TOPRawDigit::m_carrier
unsigned short m_carrier
carrier board number
Definition: TOPRawDigit.h:522
Belle2::TOPRawDigit::m_dSampleFall
unsigned short m_dSampleFall
same for falling edge, rel.
Definition: TOPRawDigit.h:529
Belle2::TOPRawDigit::getCarrierNumber
unsigned getCarrierNumber() const
Returns carrier board number.
Definition: TOPRawDigit.h:228
Belle2::TOPRawDigit::m_sampleRise
unsigned short m_sampleRise
sample number just before 50% CFD crossing
Definition: TOPRawDigit.h:527
Belle2::TOPRawDigit::c_WindowSize
@ c_WindowSize
number of samples per window
Definition: TOPRawDigit.h:64
Belle2::TOPRawDigit::getLookBackWindows
unsigned short getLookBackWindows() const
Returns number of look-back windows.
Definition: TOPRawDigit.h:349
Belle2::TOPRawDigit::setValueFall1
void setValueFall1(short adc)
Sets ADC value at m_sampleRise + m_dSampleFall + 1.
Definition: TOPRawDigit.h:174
Belle2::TOPRawDigit::m_dataType
EDataTypes m_dataType
data type
Definition: TOPRawDigit.h:543
Belle2::TOPRawDigit::getRevo9Counter
unsigned short getRevo9Counter() const
Returns 127 MHz clock ticks since last revo9 marker.
Definition: TOPRawDigit.h:343
Belle2::RelationsObject
RelationsInterface< TObject > RelationsObject
Provides interface for getting/adding relations to objects in StoreArrays.
Definition: RelationsObject.h:443
Belle2::TOPRawDigit::TOPRawDigit
TOPRawDigit()
Default constructor.
Definition: TOPRawDigit.h:70
Belle2::TOPRawDigit::c_Other
@ c_Other
other
Definition: TOPRawDigit.h:57
Belle2::TOPRawDigit::getCFDFallingTime
double getCFDFallingTime() const
Returns falling edge CFD time.
Definition: TOPRawDigit.h:388
Belle2::TOPRawDigit::isLeadingEdgeValid
bool isLeadingEdgeValid() const
Checks if leading edge is consistently defined.
Definition: TOPRawDigit.h:423
Belle2::TOPRawDigit::m_windows
std::vector< unsigned short > m_windows
storage windows of waveform segments
Definition: TOPRawDigit.h:541
Belle2::TOPRawDigit::setASICNumber
void setASICNumber(unsigned short asic)
Sets ASIC number.
Definition: TOPRawDigit.h:92
Belle2::TOPRawDigit::c_HitChecksum
@ c_HitChecksum
if sum of 16-bit words not zero
Definition: TOPRawDigit.h:44
Belle2::TOPRawDigit::timeCFDCrossing
double timeCFDCrossing(int sample, int value, double slope) const
calculates time of 50% CFD crossing
Definition: TOPRawDigit.h:498
Belle2::TOPRawDigit::getScrodChannel
unsigned getScrodChannel() const
Returns channel number within SCROD (in the range 0 - 127)
Definition: TOPRawDigit.h:247
Belle2::TOPRawDigit::m_window
unsigned short m_window
first ASIC storage window number
Definition: TOPRawDigit.h:525
Belle2::TOPRawDigit::c_Interim
@ c_Interim
from interim feature extraction
Definition: TOPRawDigit.h:54
Belle2::TOPRawDigit::setValueRise1
void setValueRise1(short adc)
Sets ADC value at m_sampleRise + 1.
Definition: TOPRawDigit.h:156
Belle2::TOPRawDigit::getASICWindow
unsigned getASICWindow() const
Returns ASIC storage window number.
Definition: TOPRawDigit.h:253
Belle2::TOPRawDigit::m_TFine
unsigned short m_TFine
fine timing for 50% CFD (within two samples)
Definition: TOPRawDigit.h:526
Belle2::TOPRawDigit::getASICNumber
unsigned getASICNumber() const
Returns ASIC number.
Definition: TOPRawDigit.h:234
Belle2::TOPRawDigit::isPedestalJump
bool isPedestalJump() const
Checks if feature extraction finds a pedestal jump.
Definition: TOPRawDigit.cc:25
Belle2::TOPRawDigit::getSampleRise
unsigned getSampleRise() const
Returns sample number at leading edge just before 50% CFD crossing.
Definition: TOPRawDigit.h:277
Belle2::TOPRawDigit::m_lookBackWindows
unsigned short m_lookBackWindows
number of look-back windows
Definition: TOPRawDigit.h:538
Belle2::TOPRawDigit::getPhase
unsigned short getPhase() const
Returns beam orbit synchronisation phase (9-state count: valid values are 0 - 8)
Definition: TOPRawDigit.h:355
Belle2::TOPRawDigit::setIntegral
void setIntegral(int integral)
Sets integral of a pulse (e.g.
Definition: TOPRawDigit.h:180
Belle2::TOPRawDigit::c_Production
@ c_Production
from the future production format
Definition: TOPRawDigit.h:55
Belle2::TOPRawDigit::getDataType
EDataTypes getDataType() const
Returns data type.
Definition: TOPRawDigit.h:216
Belle2::TOPRawDigit::getDeltaSamplePeak
unsigned getDeltaSamplePeak() const
Returns peak position relative to m_sampleRise.
Definition: TOPRawDigit.h:283
Belle2::TOPRawDigit::getCFDLeadingTime
double getCFDLeadingTime() const
Returns leading edge CFD time.
Definition: TOPRawDigit.h:379
Belle2::TOPRawDigit::setDeltaSamplePeak
void setDeltaSamplePeak(unsigned short dsample)
Sets peak position relative to m_sampleRise.
Definition: TOPRawDigit.h:137