CbmRoot
Loading...
Searching...
No Matches
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 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
 

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 72 of file CbmTrdRawMessageSpadic.h.

Constructor & Destructor Documentation

◆ CbmTrdRawMessageSpadic() [1/3]

CbmTrdRawMessageSpadic::CbmTrdRawMessageSpadic ( )

Default Constructor

Definition at line 14 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 28 of file CbmTrdRawMessageSpadic.cxx.

References fSamples.

◆ CbmTrdRawMessageSpadic() [3/3]

CbmTrdRawMessageSpadic::CbmTrdRawMessageSpadic ( const CbmTrdRawMessageSpadic & old)

Copy Constructor

Definition at line 49 of file CbmTrdRawMessageSpadic.cxx.

◆ ~CbmTrdRawMessageSpadic()

CbmTrdRawMessageSpadic::~CbmTrdRawMessageSpadic ( )
virtual

Destructor

Definition at line 63 of file CbmTrdRawMessageSpadic.cxx.

Member Function Documentation

◆ GetBranchName()

static const char * CbmTrdRawMessageSpadic::GetBranchName ( )
inlinestatic

Definition at line 106 of file CbmTrdRawMessageSpadic.h.

◆ GetChannelId()

◆ GetCriId()

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

◆ GetCrobId()

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

◆ GetElinkId()

◆ GetFullTime()

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

◆ GetHitType()

◆ GetMaxAdc()

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().

◆ GetMultiHit()

bool CbmTrdRawMessageSpadic::GetMultiHit ( ) const
inline

◆ GetNrSamples()

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

◆ GetSamples()

◆ GetTime()

◆ IncNrSamples()

void CbmTrdRawMessageSpadic::IncNrSamples ( )
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().

◆ 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 141 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 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().

◆ SetTime()

void CbmTrdRawMessageSpadic::SetTime ( double setvalue)
inline

Set the full time in nanoseconds

Definition at line 125 of file CbmTrdRawMessageSpadic.h.

References fFullTime.

Referenced by CbmMcbm2018UnpackerAlgoTrdR::MakeDigi(), and CbmTrdUnpackAlgoLegacy2020R::makeDigi().

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 74 of file CbmTrdRawMessageSpadic.h.

Member Data Documentation

◆ fChannelID

std::uint8_t CbmTrdRawMessageSpadic::fChannelID
private

Definition at line 76 of file CbmTrdRawMessageSpadic.h.

Referenced by GetChannelId(), and serialize().

◆ fCriId

std::uint16_t CbmTrdRawMessageSpadic::fCriId
private

Definition at line 79 of file CbmTrdRawMessageSpadic.h.

Referenced by GetCriId(), and serialize().

◆ fCrobId

std::uint8_t CbmTrdRawMessageSpadic::fCrobId
private

Definition at line 78 of file CbmTrdRawMessageSpadic.h.

Referenced by GetCrobId(), and serialize().

◆ fElinkID

std::uint8_t CbmTrdRawMessageSpadic::fElinkID
private

Definition at line 77 of file CbmTrdRawMessageSpadic.h.

Referenced by GetElinkId(), and serialize().

◆ fFullTime

std::uint64_t CbmTrdRawMessageSpadic::fFullTime
private

Fulltime in units of Clockcycles.

Definition at line 83 of file CbmTrdRawMessageSpadic.h.

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

◆ fHitType

std::uint8_t CbmTrdRawMessageSpadic::fHitType
private

Definition at line 80 of file CbmTrdRawMessageSpadic.h.

Referenced by GetHitType(), and serialize().

◆ fMultiHit

bool CbmTrdRawMessageSpadic::fMultiHit
private

Definition at line 82 of file CbmTrdRawMessageSpadic.h.

Referenced by GetMultiHit(), and serialize().

◆ fNrSamples

std::uint8_t CbmTrdRawMessageSpadic::fNrSamples
private

Definition at line 81 of file CbmTrdRawMessageSpadic.h.

Referenced by GetNrSamples(), IncNrSamples(), 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 84 of file CbmTrdRawMessageSpadic.h.

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


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