Belle II Software  release-08-01-10
TOPDigit Class Reference

Class to store TOP digitized hits (output of TOPDigitizer or raw data unpacker) relations to TOPSimHits, MCParticles. More...

#include <TOPDigit.h>

Inheritance diagram for TOPDigit:
Collaboration diagram for TOPDigit:

Public Types

enum  EHitQuality {
  c_Junk = 0 ,
  c_Good = 1 ,
  c_CrossTalk = 3 ,
  c_CalPulse = 4 ,
  c_Uncalibrated = 5 ,
  c_Masked = 6
}
 hit quality enumerators More...
 
enum  EStatusBits {
  c_TimeBaseCalibrated = 1 ,
  c_ChannelT0Calibrated = 2 ,
  c_ModuleT0Calibrated = 4 ,
  c_CommonT0Calibrated = 8 ,
  c_FullyCalibrated = c_TimeBaseCalibrated | c_ChannelT0Calibrated | c_ModuleT0Calibrated | c_CommonT0Calibrated ,
  c_OffsetSubtracted = 16 ,
  c_EventT0Subtracted = 32 ,
  c_BunchOffsetSubtracted = 64
}
 calibration status enumerators
 
enum  EChargeShare {
  c_PrimaryChargeShare = 1 ,
  c_SecondaryChargeShare = 2
}
 charge sharing enumerators More...
 
enum  EAppendStatus {
  c_DontAppend = 0 ,
  c_Append = 1
}
 Enum for return state of addBGDigit function. More...
 

Public Member Functions

 TOPDigit ()
 Default constructor.
 
 TOPDigit (int moduleID, int pixelID, double rawTime)
 Usefull constructor. More...
 
void setModuleID (int moduleID)
 Sets module ID. More...
 
void setPixelID (int pixelID)
 Sets pixel ID. More...
 
void setChannel (unsigned int channel)
 Sets hardware channel number (0-based) More...
 
void setRawTime (double rawTime)
 Sets raw detection time. More...
 
void setTime (double time)
 Sets calibrated detection time. More...
 
void setTimeError (double timeError)
 Sets calibrated time uncertainty. More...
 
void setPulseHeight (int pulseHeight)
 Sets pulse height. More...
 
void setPulseWidth (double width)
 Sets pulse width. More...
 
void setIntegral (int integral)
 Sets pulse integral. More...
 
void setFirstWindow (unsigned window)
 Sets first ASIC window number of the merged waveform this hit is taken from. More...
 
void setHitQuality (EHitQuality quality)
 Sets hit quality flag. More...
 
void setStatus (unsigned short status)
 Sets calibration status (overwrites previously set bits)
 
void addStatus (unsigned short bitmask)
 Add calibration status.
 
void removeStatus (unsigned short bitmask)
 Remove calibration status.
 
void setPrimaryChargeShare ()
 Sets primary charge share flag.
 
void setSecondaryChargeShare ()
 Sets secondary charge share flag.
 
void resetChargeShare ()
 Remove charge share flag.
 
void subtractT0 (double t0)
 Subtract start time from m_time. More...
 
EHitQuality getHitQuality () const
 Returns hit quality. More...
 
unsigned short getStatus () const
 Returns calibration status bits. More...
 
bool hasStatus (unsigned short bitmask) const
 Returns calibration status. More...
 
bool isCalibrated () const
 Returns calibration status. More...
 
bool isTimeBaseCalibrated () const
 Returns calibration status. More...
 
bool isChannelT0Calibrated () const
 Returns calibration status. More...
 
bool isModuleT0Calibrated () const
 Returns calibration status. More...
 
bool isCommonT0Calibrated () const
 Returns calibration status. More...
 
bool isChargeShare () const
 Returns charge share status. More...
 
bool isPrimaryChargeShare () const
 Returns charge share status. More...
 
bool isSecondaryChargeShare () const
 Returns charge share status. More...
 
int getModuleID () const
 Returns module ID. More...
 
int getPixelID () const
 Returns pixel ID (1-based) More...
 
