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 | GetTime () const |
void | IncNrSamples () |
increase the number of samples stored in this raw message by one | |
void | SetTime (double setvalue) |
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. | |
Static Public Member Functions | |
static const char * | GetBranchName () |
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 72 of file CbmTrdRawMessageSpadic.h.
CbmTrdRawMessageSpadic::CbmTrdRawMessageSpadic | ( | ) |
Default Constructor
Definition at line 14 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 ) |
CbmTrdRawMessageSpadic::CbmTrdRawMessageSpadic | ( | const CbmTrdRawMessageSpadic & | old | ) |
Copy Constructor
Definition at line 49 of file CbmTrdRawMessageSpadic.cxx.
|
virtual |
Destructor
Definition at line 63 of file CbmTrdRawMessageSpadic.cxx.
|
inlinestatic |
Definition at line 106 of file CbmTrdRawMessageSpadic.h.
|
inline |
Definition at line 108 of file CbmTrdRawMessageSpadic.h.
References fChannelID.
Referenced by CbmTrdUnpackMonitor::fillHisto(), CbmMcbm2018UnpackerAlgoTrdR::FillHistograms(), CbmMcbm2018UnpackerAlgoTrdR::MakeDigi(), cbm::algo::trd::UnpackMS< sys_ver >::makeDigi(), CbmTrdUnpackAlgoLegacy2020R::makeDigi(), and CbmTrdUnpackAlgoR::makeDigi().
|
inline |
Definition at line 111 of file CbmTrdRawMessageSpadic.h.
References fCriId.
Referenced by CbmMcbm2018UnpackerAlgoTrdR::MakeDigi(), CbmTrdUnpackAlgoLegacy2020R::makeDigi(), and CbmTrdUnpackAlgoR::makeDigi().
|
inline |
Definition at line 110 of file CbmTrdRawMessageSpadic.h.
References fCrobId.
Referenced by CbmMcbm2018UnpackerAlgoTrdR::MakeDigi(), cbm::algo::trd::UnpackMS< sys_ver >::makeDigi(), CbmTrdUnpackAlgoLegacy2020R::makeDigi(), and CbmTrdUnpackAlgoR::makeDigi().
|
inline |
Definition at line 109 of file CbmTrdRawMessageSpadic.h.
References fElinkID.
Referenced by CbmTrdUnpackMonitor::fillHisto(), CbmMcbm2018UnpackerAlgoTrdR::FillHistograms(), CbmMcbm2018UnpackerAlgoTrdR::MakeDigi(), cbm::algo::trd::UnpackMS< sys_ver >::makeDigi(), CbmTrdUnpackAlgoLegacy2020R::makeDigi(), CbmTrdUnpackAlgoR::makeDigi(), cbm::algo::trd::UnpackMS< sys_ver >::operator()(), and CbmTrdUnpackAlgoR::unpackRaw().
|
inline |
Definition at line 115 of file CbmTrdRawMessageSpadic.h.
References fFullTime.
Referenced by CbmMcbm2018UnpackerAlgoTrdR::FillHistograms(), cbm::algo::trd::UnpackMS< sys_ver >::makeDigi(), CbmTrdUnpackAlgoLegacy2020R::makeDigi(), and CbmTrdUnpackAlgoR::makeDigi().
|
inline |
Definition at line 112 of file CbmTrdRawMessageSpadic.h.
References fHitType.
Referenced by CbmTrdUnpackMonitor::fillHisto(), CbmMcbm2018UnpackerAlgoTrdR::FillHistograms(), CbmMcbm2018UnpackerAlgoTrdR::MakeDigi(), cbm::algo::trd::UnpackMS< sys_ver >::makeDigi(), CbmTrdUnpackAlgoLegacy2020R::makeDigi(), and CbmTrdUnpackAlgoR::makeDigi().
int16_t CbmTrdRawMessageSpadic::GetMaxAdc | ( | ) |
Returns the value of the sample with the highest value.
Definition at line 65 of file CbmTrdRawMessageSpadic.cxx.
References fSamples.
Referenced by CbmMcbm2018UnpackerAlgoTrdR::MakeDigi().
|
inline |
Definition at line 114 of file CbmTrdRawMessageSpadic.h.
References fMultiHit.
Referenced by CbmMcbm2018UnpackerAlgoTrdR::FillHistograms(), cbm::algo::trd::UnpackMS< sys_ver >::makeDigi(), and CbmTrdUnpackAlgoR::makeDigi().
|
inline |
Definition at line 113 of file CbmTrdRawMessageSpadic.h.
References fNrSamples.
Referenced by CbmTrdUnpackMonitor::getSamplesStdDev(), CbmMcbm2018UnpackerAlgoTrdR::ProcessMs(), and CbmTrdUnpackAlgoLegacy2020R::unpack().
|
inline |
Definition at line 116 of file CbmTrdRawMessageSpadic.h.
References fSamples.
Referenced by CbmTrdUnpackMonitor::fillHisto(), CbmMcbm2018UnpackerAlgoTrdR::FillHistograms(), CbmTrdUnpackMonitor::fillSamplesHisto(), CbmTrdUnpackMonitor::getSamplesStdDev(), cbm::algo::trd::UnpackMS< sys_ver >::makeDigi(), CbmTrdUnpackAlgoLegacy2020R::makeDigi(), and CbmTrdUnpackAlgoR::makeDigi().
|
inline |
Returns the full time in nanoseconds
Definition at line 119 of file CbmTrdRawMessageSpadic.h.
References fFullTime.
Referenced by CbmTrdUnpackMonitor::fillHisto(), CbmTrdUnpackMonitor::FillHistos(), CbmMcbm2018UnpackerAlgoTrdR::MakeDigi(), cbm::algo::trd::UnpackMS< sys_ver >::makeDigi(), CbmTrdUnpackAlgoLegacy2020R::makeDigi(), and CbmTrdUnpackAlgoR::makeDigi().
|
inline |
increase the number of samples stored in this raw message by one
Definition at line 122 of file CbmTrdRawMessageSpadic.h.
References fNrSamples.
Referenced by cbm::algo::trd::UnpackMS< sys_ver >::operator()(), and CbmTrdUnpackAlgoR::unpackRaw().
|
default |
Assignment Operator
|
inline |
Boost serialization function.
Definition at line 141 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 72 of file CbmTrdRawMessageSpadic.cxx.
References fNrSamples, fSamples, and pos.
Referenced by cbm::algo::trd::UnpackMS< sys_ver >::operator()(), CbmMcbm2018UnpackerAlgoTrdR::ProcessMs(), CbmTrdUnpackAlgoLegacy2020R::unpack(), and CbmTrdUnpackAlgoR::unpackRaw().
|
inline |
Set the full time in nanoseconds
Definition at line 125 of file CbmTrdRawMessageSpadic.h.
References fFullTime.
Referenced by CbmMcbm2018UnpackerAlgoTrdR::MakeDigi(), and CbmTrdUnpackAlgoLegacy2020R::makeDigi().
|
friend |
Definition at line 74 of file CbmTrdRawMessageSpadic.h.
|
private |
Definition at line 76 of file CbmTrdRawMessageSpadic.h.
Referenced by GetChannelId(), and serialize().
|
private |
Definition at line 79 of file CbmTrdRawMessageSpadic.h.
Referenced by GetCriId(), and serialize().
|
private |
Definition at line 78 of file CbmTrdRawMessageSpadic.h.
Referenced by GetCrobId(), and serialize().
|
private |
Definition at line 77 of file CbmTrdRawMessageSpadic.h.
Referenced by GetElinkId(), and serialize().
|
private |
Fulltime in units of Clockcycles.
Definition at line 83 of file CbmTrdRawMessageSpadic.h.
Referenced by GetFullTime(), GetTime(), serialize(), and SetTime().
|
private |
Definition at line 80 of file CbmTrdRawMessageSpadic.h.
Referenced by GetHitType(), and serialize().
|
private |
Definition at line 82 of file CbmTrdRawMessageSpadic.h.
Referenced by GetMultiHit(), and serialize().
|
private |
Definition at line 81 of file CbmTrdRawMessageSpadic.h.
Referenced by GetNrSamples(), IncNrSamples(), serialize(), and SetSample().
|
private |
Holds up to 32 Samples from a Spadic Message. Valid values [-256,255]
Definition at line 84 of file CbmTrdRawMessageSpadic.h.
Referenced by CbmTrdRawMessageSpadic(), GetMaxAdc(), GetSamples(), serialize(), and SetSample().