CbmRoot
Loading...
Searching...
No Matches
CbmTofDigi Class Reference

Data class for expanded digital TOF information. More...

#include <CbmTofDigi.h>

Public Member Functions

 CbmTofDigi ()
 Default constructor.
 
 CbmTofDigi (uint32_t address, double time, double tot)
 Constructor with assignment.
 
 CbmTofDigi (uint32_t Sm, uint32_t Rpc, uint32_t Channel, double time, double tot, uint32_t Side=0, uint32_t SmType=0)
 Constructor with detailled assignment.
 
 CbmTofDigi (const CbmBmonDigi &digi)
 Constructor.
 
 CbmTofDigi (const CbmBmonDigi *digi)
 Constructor.
 
 CbmTofDigi (const CbmTofDigi &)=default
 Copy constructor.
 
 CbmTofDigi (CbmTofDigi &&)=default
 
CbmTofDigioperator= (const CbmTofDigi &)=default
 
CbmTofDigioperator= (CbmTofDigi &&)=default
 
 ~CbmTofDigi ()
 Destructor.
 
int32_t GetAddress () const
 Inherited from CbmDigi.
 
double GetTime () const
 Inherited from CbmDigi.
 
double GetCharge () const
 Inherited from CbmDigi.
 
double GetTot () const
 Alias for GetCharge.
 
double GetSm () const
 Sm.
 
double GetType () const
 Sm Type .
 
double GetRpc () const
 Detector aka Module aka RPC .
 
double GetChannel () const
 Channel .
 
double GetSide () const
 Channel Side.
 
void SetAddress (int32_t address)
 
void SetAddress (uint32_t Sm, uint32_t Rpc, uint32_t Channel, uint32_t Side=0, uint32_t SmType=0)
 
void SetTime (double time)
 
void SetTot (double tot)
 
std::string ToString () const
 

Static Public Member Functions

static const char * GetBranchName ()
 Get the desired name of the branch for this obj in the cbm output tree (static)
 
static const char * GetClassName ()
 Class name (static)
 
static ECbmModuleId GetSystem ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int)
 
 ClassDefNV (CbmTofDigi, 3)
 

Private Attributes

double fdTime
 Absolute time [ps].
 
double fdTot
 Tot [ps].
 
uint32_t fuAddress
 Unique channel address.
 

Friends

class boost::serialization::access
 

Detailed Description

Data class for expanded digital TOF information.

CbmTofDigi.h

Author
Pierre-Alain Loizeau loize.nosp@m.au@p.nosp@m.hysi..nosp@m.uni-.nosp@m.heide.nosp@m.lber.nosp@m.g.de
Date
07.06.2013

Data level: TDC CALIB

Version
1.0

The information is encoded into 3*4 bytes (2 double + 1 uint32_t). Unique Address: 32 bits following CbmTofAddress Calibrated Time [ps]: 32 bits double Calibrated Tot [ps]: 32 bits double

In triggered setup, the time is relative to the trigger time, which is measured with a resolution of a few ns corresponding to the TDC system clock cycle. In free-streaming setups, the time is relative to the last epoch.

Definition at line 47 of file CbmTofDigi.h.

Constructor & Destructor Documentation

◆ CbmTofDigi() [1/7]

CbmTofDigi::CbmTofDigi ( )

Default constructor.

Definition at line 19 of file CbmTofDigi.cxx.

◆ CbmTofDigi() [2/7]

CbmTofDigi::CbmTofDigi ( uint32_t address,
double time,
double tot )

Constructor with assignment.

Parameters
[in]addressUnique channel address. (cf CbmTofAddress)
[in]timeAbsolute time [ps].
[in]totTime Over Threshold [ps].

Definition at line 24 of file CbmTofDigi.cxx.

◆ CbmTofDigi() [3/7]

CbmTofDigi::CbmTofDigi ( uint32_t Sm,
uint32_t Rpc,
uint32_t Channel,
double time,
double tot,
uint32_t Side = 0,
uint32_t SmType = 0 )

Constructor with detailled assignment.

