Belle II Software development
TOPRawDigit Class Reference

Class to store unpacked raw data (hits in feature-extraction format) It provides also calculation of 50% CFD leading and falling edge times and errors. More...

#include <TOPRawDigit.h>

Inheritance diagram for TOPRawDigit:
RelationsInterface< BASE >

Public Types

enum  ErrorFlags {
  c_HeadMagic = 0x0001 ,
  c_TailMagic = 0x0002 ,
  c_HitMagic = 0x0004 ,
  c_HitChecksum = 0x0008
}
 Enum for error flags; bits set if corresponding data not consistent. More...
 
enum  EDataTypes {
  c_Undefined = 0 ,
  c_MC = 1 ,
  c_Interim = 2 ,
  c_Production = 3 ,
  c_ProductionDebug = 4 ,
  c_Other = 99
}
 Enum for data types needed to steer time conversion in TOPRawDigitConverter. More...
 
enum  { c_WindowSize = 64 }
 Various constants. More...
 

Public Member Functions

 TOPRawDigit ()
 Default constructor.
 
 TOPRawDigit (unsigned short scrodID, EDataTypes dataType)
 Usefull constructor.
 
void setCarrierNumber (unsigned short carrier)
 Sets carrier board number.
 
void setASICNumber (unsigned short asic)
 Sets ASIC number.
 
void setASICChannel (unsigned short channel)
 Sets ASIC channel number.
 
void setASICWindow (unsigned short window)
 Sets first storage window number (logical window number)
 
void setStorageWindows (const std::vector< unsigned short > &windows)
 Sets storage windows of waveform segments.
 
void setLastWriteAddr (unsigned short window)
 Sets current (reference) window number.
 
void setTFine (unsigned short tfine)
 Sets fine timing for 50% CFD at rising edge (within two samples)
 
void setSampleRise (unsigned short sample)
 Sets sample number just before 50% CFD crossing at leading edge.
 
void setDeltaSamplePeak (unsigned short dsample)
 Sets peak position relative to m_sampleRise.
 
void setDeltaSampleFall (unsigned short dsample)
 Sets falling edge sample number just before 50% CFD crossing relative to m_sampleRise.
 
void setValueRise0 (short adc)
 Sets ADC value at m_sampleRise.
 
void setValueRise1 (short adc)
 Sets ADC value at m_sampleRise + 1.
 
