BmnRoot 26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnMSCDigit< IntType > Class Template Reference

#include <BmnMSCDigit.h>

Inheritance diagram for BmnMSCDigit< IntType >:
Collaboration diagram for BmnMSCDigit< IntType >:

Public Member Functions

 BmnMSCDigit (UInt_t iSerial=0, UInt_t iSlot=0, std::array< IntType, MSC_N_COUNTERS > iValue={}, UInt_t evId=0, SysPoint time=SysPoint::min(), UChar_t ext_cond=0)
 Constructor.
 BmnMSCDigit (UInt_t iSerial, UInt_t iSlot, UInt_t evId, SysPoint time=SysPoint::min())
 Constructor.
UInt_t GetSerial () const
UInt_t GetSlot () const
std::array< IntType, MSC_N_COUNTERS > & GetValue ()
SysPoint GetTime () const
TTimeStamp GetTS () const
UInt_t GetLastEventId () const
bool IsSpill ()
bool IsBusy ()
virtual ~BmnMSCDigit ()
 Destructor.
Public Member Functions inherited from TObject
 TObject ()
 TObject (const TObject &object)
virtual ~TObject ()
void AbstractMethod (const char *method) const
virtual void AppendPad (Option_t *option="")
virtual void Browse (TBrowser *b)
ULong_t CheckedHash ()
virtual const char * ClassName () const
virtual void Clear (Option_t *="")
virtual TObject * Clone (const char *newname="") const
virtual Int_t Compare (const TObject *obj) const
virtual void Copy (TObject &object) const
virtual void Delete (Option_t *option="")
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual void Draw (Option_t *option="")
virtual void DrawClass () const
virtual TObject * DrawClone (Option_t *option="") const
virtual void Dump () const
virtual void Error (const char *method, const char *msgfmt,...) const
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
virtual void Fatal (const char *method, const char *msgfmt,...) const
virtual TObject * FindObject (const char *name) const
virtual TObject * FindObject (const TObject *obj) const
virtual Option_t * GetDrawOption () const
virtual const char * GetIconName () const
virtual const char * GetName () const
virtual char * GetObjectInfo (Int_t px, Int_t py) const
virtual Option_t * GetOption () const
virtual const char * GetTitle () const
virtual UInt_t GetUniqueID () const
virtual Bool_t HandleTimer (TTimer *timer)
virtual ULong_t Hash () const
Bool_t HasInconsistentHash () const
virtual void Info (const char *method, const char *msgfmt,...) const
virtual Bool_t InheritsFrom (const char *classname) const
virtual Bool_t InheritsFrom (const TClass *cl) const
virtual void Inspect () const
void InvertBit (UInt_t f)
virtual TClass * IsA () const
Bool_t IsDestructed () const
virtual Bool_t IsEqual (const TObject *obj) const
virtual Bool_t IsFolder () const
R__ALWAYS_INLINE Bool_t IsOnHeap () const
virtual Bool_t IsSortable () const
R__ALWAYS_INLINE Bool_t IsZombie () const
virtual void ls (Option_t *option="") const
void MayNotUse (const char *method) const
virtual Bool_t Notify ()
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
void operator delete (void *ptr)
void operator delete (void *ptr, void *vp)
void operator delete[] (void *ptr)
void operator delete[] (void *ptr, void *vp)
void * operator new (size_t sz)
void * operator new (size_t sz, void *vp)
void * operator new[] (size_t sz)
void * operator new[] (size_t sz, void *vp)
TObject & operator= (const TObject &rhs)
virtual void Paint (Option_t *option="")
virtual void Pop ()
virtual void Print (Option_t *option="") const
virtual Int_t Read (const char *name)
virtual void RecursiveRemove (TObject *obj)
void ResetBit (UInt_t f)
virtual void SaveAs (const char *filename="", Option_t *option="") const
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
void SetBit (UInt_t f)
void SetBit (UInt_t f, Bool_t set)
virtual void SetDrawOption (Option_t *option="")
virtual void SetUniqueID (UInt_t uid)
virtual void Streamer (TBuffer &)
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
virtual void SysError (const char *method, const char *msgfmt,...) const
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
Int_t TestBits (UInt_t f) const
virtual void UseCurrentStyle ()
virtual void Warning (const char *method, const char *msgfmt,...) const
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const

