Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
Decoder::GenScaler Class Reference

Definition at line 16 of file GenScaler.h.

Public Member Functions

virtual void Clear (Option_t *opt="")
 
void DebugPrint (std::ofstream *file=nullptr) const
 
virtual Int_t Decode (const UInt_t *evbuffer)
 
virtual void DoPrint () const
 
void GenInit ()
 
 GenScaler ()
 
 GenScaler (UInt_t crate, UInt_t slot)
 
virtual UInt_t GetData (UInt_t chan) const
 
Double_t GetRate (UInt_t chan) const
 
Double_t GetTimeSincePrev () const
 
Bool_t IsDecoded () const
 
virtual Bool_t IsSlot (UInt_t rdata)
 
void LoadNormScaler (GenScaler *scal)
 
virtual UInt_t LoadSlot (THaSlotData *sldat, const UInt_t *evbuffer, const UInt_t *pstop)
 
virtual UInt_t LoadSlot (THaSlotData *sldat, const UInt_t *evbuffer, UInt_t pos, UInt_t len)
 
virtual void SetBank (Int_t bank)
 
Int_t SetClock (Double_t deltaT, UInt_t clockchan=0, Double_t clockrate=0)
 
- Public Member Functions inherited from Decoder::VmeModule
virtual UInt_t LoadSlot (THaSlotData *sldat, const UInt_t *evbuffer, const UInt_t *pstop)=0
 
virtual UInt_t LoadSlot (THaSlotData *sldat, const UInt_t *evbuffer, UInt_t pos, UInt_t len)
 
 VmeModule ()=default
 
 VmeModule (UInt_t crate, UInt_t slot)
 
virtual ~VmeModule ()=default
 
- Public Member Functions inherited from Decoder::Module
Bool_t BlockIsDone () const
 
UInt_t GetBlockSize () const
 
virtual UInt_t GetCrate () const
 
virtual UInt_t GetData (Decoder::EModuleType, UInt_t, UInt_t) const
 
virtual UInt_t GetData (Decoder::EModuleType, UInt_t, UInt_t, UInt_t) const
 
virtual UInt_t GetData (UInt_t, UInt_t) const
 
virtual UInt_t GetData (UInt_t, UInt_t, UInt_t) const
 
virtual Int_t GetMode () const
 
virtual UInt_t GetNumChan () const
 
virtual UInt_t GetNumEvents () const
 
virtual UInt_t GetNumEvents (Decoder::EModuleType, UInt_t) const
 
virtual UInt_t GetNumEvents (UInt_t) const
 
virtual UInt_t GetNumSamples (UInt_t) const
 
virtual UInt_t GetOpt (UInt_t) const
 
virtual UInt_t GetOpt (UInt_t, UInt_t) const
 
virtual UInt_t GetSlot () const
 
virtual Bool_t HasCapability (Decoder::EModuleType)
 
virtual void Init ()
 
virtual void Init (const char *configstr)
 
Bool_t IsMultiBlockMode () const
 
virtual Bool_t IsMultiFunction ()
 
virtual UInt_t LoadBank (THaSlotData *sldat, const UInt_t *evbuffer, UInt_t pos, UInt_t len)
 
virtual UInt_t LoadBlock (THaSlotData *sldat, const UInt_t *evbuffer, const UInt_t *pstop)
 
virtual UInt_t LoadNextEvBuffer (THaSlotData *)
 
 Module ()
 
 Module (UInt_t crate, UInt_t slot)
 
virtual void SetDebugFile (std::ofstream *file)
 
virtual void SetFirmware (Int_t fw)
 
virtual void SetHeader (UInt_t header, UInt_t mask)
 
virtual void SetMode (Int_t mode)
 
virtual void SetSlot (UInt_t crate, UInt_t slot, UInt_t header=0, UInt_t mask=0, Int_t modelnum=0)
 
virtual ~Module ()=default
 
- Public Member Functions inherited from TNamed
void Clear (Option_t *option="") override
 
TObjectClone (const char *newname="") const override
 
Int_t Compare (const TObject *obj) const override
 
void Copy (TObject &named) const override
 
virtual void FillBuffer (char *&buffer)
 
const char * GetName () const override
 
const char * GetTitle () const override
 
ULong_t Hash () const override
 
TClassIsA () const override
 
Bool_t IsSortable () const override
 
void ls (Option_t *option="") const override
 
TNamedoperator= (const TNamed &rhs)
 
void Print (Option_t *option="") const override
 
virtual void SetName (const char *name)
 
virtual void SetNameTitle (const char *name, const char *title)
 
virtual void SetTitle (const char *title="")
 
