CbmRoot
CbmPsdDigi Class Reference

Data class for PSD digital information. More...

#include <CbmPsdDigi.h>

Public Member Functions

 CbmPsdDigi ()
 Default constructor. More...
 
 CbmPsdDigi (UInt_t address, Double_t edep, Double_t time)
 Constructor with assignment. More...
 
 CbmPsdDigi (UInt_t moduleId, UInt_t sectionId, Double_t edep, Double_t time)
 Constructor with detailed assignment. More...
 
 CbmPsdDigi (const CbmPsdDigi &)
 
 CbmPsdDigi (CbmPsdDigi &&)
 
CbmPsdDigioperator= (const CbmPsdDigi &)
 
CbmPsdDigioperator= (CbmPsdDigi &&)
 
 ~CbmPsdDigi ()
 
Int_t GetAddress () const
 Address. More...
 
Double_t GetCharge () const
 Charge. More...
 
Double_t GetEdep () const
 Energy deposit. More...
 
Double_t GetModuleID () const
 Module Identifier. More...
 
Double_t GetSectionID () const
 Section Identifier. More...
 
Double_t GetTime () const
 Time. More...
 
void SetAddress (Int_t address)
 
void SetAddress (UInt_t moduleId, UInt_t sectionId)
 
void SetEdep (Double_t edep)
 
void SetTime (Double_t time)
 
std::string ToString () const
 String output. More...
 
UInt_t GetAmpl () const
 
UInt_t GetZL () const
 
Double_t GetEdepWfm () const
 
void SetAmpl (UInt_t ampl)
 
void SetZL (UInt_t zl)
 
void SetEdepWfm (Double_t edep)
 

Static Public Member Functions

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

Public Attributes

Float_t ffFitHarmonic1 = 0.
 
Float_t ffFitHarmonic2 = 0.
 
Float_t ffFitR2 = 999.
 
Float_t ffFitEdep = 0.
 

Private Member Functions

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

Private Attributes

Double_t fdEdep = 0.
 
Double_t fdTime = -1.
 Energy deposition. More...
 
UInt_t fuAddress = 0
 Time of measurement. More...
 
UInt_t fuAmpl = 0
 Unique channel address. More...
 
UInt_t fuZL = 0
 
Double_t fdEdepWfm = 0.
 

Friends

class boost::serialization::access
 BOOST serialization interface. More...
 

Detailed Description

Data class for PSD digital information.

Version
1.0

The information is encoded into 3*4 bytes (2 Double_t + 1 UInt_t). Unique Address: 32 bits following CbmPsdAddress Energy deposition: 32 bits double Time: 32 bits double

Definition at line 31 of file CbmPsdDigi.h.

Constructor & Destructor Documentation

◆ CbmPsdDigi() [1/5]

CbmPsdDigi::CbmPsdDigi ( )

Default constructor.

Definition at line 17 of file CbmPsdDigi.cxx.

◆ CbmPsdDigi() [2/5]

CbmPsdDigi::CbmPsdDigi ( UInt_t  address,
Double_t  edep,
Double_t  time 
)

Constructor with assignment.

Parameters
addressUnique channel address
edepEnergy deposition
timeTime [ns]

Definition at line 21 of file CbmPsdDigi.cxx.

◆ CbmPsdDigi() [3/5]

CbmPsdDigi::CbmPsdDigi ( UInt_t  moduleId,
UInt_t  sectionId,
Double_t  edep,
Double_t  time 
)

Constructor with detailed assignment.

Parameters
moduleIDModule Identifier
sectionIDSection Identifier
edepEnergy deposition
timeTime [ns]

Definition at line 26 of file CbmPsdDigi.cxx.

References fuAddress, and CbmPsdAddress::GetAddress().

◆ CbmPsdDigi() [4/5]

CbmPsdDigi::CbmPsdDigi ( const CbmPsdDigi digiIn)

Copy constructor

Definition at line 36 of file CbmPsdDigi.cxx.

◆ CbmPsdDigi() [5/5]

CbmPsdDigi::CbmPsdDigi ( CbmPsdDigi &&  other)

Move constructor

Definition at line 41 of file CbmPsdDigi.cxx.

◆ ~CbmPsdDigi()

CbmPsdDigi::~CbmPsdDigi ( )

