CbmRoot
|
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 () |
CbmTrdRawMessageSpadic & | operator= (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 |
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.
CbmTrdRawMessageSpadic::CbmTrdRawMessageSpadic | ( | ) |
Default Constructor
Definition at line 9 of file CbmTrdRawMessageSpadic.cxx.
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::CbmTrdRawMessageSpadic | ( | const CbmTrdRawMessageSpadic & | old | ) |
|
virtual |
Destructor
Definition at line 62 of file CbmTrdRawMessageSpadic.cxx.
CbmTrdRawMessageSpadic::ClassDef | ( | CbmTrdRawMessageSpadic | , |
2 | |||
) |
|
inline |
Definition at line 110 of file CbmTrdRawMessageSpadic.h.
References fChannelID.
Referenced by CbmMcbm2018UnpackerAlgoTrdR::FillHistograms(), and CbmMcbm2018UnpackerAlgoTrdR::MakeDigi().
|
inline |
Definition at line 113 of file CbmTrdRawMessageSpadic.h.
References fCriId.
Referenced by CbmMcbm2018UnpackerAlgoTrdR::MakeDigi().
|
inline |
Definition at line 112 of file CbmTrdRawMessageSpadic.h.
References fCrobId.
Referenced by CbmMcbm2018UnpackerAlgoTrdR::MakeDigi().
|
inline |
Definition at line 111 of file CbmTrdRawMessageSpadic.h.
References fElinkID.
Referenced by CbmMcbm2018UnpackerAlgoTrdR::FillHistograms(), and CbmMcbm2018UnpackerAlgoTrdR::MakeDigi().
|
inline |
Definition at line 117 of file CbmTrdRawMessageSpadic.h.
References fFullTime.
Referenced by CbmMcbm2018UnpackerAlgoTrdR::FillHistograms().
|
inline |
Definition at line 114 of file CbmTrdRawMessageSpadic.h.
References fHitType.
Referenced by CbmMcbm2018UnpackerAlgoTrdR::FillHistograms(), and CbmMcbm2018UnpackerAlgoTrdR::MakeDigi().
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().
|
inline |
Definition at line 116 of file CbmTrdRawMessageSpadic.h.
References fMultiHit.
Referenced by CbmMcbm2018UnpackerAlgoTrdR::FillHistograms().
|
inline |
Definition at line 115 of file CbmTrdRawMessageSpadic.h.
References fNrSamples.
Referenced by CbmMcbm2018UnpackerAlgoTrdR::ProcessMs().
|
inline |
Definition at line 118 of file CbmTrdRawMessageSpadic.h.
References fSamples.
Referenced by CbmMcbm2018UnpackerAlgoTrdR::FillHistograms().
|
inline |
Returns the full time in nanoseconds
Definition at line 121 of file CbmTrdRawMessageSpadic.h.
References fFullTime.
Referenced by CbmMcbm2018UnpackerAlgoTrdR::MakeDigi().
|
default |
Assignment Operator
|
inline |
Boost serialization function.
Definition at line 137 of file CbmTrdRawMessageSpadic.h.
References fChannelID, fCriId, fCrobId, fElinkID, fFullTime, fHitType, fMultiHit, fNrSamples, and fSamples.
void CbmTrdRawMessageSpadic::SetSample | ( | std::int16_t | value, |
std::uint8_t | pos | ||
) |
Set the value of a specific Sample in fSamples vector.
value | Integer in the range [-256:255]. |
pos | Integer in the range [0:31]. |
Definition at line 70 of file CbmTrdRawMessageSpadic.cxx.
References fNrSamples, fSamples, and pos.
Referenced by CbmMcbm2018UnpackerAlgoTrdR::ProcessMs().
|
friend |
Definition at line 70 of file CbmTrdRawMessageSpadic.h.
|
private |
Definition at line 72 of file CbmTrdRawMessageSpadic.h.
Referenced by CbmTrdRawMessageSpadic(), GetChannelId(), and serialize().
|
private |
Definition at line 75 of file CbmTrdRawMessageSpadic.h.
Referenced by GetCriId(), and serialize().
|
private |
Definition at line 74 of file CbmTrdRawMessageSpadic.h.
Referenced by GetCrobId(), and serialize().
|
private |
Definition at line 73 of file CbmTrdRawMessageSpadic.h.
Referenced by GetElinkId(), and serialize().
|
private |
Fulltime in units of Clockcycles.
Definition at line 79 of file CbmTrdRawMessageSpadic.h.
Referenced by GetFullTime(), GetTime(), and serialize().
|
private |
Definition at line 76 of file CbmTrdRawMessageSpadic.h.
Referenced by GetHitType(), and serialize().
|
private |
Definition at line 78 of file CbmTrdRawMessageSpadic.h.
Referenced by GetMultiHit(), and serialize().
|
private |
Definition at line 77 of file CbmTrdRawMessageSpadic.h.
Referenced by GetNrSamples(), serialize(), and SetSample().
|
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().