Static Public Member Functions

static constexpr const UInt_t GetNVals ()
Static Public Member Functions inherited from TObject
static TClass * Class ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()
static Longptr_t GetDtorOnly ()
static Bool_t GetObjectStat ()
static void SetDtorOnly (void *obj)
static void SetObjectStat (Bool_t stat)

Private Attributes

UInt_t fSerial
UInt_t fSlot
std::array< IntType, NVals > fValue
TTimeStamp fTS
UInt_t fEventId
UChar_t fExtCond

Static Private Attributes

static const UInt_t NVals = MSC_N_COUNTERS

Additional Inherited Members

Public Types inherited from TObject
enum  EDeprecatedStatusBits
enum  EStatusBits
Public Attributes inherited from TObject
 kIsOnHeap
 kNotDeleted
 kZombie
 kInconsistent
 kBitMask
 kSingleKey
 kOverwrite
 kWriteDelete
 kObjInCanvas
 kCanDelete
 kMustCleanup
 kIsReferenced
 kHasUUID
 kCannotPick
 kNoContextMenu
 kInvalidObject
Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
void MakeZombie ()
Static Protected Member Functions inherited from TObject
static void SavePrimitiveConstructor (std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
static void SavePrimitiveDraw (std::ostream &out, const char *variable_name, Option_t *option=nullptr)
static TString SavePrimitiveVector (std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Bool_t empty_line=kFALSE)
Protected Attributes inherited from TObject
 kOnlyPrepStep

Detailed Description

template<typename IntType = UChar_t>
class BmnMSCDigit< IntType >

Definition at line 16 of file BmnMSCDigit.h.

Constructor & Destructor Documentation

◆ BmnMSCDigit() [1/2]

template<typename IntType = UChar_t>
BmnMSCDigit< IntType >::BmnMSCDigit ( UInt_t iSerial = 0,
UInt_t iSlot = 0,
std::array< IntType, MSC_N_COUNTERS > iValue = {},
UInt_t evId = 0,
SysPoint time = SysPoint::min(),
UChar_t ext_cond = 0 )
inline
Parameters
[in]iSerial: crate serial
[in]iSlot: crate slot
[in]iValue: counters array ptr
[in]evId: spill's last eventID in case of EndOfSpill data, or eventID in case of normal spill data
[in]time: timestamp for normal spill data
[in]ext_cond: external conditions (MSC_EC_SPILL and MSC_EC_BUSY bits)

Definition at line 28 of file BmnMSCDigit.h.

◆ BmnMSCDigit() [2/2]

template<typename IntType = UChar_t>
BmnMSCDigit< IntType >::BmnMSCDigit ( UInt_t iSerial,
UInt_t iSlot,
UInt_t evId,
SysPoint time = SysPoint::min() )
inline
Parameters
[in]iSerial: crate serial
[in]iSlot: crate slot
[in]evId: spill's last eventID in case of EndOfSpill data, or eventID in case of normal spill data
[in]time: timestamp for normal spill data

Definition at line 53 of file BmnMSCDigit.h.

References fEventId, fExtCond, fSerial, fSlot, and fTS.

◆ ~BmnMSCDigit()

template<typename IntType = UChar_t>
virtual BmnMSCDigit< IntType >::~BmnMSCDigit ( )
inlinevirtual

Definition at line 79 of file BmnMSCDigit.h.

Member Function Documentation

◆ GetLastEventId()

template<typename IntType = UChar_t>
UInt_t BmnMSCDigit< IntType >::GetLastEventId ( ) const
inline

Definition at line 71 of file BmnMSCDigit.h.

References fEventId.

Referenced by BmnMscRaw2Digit::SumEvent7().

Here is the caller graph for this function:

◆ GetNVals()

template<typename IntType = UChar_t>
constexpr const UInt_t BmnMSCDigit< IntType >::GetNVals ( )
inlinestaticconstexpr

Definition at line 77 of file BmnMSCDigit.h.

References NVals.

◆ GetSerial()

template<typename IntType = UChar_t>
UInt_t BmnMSCDigit< IntType >::GetSerial ( ) const
inline

Definition at line 61 of file BmnMSCDigit.h.

References fSerial.

Referenced by BmnMetadataDecoder::ProcessSpillTree(), and BmnMscRaw2Digit::SumEvent7().

Here is the caller graph for this function:

◆ GetSlot()

template<typename IntType = UChar_t>
UInt_t BmnMSCDigit< IntType >::GetSlot ( ) const
inline

Definition at line 63 of file BmnMSCDigit.h.

References fSlot.

◆ GetTime()

template<typename IntType = UChar_t>
SysPoint BmnMSCDigit< IntType >::GetTime ( ) const
inline

Definition at line 67 of file BmnMSCDigit.h.

References fTS, and BmnFunctionSet::TimeStamp2TP().

Referenced by BmnMetadataDecoder::ProcessSpillTree().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTS()

template<typename IntType = UChar_t>
TTimeStamp BmnMSCDigit< IntType >::GetTS ( ) const
inline

Definition at line 69 of file BmnMSCDigit.h.

References fTS.

◆ GetValue()

template<typename IntType = UChar_t>
std::array< IntType, MSC_N_COUNTERS > & BmnMSCDigit< IntType >::GetValue ( )
inline

Definition at line 65 of file BmnMSCDigit.h.

References fValue.

Referenced by BmnConverterThread::FillMSC(), BmnRawSource::FillMSC(), BmnMetadataDecoder::ProcessSpillTree(), and BmnMscRaw2Digit::SumEvent7().

Here is the caller graph for this function:

◆ IsBusy()

template<typename IntType = UChar_t>
bool BmnMSCDigit< IntType >::IsBusy ( )
inline

Definition at line 75 of file BmnMSCDigit.h.

References fExtCond, and MSC_EC_BUSY.

Referenced by BmnMetadataDecoder::ProcessSpillTree().

Here is the caller graph for this function:

◆ IsSpill()

template<typename IntType = UChar_t>
bool BmnMSCDigit< IntType >::IsSpill ( )
inline

Definition at line 73 of file BmnMSCDigit.h.

References fExtCond, and MSC_EC_SPILL.

Referenced by BmnMetadataDecoder::ProcessSpillTree().

Here is the caller graph for this function:

Member Data Documentation

◆ fEventId

template<typename IntType = UChar_t>
UInt_t BmnMSCDigit< IntType >::fEventId
private

Definition at line 88 of file BmnMSCDigit.h.

Referenced by BmnMSCDigit(), and GetLastEventId().

◆ fExtCond

template<typename IntType = UChar_t>
UChar_t BmnMSCDigit< IntType >::fExtCond
private

Definition at line 89 of file BmnMSCDigit.h.

Referenced by BmnMSCDigit(), IsBusy(), and IsSpill().

◆ fSerial

template<typename IntType = UChar_t>
UInt_t BmnMSCDigit< IntType >::fSerial
private

Definition at line 83 of file BmnMSCDigit.h.

Referenced by BmnMSCDigit(), and GetSerial().

◆ fSlot

template<typename IntType = UChar_t>
UInt_t BmnMSCDigit< IntType >::fSlot
private

Definition at line 84 of file BmnMSCDigit.h.

Referenced by BmnMSCDigit(), and GetSlot().

◆ fTS

template<typename IntType = UChar_t>
TTimeStamp BmnMSCDigit< IntType >::fTS
private

Definition at line 87 of file BmnMSCDigit.h.

Referenced by BmnMSCDigit(), GetTime(), and GetTS().

◆ fValue

template<typename IntType = UChar_t>
std::array<IntType, NVals> BmnMSCDigit< IntType >::fValue
private

Definition at line 85 of file BmnMSCDigit.h.

Referenced by GetValue().

◆ NVals

template<typename IntType = UChar_t>
const UInt_t BmnMSCDigit< IntType >::NVals = MSC_N_COUNTERS
staticprivate

Definition at line 82 of file BmnMSCDigit.h.

Referenced by GetNVals().


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