CbmRoot
CbmTrdRawMessageSpadic Class Reference

Base class for storing raw information which comes from the Spadic v2.2 trough flib or from a tsa file. More...

#include <CbmTrdRawMessageSpadic.h>

Public Member Functions

 CbmTrdRawMessageSpadic ()
 
 CbmTrdRawMessageSpadic (std::uint8_t channelId, std::uint8_t elinkId, std::uint8_t crobId, std::uint16_t criId, std::uint8_t hitType, std::uint8_t nrSamples, bool multiHi, std::uint64_t fullTime, std::vector< std::int16_t > samples)
 
 CbmTrdRawMessageSpadic (const CbmTrdRawMessageSpadic &)
 
virtual ~CbmTrdRawMessageSpadic ()
 
CbmTrdRawMessageSpadicoperator= (const CbmTrdRawMessageSpadic &)=default
 
std::uint8_t GetChannelId () const
 
std::uint8_t GetElinkId () const
 
std::uint8_t GetCrobId () const
 
std::uint16_t GetCriId () const
 
std::uint8_t GetHitType () const
 
std::uint8_t GetNrSamples () const
 
bool GetMultiHit () const
 
std::uint64_t GetFullTime () const
 
const std::vector< std::int16_t > GetSamples () const
 
Double_t GetTime () const
 
int16_t GetMaxAdc ()
 
void SetSample (std::int16_t value, std::uint8_t pos)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int)
 Boost serialization function. More...
 
 ClassDef (CbmTrdRawMessageSpadic, 2)
 

Private Attributes

std::uint8_t fChannelID
 
std::uint8_t fElinkID
 
std::uint8_t fCrobId
 
std::uint16_t fCriId
 
std::uint8_t fHitType
 
std::uint8_t fNrSamples
 
bool fMultiHit
 
std::uint64_t fFullTime
 
std::vector< std::int16_t > fSamples
 

Friends

class boost::serialization::access
 

Detailed Description

Base class for storing raw information which comes from the Spadic v2.2 trough flib or from a tsa file.

Definition at line 68 of file CbmTrdRawMessageSpadic.h.

Constructor & Destructor Documentation

◆ CbmTrdRawMessageSpadic() [1/3]

CbmTrdRawMessageSpadic::CbmTrdRawMessageSpadic ( )

Default Constructor

Definition at line 9 of file CbmTrdRawMessageSpadic.cxx.

◆ CbmTrdRawMessageSpadic() [2/3]

CbmTrdRawMessageSpadic::CbmTrdRawMessageSpadic ( std::uint8_t  channelId,
std::uint8_t  elinkId,
std::uint8_t  crobId,
std::uint16_t  criId,
std::uint8_t  hitType,
std::uint8_t  nrSamples,
bool  multiHi,
std::uint64_t  fullTime,
std::vector< std::int16_t >  samples 
)

Constructor

Definition at line 21 of file CbmTrdRawMessageSpadic.cxx.

◆ CbmTrdRawMessageSpadic() [3/3]

CbmTrdRawMessageSpadic::CbmTrdRawMessageSpadic ( const CbmTrdRawMessageSpadic old)

Copy Constructor

Definition at line 49 of file CbmTrdRawMessageSpadic.cxx.

References fChannelID.

◆ ~CbmTrdRawMessageSpadic()

CbmTrdRawMessageSpadic::~CbmTrdRawMessageSpadic ( )
virtual

Destructor

Definition at line 62 of file CbmTrdRawMessageSpadic.cxx.

Member Function Documentation

◆ ClassDef()

CbmTrdRawMessageSpadic::ClassDef ( CbmTrdRawMessageSpadic  ,
 
)

◆ GetChannelId()

std::uint8_t CbmTrdRawMessageSpadic::GetChannelId ( ) const
inline

◆ GetCriId()

std::uint16_t CbmTrdRawMessageSpadic::GetCriId ( ) const
inline

Definition at line 113 of file CbmTrdRawMessageSpadic.h.

References fCriId.

Referenced by CbmMcbm2018UnpackerAlgoTrdR::MakeDigi().

◆ GetCrobId()

std::uint8_t CbmTrdRawMessageSpadic::GetCrobId ( ) const
inline

Definition at line 112 of file CbmTrdRawMessageSpadic.h.

References fCrobId.

Referenced by CbmMcbm2018UnpackerAlgoTrdR::MakeDigi().

◆ GetElinkId()

std::uint8_t CbmTrdRawMessageSpadic::GetElinkId ( ) const
inline

◆ GetFullTime()

std::uint64_t CbmTrdRawMessageSpadic::GetFullTime ( ) const
inline

Definition at line 117 of file CbmTrdRawMessageSpadic.h.

References fFullTime.

Referenced by CbmMcbm2018UnpackerAlgoTrdR::FillHistograms().