Parameters
[in]SmSuper Module Id. (cf CbmTofAddress)
[in]RpcRpc Id. (cf CbmTofAddress)
[in]ChannelChannel Id. (cf CbmTofAddress)
[in]timeAbsolute time [ps].
[in]totTime Over Threshold [ps].
[in]SideChannel Side (optional, used for strips). (cf CbmTofAddress)
[in]SmType Super Module Type (optional). (cf CbmTofAddress)

Definition at line 29 of file CbmTofDigi.cxx.

References fuAddress, and CbmTofAddress::GetUniqueAddress().

◆ CbmTofDigi() [4/7]

CbmTofDigi::CbmTofDigi ( const CbmBmonDigi & digi)

Constructor.

Parameters
referenceto CbmBmonDigi (equivalent content)

Definition at line 39 of file CbmTofDigi.cxx.

◆ CbmTofDigi() [5/7]

CbmTofDigi::CbmTofDigi ( const CbmBmonDigi * digi)

Constructor.

Parameters
pointerto const CbmBmonDigi object (equivalent content)

Definition at line 46 of file CbmTofDigi.cxx.

◆ CbmTofDigi() [6/7]

CbmTofDigi::CbmTofDigi ( const CbmTofDigi & )
default

Copy constructor.

◆ CbmTofDigi() [7/7]

CbmTofDigi::CbmTofDigi ( CbmTofDigi && )
default

Move constructor

◆ ~CbmTofDigi()

CbmTofDigi::~CbmTofDigi ( )

Destructor.

Definition at line 53 of file CbmTofDigi.cxx.

Member Function Documentation

◆ ClassDefNV()

CbmTofDigi::ClassDefNV ( CbmTofDigi ,
3  )
private

◆ GetAddress()

◆ GetBranchName()

static const char * CbmTofDigi::GetBranchName ( )
inlinestatic

Get the desired name of the branch for this obj in the cbm output tree (static)

Returns
"TofDigi"

Definition at line 118 of file CbmTofDigi.h.

Referenced by CbmDeviceDigiEventSink::InitTask().

◆ GetChannel()

◆ GetCharge()

double CbmTofDigi::GetCharge ( ) const
inline

◆ GetClassName()

static const char * CbmTofDigi::GetClassName ( )
inlinestatic

Class name (static)

Returns
string CbmTofDigi

Definition at line 124 of file CbmTofDigi.h.

Referenced by TEST().

◆ GetRpc()

◆ GetSide()

double CbmTofDigi::GetSide ( ) const
inline

Channel Side.

Definition at line 160 of file CbmTofDigi.h.

References GetAddress(), and CbmTofAddress::GetChannelSide().

Referenced by cbm::algo::tof::Clusterizer::AddNextChan(), CbmDeviceHitBuilderTof::AddNextChan(), CbmTofCosmicClusterizer::AddNextChan(), CbmTofEventClusterizer::AddNextChan(), CbmTofHitMaker::AddNextChan(), CbmTofTestBeamClusterizer::AddNextChan(), CbmTaskTofClusterizer::BuildClusters(), CbmTofCosmicClusterizer::BuildClusters(), CbmTofEventClusterizer::BuildClusters(), CbmTofHitMaker::BuildClusters(), CbmTofSimpClusterizer::BuildClusters(), CbmTofTestBeamClusterizer::BuildClusters(), cbm::algo::tof::Clusterizer::buildClusters(), cbm::algo::tof::HitFinder::buildClusters(), CbmDeviceHitBuilderTof::BuildHits(), CbmTofEventClusterizer::BuildHits(), CbmTofHitMaker::BuildHits(), CbmDeviceUnpackTofCri::BuildTint(), CbmDeviceUnpackTofMcbm2018::BuildTint(), cbm::algo::tof::HitFinder::calibrateDigis(), CbmDeviceHitBuilderTof::CalibRawDigis(), CbmTofEventClusterizer::CalibRawDigis(), CbmTofHitMaker::CalibRawDigis(), CbmAlgoBuildRawEvents::CheckTriggerConditions(), CbmDeviceUnpackTofCri::DoUnpack(), CbmTaskTofClusterizer::Exec(), CbmTofBuildDigiEvents::Exec(), CbmTofEventClusterizer::Exec(), CbmTofCalibrator::FillCalHist(), CbmTofCalibrator::FillCalHist(), CbmDeviceHitBuilderTof::FillHistos(), CbmTofCosmicClusterizer::FillHistos(), CbmTofEventClusterizer::FillHistos(), CbmTofTestBeamClusterizer::FillHistos(), CbmTofTests::FillHistos(), CbmTofCalibrator::FillHitCalHist(), CbmDeviceHitBuilderTof::HandleData(), and CbmDeviceHitBuilderTof::InspectRawDigis().