virtual Int_t Sizeof () const
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TNamed &named)
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 
- Public Member Functions inherited from 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 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 TObjectDrawClone (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 TObjectFindObject (const char *name) const
 
virtual TObjectFindObject (const TObject *obj) const
 
virtual Option_tGetDrawOption () const
 
virtual const char * GetIconName () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 
virtual Bool_t HandleTimer (TTimer *timer)
 
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)
 
Bool_t IsDestructed () const
 
virtual Bool_t IsEqual (const TObject *obj) const
 
virtual Bool_t IsFolder () const
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE Bool_t IsZombie () 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)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 
virtual void Paint (Option_t *option="")
 
virtual void Pop ()
 
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)
 
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
 
 TObject ()
 
 TObject (const TObject &object)
 
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
 
virtual ~TObject ()
 

Protected Member Functions

Bool_t checkchan (UInt_t chan) const
 
void LoadRates ()
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 
void MakeZombie ()
 

Protected Attributes

UInt_t fClockChan
 
Double_t fClockRate
 
std::vector< UInt_tfDataArray
 
Double_t fDeltaT
 
Bool_t fFirstTime
 
Bool_t fHasClock
 
Bool_t firsttime
 
Bool_t firstwarn
 
Bool_t fIsDecoded
 
GenScalerfNormScaler
 
UInt_t fNumChanMask
 
UInt_t fNumChanShift
 
std::vector< UInt_tfPrevData
 
std::vector< Double_tfRate
 
- Protected Attributes inherited from Decoder::Module
UInt_t block_size
 
Int_t fBank
 
Bool_t fBlockIsDone
 
UInt_t fCrate
 
std::vector< UInt_tfData
 
Int_t fDebug
 
std::ofstream * fDebugFile
 
TObjectfExtra
 
Int_t fFirmwareVers
 
UInt_t fHeader
 
UInt_t fHeaderMask
 
Int_t fMode
 
Int_t fModelNum
 
Bool_t fMultiBlockMode
 
UInt_t fNumChan
 
UInt_t fSlot
 
UInt_t fWdcntMask
 
UInt_t fWdcntShift
 
UInt_t fWordsExpect
 
UInt_t fWordsSeen
 
Bool_t IsInit
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TObject
 kOnlyPrepStep
 

Static Protected Attributes

static const UInt_t fgNumChanDefault =32
 

Additional Inherited Members

- Public Types inherited from Decoder::Module
using TypeIter_t = TypeSet_t::iterator
 
using TypeSet_t = std::set< ModuleType >
 
- Public Types inherited from TObject
enum  EDeprecatedStatusBits
 
enum  EStatusBits
 
- Static Public Member Functions inherited from Decoder::Module
static TypeIter_t DoRegister (const ModuleType &registration_info)
 
static TypeSet_tfgModuleTypes ()
 
- Static Public Member Functions inherited from TNamed
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
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)
 
- Public Attributes inherited from TObject
 kBitMask
 
 kCanDelete
 
 kCannotPick
 
 kHasUUID
 
 kInconsistent
 
 kInvalidObject
 
 kIsOnHeap
 
 kIsReferenced
 
 kMustCleanup
 
 kNoContextMenu
 
 kNotDeleted
 
 kObjInCanvas
 
 kOverwrite
 
 kSingleKey
 
 kWriteDelete
 
 kZombie
 
- Static Protected Member Functions inherited from Decoder::Module
static void ParseConfigStr (const char *configstr, const std::vector< ConfigStrReq > &req)
 

#include <GenScaler.h>

Inheritance diagram for Decoder::GenScaler:

Constructor & Destructor Documentation

◆ GenScaler() [1/2]

Decoder::GenScaler::GenScaler ( )
inline

Definition at line 20 of file GenScaler.h.

◆ GenScaler() [2/2]

Decoder::GenScaler::GenScaler ( UInt_t  crate,
UInt_t  slot 
)

Definition at line 20 of file GenScaler.cxx.

Member Function Documentation

◆ checkchan()

Bool_t Decoder::GenScaler::checkchan ( UInt_t  chan) const
inlineprotected

Definition at line 54 of file GenScaler.h.

◆ Clear()

void Decoder::GenScaler::Clear ( Option_t opt = "")
virtual

Reimplemented from Decoder::Module.

Definition at line 31 of file GenScaler.cxx.

◆ DebugPrint()

void Decoder::GenScaler::DebugPrint ( std::ofstream *  file = nullptr) const

Definition at line 216 of file GenScaler.cxx.

◆ Decode()

Int_t Decoder::GenScaler::Decode ( const UInt_t evbuffer)
virtual

Implements Decoder::Module.

Definition at line 115 of file GenScaler.cxx.

◆ DoPrint()

void Decoder::GenScaler::DoPrint ( ) const
virtual

Reimplemented from Decoder::Module.

Definition at line 205 of file GenScaler.cxx.

◆ GenInit()

void Decoder::GenScaler::GenInit ( )

