CbmRoot
CbmTofDigi Class Reference

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

#include <CbmTofDigi.h>

Public Member Functions

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

Static Public Member Functions

static const char * GetClassName ()
 Class name (static) More...
 
static ECbmModuleId GetSystem ()
 

Private Member Functions

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

Private Attributes

Double_t fdTime
 Absolute time [ps]. More...
 
Double_t fdTot
 Tot [ps]. More...
 
UInt_t fuAddress
 Unique channel address. More...
 

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_t + 1 UInt_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 38 of file CbmTofDigi.h.

Constructor & Destructor Documentation

◆ CbmTofDigi() [1/5]

CbmTofDigi::CbmTofDigi ( )

Default constructor.

Definition at line 13 of file CbmTofDigi.cxx.

◆ CbmTofDigi() [2/5]

CbmTofDigi::CbmTofDigi ( UInt_t  address,
Double_t  time,
Double_t  tot 
)

Constructor with assignment.

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

Definition at line 20 of file CbmTofDigi.cxx.

◆ CbmTofDigi() [3/5]

CbmTofDigi::CbmTofDigi ( UInt_t  Sm,
UInt_t  Rpc,
UInt_t  Channel,
Double_t  time,
Double_t  tot,
UInt_t  Side = 0,
UInt_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 27 of file CbmTofDigi.cxx.

References fuAddress, and CbmTofAddress::GetUniqueAddress().

◆ CbmTofDigi() [4/5]

CbmTofDigi::CbmTofDigi ( const CbmTofDigi )
default

Copy constructor.

◆ CbmTofDigi() [5/5]

CbmTofDigi::CbmTofDigi ( CbmTofDigi &&  )
default

Move constructor

◆ ~CbmTofDigi()

CbmTofDigi::~CbmTofDigi ( )

Destructor.

Definition at line 42 of file CbmTofDigi.cxx.

Member Function Documentation

◆ ClassDefNV()

CbmTofDigi::ClassDefNV ( CbmTofDigi  ,
 
)
private

◆ GetAddress()

◆ GetChannel()

◆ GetCharge()

Double_t CbmTofDigi::GetCharge ( ) const
inline

◆ GetClassName()

static const char* CbmTofDigi::GetClassName ( )
inlinestatic

Class name (static)

Returns
string CbmTofDigi

Definition at line 104 of file CbmTofDigi.h.

Referenced by TEST().

◆ GetRpc()

◆ GetSide()

◆ GetSm()

◆ GetSystem()

static ECbmModuleId CbmTofDigi::GetSystem ( )
inlinestatic

Definition at line 106 of file CbmTofDigi.h.

References kTof.

Referenced by compareTofDigiDataMembers().

◆ GetTime()

◆ GetTot()

◆ 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 167 of file CbmTofDigi.h.

References fdTime, fdTot, and fuAddress.

◆ SetAddress() [1/2]

void CbmTofDigi::SetAddress ( Int_t  address)
inline

◆ SetAddress() [2/2]

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

Definition at line 55 of file CbmTofDigi.cxx.

References fuAddress, and CbmTofAddress::GetUniqueAddress().

◆ SetTime()

◆ SetTot()

◆ ToString()

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 164 of file CbmTofDigi.h.

Member Data Documentation

◆ fdTime

Double_t CbmTofDigi::fdTime
private

Absolute time [ps].

Definition at line 160 of file CbmTofDigi.h.

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

◆ fdTot

Double_t CbmTofDigi::fdTot
private

Tot [ps].

Definition at line 161 of file CbmTofDigi.h.

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

◆ fuAddress

UInt_t CbmTofDigi::fuAddress
private

Unique channel address.

Definition at line 162 of file CbmTofDigi.h.

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


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