CbmRoot
CbmMuchDigi Class Reference

#include <CbmMuchDigi.h>

Inheritance diagram for CbmMuchDigi:
[legend]

Public Member Functions

 CbmMuchDigi ()
 
 CbmMuchDigi (UInt_t address, UShort_t charge=0, ULong64_t time=0)
 
 CbmMuchDigi (CbmMuchDigi *digi)
 
 CbmMuchDigi (const CbmMuchDigi &)
 
CbmMuchDigioperator= (const CbmMuchDigi &)
 
virtual ~CbmMuchDigi ()
 
Double_t GetCharge () const
 Charge. More...
 
UShort_t GetAdc () const
 
virtual Int_t GetAddress () const
 
virtual Double_t GetTime () const
 
void SetAdc (Int_t adc)
 
void SetTime (ULong64_t time)
 
void SetSaturation (Bool_t saturate)
 
void SetAddress (Int_t address)
 
Int_t GetDetectorId () const
 
Int_t GetChannelId () const
 
Int_t GetADCCharge () const
 
Int_t GetDTime () const
 
std::string ToString () const
 
template<class Archive >
void serialize (Archive &ar, const unsigned int)
 

Static Public Member Functions

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

Private Member Functions

 ClassDef (CbmMuchDigi, 4)
 

Private Attributes

ULong64_t fTime
 
UInt_t fAddress
 
UShort_t fCharge
 
Bool_t fSaturationFlag
 

Friends

class boost::serialization::access
 

Detailed Description

CbmMuchDigi.h

Author
M.Ryzhinskiy m.ryz.nosp@m.hins.nosp@m.kiy@g.nosp@m.si.d.nosp@m.e
Since
19.03.07
Version
1.0
Author
Vikas Singhal vikas.nosp@m.@vec.nosp@m.c.gov.nosp@m..in
Since
17/05/16
Version
2.0 Data class for digital MUCH information Data level: RAW

Definition at line 31 of file CbmMuchDigi.h.

Constructor & Destructor Documentation

◆ CbmMuchDigi() [1/4]

CbmMuchDigi::CbmMuchDigi ( )
inline

Default Constructor

Definition at line 34 of file CbmMuchDigi.h.

◆ CbmMuchDigi() [2/4]

CbmMuchDigi::CbmMuchDigi ( UInt_t  address,
UShort_t  charge = 0,
ULong64_t  time = 0 
)
inline

Standard constructor

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

Definition at line 41 of file CbmMuchDigi.h.

◆ CbmMuchDigi() [3/4]

CbmMuchDigi::CbmMuchDigi ( CbmMuchDigi digi)

CbmMuchDigi.cxx

Author
M.Ryzhinskiy m.ryz.nosp@m.hins.nosp@m.kiy@g.nosp@m.si.d.nosp@m.e
Since
19.03.07
Version
1.0
Author
Vikas Singhal vikas.nosp@m.@vec.nosp@m.c.gov.nosp@m..in
Since
17/05/16
Version
2.0 Data class for digital MUCH information Data level: RAW

Definition at line 16 of file CbmMuchDigi.cxx.

◆ CbmMuchDigi() [4/4]

CbmMuchDigi::CbmMuchDigi ( const CbmMuchDigi rhs)

Definition at line 20 of file CbmMuchDigi.cxx.

◆ ~CbmMuchDigi()

virtual CbmMuchDigi::~CbmMuchDigi ( )
inlinevirtual

Destructor

Definition at line 51 of file CbmMuchDigi.h.

Member Function Documentation

◆ ClassDef()

CbmMuchDigi::ClassDef ( CbmMuchDigi  ,
 
)
private

◆ GetAdc()

◆ GetADCCharge()

Int_t CbmMuchDigi::GetADCCharge ( ) const
inline

Definition at line 92 of file CbmMuchDigi.h.

References GetAdc().

Referenced by CbmMuchClustering::ClusteringWard(), and TEST().

◆ GetAddress()

◆ GetChannelId()

Int_t CbmMuchDigi::GetChannelId ( ) const
inline

◆ GetCharge()

Double_t CbmMuchDigi::GetCharge ( ) const
inline

Charge.

Returns
Return ADC value as charge

Alias for GetAdc, conversion factor should be added if needed. For compatibility with template methods

Definition at line 59 of file CbmMuchDigi.h.

References fCharge.

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

◆ GetClassName()

static const char* CbmMuchDigi::GetClassName ( )
inlinestatic

Class name (static)

Returns
CbmMuchDigi

Definition at line 71 of file CbmMuchDigi.h.

Referenced by TEST().

◆ GetDetectorId()

Int_t CbmMuchDigi::GetDetectorId ( ) const
inline

Definition at line 88 of file CbmMuchDigi.h.

References GetAddress(), CbmMuchAddress::GetElementAddress(), and kMuchModule.

◆ GetDTime()

Int_t CbmMuchDigi::GetDTime ( ) const
inline

◆ GetSystem()

static ECbmModuleId CbmMuchDigi::GetSystem ( )
inlinestatic

System ID (static)

Returns
System identifier (EcbmModuleId)

Definition at line 65 of file CbmMuchDigi.h.

References kMuch.

Referenced by compareMuchDigiDataMembers().

◆ GetTime()

◆ operator=()

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

Definition at line 23 of file CbmMuchDigi.cxx.

References fAddress, fCharge, and fTime.

Referenced by CbmMuchBeamTimeDigi::operator=().

◆ serialize()

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

Definition at line 98 of file CbmMuchDigi.h.

References fAddress, fCharge, fSaturationFlag, and fTime.

◆ SetAdc()

void CbmMuchDigi::SetAdc ( Int_t  adc)

Definition at line 34 of file CbmMuchDigi.cxx.

References fCharge, and fSaturationFlag.

Referenced by CbmMuchDigitizeGem::ConvertSignalToDigi(), and TEST().

◆ SetAddress()

void CbmMuchDigi::SetAddress ( Int_t  address)
inline

Definition at line 84 of file CbmMuchDigi.h.

References fAddress.

Referenced by CbmMuchDigitizeGem::ConvertSignalToDigi(), and TEST().

◆ SetSaturation()

void CbmMuchDigi::SetSaturation ( Bool_t  saturate)
inline

Definition at line 83 of file CbmMuchDigi.h.

References fSaturationFlag.

◆ SetTime()

void CbmMuchDigi::SetTime ( ULong64_t  time)

Definition at line 58 of file CbmMuchDigi.cxx.

References fTime.

Referenced by CbmMuchDigitizeGem::ConvertSignalToDigi(), and TEST().

◆ ToString()

std::string CbmMuchDigi::ToString ( ) const
inline

Definition at line 95 of file CbmMuchDigi.h.

Referenced by TEST().

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 107 of file CbmMuchDigi.h.

Member Data Documentation

◆ fAddress

UInt_t CbmMuchDigi::fAddress
private

Definition at line 110 of file CbmMuchDigi.h.

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

◆ fCharge

UShort_t CbmMuchDigi::fCharge
private

Definition at line 111 of file CbmMuchDigi.h.

Referenced by GetAdc(), GetCharge(), operator=(), serialize(), and SetAdc().

◆ fSaturationFlag

Bool_t CbmMuchDigi::fSaturationFlag
private
Initial value:
=
0

Definition at line 114 of file CbmMuchDigi.h.

Referenced by serialize(), SetAdc(), and SetSaturation().

◆ fTime

ULong64_t CbmMuchDigi::fTime
private

Definition at line 109 of file CbmMuchDigi.h.

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


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