void setValuePeak (short adc)
 Sets ADC value at m_sampleRise + m_dSamplePeak (e.g.
 
void setValueFall0 (short adc)
 Sets ADC value at m_sampleRise + m_dSampleFall.
 
void setValueFall1 (short adc)
 Sets ADC value at m_sampleRise + m_dSampleFall + 1.
 
void setIntegral (int integral)
 Sets integral of a pulse (e.g.
 
void setRevo9Counter (unsigned short revo9Counter)
 Sets number of global clock tics since last revo9 flag (production firmware only)
 
void setPhase (unsigned short phase)
 Sets beam orbit synchronisation phase (production firmware only) 9-state count: valid values are 0 - 8.
 
void setLookBackWindows (unsigned short lookBack)
 Sets number of look-back windows.
 
void setErrorFlags (unsigned short flags)
 Sets error flags.
 
void setOfflineFlag ()
 Sets offline flag: telling that this digit was extracted offline in basf2.
 
EDataTypes getDataType () const
 Returns data type.
 
unsigned getScrodID () const
 Returns SCROD ID.
 
unsigned getCarrierNumber () const
 Returns carrier board number.
 
unsigned getASICNumber () const
 Returns ASIC number.
 
unsigned getASICChannel () const
 Returns ASIC channel number.
 
unsigned getScrodChannel () const
 Returns channel number within SCROD (in the range 0 - 127)
 
unsigned getASICWindow () const
 Returns ASIC storage window number.
 
const std::vector< unsigned short > & getStorageWindows () const
 Returns storage window numbers of waveform segments (not always available!)
 
unsigned getLastWriteAddr () const
 Returns current (reference) ASIC window number.
 
unsigned getTFine () const
 Returns fine timing for 50% CFD (within two samples)
 
unsigned getSampleRise () const
 Returns sample number at leading edge just before 50% CFD crossing.
 
unsigned getDeltaSamplePeak () const
 Returns peak position relative to m_sampleRise.
 
unsigned getSamplePeak () const
 Returns peak position.
 
unsigned getDeltaSampleFall () const
 Returns sample number at falling edge just before 50% CFD relative to m_sampleRise.
 
unsigned getSampleFall () const
 Returns sample number at falling edge just before 50% CFD crossing.
 
int getValueRise0 () const
 Returns ADC value at leading edge (at m_sampleRise)
 
int getValueRise1 () const
 Returns ADC value at leading edge (at m_sampleRise + 1)
 
int getValuePeak () const
 Returns ADC value at peak (e.g.
 
int getValueFall0 () const
 Returns ADC value at falling edge (at m_sampleRise + m_dSampleFall)
 
int getValueFall1 () const
 Returns ADC value at falling edge (at m_sampleRise + m_dSampleFall + 1)
 
int getIntegral () const
 Returns integral of a pulse (e.g.
 
unsigned short getRevo9Counter () const
 Returns 127 MHz clock ticks since last revo9 marker.
 
unsigned short getLookBackWindows () const
 Returns number of look-back windows.
 
unsigned short getPhase () const
 Returns beam orbit synchronisation phase (9-state count: valid values are 0 - 8)
 
unsigned short getErrorFlags () const
 Returns error flags.
 
double getLeadingSlope () const
 Returns leading edge slope.
 
double getFallingSlope () const
 Returns falling edge slope.
 
double getCFDLeadingTime () const
 Returns leading edge CFD time.
 
double getCFDFallingTime () const
 Returns falling edge CFD time.
 
double getCFDLeadingTimeError (double rmsNoise) const
 Returns leading edge CFD time uncertainty (assuming uncorrelated noise)
 
double getCFDFallingTimeError (double rmsNoise) const
 Returns falling edge CFD time uncertainty (assuming uncorrelated noise)
 
double getFWHM () const
 Returns signal full width half maximum.
 
bool isLeadingEdgeValid () const
 Checks if leading edge is consistently defined.
 
bool isFallingEdgeValid () const
 Checks if falling edge is consistently defined.
 
bool isFEValid () const
 Checks if feature extraction points make sense.
 
bool isPedestalJump () const
 Checks if feature extraction finds a pedestal jump.
 
bool isAtWindowDiscontinuity (unsigned short storageDepth=508) const
 Checks if feature extraction points are at window discontinuity (e.g.
 
bool areWindowsInOrder (unsigned short storageDepth=508) const
 Checks if storage windows come in the consecutive order before the last sample (no gaps before the last sample) Note: returns true if m_windows is empty.
 
double correctTime (double time, unsigned short storageDepth=508) const
 Corrects time after window discontinuity by adding missing samples.
 
bool isWindowConsistent () const
 Checks if the first window number is the same as the first one in m_windows Note: returns true if m_windows is empty.
 
bool isMadeOffline () const
 Returns offline flag.
 
void addRelationTo (const RelationsInterface< BASE > *object, float weight=1.0, const std::string &namedRelation="") const
 Add a relation from this object to another object (with caching).
 
void addRelationTo (const TObject *object, float weight=1.0, const std::string &namedRelation="") const
 Add a relation from this object to another object (no caching, can be quite slow).
 
void copyRelations (const RelationsInterface< BASE > *sourceObj)
 Copies all relations of sourceObj (pointing from or to sourceObj) to this object (including weights).
 
template<class TO >
RelationVector< TO > getRelationsTo (const std::string &name="", const std::string &namedRelation="") const
 Get the relations that point from this object to another store array.
 
template<class FROM >
RelationVector< FROM > getRelationsFrom (const std::string &name="", const std::string &namedRelation="") const
 Get the relations that point from another store array to this object.
 
template<class T >
RelationVector< T > getRelationsWith (const std::string &name="", const std::string &namedRelation="") const
 Get the relations between this object and another store array.
 
template<class TO >
TO * getRelatedTo (const std::string &name="", const std::string &namedRelation="") const
 Get the object to which this object has a relation.
 
template<class FROM >
FROM * getRelatedFrom (const std::string &name="", const std::string &namedRelation="") const
 Get the object from which this object has a relation.
 
template<class T >
T * getRelated (const std::string &name="", const std::string &namedRelation="") const
 Get the object to or from which this object has a relation.
 
template<class TO >
std::pair< TO *, float > getRelatedToWithWeight (const std::string &name="", const std::string &namedRelation="") const
 Get first related object & weight of relation pointing to an array.
 
template<class FROM >
std::pair< FROM *, float > getRelatedFromWithWeight (const std::string &name="", const std::string &namedRelation="") const
 Get first related object & weight of relation pointing from an array.
 
template<class T >
std::pair< T *, float > getRelatedWithWeight (const std::string &name="", const std::string &namedRelation="") const
 Get first related object & weight of relation pointing from/to an array.
 
virtual std::string getName () const
 Return a short name that describes this object, e.g.
 
virtual std::string getInfoHTML () const
 Return a short summary of this object's contents in HTML format.
 
std::string getInfo () const
 Return a short summary of this object's contents in raw text format.
 
std::string getArrayName () const
 Get name of array this object is stored in, or "" if not found.
 
int getArrayIndex () const
 Returns this object's array index (in StoreArray), or -1 if not found.
 

Protected Member Functions

TClonesArray * getArrayPointer () const
 Returns the pointer to the raw DataStore array holding this object (protected since these arrays are easy to misuse).
 

Private Member Functions

double timeCFDCrossing (int sample, int value, double slope) const
 calculates time of 50% CFD crossing
 
double timeErrorCoefficient (double y1, double y2) const
 Calculate the coefficient of time error.
 
bool checkEdge (int v1, int v2, int vp) const
 Checks if values v1, v2 and vp are consistent.
 
 ClassDef (TOPRawDigit, 6)
 ClassDef.
 

Private Attributes

unsigned short m_scrodID = 0
 SCROD ID.
 
unsigned short m_carrier = 0
 carrier board number
 
unsigned short m_asic = 0
 ASIC number.
 
unsigned short m_channel = 0
 ASIC channel number.
 
unsigned short m_window = 0
 first ASIC storage window number
 
unsigned short m_TFine = 0
 fine timing for 50% CFD (within two samples)
 
unsigned short m_sampleRise = 0
 sample number just before 50% CFD crossing
 
unsigned short m_dSamplePeak = 0
 peak position relative to m_sampleRise
 
unsigned short m_dSampleFall = 0
 same for falling edge, rel.
 
short m_VRise0 = 0
 ADC value at m_sampleRise.
 
short m_VRise1 = 0
 ADC value at m_sampleRise + 1.
 
short m_VPeak = 0
 ADC value at m_sampleRise + m_dSamplePeak.
 
short m_VFall0 = 0
 ADC value at m_sampleRise + m_dSampleFall.
 
short m_VFall1 = 0
 ADC value at m_sampleRise + m_dSampleFall + 1.
 
int m_integral = 0
 integral of a pulse (proportional to charge)
 
unsigned short m_revo9Counter = 0
 number of clock ticks since last revo9 flag
 
unsigned short m_phase = 0
 carrier phase
 
unsigned short m_lookBackWindows = 0
 number of look-back windows
 
unsigned short m_errorFlags = 0
 feature extraction error flags (see enum)
 
unsigned short m_lastWriteAddr = 0
 current (reference) window number
 
std::vector< unsigned short > m_windows
 storage windows of waveform segments
 
bool m_offline = false
 feature extraction flag: by firmware or software
 
EDataTypes m_dataType = c_Undefined
 data type
 
DataStore::StoreEntrym_cacheDataStoreEntry
 Cache of the data store entry to which this object belongs.
 
int m_cacheArrayIndex
 Cache of the index in the TClonesArray to which this object belongs.
 

Detailed Description

Class to store unpacked raw data (hits in feature-extraction format) It provides also calculation of 50% CFD leading and falling edge times and errors.

Definition at line 24 of file TOPRawDigit.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Various constants.

Enumerator
c_WindowSize 

number of samples per window

Definition at line 53 of file TOPRawDigit.h.

53 {
54 c_WindowSize = 64
55 };
@ c_WindowSize
number of samples per window
Definition: TOPRawDigit.h:54

◆ EDataTypes

enum EDataTypes

Enum for data types needed to steer time conversion in TOPRawDigitConverter.

Enumerator
c_Undefined 

undefined

c_MC 

from MC digitization

c_Interim 

from interim feature extraction

c_Production 

from the future production format

c_ProductionDebug 

from production debugging format

c_Other 

other

Definition at line 41 of file TOPRawDigit.h.

41 {
42 c_Undefined = 0,
43 c_MC = 1,
44 c_Interim = 2,
45 c_Production = 3,
47 c_Other = 99
48 };
@ c_Interim
from interim feature extraction
Definition: TOPRawDigit.h:44
@ c_ProductionDebug
from production debugging format
Definition: TOPRawDigit.h:46
@ c_Production
from the future production format
Definition: TOPRawDigit.h:45
@ c_MC
from MC digitization
Definition: TOPRawDigit.h:43
@ c_Undefined
undefined
Definition: TOPRawDigit.h:42

◆ ErrorFlags

enum ErrorFlags

Enum for error flags; bits set if corresponding data not consistent.

Enumerator
c_HeadMagic 

if magic number not 0xA

c_TailMagic 

if magic bits not '101' = 0x5

c_HitMagic 

if magic number not 0xB

c_HitChecksum 

if sum of 16-bit words not zero

Definition at line 30 of file TOPRawDigit.h.

30 {
31 c_HeadMagic = 0x0001,
32 c_TailMagic = 0x0002,
33 c_HitMagic = 0x0004,
34 c_HitChecksum = 0x0008
35 };
@ c_HitMagic
if magic number not 0xB
Definition: TOPRawDigit.h:33
@ c_TailMagic
if magic bits not '101' = 0x5
Definition: TOPRawDigit.h:32
@ c_HitChecksum
if sum of 16-bit words not zero
Definition: TOPRawDigit.h:34
@ c_HeadMagic
if magic number not 0xA
Definition: TOPRawDigit.h:31

Constructor & Destructor Documentation

◆ TOPRawDigit() [1/2]

TOPRawDigit ( )
inline

Default constructor.

Definition at line 60 of file TOPRawDigit.h.

61 {}

◆ TOPRawDigit() [2/2]

TOPRawDigit ( unsigned short  scrodID,
EDataTypes  dataType 
)
inline

Usefull constructor.

Parameters
scrodIDSCROD ID
dataTypedata type

Definition at line 68 of file TOPRawDigit.h.

68 :
69 m_scrodID(scrodID), m_dataType(dataType)
70 {}
unsigned short m_scrodID
SCROD ID.
Definition: TOPRawDigit.h:511
EDataTypes m_dataType
data type
Definition: TOPRawDigit.h:533

Member Function Documentation

◆ addRelationTo() [1/2]

void addRelationTo ( const RelationsInterface< BASE > *  object,
float  weight = 1.0,
const std::string &  namedRelation = "" 
) const
inlineinherited

Add a relation from this object to another object (with caching).

Parameters
objectThe object to which the relation should point.
weightThe weight of the relation.
namedRelationAdditional name for the relation, or "" for the default naming

Definition at line 142 of file RelationsObject.h.

143 {
144 if (object)
146 object, object->m_cacheDataStoreEntry, object->m_cacheArrayIndex, weight, namedRelation);
147 }
void addRelation(const TObject *fromObject, StoreEntry *&fromEntry, int &fromIndex, const TObject *toObject, StoreEntry *&toEntry, int &toIndex, float weight, const std::string &namedRelation)
Add a relation from an object in a store array to another object in a store array.
Definition: DataStore.cc:492
static DataStore & Instance()
Instance of singleton Store.
Definition: DataStore.cc:54
DataStore::StoreEntry * m_cacheDataStoreEntry
Cache of the data store entry to which this object belongs.
int m_cacheArrayIndex
Cache of the index in the TClonesArray to which this object belongs.

◆ addRelationTo() [2/2]

void addRelationTo ( const TObject *  object,
float  weight = 1.0,
const std::string &  namedRelation = "" 
) const
inlineinherited

Add a relation from this object to another object (no caching, can be quite slow).

Parameters
objectThe object to which the relation should point.
weightThe weight of the relation.
namedRelationAdditional name for the relation, or "" for the default naming

Definition at line 155 of file RelationsObject.h.

156 {
157 StoreEntry* toEntry = nullptr;
158 int toIndex = -1;
159 DataStore::Instance().addRelation(this, m_cacheDataStoreEntry, m_cacheArrayIndex, object, toEntry, toIndex, weight, namedRelation);
160 }

◆ checkEdge()

bool checkEdge ( int  v1,
int  v2,
int  vp 
) const
inlineprivate

Checks if values v1, v2 and vp are consistent.

Definition at line 505 of file TOPRawDigit.h.

506 {
507 return (vp > 0 and v1 < v2 and 2 * v1 <= vp and v2 <= vp)
508 or (vp < 0 and v1 > v2 and 2 * v1 >= vp and v2 >= vp);
509 }

◆ copyRelations()

void copyRelations ( const RelationsInterface< BASE > *  sourceObj)
inlineinherited

Copies all relations of sourceObj (pointing from or to sourceObj) to this object (including weights).

Useful if you want to make a complete copy of a StoreArray object to make modifications to it, but retain all information on linked objects.

Note: this only works if sourceObj inherits from the same base (e.g. RelationsObject), and only for related objects that also inherit from the same base.

Definition at line 170 of file RelationsObject.h.

171 {
172 if (!sourceObj)
173 return;
174 auto fromRels = sourceObj->getRelationsFrom<RelationsInterface<BASE>>("ALL");
175 for (unsigned int iRel = 0; iRel < fromRels.size(); iRel++) {
176 fromRels.object(iRel)->addRelationTo(this, fromRels.weight(iRel));
177 }
178
179 auto toRels = sourceObj->getRelationsTo<RelationsInterface<BASE>>("ALL");
180 for (unsigned int iRel = 0; iRel < toRels.size(); iRel++) {
181 this->addRelationTo(toRels.object(iRel), toRels.weight(iRel));
182 }
183 }
void addRelationTo(const RelationsInterface< BASE > *object, float weight=1.0, const std::string &namedRelation="") const
Add a relation from this object to another object (with caching).

◆ getArrayIndex()

int getArrayIndex ( ) const
inlineinherited

Returns this object's array index (in StoreArray), or -1 if not found.

Definition at line 385 of file RelationsObject.h.

386 {
388 return m_cacheArrayIndex;
389 }
bool findStoreEntry(const TObject *object, StoreEntry *&entry, int &index)
Find an object in an array in the data store.
Definition: DataStore.cc:398

◆ getArrayName()

std::string getArrayName ( ) const
inlineinherited

Get name of array this object is stored in, or "" if not found.

Definition at line 377 of file RelationsObject.h.

◆ getArrayPointer()

TClonesArray * getArrayPointer ( ) const
inlineprotectedinherited

Returns the pointer to the raw DataStore array holding this object (protected since these arrays are easy to misuse).

Definition at line 418 of file RelationsObject.h.

419 {
422 return nullptr;
424 }
TClonesArray * getPtrAsArray() const
Return ptr cast to TClonesArray.
Definition: StoreEntry.cc:83

◆ getASICChannel()

unsigned getASICChannel ( ) const
inline

Returns ASIC channel number.

Returns
ASIC channel number

Definition at line 230 of file TOPRawDigit.h.

230{return m_channel;}
unsigned short m_channel
ASIC channel number.
Definition: TOPRawDigit.h:514

◆ getASICNumber()

unsigned getASICNumber ( ) const
inline

Returns ASIC number.

Returns
ASIC number

Definition at line 224 of file TOPRawDigit.h.

224{return m_asic;}
unsigned short m_asic
ASIC number.
Definition: TOPRawDigit.h:513

◆ getASICWindow()

unsigned getASICWindow ( ) const
inline

Returns ASIC storage window number.

Returns
window number

Definition at line 243 of file TOPRawDigit.h.

243{return m_window;}
unsigned short m_window
first ASIC storage window number
Definition: TOPRawDigit.h:515

◆ getCarrierNumber()

unsigned getCarrierNumber ( ) const
inline

Returns carrier board number.

Returns
carrier board number

Definition at line 218 of file TOPRawDigit.h.

218{return m_carrier;}
unsigned short m_carrier
carrier board number
Definition: TOPRawDigit.h:512

◆ getCFDFallingTime()

double getCFDFallingTime ( ) const
inline

Returns falling edge CFD time.

Returns
time [samples] (not in [ns]!)

Definition at line 378 of file TOPRawDigit.h.

379 {
381 }
double getFallingSlope() const
Returns falling edge slope.
Definition: TOPRawDigit.h:363
double timeCFDCrossing(int sample, int value, double slope) const
calculates time of 50% CFD crossing
Definition: TOPRawDigit.h:488
unsigned getSampleFall() const
Returns sample number at falling edge just before 50% CFD crossing.
Definition: TOPRawDigit.h:291
int getValueFall0() const
Returns ADC value at falling edge (at m_sampleRise + m_dSampleFall)
Definition: TOPRawDigit.h:315

◆ getCFDFallingTimeError()

double getCFDFallingTimeError ( double  rmsNoise) const
inline

Returns falling edge CFD time uncertainty (assuming uncorrelated noise)

Parameters
rmsNoiser.m.s of the pedestal fluctuations [ADC counts]
Returns
time uncertainty [samples] (not in [ns]!)

Definition at line 398 of file TOPRawDigit.h.

399 {
400 return rmsNoise * timeErrorCoefficient(m_VFall0, m_VFall1);
401 }
short m_VFall1
ADC value at m_sampleRise + m_dSampleFall + 1.
Definition: TOPRawDigit.h:524
short m_VFall0
ADC value at m_sampleRise + m_dSampleFall.
Definition: TOPRawDigit.h:523
double timeErrorCoefficient(double y1, double y2) const
Calculate the coefficient of time error.
Definition: TOPRawDigit.cc:84

◆ getCFDLeadingTime()

double getCFDLeadingTime ( ) const
inline

Returns leading edge CFD time.

Returns
time [samples] (not in [ns]!)

Definition at line 369 of file TOPRawDigit.h.

370 {
372 }
int getValueRise0() const
Returns ADC value at leading edge (at m_sampleRise)
Definition: TOPRawDigit.h:297
double getLeadingSlope() const
Returns leading edge slope.
Definition: TOPRawDigit.h:357
unsigned getSampleRise() const
Returns sample number at leading edge just before 50% CFD crossing.
Definition: TOPRawDigit.h:267

◆ getCFDLeadingTimeError()

double getCFDLeadingTimeError ( double  rmsNoise) const
inline

Returns leading edge CFD time uncertainty (assuming uncorrelated noise)

Parameters
rmsNoiser.m.s of the pedestal fluctuations [ADC counts]
Returns
time uncertainty [samples] (not in [ns]!)

Definition at line 388 of file TOPRawDigit.h.

389 {
390 return rmsNoise * timeErrorCoefficient(m_VRise0, m_VRise1);
391 }
short m_VRise0
ADC value at m_sampleRise.
Definition: TOPRawDigit.h:520
short m_VRise1
ADC value at m_sampleRise + 1.
Definition: TOPRawDigit.h:521

◆ getDataType()

EDataTypes getDataType ( ) const
inline

Returns data type.

Returns
data type

Definition at line 206 of file TOPRawDigit.h.

206{return m_dataType;}

◆ getDeltaSampleFall()

unsigned getDeltaSampleFall ( ) const
inline

Returns sample number at falling edge just before 50% CFD relative to m_sampleRise.

Returns
sample number difference

Definition at line 285 of file TOPRawDigit.h.

285{return m_dSampleFall;}
unsigned short m_dSampleFall
same for falling edge, rel.
Definition: TOPRawDigit.h:519

◆ getDeltaSamplePeak()

unsigned getDeltaSamplePeak ( ) const
inline

Returns peak position relative to m_sampleRise.

Returns
sample number difference

Definition at line 273 of file TOPRawDigit.h.

273{return m_dSamplePeak;}
unsigned short m_dSamplePeak
peak position relative to m_sampleRise
Definition: TOPRawDigit.h:518

◆ getErrorFlags()

unsigned short getErrorFlags ( ) const
inline

Returns error flags.

Returns
flags

Definition at line 351 of file TOPRawDigit.h.

351{return m_errorFlags;}
unsigned short m_errorFlags
feature extraction error flags (see enum)
Definition: TOPRawDigit.h:529

◆ getFallingSlope()

double getFallingSlope ( ) const
inline

Returns falling edge slope.

Returns
slope [ADC counts per sample]

Definition at line 363 of file TOPRawDigit.h.

363{return getValueFall1() - getValueFall0();}
int getValueFall1() const
Returns ADC value at falling edge (at m_sampleRise + m_dSampleFall + 1)
Definition: TOPRawDigit.h:321

◆ getFWHM()

double getFWHM ( ) const
inline

Returns signal full width half maximum.

Returns
FWHM [samples] (not in [ns]!)

Definition at line 407 of file TOPRawDigit.h.

double getCFDLeadingTime() const
Returns leading edge CFD time.
Definition: TOPRawDigit.h:369
double getCFDFallingTime() const
Returns falling edge CFD time.
Definition: TOPRawDigit.h:378

◆ getInfo()

std::string getInfo ( ) const
inlineinherited

Return a short summary of this object's contents in raw text format.

Returns the contents of getInfoHTML() while translating line-breaks etc.

Note
: You don't need to implement this function (it's not virtual), getInfoHTML() is enough.

Definition at line 370 of file RelationsObject.h.

371 {
373 }
virtual std::string getInfoHTML() const
Return a short summary of this object's contents in HTML format.
std::string htmlToPlainText(const std::string &html)
See RelationsObject::getInfo()

◆ getInfoHTML()

virtual std::string getInfoHTML ( ) const
inlinevirtualinherited

Return a short summary of this object's contents in HTML format.

Reimplement this in your own class to provide useful output for display or debugging purposes. For example, you might do something like:

std::stringstream out;
out << "<b>PDG</b>: " << m_pdg << "<br>";
out << "<b>Covariance Matrix</b>: " << HTML::getString(getCovariance5()) << "<br>";
return out.str();
std::string getString(const TMatrixFBase &matrix, int precision=2, bool color=true)
get HTML table representing a matrix.
Definition: HTML.cc:24
See also
Particle::getInfoHTML() for a more complex example.
HTML for some utility functions.
Use getInfo() to get a raw text version of this output.

Reimplemented in Particle, Cluster, MCParticle, PIDLikelihood, SoftwareTriggerResult, Track, TrackFitResult, TRGSummary, and RecoTrack.

Definition at line 362 of file RelationsObject.h.

362{ return ""; }

◆ getIntegral()

int getIntegral ( ) const
inline

Returns integral of a pulse (e.g.

a value proportional to charge)

Returns
integral

Definition at line 327 of file TOPRawDigit.h.

327{return m_integral;}
int m_integral
integral of a pulse (proportional to charge)
Definition: TOPRawDigit.h:525

◆ getLastWriteAddr()

unsigned getLastWriteAddr ( ) const
inline

Returns current (reference) ASIC window number.

Returns
window number

Definition at line 255 of file TOPRawDigit.h.

255{return m_lastWriteAddr;}
unsigned short m_lastWriteAddr
current (reference) window number
Definition: TOPRawDigit.h:530

◆ getLeadingSlope()

double getLeadingSlope ( ) const
inline

Returns leading edge slope.

Returns
slope [ADC counts per sample]

Definition at line 357 of file TOPRawDigit.h.

357{return getValueRise1() - getValueRise0();}
int getValueRise1() const
Returns ADC value at leading edge (at m_sampleRise + 1)
Definition: TOPRawDigit.h:303

◆ getLookBackWindows()

unsigned short getLookBackWindows ( ) const
inline

Returns number of look-back windows.

Returns
number of look-back windows (0 means 'not available')

Definition at line 339 of file TOPRawDigit.h.

339{return m_lookBackWindows;}
unsigned short m_lookBackWindows
number of look-back windows
Definition: TOPRawDigit.h:528

◆ getName()

virtual std::string getName ( ) const
inlinevirtualinherited

Return a short name that describes this object, e.g.

pi+ for an MCParticle.

Reimplemented in Particle, MCParticle, and SpacePoint.

Definition at line 344 of file RelationsObject.h.

344{ return ""; }

◆ getPhase()

unsigned short getPhase ( ) const
inline

Returns beam orbit synchronisation phase (9-state count: valid values are 0 - 8)

Returns
phase

Definition at line 345 of file TOPRawDigit.h.

345{return m_phase;}
unsigned short m_phase
carrier phase
Definition: TOPRawDigit.h:527

◆ getRelated()

T * getRelated ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the object to or from which this object has a relation.

Template Parameters
TThe class of objects to or from which the relation points.
Parameters
nameThe name of the store array to or from which the relation points. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
The first related object or a null pointer.

Definition at line 278 of file RelationsObject.h.

279 {
281 T::Class(), name, namedRelation).object);
282 }
@ c_BothSides
Combination of c_FromSide and c_ToSide.
Definition: DataStore.h:79
Belle2::RelationEntry getRelationWith(ESearchSide searchSide, const TObject *object, StoreEntry *&entry, int &index, const TClass *withClass, const std::string &withName, const std::string &namedRelation)
Get the first relation between an object and another object in a store array.
Definition: DataStore.cc:597
TObject * object
Pointer to the object.
Definition: RelationEntry.h:32

◆ getRelatedFrom()

FROM * getRelatedFrom ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the object from which this object has a relation.

Template Parameters
FROMThe class of objects from which the relation points.
Parameters
nameThe name of the store array from which the relation points. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
The first related object or a null pointer.

Definition at line 263 of file RelationsObject.h.

264 {
266 m_cacheArrayIndex, FROM::Class(), name, namedRelation).object);
267 }
@ c_FromSide
Return relations/objects pointed from (to a given object).
Definition: DataStore.h:77