int getPixelRow () const
 Returns pixel row number (1-based) More...
 
int getPixelCol () const
 Returns pixel column number (1-based) More...
 
int getPMTRow () const
 Returns PMT row number (1-based) More...
 
int getPMTCol () const
 Returns PMT column number (1-based) More...
 
int getPMTNumber () const
 Returns PMT number (1-based) More...
 
int getPMTPixelRow () const
 Returns PMT pixel row number (1-based) More...
 
int getPMTPixelCol () const
 Returns PMT pixel column number (1-based) More...
 
int getPMTPixel () const
 Returns PMT pixel number (1-based) More...
 
unsigned int getChannel () const
 Returns hardware channel number. More...
 
unsigned int getASICChannel () const
 Returns ASIC channel number. More...
 
unsigned int getASICNumber () const
 Returns ASIC number. More...
 
unsigned int getCarrierNumber () const
 Returns carrier board number. More...
 
unsigned int getBoardstackNumber () const
 Returns boardstack number. More...
 
double getRawTime () const
 Returns raw detection time. More...
 
int getModulo256Sample () const
 Returns sample number modulo 256. More...
 
double getTime () const
 Returns t0-subtracted and calibrated time. More...
 
double getTimeError () const
 Returns calibrated time uncertainty. More...
 
int getPulseHeight () const
 Returns pulse height. More...
 
double getPulseWidth () const
 Returns pulse width. More...
 
int getIntegral () const
 Returns pulse integral. More...
 
unsigned getFirstWindow () const
 Returns first ASIC window number of the merged waveform this hit is taken from. More...
 
unsigned int getUniqueChannelID () const override
 Implementation of the base class function. More...
 
DigitBase::EAppendStatus addBGDigit (const DigitBase *bg) override
 Implementation of the base class function. More...
 
virtual void adjustAppendedBGDigit ()
 Virtual method for possible modification of BG digit which is just appended to simulation store array.
 
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). More...
 
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). More...
 
void copyRelations (const RelationsInterface< BASE > *sourceObj)
 Copies all relations of sourceObj (pointing from or to sourceObj) to this object (including weights). More...
 
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. More...
 
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. More...
 
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. More...
 
template<class TO >
TO * getRelatedTo (const std::string &name="", const std::string &namedRelation="") const
 Get the object to which this object has a relation. More...
 
template<class FROM >
FROM * getRelatedFrom (const std::string &name="", const std::string &namedRelation="") const
 Get the object from which this object has a relation. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
virtual std::string getName () const
 Return a short name that describes this object, e.g. More...
 
virtual std::string getInfoHTML () const
 Return a short summary of this object's contents in HTML format. More...
 
std::string getInfo () const
 Return a short summary of this object's contents in raw text format. More...
 
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.
 

Static Public Member Functions

static void setDoubleHitResolution (double time)
 Sets double hit resolution. More...
 
static void setPileupTime (double time)
 Sets pile-up time. More...
 

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

 ClassDefOverride (TOPDigit, 15)
 ClassDef.
 
 ClassDef (DigitBase, 2)
 ClassDef.
 

Private Attributes

int m_moduleID = 0
 module ID (1-based)
 
int m_pixelID = 0
 software channel ID (1-based)
 
unsigned m_channel = 0
 hardware channel number (0-based)
 
float m_rawTime = 0
 raw time expressed in samples (TDC bins)
 
float m_time = 0
 calibrated time in [ns], t0-subtracted
 
float m_timeError = 0
 time uncertainty (r.m.s) in [ns]
 
int m_pulseHeight = 0
 pulse height [ADC counts]
 
float m_pulseWidth = 0
 pulse width (FWHM) in [ns]
 
int m_integral = 0
 pulse integral [ADC counts]
 
unsigned short m_firstWindow = 0
 first ASIC window of the merged waveform
 
EHitQuality m_quality = c_Junk
 hit quality
 
unsigned short m_status = 0
 calibration status bits
 
unsigned short m_chargeShare = 0
 charge sharing flags
 
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.
 