◆ GetSm()

◆ GetSystem()

static ECbmModuleId CbmTofDigi::GetSystem ( )
inlinestatic

Definition at line 126 of file CbmTofDigi.h.

References kTof.

Referenced by compareTofDigiDataMembers().

◆ GetTime()

double CbmTofDigi::GetTime ( ) const
inline

Inherited from CbmDigi.

Definition at line 131 of file CbmTofDigi.h.

References fdTime.

Referenced by CbmMcbm2018EventBuilder::AddDigiToSorter(), cbm::algo::tof::Clusterizer::AddNextChan(), CbmDeviceHitBuilderTof::AddNextChan(), CbmTofCosmicClusterizer::AddNextChan(), CbmTofEventClusterizer::AddNextChan(), CbmTofHitMaker::AddNextChan(), CbmTofTestBeamClusterizer::AddNextChan(), CbmTofCosmicClusterizer::BuildClusters(), CbmTofEventClusterizer::BuildClusters(), CbmTofHitMaker::BuildClusters(), CbmTofSimpClusterizer::BuildClusters(), CbmTofTestBeamClusterizer::BuildClusters(), cbm::algo::tof::Clusterizer::buildClusters(), cbm::algo::tof::HitFinder::buildClusters(), CbmDeviceHitBuilderTof::BuildHits(), CbmTofEventClusterizer::BuildHits(), CbmTofHitMaker::BuildHits(), CbmDeviceUnpackTofCri::BuildTint(), CbmDeviceUnpackTofMcbm2018::BuildTint(), cbm::algo::tof::HitFinder::calibrateDigis(), CbmDeviceHitBuilderTof::CalibRawDigis(), CbmTofEventClusterizer::CalibRawDigis(), CbmTofHitMaker::CalibRawDigis(), CbmCheckTiming::CheckIfSortedBmon(), CbmCheckTiming::CheckInterSystemOffset(), CbmMcbm2019CheckPulser::CheckInterSystemOffset(), CbmTofDigitize::CompareTimes(), compareTofDigiDataMembers(), CbmDeviceUnpackTofCri::DoUnpack(), CbmDeviceUnpackTofMcbm2018::DoUnpack(), CbmCheckDigisNbCorr::Exec(), CbmMcbm2019CheckDtInDet::Exec(), CbmMcbm2019CheckTimingPairs::Exec(), CbmPsdMCbmQaReal::Exec(), CbmRichMCbmQaReal::Exec(), CbmTofBuildDigiEvents::Exec(), CbmTofCalibrator::FillCalHist(), CbmTofCalibrator::FillCalHist(), CbmDeviceHitBuilderTof::FillHistos(), CbmTofCosmicClusterizer::FillHistos(), CbmTofEventClusterizer::FillHistos(), CbmTofTestBeamClusterizer::FillHistos(), CbmTofCalibrator::FillHitCalHist(), CbmMcbmCheckTimingAlgo::GetDigiInfo(), CbmCheckEvents::GetTimeDiffBmon(), CbmDeviceHitBuilderTof::InspectRawDigis(), CbmTofDigitize::MergeSameChanDigis(), and cbm::algo::tof::Calibrate::operator()().

◆ GetTot()

double CbmTofDigi::GetTot ( ) const
inline

Alias for GetCharge.

Definition at line 140 of file CbmTofDigi.h.

References GetCharge().