◆ getRelatedFromWithWeight()

std::pair< FROM *, float > getRelatedFromWithWeight ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get first related object & weight of relation pointing from an array.

Template Parameters
FROMThe class of objects from which the relation points.
Parameters
nameThe name of the store array from which the relation points. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
Pair of first related object and the relation weight, or (NULL, 1.0) if none found.

Definition at line 314 of file RelationsObject.h.

316 {
318 FROM::Class(), name, namedRelation);
319 return std::make_pair(static_cast<FROM*>(entry.object), entry.weight);
320 }

◆ getRelatedTo()

TO * getRelatedTo ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the object to which this object has a relation.

Template Parameters
TOThe class of objects to which the relation points.
Parameters
nameThe name of the store array to which the relation points. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
The first related object or a null pointer.

Definition at line 248 of file RelationsObject.h.

249 {
251 TO::Class(), name, namedRelation).object);
252 }
@ c_ToSide
Return relations/objects pointed to (from a given object).
Definition: DataStore.h:78

◆ getRelatedToWithWeight()

std::pair< TO *, float > getRelatedToWithWeight ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get first related object & weight of relation pointing to an array.

Template Parameters
TOThe class of objects to which the relation points.
Parameters
nameThe name of the store array to which the relation points. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
Pair of first related object and the relation weight, or (NULL, 1.0) if none found.