Definition at line 37 of file GenScaler.cxx.

◆ GetData()

UInt_t Decoder::GenScaler::GetData ( UInt_t  chan) const
virtual

Reimplemented from Decoder::Module.

Definition at line 189 of file GenScaler.cxx.

◆ GetRate()

Double_t Decoder::GenScaler::GetRate ( UInt_t  chan) const

Definition at line 197 of file GenScaler.cxx.

◆ GetTimeSincePrev()

Double_t Decoder::GenScaler::GetTimeSincePrev ( ) const

Definition at line 139 of file GenScaler.cxx.

◆ IsDecoded()

Bool_t Decoder::GenScaler::IsDecoded ( ) const
inline

Definition at line 39 of file GenScaler.h.

◆ IsSlot()

Bool_t Decoder::GenScaler::IsSlot ( UInt_t  rdata)
virtual

Check if this word is the header for the slot we are looking for Get the number of channels in this module from the header and save so that bank version of LoadSlot can skip over this module if it is not the correct one.

Reimplemented from Decoder::VmeModule.

Definition at line 231 of file GenScaler.cxx.

◆ LoadNormScaler()

void Decoder::GenScaler::LoadNormScaler ( GenScaler scal)

Definition at line 102 of file GenScaler.cxx.

◆ LoadRates()

void Decoder::GenScaler::LoadRates ( )
protected

Definition at line 169 of file GenScaler.cxx.

◆ LoadSlot() [1/2]

UInt_t Decoder::GenScaler::LoadSlot ( THaSlotData sldat,
const UInt_t evbuffer,
const UInt_t pstop 
)
virtual

Reimplemented from Decoder::VmeModule.

Definition at line 265 of file GenScaler.cxx.

◆ LoadSlot() [2/2]

UInt_t Decoder::GenScaler::LoadSlot ( THaSlotData sldat,
const UInt_t evbuffer,
UInt_t  pos,
UInt_t  len 
)
virtual

Fill data structures of this class, utilizing bank structure Read until out of data or until decode says that the slot is finished len = ndata in event, pos = word number for block header in event

Reimplemented from Decoder::Module.

Definition at line 286 of file GenScaler.cxx.

◆ SetBank()

void Decoder::GenScaler::SetBank ( Int_t  bank)
virtual

Define scaler header format for modules in banks

Reimplemented from Decoder::Module.

Definition at line 56 of file GenScaler.cxx.

◆ SetClock()

Int_t Decoder::GenScaler::SetClock ( Double_t  deltaT,
UInt_t  clockchan = 0,
Double_t  clockrate = 0 
)

Definition at line 65 of file GenScaler.cxx.

Member Data Documentation

◆ fClockChan

UInt_t Decoder::GenScaler::fClockChan
protected

Definition at line 59 of file GenScaler.h.

◆ fClockRate

Double_t Decoder::GenScaler::fClockRate
protected

Definition at line 61 of file GenScaler.h.

◆ fDataArray

std::vector<UInt_t> Decoder::GenScaler::fDataArray
protected

Definition at line 57 of file GenScaler.h.

◆ fDeltaT

Double_t Decoder::GenScaler::fDeltaT
protected

Definition at line 56 of file GenScaler.h.

◆ fFirstTime

Bool_t Decoder::GenScaler::fFirstTime
protected

Definition at line 55 of file GenScaler.h.

◆ fgNumChanDefault

const UInt_t Decoder::GenScaler::fgNumChanDefault =32
staticprotected

Definition at line 64 of file GenScaler.h.

◆ fHasClock

Bool_t Decoder::GenScaler::fHasClock
protected

Definition at line 60 of file GenScaler.h.

◆ firsttime

Bool_t Decoder::GenScaler::firsttime
protected

Definition at line 63 of file GenScaler.h.

◆ firstwarn

Bool_t Decoder::GenScaler::firstwarn
protected

Definition at line 63 of file GenScaler.h.

◆ fIsDecoded

Bool_t Decoder::GenScaler::fIsDecoded
protected

Definition at line 55 of file GenScaler.h.

◆ fNormScaler

GenScaler* Decoder::GenScaler::fNormScaler
protected

Definition at line 62 of file GenScaler.h.

◆ fNumChanMask

UInt_t Decoder::GenScaler::fNumChanMask
protected

Definition at line 59 of file GenScaler.h.

◆ fNumChanShift

UInt_t Decoder::GenScaler::fNumChanShift
protected

Definition at line 59 of file GenScaler.h.

◆ fPrevData

std::vector<UInt_t> Decoder::GenScaler::fPrevData
protected

Definition at line 57 of file GenScaler.h.

◆ fRate

std::vector<Double_t> Decoder::GenScaler::fRate
protected

Definition at line 58 of file GenScaler.h.

Collaboration diagram for Decoder::GenScaler:

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