Referenced by cbm::algo::tof::Clusterizer::AddNextChan(), CbmDeviceHitBuilderTof::AddNextChan(), CbmTofCosmicClusterizer::AddNextChan(), CbmTofEventClusterizer::AddNextChan(), CbmTofHitMaker::AddNextChan(), CbmTofTestBeamClusterizer::AddNextChan(), CbmTofCosmicClusterizer::BuildClusters(), CbmTofEventClusterizer::BuildClusters(), CbmTofHitMaker::BuildClusters(), CbmTofSimpClusterizer::BuildClusters(), CbmTofTestBeamClusterizer::BuildClusters(), cbm::algo::tof::Clusterizer::buildClusters(), cbm::algo::tof::HitFinder::buildClusters(), CbmDeviceHitBuilderTof::BuildHits(), CbmTofEventClusterizer::BuildHits(), CbmTofHitMaker::BuildHits(), CbmDeviceUnpackTofCri::BuildTint(), CbmDeviceUnpackTofMcbm2018::BuildTint(), cbm::algo::tof::HitFinder::calibrateDigis(), CbmDeviceHitBuilderTof::CalibRawDigis(), CbmTofEventClusterizer::CalibRawDigis(), CbmTofHitMaker::CalibRawDigis(), compareTofDigiDataMembers(), CbmDeviceUnpackTofCri::DoUnpack(), CbmTofBuildDigiEvents::Exec(), CbmTofCalibrator::FillCalHist(), CbmTofCalibrator::FillCalHist(), CbmDeviceHitBuilderTof::FillHistos(), CbmTofAnaTestbeam::FillHistos(), CbmTofCosmicClusterizer::FillHistos(), CbmTofEventClusterizer::FillHistos(), CbmTofTestBeamClusterizer::FillHistos(), CbmTofCalibrator::FillHitCalHist(), CbmDeviceHitBuilderTof::InspectRawDigis(), CbmMatchRecoToMC::MatchHitsTof(), CbmTofCosmicClusterizer::MergeClusters(), CbmTofEventClusterizer::MergeClusters(), CbmTofHitMaker::MergeClusters(), CbmTofTestBeamClusterizer::MergeClusters(), cbm::algo::tof::Calibrate::operator()(), and CbmTofBuildDigiEvents::ProcessIdealEvents().

◆ GetType()

◆ operator=() [1/2]

CbmTofDigi & CbmTofDigi::operator= ( CbmTofDigi && )
default

Move Assignment operator

◆ operator=() [2/2]

CbmTofDigi & CbmTofDigi::operator= ( const CbmTofDigi & )
default

Assignment operator

◆ serialize()

template<class Archive >
void CbmTofDigi::serialize ( Archive & ar,
const unsigned int  )
inlineprivate

Definition at line 179 of file CbmTofDigi.h.

References fdTime, fdTot, and fuAddress.

◆ SetAddress() [1/2]

◆ SetAddress() [2/2]

void CbmTofDigi::SetAddress ( uint32_t Sm,
uint32_t Rpc,
uint32_t Channel,
uint32_t Side = 0,
uint32_t SmType = 0 )

Definition at line 69 of file CbmTofDigi.cxx.

References fuAddress, and CbmTofAddress::GetUniqueAddress().

◆ SetTime()

◆ SetTot()

◆ ToString()

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 176 of file CbmTofDigi.h.

Member Data Documentation

◆ fdTime

double CbmTofDigi::fdTime
private

Absolute time [ps].

Definition at line 172 of file CbmTofDigi.h.

Referenced by GetTime(), serialize(), SetTime(), and ToString().

◆ fdTot

double CbmTofDigi::fdTot
private

Tot [ps].

Definition at line 173 of file CbmTofDigi.h.

Referenced by GetCharge(), serialize(), SetTot(), and ToString().

◆ fuAddress

uint32_t CbmTofDigi::fuAddress
private

Unique channel address.

Definition at line 174 of file CbmTofDigi.h.

Referenced by CbmTofDigi(), GetAddress(), serialize(), SetAddress(), SetAddress(), and ToString().


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