Definition at line 297 of file RelationsObject.h.

299 {
301 TO::Class(), name, namedRelation);
302 return std::make_pair(static_cast<TO*>(entry.object), entry.weight);
303 }

◆ getRelatedWithWeight()

std::pair< T *, float > getRelatedWithWeight ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get first related object & weight of relation pointing from/to an array.

Template Parameters
TThe class of objects to or from which the relation points.
Parameters
nameThe name of the store array to or from which the relation points. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
Pair of first related object and the relation weight, or (NULL, 1.0) if none found.

Definition at line 331 of file RelationsObject.h.

333 {
335 T::Class(), name, namedRelation);
336 return std::make_pair(static_cast<T*>(entry.object), entry.weight);
337 }

◆ getRelationsFrom()

RelationVector< FROM > getRelationsFrom ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the relations that point from another store array to this object.

Template Parameters
FROMThe class of objects from which the relations point.
Parameters
nameThe name of the store array from which the relations point. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
A vector of relations.

Definition at line 212 of file RelationsObject.h.

214 {
216 m_cacheArrayIndex, FROM::Class(), name, namedRelation));
217 }
RelationVector< T > getRelationsWith(const std::string &name="", const std::string &namedRelation="") const
Get the relations between this object and another store array.

◆ getRelationsTo()