◆ GetHitType()

std::uint8_t CbmTrdRawMessageSpadic::GetHitType ( ) const
inline

◆ GetMaxAdc()

int16_t CbmTrdRawMessageSpadic::GetMaxAdc ( )

Returns the value of the sample with the highest value.

Definition at line 64 of file CbmTrdRawMessageSpadic.cxx.

References fSamples.

Referenced by CbmMcbm2018UnpackerAlgoTrdR::MakeDigi().

◆ GetMultiHit()

bool CbmTrdRawMessageSpadic::GetMultiHit ( ) const
inline

Definition at line 116 of file CbmTrdRawMessageSpadic.h.

References fMultiHit.

Referenced by CbmMcbm2018UnpackerAlgoTrdR::FillHistograms().

◆ GetNrSamples()

std::uint8_t CbmTrdRawMessageSpadic::GetNrSamples ( ) const
inline

Definition at line 115 of file CbmTrdRawMessageSpadic.h.

References fNrSamples.

Referenced by CbmMcbm2018UnpackerAlgoTrdR::ProcessMs().

◆ GetSamples()

const std::vector<std::int16_t> CbmTrdRawMessageSpadic::GetSamples ( ) const
inline

Definition at line 118 of file CbmTrdRawMessageSpadic.h.

References fSamples.

Referenced by CbmMcbm2018UnpackerAlgoTrdR::FillHistograms().

◆ GetTime()

Double_t CbmTrdRawMessageSpadic::GetTime ( ) const
inline

Returns the full time in nanoseconds

Definition at line 121 of file CbmTrdRawMessageSpadic.h.

References fFullTime.

Referenced by CbmMcbm2018UnpackerAlgoTrdR::MakeDigi().

◆ operator=()

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

Assignment Operator

◆ serialize()

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

Boost serialization function.

Definition at line 137 of file CbmTrdRawMessageSpadic.h.

References fChannelID, fCriId, fCrobId, fElinkID, fFullTime, fHitType, fMultiHit, fNrSamples, and fSamples.

◆ SetSample()

void CbmTrdRawMessageSpadic::SetSample ( std::int16_t  value,
std::uint8_t  pos 
)

Set the value of a specific Sample in fSamples vector.

Parameters
valueInteger in the range [-256:255].
posInteger in the range [0:31].

Definition at line 70 of file CbmTrdRawMessageSpadic.cxx.

References fNrSamples, fSamples, and pos.

Referenced by CbmMcbm2018UnpackerAlgoTrdR::ProcessMs().

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 70 of file CbmTrdRawMessageSpadic.h.

Member Data Documentation

◆ fChannelID

std::uint8_t CbmTrdRawMessageSpadic::fChannelID
private

Definition at line 72 of file CbmTrdRawMessageSpadic.h.

Referenced by CbmTrdRawMessageSpadic(), GetChannelId(), and serialize().

◆ fCriId

std::uint16_t CbmTrdRawMessageSpadic::fCriId
private

Definition at line 75 of file CbmTrdRawMessageSpadic.h.

Referenced by GetCriId(), and serialize().

◆ fCrobId

std::uint8_t CbmTrdRawMessageSpadic::fCrobId
private

Definition at line 74 of file CbmTrdRawMessageSpadic.h.

Referenced by GetCrobId(), and serialize().

◆ fElinkID

std::uint8_t CbmTrdRawMessageSpadic::fElinkID
private

Definition at line 73 of file CbmTrdRawMessageSpadic.h.

Referenced by GetElinkId(), and serialize().

◆ fFullTime

std::uint64_t CbmTrdRawMessageSpadic::fFullTime
private

Fulltime in units of Clockcycles.

Definition at line 79 of file CbmTrdRawMessageSpadic.h.

Referenced by GetFullTime(), GetTime(), and serialize().

◆ fHitType

std::uint8_t CbmTrdRawMessageSpadic::fHitType
private

Definition at line 76 of file CbmTrdRawMessageSpadic.h.

Referenced by GetHitType(), and serialize().

◆ fMultiHit

bool CbmTrdRawMessageSpadic::fMultiHit
private

Definition at line 78 of file CbmTrdRawMessageSpadic.h.

Referenced by GetMultiHit(), and serialize().

◆ fNrSamples

std::uint8_t CbmTrdRawMessageSpadic::fNrSamples
private

Definition at line 77 of file CbmTrdRawMessageSpadic.h.

Referenced by GetNrSamples(), serialize(), and SetSample().

◆ fSamples

std::vector<std::int16_t> CbmTrdRawMessageSpadic::fSamples
private

Holds up to 32 Samples from a Spadic Message. Valid values [-256,255]

Definition at line 81 of file CbmTrdRawMessageSpadic.h.

Referenced by GetMaxAdc(), GetSamples(), serialize(), and SetSample().


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