Static Private Attributes

static float s_doubleHitResolution = 0
 double hit resolving time in [ns]
 
static float s_pileupTime = 0
 pile-up time in [ns]
 

Detailed Description

Class to store TOP digitized hits (output of TOPDigitizer or raw data unpacker) relations to TOPSimHits, MCParticles.

Definition at line 24 of file TOPDigit.h.

Member Enumeration Documentation

◆ EAppendStatus

enum EAppendStatus
inherited

Enum for return state of addBGDigit function.

Enumerator
c_DontAppend 

do not append BG digit to digits

c_Append 

append BG digit to digits

Definition at line 32 of file DigitBase.h.

◆ EChargeShare

charge sharing enumerators

Enumerator
c_PrimaryChargeShare 

the largest one among hits sharing the same charge

c_SecondaryChargeShare 

others sharing the same charge

Definition at line 59 of file TOPDigit.h.

59  {
62  };
@ c_PrimaryChargeShare
the largest one among hits sharing the same charge
Definition: TOPDigit.h:60
@ c_SecondaryChargeShare
others sharing the same charge
Definition: TOPDigit.h:61

◆ EHitQuality

hit quality enumerators

Note: the only allowed place for switching c_Good to c_Masked or c_Uncalibrated is TOPChannelMasker because this information must also be passed to reconstruction

Definition at line 33 of file TOPDigit.h.

Constructor & Destructor Documentation

◆ TOPDigit()

TOPDigit ( int  moduleID,
int  pixelID,
double  rawTime 
)
inline

Usefull constructor.

Parameters
moduleIDmodule ID (1-based)
pixelIDpixel ID (1-based)
rawTimeraw time expressed in samples (TDC bins)

Definition at line 76 of file TOPDigit.h.

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.

◆ 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.

◆ 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.

◆ getASICChannel()

unsigned int getASICChannel ( ) const
inline

Returns ASIC channel number.

Returns
ASIC channel number

Definition at line 336 of file TOPDigit.h.

◆ getASICNumber()

unsigned int getASICNumber ( ) const
inline

Returns ASIC number.

Returns
ASIC number

Definition at line 342 of file TOPDigit.h.

◆ getBoardstackNumber()

unsigned int getBoardstackNumber ( ) const
inline

Returns boardstack number.

Returns
boardstack number

Definition at line 354 of file TOPDigit.h.

◆ getCarrierNumber()

unsigned int getCarrierNumber ( ) const
inline

Returns carrier board number.

Returns
carrier board number

Definition at line 348 of file TOPDigit.h.

◆ getChannel()

unsigned int getChannel ( ) const
inline

Returns hardware channel number.

Returns
hardware channel number

Definition at line 330 of file TOPDigit.h.

◆ getFirstWindow()

unsigned getFirstWindow ( ) const
inline

Returns first ASIC window number of the merged waveform this hit is taken from.

Returns
window number

Definition at line 402 of file TOPDigit.h.

◆ getHitQuality()

EHitQuality getHitQuality ( ) const
inline

Returns hit quality.

Returns
hit quality

Definition at line 201 of file TOPDigit.h.

◆ 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.

◆ 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 RecoTrack, TRGSummary, TrackFitResult, Track, SoftwareTriggerResult, PIDLikelihood, MCParticle, Cluster, and Particle.

Definition at line 362 of file RelationsObject.h.

◆ getIntegral()

int getIntegral ( ) const
inline

Returns pulse integral.

Returns
pulse integral [ADC counts]

Definition at line 396 of file TOPDigit.h.

◆ getModuleID()

int getModuleID ( ) const
inline

Returns module ID.

Returns
module ID

Definition at line 270 of file TOPDigit.h.

◆ getName()

virtual std::string getName ( ) const
inlinevirtualinherited

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

pi+ for an MCParticle.

Reimplemented in SpacePoint, MCParticle, and Particle.

Definition at line 344 of file RelationsObject.h.

◆ getPixelCol()

int getPixelCol ( ) const
inline