RelationVector< TO > getRelationsTo ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the relations that point from this object to another store array.

Template Parameters
TOThe class of objects to which the relations point.
Parameters
nameThe name of the store array to which the relations point. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
A vector of relations.

Definition at line 197 of file RelationsObject.h.

198 {
200 m_cacheArrayIndex, TO::Class(), name, namedRelation));
201 }

◆ getRelationsWith()

RelationVector< T > getRelationsWith ( const std::string &  name = "",
const std::string &  namedRelation = "" 
) const
inlineinherited

Get the relations between this object and another store array.

Relations in both directions are returned.

Template Parameters
TThe class of objects to or from which the relations point.
Parameters
nameThe name of the store array to or from which the relations point. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered.
namedRelationAdditional name for the relation, or "" for the default naming
Returns
A vector of relations.

Definition at line 230 of file RelationsObject.h.

231 {
233 m_cacheArrayIndex, T::Class(), name, namedRelation));
234 }

◆ getRevo9Counter()

unsigned short getRevo9Counter ( ) const
inline

Returns 127 MHz clock ticks since last revo9 marker.

Returns
revo9counter

Definition at line 333 of file TOPRawDigit.h.

333{return m_revo9Counter;}
unsigned short m_revo9Counter
number of clock ticks since last revo9 flag
Definition: TOPRawDigit.h:526

