|
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 (uint8_t channelId, uint8_t elinkId, uint8_t crobId, uint16_t criId, uint8_t hitType, uint8_t nrSamples, bool multiHi, uint64_t fullTime, std::vector< int16_t > samples) | |
| CbmTrdRawMessageSpadic (const CbmTrdRawMessageSpadic &) | |
| virtual | ~CbmTrdRawMessageSpadic () |
| CbmTrdRawMessageSpadic & | operator= (const CbmTrdRawMessageSpadic &)=default |
| uint8_t | GetChannelId () const |
| uint8_t | GetElinkId () const |
| uint8_t | GetCrobId () const |
| uint16_t | GetCriId () const |
| uint8_t | GetHitType () const |
| uint8_t | GetNrSamples () const |
| bool | GetMultiHit () const |
| uint64_t | GetFullTime () const |
| const std::vector< 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 (int16_t value, 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 | |
| uint8_t | fChannelID |
| uint8_t | fElinkID |
| uint8_t | fCrobId |
| uint16_t | fCriId |
| uint8_t | fHitType |
| uint8_t | fNrSamples |
| bool | fMultiHit |
| uint64_t | fFullTime |
| std::vector< 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.
References fChannelID, fCriId, fCrobId, fElinkID, fFullTime, fHitType, fMultiHit, fNrSamples, and fSamples.
Referenced by CbmTrdRawMessageSpadic(), and operator=().
| CbmTrdRawMessageSpadic::CbmTrdRawMessageSpadic | ( | uint8_t | channelId, |
| uint8_t | elinkId, | ||
| uint8_t | crobId, | ||
| uint16_t | criId, | ||
| uint8_t | hitType, | ||
| uint8_t | nrSamples, | ||
| bool | multiHi, | ||
| uint64_t | fullTime, | ||
| std::vector< int16_t > | samples ) |
Constructor
Definition at line 28 of file CbmTrdRawMessageSpadic.cxx.
References fChannelID, fCriId, fCrobId, fElinkID, fFullTime, fHitType, fMultiHit, fNrSamples, and fSamples.
| CbmTrdRawMessageSpadic::CbmTrdRawMessageSpadic | ( | const CbmTrdRawMessageSpadic & | old | ) |
Copy Constructor
Definition at line 49 of file CbmTrdRawMessageSpadic.cxx.
References CbmTrdRawMessageSpadic(), fChannelID, fCriId, fCrobId, fElinkID, fFullTime, fHitType, fMultiHit, fNrSamples, and fSamples.
|
virtual |
Destructor
Definition at line 63 of file CbmTrdRawMessageSpadic.cxx.
|
inlinestatic |
Definition at line 105 of file CbmTrdRawMessageSpadic.h.
|
inline |
Definition at line 107 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 110 of file CbmTrdRawMessageSpadic.h.
References fCriId.
Referenced by CbmMcbm2018UnpackerAlgoTrdR::MakeDigi(), CbmTrdUnpackAlgoLegacy2020R::makeDigi(), and CbmTrdUnpackAlgoR::makeDigi().
|
inline |
Definition at line 109 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 108 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 114 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 111 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 113 of file CbmTrdRawMessageSpadic.h.
References fMultiHit.
Referenced by CbmMcbm2018UnpackerAlgoTrdR::FillHistograms(), cbm::algo::trd::UnpackMS< sys_ver >::makeDigi(), and CbmTrdUnpackAlgoR::makeDigi().
|
inline |
Definition at line 112 of file CbmTrdRawMessageSpadic.h.
References fNrSamples.
Referenced by CbmTrdUnpackMonitor::getSamplesStdDev(), CbmMcbm2018UnpackerAlgoTrdR::ProcessMs(), and CbmTrdUnpackAlgoLegacy2020R::unpack().
|
inline |
Definition at line 115 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 118 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 121 of file CbmTrdRawMessageSpadic.h.
References fNrSamples.
Referenced by cbm::algo::trd::UnpackMS< sys_ver >::operator()(), and CbmTrdUnpackAlgoR::unpackRaw().
|
default |
Assignment Operator
References CbmTrdRawMessageSpadic().
|
inline |
Boost serialization function.
Definition at line 140 of file CbmTrdRawMessageSpadic.h.
References fChannelID, fCriId, fCrobId, fElinkID, fFullTime, fHitType, fMultiHit, fNrSamples, and fSamples.
| void CbmTrdRawMessageSpadic::SetSample | ( | int16_t | value, |
| 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 124 of file CbmTrdRawMessageSpadic.h.
References fFullTime.
Referenced by CbmMcbm2018UnpackerAlgoTrdR::MakeDigi(), and CbmTrdUnpackAlgoLegacy2020R::makeDigi().
|
friend |
Definition at line 74 of file CbmTrdRawMessageSpadic.h.
References boost::serialization::access.
Referenced by boost::serialization::access.
|
private |
Definition at line 76 of file CbmTrdRawMessageSpadic.h.
Referenced by CbmTrdRawMessageSpadic(), CbmTrdRawMessageSpadic(), CbmTrdRawMessageSpadic(), GetChannelId(), and serialize().
|
private |
Definition at line 79 of file CbmTrdRawMessageSpadic.h.
Referenced by CbmTrdRawMessageSpadic(), CbmTrdRawMessageSpadic(), CbmTrdRawMessageSpadic(), GetCriId(), and serialize().
|
private |
Definition at line 78 of file CbmTrdRawMessageSpadic.h.
Referenced by CbmTrdRawMessageSpadic(), CbmTrdRawMessageSpadic(), CbmTrdRawMessageSpadic(), GetCrobId(), and serialize().
|
private |
Definition at line 77 of file CbmTrdRawMessageSpadic.h.
Referenced by CbmTrdRawMessageSpadic(), CbmTrdRawMessageSpadic(), CbmTrdRawMessageSpadic(), GetElinkId(), and serialize().
|
private |
Fulltime in units of Clockcycles.
Definition at line 83 of file CbmTrdRawMessageSpadic.h.
Referenced by CbmTrdRawMessageSpadic(), CbmTrdRawMessageSpadic(), CbmTrdRawMessageSpadic(), GetFullTime(), GetTime(), serialize(), and SetTime().
|
private |
Definition at line 80 of file CbmTrdRawMessageSpadic.h.
Referenced by CbmTrdRawMessageSpadic(), CbmTrdRawMessageSpadic(), CbmTrdRawMessageSpadic(), GetHitType(), and serialize().
|
private |
Definition at line 82 of file CbmTrdRawMessageSpadic.h.
Referenced by CbmTrdRawMessageSpadic(), CbmTrdRawMessageSpadic(), CbmTrdRawMessageSpadic(), GetMultiHit(), and serialize().
|
private |
Definition at line 81 of file CbmTrdRawMessageSpadic.h.
Referenced by CbmTrdRawMessageSpadic(), CbmTrdRawMessageSpadic(), CbmTrdRawMessageSpadic(), 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(), CbmTrdRawMessageSpadic(), CbmTrdRawMessageSpadic(), GetMaxAdc(), GetSamples(), serialize(), and SetSample().