Returns pixel column number (1-based)

Returns
pixel column number

Definition at line 288 of file TOPDigit.h.

◆ getPixelID()

int getPixelID ( ) const
inline

Returns pixel ID (1-based)

Returns
software channel ID

Definition at line 276 of file TOPDigit.h.

◆ getPixelRow()

int getPixelRow ( ) const
inline

Returns pixel row number (1-based)

Returns
pixel row number

Definition at line 282 of file TOPDigit.h.

◆ getPMTCol()

int getPMTCol ( ) const
inline

Returns PMT column number (1-based)

Returns
PMT column number

Definition at line 300 of file TOPDigit.h.

◆ getPMTNumber()

int getPMTNumber ( ) const
inline

Returns PMT number (1-based)

Returns
PMT number

Definition at line 306 of file TOPDigit.h.

◆ getPMTPixel()

int getPMTPixel ( ) const
inline

Returns PMT pixel number (1-based)

Returns
PMT pixel

Definition at line 324 of file TOPDigit.h.

◆ getPMTPixelCol()

int getPMTPixelCol ( ) const
inline

Returns PMT pixel column number (1-based)

Returns
PMT pixel column number

Definition at line 318 of file TOPDigit.h.

◆ getPMTPixelRow()

int getPMTPixelRow ( ) const
inline

Returns PMT pixel row number (1-based)

Returns
PMT pixel row number

Definition at line 312 of file TOPDigit.h.

◆ getPMTRow()

int getPMTRow ( ) const
inline

Returns PMT row number (1-based)

Returns
PMT row number

Definition at line 294 of file TOPDigit.h.

◆ getPulseHeight()

int getPulseHeight ( ) const
inline

Returns pulse height.

Returns
pulse height [ADC counts]

Definition at line 384 of file TOPDigit.h.

◆ getPulseWidth()

double getPulseWidth ( ) const
inline

Returns pulse width.

Returns
pulse width (FWHM) in [ns]

Definition at line 390 of file TOPDigit.h.

◆ getRawTime()

double getRawTime ( ) const
inline

Returns raw detection time.

Returns
time expressed in samples (TDC bins)

Definition at line 360 of file TOPDigit.h.

◆ 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.

◆ 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.

◆ 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.

◆ 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.

◆ 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.

◆ 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.

◆ 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.

◆ 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.

◆ 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.

◆ getStatus()

unsigned short getStatus ( void  ) const
inline

Returns calibration status bits.

Returns
status bits

Definition at line 207 of file TOPDigit.h.

◆ getTime()

double getTime ( ) const
inline

Returns t0-subtracted and calibrated time.

Returns
time in [ns]

Definition at line 372 of file TOPDigit.h.

◆ getTimeError()

double getTimeError ( ) const
inline

Returns calibrated time uncertainty.

Returns
uncertainty (r.m.s.) in [ns]

Definition at line 378 of file TOPDigit.h.

◆ getUniqueChannelID()

unsigned int getUniqueChannelID ( ) const
inlineoverridevirtual

Implementation of the base class function.

Enables BG overlay module to identify uniquely the physical channel of this Digit.

Returns
unique channel ID, composed of pixel ID (1-512) and module ID (1-16)

Implements DigitBase.

Definition at line 409 of file TOPDigit.h.

◆ hasStatus()

bool hasStatus ( unsigned short  bitmask) const
inline

Returns calibration status.

Returns
calibration status

Definition at line 213 of file TOPDigit.h.

◆ isCalibrated()

bool isCalibrated ( ) const
inline

Returns calibration status.

Returns
true, if fully calibrated

Definition at line 222 of file TOPDigit.h.

◆ isChannelT0Calibrated()

bool isChannelT0Calibrated ( ) const
inline

Returns calibration status.

Returns
true, if channel T0 calibrated

Definition at line 234 of file TOPDigit.h.

◆ isChargeShare()

bool isChargeShare ( ) const
inline

Returns charge share status.

Returns
true, if digit is sharing charge with some other digits