◆ getSampleFall()

unsigned getSampleFall ( ) const
inline

Returns sample number at falling edge just before 50% CFD crossing.

Returns
sample number

Definition at line 291 of file TOPRawDigit.h.

291{return m_sampleRise + m_dSampleFall;}
unsigned short m_sampleRise
sample number just before 50% CFD crossing
Definition: TOPRawDigit.h:517

◆ getSamplePeak()

unsigned getSamplePeak ( ) const
inline

Returns peak position.

Returns
sample number

Definition at line 279 of file TOPRawDigit.h.

279{return m_sampleRise + m_dSamplePeak;}

◆ getSampleRise()

unsigned getSampleRise ( ) const
inline

Returns sample number at leading edge just before 50% CFD crossing.

Returns
sample number

Definition at line 267 of file TOPRawDigit.h.

267{return m_sampleRise;}

◆ getScrodChannel()

unsigned getScrodChannel ( ) const
inline

Returns channel number within SCROD (in the range 0 - 127)

Returns
SCROD channel number

Definition at line 237 of file TOPRawDigit.h.

237{return m_channel + m_asic * 8 + m_carrier * 32;}

◆ getScrodID()

unsigned getScrodID ( ) const
inline

Returns SCROD ID.

Returns
SCROD ID

Definition at line 212 of file TOPRawDigit.h.

212{return m_scrodID;}

◆ getStorageWindows()

const std::vector< unsigned short > & getStorageWindows ( ) const
inline

Returns storage window numbers of waveform segments (not always available!)

Returns
window numbers

Definition at line 249 of file TOPRawDigit.h.

249{return m_windows;}
std::vector< unsigned short > m_windows
storage windows of waveform segments
Definition: TOPRawDigit.h:531

◆ getTFine()

unsigned getTFine ( ) const
inline

Returns fine timing for 50% CFD (within two samples)

Returns
fine timing

Definition at line 261 of file TOPRawDigit.h.

261{return m_TFine;}
unsigned short m_TFine
fine timing for 50% CFD (within two samples)
Definition: TOPRawDigit.h:516

◆ getValueFall0()

int getValueFall0 ( ) const
inline

Returns ADC value at falling edge (at m_sampleRise + m_dSampleFall)

Returns
ADC value

Definition at line 315 of file TOPRawDigit.h.

315{return m_VFall0;}

◆ getValueFall1()

int getValueFall1 ( ) const
inline

Returns ADC value at falling edge (at m_sampleRise + m_dSampleFall + 1)

Returns
ADC value

Definition at line 321 of file TOPRawDigit.h.

321{return m_VFall1;}

◆ getValuePeak()