Destructor

Definition at line 46 of file CbmPsdDigi.cxx.

Member Function Documentation

◆ ClassDefNV()

CbmPsdDigi::ClassDefNV ( CbmPsdDigi  ,
 
)
private

◆ GetAddress()

Int_t CbmPsdDigi::GetAddress ( ) const
inline

Address.

Returns
Unique channel address (see CbmPsdAddress)

Definition at line 79 of file CbmPsdDigi.h.

References fuAddress.

Referenced by CbmMcbm2019CheckPulser::CheckInterSystemOffset(), comparePsdDigiDataMembers(), GetModuleID(), GetSectionID(), and CbmPsdMCbmHitProducer::ProcessDigi().

◆ GetAmpl()

UInt_t CbmPsdDigi::GetAmpl ( ) const
inline

Definition at line 143 of file CbmPsdDigi.h.

References fuAmpl.

◆ GetCharge()

Double_t CbmPsdDigi::GetCharge ( ) const
inline

Charge.

Returns
Charge (energy deposition)

Alias for GetEdep(), for compatibility with template methods

Definition at line 87 of file CbmPsdDigi.h.

References fdEdep.

Referenced by CbmMcbm2019CheckPulser::CheckInterSystemOffset(), and comparePsdDigiDataMembers().

◆ GetClassName()

static const char* CbmPsdDigi::GetClassName ( )
inlinestatic

Class name (static)

Returns
CbmPsdDigi

Definition at line 93 of file CbmPsdDigi.h.

Referenced by TEST().

◆ GetEdep()

Double_t CbmPsdDigi::GetEdep ( ) const
inline

Energy deposit.

Returns
Energy deposit

Definition at line 99 of file CbmPsdDigi.h.

References fdEdep.

Referenced by comparePsdDigiDataMembers(), CbmPsdMCbmQaReal::Exec(), CbmPsdHitProducer::Exec(), and CbmPsdMCbmHitProducer::ProcessDigi().

◆ GetEdepWfm()

Double_t CbmPsdDigi::GetEdepWfm ( ) const
inline

Definition at line 145 of file CbmPsdDigi.h.

References fdEdepWfm.

◆ GetModuleID()

Double_t CbmPsdDigi::GetModuleID ( ) const
inline

Module Identifier.

Returns
Module number

Definition at line 105 of file CbmPsdDigi.h.

References GetAddress(), and CbmPsdAddress::GetModuleId().

Referenced by CbmPsdHitProducer::Exec(), and CbmPsdMCbmHitProducer::ProcessDigi().

◆ GetSectionID()

Double_t CbmPsdDigi::GetSectionID ( ) const
inline

Section Identifier.

Returns
Section number

Definition at line 113 of file CbmPsdDigi.h.

References GetAddress(), and CbmPsdAddress::GetSectionId().

Referenced by CbmPsdMCbmHitProducer::ProcessDigi().

◆ GetSystem()

static ECbmModuleId CbmPsdDigi::GetSystem ( )
inlinestatic

System identifier.

Returns
System ID (ECbmModuleId)

Definition at line 121 of file CbmPsdDigi.h.

References kPsd.

Referenced by comparePsdDigiDataMembers().

◆ GetTime()

Double_t CbmPsdDigi::GetTime ( ) const
inline

Time.

Returns
Time [ns]

Definition at line 127 of file CbmPsdDigi.h.

References fdTime.

Referenced by comparePsdDigiDataMembers(), CbmPsdMCbmQaReal::Exec(), and CbmPsdMCbmHitProducer::ProcessDigi().

◆ GetZL()

UInt_t CbmPsdDigi::GetZL ( ) const
inline

Definition at line 144 of file CbmPsdDigi.h.

References fuZL.

◆ operator=() [1/2]

CbmPsdDigi & CbmPsdDigi::operator= ( CbmPsdDigi &&  other)

Move Assignment operator

Definition at line 61 of file CbmPsdDigi.cxx.

References fdEdep, fdTime, and fuAddress.

◆ operator=() [2/2]

CbmPsdDigi & CbmPsdDigi::operator= ( const CbmPsdDigi rhs)

Assignment operator

Definition at line 50 of file CbmPsdDigi.cxx.

References fdEdep, fdTime, and fuAddress.

◆ serialize()

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

Definition at line 168 of file CbmPsdDigi.h.

References fdEdep, fdEdepWfm, fdTime, ffFitEdep, ffFitHarmonic1, ffFitHarmonic2, ffFitR2, fuAddress, fuAmpl, and fuZL.

◆ SetAddress() [1/2]

void CbmPsdDigi::SetAddress ( Int_t  address)
inline

Modifiers

Definition at line 131 of file CbmPsdDigi.h.

References fuAddress.

Referenced by TEST().

◆ SetAddress() [2/2]

void CbmPsdDigi::SetAddress ( UInt_t  moduleId,
UInt_t  sectionId 
)

Definition at line 72 of file CbmPsdDigi.cxx.

References fuAddress, and CbmPsdAddress::GetAddress().

◆ SetAmpl()

void CbmPsdDigi::SetAmpl ( UInt_t  ampl)
inline

Definition at line 146 of file CbmPsdDigi.h.

References fuAmpl.

◆ SetEdep()

void CbmPsdDigi::SetEdep ( Double_t  edep)
inline

Definition at line 133 of file CbmPsdDigi.h.

References fdEdep.

Referenced by TEST().

◆ SetEdepWfm()

void CbmPsdDigi::SetEdepWfm ( Double_t  edep)
inline

Definition at line 148 of file CbmPsdDigi.h.

References fdEdepWfm.

◆ SetTime()

void CbmPsdDigi::SetTime ( Double_t  time)
inline

Definition at line 134 of file CbmPsdDigi.h.

References fdTime.

Referenced by TEST().

◆ SetZL()

void CbmPsdDigi::SetZL ( UInt_t  zl)
inline

Definition at line 147 of file CbmPsdDigi.h.

References fuZL.

◆ ToString()

std::string CbmPsdDigi::ToString ( ) const

String output.

Returns
Info

Definition at line 78 of file CbmPsdDigi.cxx.

References fdEdep, fdTime, and fuAddress.

Referenced by TEST().

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

BOOST serialization interface.

Definition at line 166 of file CbmPsdDigi.h.

Member Data Documentation

◆ fdEdep

Double_t CbmPsdDigi::fdEdep = 0.
private

Definition at line 156 of file CbmPsdDigi.h.

Referenced by GetCharge(), GetEdep(), operator=(), serialize(), SetEdep(), and ToString().

◆ fdEdepWfm

Double_t CbmPsdDigi::fdEdepWfm = 0.
private

Definition at line 163 of file CbmPsdDigi.h.

Referenced by GetEdepWfm(), serialize(), and SetEdepWfm().

◆ fdTime

Double_t CbmPsdDigi::fdTime = -1.
private

Energy deposition.

Definition at line 157 of file CbmPsdDigi.h.

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

◆ ffFitEdep

Float_t CbmPsdDigi::ffFitEdep = 0.

Definition at line 153 of file CbmPsdDigi.h.

Referenced by serialize().

◆ ffFitHarmonic1

Float_t CbmPsdDigi::ffFitHarmonic1 = 0.

Definition at line 150 of file CbmPsdDigi.h.

Referenced by serialize().

◆ ffFitHarmonic2

Float_t CbmPsdDigi::ffFitHarmonic2 = 0.

Definition at line 151 of file CbmPsdDigi.h.

Referenced by serialize().

◆ ffFitR2

Float_t CbmPsdDigi::ffFitR2 = 999.

Definition at line 152 of file CbmPsdDigi.h.

Referenced by serialize().

◆ fuAddress

UInt_t CbmPsdDigi::fuAddress = 0
private

Time of measurement.

Definition at line 158 of file CbmPsdDigi.h.

Referenced by CbmPsdDigi(), GetAddress(), operator=(), serialize(), SetAddress(), and ToString().

◆ fuAmpl

UInt_t CbmPsdDigi::fuAmpl = 0
private

Unique channel address.

Definition at line 161 of file CbmPsdDigi.h.

Referenced by GetAmpl(), serialize(), and SetAmpl().

◆ fuZL

UInt_t CbmPsdDigi::fuZL = 0
private

Definition at line 162 of file CbmPsdDigi.h.

Referenced by GetZL(), serialize(), and SetZL().


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