Definition at line 252 of file TOPDigit.h.

◆ isCommonT0Calibrated()

bool isCommonT0Calibrated ( ) const
inline

Returns calibration status.

Returns
true, if common T0 calibrated

Definition at line 246 of file TOPDigit.h.

◆ isModuleT0Calibrated()

bool isModuleT0Calibrated ( ) const
inline

Returns calibration status.

Returns
true, if module T0 calibrated

Definition at line 240 of file TOPDigit.h.

◆ isPrimaryChargeShare()

bool isPrimaryChargeShare ( ) const
inline

Returns charge share status.

Returns
true, if digit is the primary one among those sharing the same charge

Definition at line 258 of file TOPDigit.h.

◆ isSecondaryChargeShare()

bool isSecondaryChargeShare ( ) const
inline

Returns charge share status.

Returns
true, if digit is not the primary one among those sharing the same charge

Definition at line 264 of file TOPDigit.h.

◆ isTimeBaseCalibrated()

bool isTimeBaseCalibrated ( ) const
inline

Returns calibration status.

Returns
true, if time base calibrated

Definition at line 228 of file TOPDigit.h.

◆ setChannel()

void setChannel ( unsigned int  channel)
inline

Sets hardware channel number (0-based)

Parameters
channelhardware channel number

Definition at line 111 of file TOPDigit.h.

◆ setDoubleHitResolution()

static void setDoubleHitResolution ( double  time)
inlinestatic

Sets double hit resolution.

Parameters
timedouble hit resolving time in [ns]

Definition at line 87 of file TOPDigit.h.

◆ setFirstWindow()

void setFirstWindow ( unsigned  window)
inline

Sets first ASIC window number of the merged waveform this hit is taken from.

Parameters
windowASIC window number

Definition at line 153 of file TOPDigit.h.

◆ setHitQuality()

void setHitQuality ( EHitQuality  quality)
inline

Sets hit quality flag.

Parameters
qualityhit quality

Definition at line 159 of file TOPDigit.h.

◆ setIntegral()

void setIntegral ( int  integral)
inline

Sets pulse integral.

Parameters
integralpulse integral [ADC counts]

Definition at line 147 of file TOPDigit.h.

◆ setModuleID()

void setModuleID ( int  moduleID)
inline

Sets module ID.

Parameters
moduleIDmodule ID (1-based)

Definition at line 99 of file TOPDigit.h.

◆ setPileupTime()

static void setPileupTime ( double  time)
inlinestatic

Sets pile-up time.

Parameters
timepile-up time in [ns]

Definition at line 93 of file TOPDigit.h.

◆ setPixelID()

void setPixelID ( int  pixelID)
inline

Sets pixel ID.

Parameters
pixelIDpixel ID (1-based)

Definition at line 105 of file TOPDigit.h.

◆ setPulseHeight()

void setPulseHeight ( int  pulseHeight)
inline

Sets pulse height.

Parameters
pulseHeightpulse height [ADC counts]

Definition at line 135 of file TOPDigit.h.

◆ setPulseWidth()

void setPulseWidth ( double  width)
inline

Sets pulse width.

Parameters
widthpulse width (FWHM) in [ns]

Definition at line 141 of file TOPDigit.h.

◆ setRawTime()

void setRawTime ( double  rawTime)
inline

Sets raw detection time.

Parameters
rawTimeraw time expressed in samples (TDC bins)

Definition at line 117 of file TOPDigit.h.

◆ setTime()

void setTime ( double  time)
inline

Sets calibrated detection time.

Parameters
timetime in [ns]

Definition at line 123 of file TOPDigit.h.

◆ setTimeError()

void setTimeError ( double  timeError)
inline

Sets calibrated time uncertainty.

Parameters
timeErroruncertainty (r.m.s.) in [ns]

Definition at line 129 of file TOPDigit.h.

◆ subtractT0()

void subtractT0 ( double  t0)
inline

Subtract start time from m_time.

Parameters
t0start time in [ns]

Definition at line 195 of file TOPDigit.h.


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