int getValuePeak ( ) const
inline

Returns ADC value at peak (e.g.

pulse height)

Returns
ADC value

Definition at line 309 of file TOPRawDigit.h.

309{return m_VPeak;}
short m_VPeak
ADC value at m_sampleRise + m_dSamplePeak.
Definition: TOPRawDigit.h:522

◆ getValueRise0()

int getValueRise0 ( ) const
inline

Returns ADC value at leading edge (at m_sampleRise)

Returns
ADC value

Definition at line 297 of file TOPRawDigit.h.

297{return m_VRise0;}

◆ getValueRise1()

int getValueRise1 ( ) const
inline

Returns ADC value at leading edge (at m_sampleRise + 1)

Returns
ADC value

Definition at line 303 of file TOPRawDigit.h.

303{return m_VRise1;}

◆ isFallingEdgeValid()

bool isFallingEdgeValid ( ) const
inline

Checks if falling edge is consistently defined.

Returns
true if consistent

Definition at line 419 of file TOPRawDigit.h.

bool checkEdge(int v1, int v2, int vp) const
Checks if values v1, v2 and vp are consistent.
Definition: TOPRawDigit.h:505

◆ isFEValid()

bool isFEValid ( ) const
inline

Checks if feature extraction points make sense.

Returns
true if consistent

Definition at line 425 of file TOPRawDigit.h.

426 {
428 }
bool isLeadingEdgeValid() const
Checks if leading edge is consistently defined.
Definition: TOPRawDigit.h:413
bool isFallingEdgeValid() const
Checks if falling edge is consistently defined.
Definition: TOPRawDigit.h:419

◆ isLeadingEdgeValid()

bool isLeadingEdgeValid ( ) const
inline

Checks if leading edge is consistently defined.

Returns
true if consistent

Definition at line 413 of file TOPRawDigit.h.

◆ isMadeOffline()

bool isMadeOffline ( ) const
inline

Returns offline flag.

Returns
true, if digit was extracted from waveform offline (in basf2)

Definition at line 477 of file TOPRawDigit.h.

477{return m_offline;}
bool m_offline
feature extraction flag: by firmware or software
Definition: TOPRawDigit.h:532

◆ isWindowConsistent()

bool isWindowConsistent ( ) const
inline

Checks if the first window number is the same as the first one in m_windows Note: returns true if m_windows is empty.

Returns
true, if window numbers are the same or m_windows is empty

Definition at line 467 of file TOPRawDigit.h.

468 {
469 if (m_windows.empty()) return true;
470 return m_windows[0] == m_window;
471 }

◆ setASICChannel()

void setASICChannel ( unsigned short  channel)
inline

Sets ASIC channel number.

Parameters
channelnumber

Definition at line 88 of file TOPRawDigit.h.

88{m_channel = channel;}

◆ setASICNumber()

void setASICNumber ( unsigned short  asic)
inline

Sets ASIC number.

Parameters
asicnumber

Definition at line 82 of file TOPRawDigit.h.

82{m_asic = asic;}

◆ setASICWindow()

void setASICWindow ( unsigned short  window)
inline

Sets first storage window number (logical window number)

Parameters
windownumber

Definition at line 94 of file TOPRawDigit.h.

94{m_window = window;}

◆ setCarrierNumber()

void setCarrierNumber ( unsigned short  carrier)
inline

Sets carrier board number.

Parameters
carriernumber

Definition at line 76 of file TOPRawDigit.h.

76{m_carrier = carrier;}

◆ setDeltaSampleFall()

void setDeltaSampleFall ( unsigned short  dsample)
inline

Sets falling edge sample number just before 50% CFD crossing relative to m_sampleRise.

Parameters
dsamplesample difference

Definition at line 134 of file TOPRawDigit.h.

134{m_dSampleFall = dsample;}

◆ setDeltaSamplePeak()

void setDeltaSamplePeak ( unsigned short  dsample)
inline

Sets peak position relative to m_sampleRise.

Parameters
dsamplesample difference

Definition at line 127 of file TOPRawDigit.h.

127{m_dSamplePeak = dsample;}

◆ setErrorFlags()

void setErrorFlags ( unsigned short  flags)
inline

Sets error flags.

Parameters
flagserror flags

Definition at line 195 of file TOPRawDigit.h.

195{m_errorFlags = flags;}

◆ setIntegral()

void setIntegral ( int  integral)
inline

Sets integral of a pulse (e.g.

a value proportional to charge)

Parameters
integral

Definition at line 170 of file TOPRawDigit.h.

170{m_integral = integral;}

◆ setLastWriteAddr()

void setLastWriteAddr ( unsigned short  window)
inline

Sets current (reference) window number.

Parameters
windownumber

Definition at line 109 of file TOPRawDigit.h.

109{m_lastWriteAddr = window;}

◆ setLookBackWindows()

void setLookBackWindows ( unsigned short  lookBack)
inline

Sets number of look-back windows.

Parameters
lookBacknumber of look-back windows

Definition at line 189 of file TOPRawDigit.h.

189{m_lookBackWindows = lookBack;}

◆ setOfflineFlag()

void setOfflineFlag ( )
inline

Sets offline flag: telling that this digit was extracted offline in basf2.

Definition at line 200 of file TOPRawDigit.h.

200{m_offline = true;}

◆ setPhase()

void setPhase ( unsigned short  phase)
inline

Sets beam orbit synchronisation phase (production firmware only) 9-state count: valid values are 0 - 8.

Parameters
phasebeam orbit sunchronisation phase

Definition at line 183 of file TOPRawDigit.h.

183{m_phase = phase;}

◆ setRevo9Counter()

void setRevo9Counter ( unsigned short  revo9Counter)
inline

Sets number of global clock tics since last revo9 flag (production firmware only)

Parameters
revo9Countercounter state

Definition at line 176 of file TOPRawDigit.h.

176{m_revo9Counter = revo9Counter;}

◆ setSampleRise()

void setSampleRise ( unsigned short  sample)
inline

Sets sample number just before 50% CFD crossing at leading edge.

Parameters
samplenumber

Definition at line 121 of file TOPRawDigit.h.

121{m_sampleRise = sample;}

◆ setStorageWindows()

void setStorageWindows ( const std::vector< unsigned short > &  windows)
inline

