CbmRoot
CbmStsDigi Class Reference

Data class for a single-channel message in the STS. More...

#include <CbmStsDigi.h>

Public Member Functions

 CbmStsDigi ()
 
 CbmStsDigi (Int_t address, Int_t channel, ULong64_t time, UShort_t charge)
 
 ~CbmStsDigi ()
 
Int_t GetAddress () const
 
UShort_t GetChannel () const
 Channel number in module @value Channel number. More...
 
Double_t GetCharge () const
 
Double_t GetTime () const
 
template<class Archive >
void serialize (Archive &ar, const unsigned int)
 
void SetTime (Double_t dNewTime)
 
std::string ToString () const
 

Static Public Member Functions

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

Private Member Functions

 ClassDefNV (CbmStsDigi, 7)
 

Private Attributes

Long64_t fTime = 0.
 Time [ns]. More...
 
Int_t fAddress = 0
 Unique element address. More...
 
UShort_t fChannel = 0
 Channel number. More...
 
UShort_t fCharge = 0
 Charge [ADC units]. More...
 

Friends

class boost::serialization::access
 

Detailed Description

Data class for a single-channel message in the STS.

The CbmStsDigi is the ROOT representation of the smallest information unit delivered by the CBM-STS by a single readout channel. It carries the channel address, the measurement time and the digitised charge as information.

Definition at line 29 of file CbmStsDigi.h.

Constructor & Destructor Documentation

◆ CbmStsDigi() [1/2]

CbmStsDigi::CbmStsDigi ( )
inline

Default constructor

Definition at line 33 of file CbmStsDigi.h.

◆ CbmStsDigi() [2/2]

CbmStsDigi::CbmStsDigi ( Int_t  address,
Int_t  channel,
ULong64_t  time,
UShort_t  charge 
)
inline

Standard constructor

Parameters
addressUnique element address
channelChannel number
timeMeasurement time [ns]
chargeCharge [ADC units]

Definition at line 42 of file CbmStsDigi.h.

◆ ~CbmStsDigi()

CbmStsDigi::~CbmStsDigi ( )
inline

Destructor

Definition at line 47 of file CbmStsDigi.h.

Member Function Documentation

◆ ClassDefNV()

CbmStsDigi::ClassDefNV ( CbmStsDigi  ,
 
)
private

◆ GetAddress()

◆ GetChannel()

◆ GetCharge()

◆ GetClassName()

static const char* CbmStsDigi::GetClassName ( )
inlinestatic

Class name (static)

Returns
CbmStsDigi

Definition at line 65 of file CbmStsDigi.h.

Referenced by TEST().

◆ GetSystem()

static ECbmModuleId CbmStsDigi::GetSystem ( )
inlinestatic

System ID (static)

Returns
System identifier (EcbmModuleId)

Definition at line 77 of file CbmStsDigi.h.

References kSts.

Referenced by compareStsDigiDataMembers().

◆ GetTime()

◆ serialize()

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

Definition at line 87 of file CbmStsDigi.h.

References fAddress, fChannel, fCharge, and fTime.

◆ SetTime()

void CbmStsDigi::SetTime ( Double_t  dNewTime)
inline

Update Time of measurement

Parameters
NewTime [ns]

Definition at line 98 of file CbmStsDigi.h.

References fTime.

Referenced by TEST().

◆ ToString()

string CbmStsDigi::ToString ( ) const

String output

Definition at line 15 of file CbmStsDigi.cxx.

References fAddress, fChannel, fCharge, and fTime.

Referenced by CbmStsDigiSource::PrintStsDigi(), and TEST().

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 106 of file CbmStsDigi.h.

Member Data Documentation

◆ fAddress

Int_t CbmStsDigi::fAddress = 0
private

Unique element address.

Definition at line 109 of file CbmStsDigi.h.

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

◆ fChannel

UShort_t CbmStsDigi::fChannel = 0
private

Channel number.

Definition at line 110 of file CbmStsDigi.h.

Referenced by GetChannel(), serialize(), and ToString().

◆ fCharge

UShort_t CbmStsDigi::fCharge = 0
private

Charge [ADC units].

Definition at line 111 of file CbmStsDigi.h.

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

◆ fTime

Long64_t CbmStsDigi::fTime = 0.
private

Time [ns].

Definition at line 108 of file CbmStsDigi.h.

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


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