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

Data class for PSD digital information. More...

#include <CbmPsdDigi.h>

Public Member Functions

 CbmPsdDigi ()
 Default constructor.
 
 CbmPsdDigi (uint32_t address, double time, double edep)
 Constructor with assignment.
 
 CbmPsdDigi (uint32_t moduleId, uint32_t sectionId, double time, double edep)
 Constructor with detailed assignment.
 
 CbmPsdDigi (const CbmPsdDigi &)
 
 CbmPsdDigi (CbmPsdDigi &&)
 
CbmPsdDigioperator= (const CbmPsdDigi &)=default
 
CbmPsdDigioperator= (CbmPsdDigi &&)=default
 
 ~CbmPsdDigi ()
 
uint32_t GetAddress () const
 Address.
 
double GetTime () const
 Time.
 
double GetCharge () const
 Charge.
 
double GetEdep () const
 Energy deposit.
 
double GetModuleID () const
 Module Identifier.
 
double GetSectionID () const
 Section Identifier.
 
void SetAddress (uint32_t address)
 
void SetAddress (uint32_t moduleId, uint32_t sectionId)
 
void SetTime (double time)
 
void SetEdep (double edep)
 
std::string ToString () const
 String output.
 

Static Public Member Functions

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

Private Member Functions

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

Private Attributes

uint32_t fuAddress = 0
 
double fdTime = -1.
 Unique channel address.
 
double fdEdep = 0.
 Time of measurement [ns].
 

Friends

class boost::serialization::access
 Energy deposition from FPGA [MeV].
 

Detailed Description

Data class for PSD digital information.

Version
1.0

Unique Address: 32 bits following CbmPsdAddress Time: 64 bits double Energy deposition: 64 bits double

Definition at line 36 of file CbmPsdDigi.h.

Constructor & Destructor Documentation

◆ CbmPsdDigi() [1/5]

CbmPsdDigi::CbmPsdDigi ( )
inline

Default constructor.

Definition at line 41 of file CbmPsdDigi.h.

◆ CbmPsdDigi() [2/5]

CbmPsdDigi::CbmPsdDigi ( uint32_t address,
double time,
double edep )
inline

Constructor with assignment.

Parameters
addressUnique channel address
timeTime [ns]
edepEnergy deposition

Definition at line 49 of file CbmPsdDigi.h.

◆ CbmPsdDigi() [3/5]

CbmPsdDigi::CbmPsdDigi ( uint32_t moduleId,
uint32_t sectionId,
double time,
double edep )
inline

Constructor with detailed assignment.

Parameters
moduleIDModule Identifier
sectionIDSection Identifier
timeTime [ns]
edepEnergy deposition

Definition at line 58 of file CbmPsdDigi.h.

References fuAddress, and CbmPsdAddress::GetAddress().

◆ CbmPsdDigi() [4/5]

CbmPsdDigi::CbmPsdDigi ( const CbmPsdDigi & other)

Copy constructor

Definition at line 19 of file CbmPsdDigi.cxx.

◆ CbmPsdDigi() [5/5]

CbmPsdDigi::CbmPsdDigi ( CbmPsdDigi && other)

Move constructor

Definition at line 25 of file CbmPsdDigi.cxx.

◆ ~CbmPsdDigi()

CbmPsdDigi::~CbmPsdDigi ( )
inline

Destructor

Definition at line 81 of file CbmPsdDigi.h.

Member Function Documentation

◆ ClassDefNV()

CbmPsdDigi::ClassDefNV ( CbmPsdDigi ,
5  )
private

◆ GetAddress()

uint32_t CbmPsdDigi::GetAddress ( ) const
inline

Address.

Returns
Unique channel address (see CbmPsdAddress)

Definition at line 93 of file CbmPsdDigi.h.

References fuAddress.

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

◆ GetBranchName()

static const char * CbmPsdDigi::GetBranchName ( )
inlinestatic

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

Returns
"PsdDigi"

Definition at line 99 of file CbmPsdDigi.h.

Referenced by CbmDeviceDigiEventSink::InitTask().

◆ GetCharge()

double CbmPsdDigi::GetCharge ( ) const
inline

Charge.

Returns
Charge (energy deposition)

Alias for GetEdep(), for compatibility with template methods

Definition at line 113 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 87 of file CbmPsdDigi.h.

Referenced by TEST().

◆ GetEdep()

double CbmPsdDigi::GetEdep ( ) const
inline

Energy deposit.

Returns
Energy deposit

Definition at line 119 of file CbmPsdDigi.h.

References fdEdep.

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

◆ GetModuleID()

double CbmPsdDigi::GetModuleID ( ) const
inline

Module Identifier.

Returns
Module number

Definition at line 125 of file CbmPsdDigi.h.

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

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

◆ GetSectionID()

double CbmPsdDigi::GetSectionID ( ) const
inline

Section Identifier.

Returns
Section number

Definition at line 131 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 137 of file CbmPsdDigi.h.

References kPsd.

Referenced by comparePsdDigiDataMembers().

◆ GetTime()

double CbmPsdDigi::GetTime ( ) const
inline

Time.

Returns
Time [ns]

Definition at line 105 of file CbmPsdDigi.h.

References fdTime.

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

◆ operator=() [1/2]

CbmPsdDigi & CbmPsdDigi::operator= ( CbmPsdDigi && )
default

Move Assignment operator

◆ operator=() [2/2]

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

Assignment operator

◆ serialize()

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

Definition at line 161 of file CbmPsdDigi.h.

References fdEdep, fdTime, and fuAddress.

◆ SetAddress() [1/2]

void CbmPsdDigi::SetAddress ( uint32_t address)
inline

Modifiers

Definition at line 141 of file CbmPsdDigi.h.

References fuAddress.

Referenced by TEST(), and TEST().

◆ SetAddress() [2/2]

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

Definition at line 29 of file CbmPsdDigi.cxx.

References fuAddress, and CbmPsdAddress::GetAddress().

◆ SetEdep()

void CbmPsdDigi::SetEdep ( double edep)
inline

Definition at line 144 of file CbmPsdDigi.h.

References fdEdep.

Referenced by TEST().

◆ SetTime()

void CbmPsdDigi::SetTime ( double time)
inline

Definition at line 143 of file CbmPsdDigi.h.

References fdTime.

Referenced by TEST().

◆ ToString()

std::string CbmPsdDigi::ToString ( ) const

String output.

Returns
Info

Definition at line 36 of file CbmPsdDigi.cxx.

References fdEdep, fdTime, and fuAddress.

Referenced by TEST().

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Energy deposition from FPGA [MeV].

BOOST serialization interface

Definition at line 159 of file CbmPsdDigi.h.

Member Data Documentation

◆ fdEdep

double CbmPsdDigi::fdEdep = 0.
private

Time of measurement [ns].

Definition at line 156 of file CbmPsdDigi.h.

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

◆ fdTime

double CbmPsdDigi::fdTime = -1.
private

Unique channel address.

Definition at line 155 of file CbmPsdDigi.h.

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

◆ fuAddress

uint32_t CbmPsdDigi::fuAddress = 0
private

Definition at line 154 of file CbmPsdDigi.h.

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


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