Sets storage windows of waveform segments.

Parameters
windowswindow numbers

Definition at line 100 of file TOPRawDigit.h.

101 {
102 m_windows = windows;
103 }

◆ setTFine()

void setTFine ( unsigned short  tfine)
inline

Sets fine timing for 50% CFD at rising edge (within two samples)

Parameters
tfinefine timing

Definition at line 115 of file TOPRawDigit.h.

115{m_TFine = tfine;}

◆ setValueFall0()

void setValueFall0 ( short  adc)
inline

Sets ADC value at m_sampleRise + m_dSampleFall.

Parameters
adcvalue

Definition at line 158 of file TOPRawDigit.h.

158{m_VFall0 = adc;}

◆ setValueFall1()

void setValueFall1 ( short  adc)
inline

Sets ADC value at m_sampleRise + m_dSampleFall + 1.

Parameters
adcvalue

Definition at line 164 of file TOPRawDigit.h.

164{m_VFall1 = adc;}

◆ setValuePeak()

void setValuePeak ( short  adc)
inline

Sets ADC value at m_sampleRise + m_dSamplePeak (e.g.

pulse height)

Parameters
adcvalue

Definition at line 152 of file TOPRawDigit.h.

152{m_VPeak = adc;}

◆ setValueRise0()

void setValueRise0 ( short  adc)
inline

Sets ADC value at m_sampleRise.

Parameters
adcvalue

Definition at line 140 of file TOPRawDigit.h.

140{m_VRise0 = adc;}

◆ setValueRise1()

void setValueRise1 ( short  adc)
inline

Sets ADC value at m_sampleRise + 1.

Parameters
adcvalue

Definition at line 146 of file TOPRawDigit.h.

146{m_VRise1 = adc;}

◆ timeCFDCrossing()

double timeCFDCrossing ( int  sample,
int  value,
double  slope 
) const
inlineprivate

calculates time of 50% CFD crossing

Parameters
samplesample number
valueADC value at sample number
slopeslope of a line
Returns
time [samples]

Definition at line 488 of file TOPRawDigit.h.

489 {
490 if (slope == 0) return sample;
491 return (int(m_VPeak) - 2 * value) / (2 * slope) + sample;
492 }

Member Data Documentation

◆ m_asic

unsigned short m_asic = 0
private

ASIC number.

Definition at line 513 of file TOPRawDigit.h.

◆ m_cacheArrayIndex

int m_cacheArrayIndex
mutableprivateinherited

Cache of the index in the TClonesArray to which this object belongs.

Definition at line 432 of file RelationsObject.h.

◆ m_cacheDataStoreEntry

DataStore::StoreEntry* m_cacheDataStoreEntry
mutableprivateinherited

Cache of the data store entry to which this object belongs.

Definition at line 429 of file RelationsObject.h.

◆ m_carrier

unsigned short m_carrier = 0
private

carrier board number

Definition at line 512 of file TOPRawDigit.h.

◆ m_channel

unsigned short m_channel = 0
private

ASIC channel number.

Definition at line 514 of file TOPRawDigit.h.

◆ m_dataType

EDataTypes m_dataType = c_Undefined
private

data type

Definition at line 533 of file TOPRawDigit.h.

◆ m_dSampleFall

unsigned short m_dSampleFall = 0
private

same for falling edge, rel.

to m_sampleRise

Definition at line 519 of file TOPRawDigit.h.

◆ m_dSamplePeak

unsigned short m_dSamplePeak = 0
private

peak position relative to m_sampleRise

Definition at line 518 of file TOPRawDigit.h.

◆ m_errorFlags

unsigned short m_errorFlags = 0
private

feature extraction error flags (see enum)

Definition at line 529 of file TOPRawDigit.h.

◆ m_integral

int m_integral = 0
private

integral of a pulse (proportional to charge)

Definition at line 525 of file TOPRawDigit.h.

◆ m_lastWriteAddr

unsigned short m_lastWriteAddr = 0
private

current (reference) window number

Definition at line 530 of file TOPRawDigit.h.

◆ m_lookBackWindows

unsigned short m_lookBackWindows = 0
private

number of look-back windows

Definition at line 528 of file TOPRawDigit.h.

◆ m_offline

bool m_offline = false
private

feature extraction flag: by firmware or software

Definition at line 532 of file TOPRawDigit.h.

◆ m_phase

unsigned short m_phase = 0
private

carrier phase

Definition at line 527 of file TOPRawDigit.h.

◆ m_revo9Counter

unsigned short m_revo9Counter = 0
private

number of clock ticks since last revo9 flag

Definition at line 526 of file TOPRawDigit.h.

◆ m_sampleRise

unsigned short m_sampleRise = 0
private

sample number just before 50% CFD crossing

Definition at line 517 of file TOPRawDigit.h.

◆ m_scrodID

unsigned short m_scrodID = 0
private

SCROD ID.

Definition at line 511 of file TOPRawDigit.h.

◆ m_TFine

unsigned short m_TFine = 0
private

fine timing for 50% CFD (within two samples)

Definition at line 516 of file TOPRawDigit.h.

◆ m_VFall0

short m_VFall0 = 0
private

ADC value at m_sampleRise + m_dSampleFall.

Definition at line 523 of file TOPRawDigit.h.

◆ m_VFall1

short m_VFall1 = 0
private

ADC value at m_sampleRise + m_dSampleFall + 1.

Definition at line 524 of file TOPRawDigit.h.

◆ m_VPeak

short m_VPeak = 0
private

ADC value at m_sampleRise + m_dSamplePeak.

Definition at line 522 of file TOPRawDigit.h.

◆ m_VRise0

short m_VRise0 = 0
private

ADC value at m_sampleRise.

Definition at line 520 of file TOPRawDigit.h.

◆ m_VRise1

short m_VRise1 = 0
private

ADC value at m_sampleRise + 1.

Definition at line 521 of file TOPRawDigit.h.

◆ m_window

unsigned short m_window = 0
private

first ASIC storage window number

Definition at line 515 of file TOPRawDigit.h.

◆ m_windows

std::vector<unsigned short> m_windows
private

storage windows of waveform segments

Definition at line 531 of file TOPRawDigit.h.


The documentation for this class was generated from the following files: