Hall A ROOT/C++ Analyzer (podd)
THaEvData Class Referenceabstract

Classes

class  RocDat_t
 

Public Types

enum  { HED_OK = 0, HED_WARN = -63, HED_ERR = -127, HED_FATAL = -255 }
 

Public Member Functions

 THaEvData ()
 
virtual ~THaEvData ()
 
virtual Int_t LoadEvent (const UInt_t *evbuffer)=0
 
const UInt_t * GetRawDataBuffer () const
 
virtual Bool_t DataCached ()
 
virtual Int_t Init ()
 
void SetEpicsEvtType (UInt_t itype)
 
void SetEvTime (ULong64_t evtime)
 
UInt_t GetEvType () const
 
UInt_t GetEvLength () const
 
UInt_t GetEvNum () const
 
UInt_t GetRunNum () const
 
Int_t GetDataVersion () const
 
ULong64_t GetRunTime () const
 
UInt_t GetRunType () const
 
UInt_t GetRocLength (UInt_t crate) const
 
Bool_t IsPhysicsTrigger () const
 
Bool_t IsScalerEvent () const
 
Bool_t IsPrestartEvent () const
 
Bool_t IsEpicsEvent () const
 
Bool_t IsPrescaleEvent () const
 
Bool_t IsSpecialEvent () const
 
UInt_t GetNumRaw (UInt_t crate, UInt_t slot) const
 
UInt_t GetRawData (UInt_t crate, UInt_t slot, UInt_t hit) const
 
UInt_t GetRawData (UInt_t crate, UInt_t slot, UInt_t chan, UInt_t hit) const
 
UInt_t GetRawData (UInt_t i) const
 
UInt_t GetRawData (UInt_t crate, UInt_t i) const
 
const UInt_t * GetRawDataBuffer (UInt_t crate) const
 
UInt_t GetNumHits (UInt_t crate, UInt_t slot, UInt_t chan) const
 
UInt_t GetData (UInt_t crate, UInt_t slot, UInt_t chan, UInt_t hit) const
 
Bool_t InCrate (UInt_t crate, UInt_t i) const
 
UInt_t GetNumChan (UInt_t crate, UInt_t slot) const
 
UInt_t GetNextChan (UInt_t crate, UInt_t slot, UInt_t index) const
 
const char * DevType (UInt_t crate, UInt_t slot) const
 
Bool_t HasCapability (Decoder::EModuleType type, UInt_t crate, UInt_t slot) const
 
Bool_t IsMultifunction (UInt_t crate, UInt_t slot) const
 
UInt_t GetNumEvents (Decoder::EModuleType type, UInt_t crate, UInt_t slot, UInt_t chan) const
 
UInt_t GetData (Decoder::EModuleType type, UInt_t crate, UInt_t slot, UInt_t chan, UInt_t hit) const
 
UInt_t GetLEbit (UInt_t crate, UInt_t slot, UInt_t chan, UInt_t hit) const
 
UInt_t GetOpt (UInt_t crate, UInt_t slot, UInt_t chan, UInt_t hit) const
 
virtual ULong64_t GetEvTime () const
 
virtual Int_t GetHelicity () const
 
virtual Int_t GetHelicity (const TString &) const
 
virtual UInt_t GetPrescaleFactor (UInt_t) const
 
virtual UInt_t GetScaler (UInt_t, UInt_t, UInt_t) const
 
virtual UInt_t GetScaler (const TString &, UInt_t, UInt_t) const
 
virtual void SetDebugFile (std::ofstream *file)
 
virtual Decoder::ModuleGetModule (UInt_t roc, UInt_t slot) const
 
virtual double GetEpicsData (const char *tag, UInt_t event=0) const
 
virtual double GetEpicsTime (const char *tag, UInt_t event=0) const
 
virtual TString GetEpicsString (const char *tag, UInt_t event=0) const
 
virtual Bool_t IsLoadedEpics (const char *) const
 
UInt_t GetNslots () const
 
virtual void PrintSlotData (UInt_t crate, UInt_t slot) const
 
virtual void PrintOut () const
 
virtual void SetRunTime (ULong64_t tloc)
 
virtual Int_t SetDataVersion (Int_t version)
 
void EnableBenchmarks (Bool_t enable=true)
 
void EnableHelicity (Bool_t enable=true)
 
Bool_t HelicityEnabled () const
 
void EnableScalers (Bool_t enable=true)
 
Bool_t ScalersEnabled () const
 
void SetOrigPS (Int_t event_type)
 
TString GetOrigPS () const
 
UInt_t GetInstance () const
 
Decoder::THaCrateMapGetCrateMap () const
 
void SetVerbose (Int_t level)
 
void SetDebug (Int_t level)
 
void SetCrateMapName (const char *name)
 

Static Public Member Functions

static UInt_t GetInstances ()
 
static void hexdump (const char *cbuff, size_t len)
 
static void SetDefaultCrateMapName (const char *name)
 

Protected Types

enum  { kHelicityEnabled = BIT(14), kScalersEnabled = BIT(15) }
 

Protected Member Functions

virtual Int_t init_cmap ()
 
virtual Int_t init_slotdata ()
 
virtual void makeidx (UInt_t crate, UInt_t slot)
 
virtual void FindUsedSlots ()
 
UInt_t idx (UInt_t crate, UInt_t slot) const
 
UInt_t idx (UInt_t crate, UInt_t slot)
 
Bool_t GoodIndex (UInt_t crate, UInt_t slot) const
 

Static Protected Member Functions

static Bool_t GoodCrateSlot (UInt_t crate, UInt_t slot)
 

Protected Attributes

std::unique_ptr< Decoder::THaCrateMapfMap
 
std::array< RocDat_t, Decoder::MAXROC > rocdat
 
std::vector< std::unique_ptr< Decoder::THaSlotData > > crateslot
 
Bool_t first_decode
 
Bool_t fTrigSupPS
 
Int_t fDataVersion
 
UInt_t fEpicsEvtType
 
const UInt_t * buffer
 
std::ofstream * fDebugFile
 
UInt_t event_type
 
UInt_t event_length
 
UInt_t event_num
 
UInt_t run_num
 
Int_t evscaler
 
UInt_t bank_tag
 
UInt_t data_type
 
UInt_t block_size
 
UInt_t tbLen
 
UInt_t run_type
 
ULong64_t fRunTime
 
ULong64_t evt_time
 
UInt_t recent_event
 
Bool_t buffmode
 
Bool_t synchmiss
 
Bool_t synchextra
 
std::vector< UShort_t > fSlotUsed
 
std::vector< UShort_t > fSlotClear
 
Bool_t fDoBench
 
std::unique_ptr< THaBenchmarkfBench
 
UInt_t fInstance
 
TString fCrateMapName
 
Bool_t fNeedInit
 
Int_t fDebug
 
TBits fMsgPrinted
 
TObject * fExtra
 

Static Protected Attributes

static TBits fgInstances
 
static const Double_t kBig = 1e38
 
static Bool_t fgAllowUnimpl = false
 
static TString fgDefaultCrateMapName = "cratemap"
 

#include <THaEvData.h>

Inheritance diagram for THaEvData:

Member Enumeration Documentation

anonymous enum
Enumerator
HED_OK 
HED_WARN 
HED_ERR 
HED_FATAL 
anonymous enum
protected
Enumerator
kHelicityEnabled 
kScalersEnabled 

Constructor & Destructor Documentation

THaEvData::THaEvData ( )
THaEvData::~THaEvData ( )
virtual

Member Function Documentation

virtual Bool_t THaEvData::DataCached ( )
inlinevirtual

Reimplemented in Decoder::CodaDecoder.

const char * THaEvData::DevType ( UInt_t  crate,
UInt_t  slot 
) const
void THaEvData::EnableBenchmarks ( Bool_t  enable = true)
void THaEvData::EnableHelicity ( Bool_t  enable = true)
void THaEvData::EnableScalers ( Bool_t  enable = true)
void THaEvData::FindUsedSlots ( )
protectedvirtual
Decoder::THaCrateMap* THaEvData::GetCrateMap ( ) const
inline
UInt_t THaEvData::GetData ( UInt_t  crate,
UInt_t  slot,
UInt_t  chan,
UInt_t  hit 
) const
inline
UInt_t THaEvData::GetData ( Decoder::EModuleType  type,
UInt_t  crate,
UInt_t  slot,
UInt_t  chan,
UInt_t  hit 
) const
inline
Int_t THaEvData::GetDataVersion ( ) const
inline
Double_t THaEvData::GetEpicsData ( const char *  tag,
UInt_t  event = 0 
) const
inlinevirtual
TString THaEvData::GetEpicsString ( const char *  tag,
UInt_t  event = 0 
) const
inlinevirtual
Double_t THaEvData::GetEpicsTime ( const char *  tag,
UInt_t  event = 0 
) const
inlinevirtual
UInt_t THaEvData::GetEvLength ( ) const
inline
UInt_t THaEvData::GetEvNum ( ) const
inline
virtual ULong64_t THaEvData::GetEvTime ( ) const
inlinevirtual
UInt_t THaEvData::GetEvType ( ) const
inline
virtual Int_t THaEvData::GetHelicity ( ) const
inlinevirtual
virtual Int_t THaEvData::GetHelicity ( const TString &  ) const
inlinevirtual
UInt_t THaEvData::GetInstance ( ) const
inline
static UInt_t THaEvData::GetInstances ( )
inlinestatic
UInt_t THaEvData::GetLEbit ( UInt_t  crate,
UInt_t  slot,
UInt_t  chan,
UInt_t  hit 
) const
inline
Module * THaEvData::GetModule ( UInt_t  roc,
UInt_t  slot 
) const
virtual
UInt_t THaEvData::GetNextChan ( UInt_t  crate,
UInt_t  slot,
UInt_t  index 
) const
inline
UInt_t THaEvData::GetNslots ( ) const
inline
UInt_t THaEvData::GetNumChan ( UInt_t  crate,
UInt_t  slot 
) const
inline
UInt_t THaEvData::GetNumEvents ( Decoder::EModuleType  type,
UInt_t  crate,
UInt_t  slot,
UInt_t  chan 
) const
inline
UInt_t THaEvData::GetNumHits ( UInt_t  crate,
UInt_t  slot,
UInt_t  chan 
) const
inline
UInt_t THaEvData::GetNumRaw ( UInt_t  crate,
UInt_t  slot 
) const
inline
UInt_t THaEvData::GetOpt ( UInt_t  crate,
UInt_t  slot,
UInt_t  chan,
UInt_t  hit 
) const
inline
TString THaEvData::GetOrigPS ( ) const
virtual UInt_t THaEvData::GetPrescaleFactor ( UInt_t  ) const
inlinevirtual

Reimplemented in Decoder::CodaDecoder.

UInt_t THaEvData::GetRawData ( UInt_t  crate,
UInt_t  slot,
UInt_t  hit 
) const
inline
UInt_t THaEvData::GetRawData ( UInt_t  crate,
UInt_t  slot,
UInt_t  chan,
UInt_t  hit 
) const
inline
UInt_t THaEvData::GetRawData ( UInt_t  i) const
inline
UInt_t THaEvData::GetRawData ( UInt_t  crate,
UInt_t  i 
) const
inline
const UInt_t* THaEvData::GetRawDataBuffer ( ) const
inline
const UInt_t * THaEvData::GetRawDataBuffer ( UInt_t  crate) const
inline
UInt_t THaEvData::GetRocLength ( UInt_t  crate) const
inline
UInt_t THaEvData::GetRunNum ( ) const
inline
ULong64_t THaEvData::GetRunTime ( ) const
inline
UInt_t THaEvData::GetRunType ( ) const
inline
virtual UInt_t THaEvData::GetScaler ( UInt_t  ,
UInt_t  ,
UInt_t   
) const
inlinevirtual
virtual UInt_t THaEvData::GetScaler ( const TString &  ,
UInt_t  ,
UInt_t   
) const
inlinevirtual
Bool_t THaEvData::GoodCrateSlot ( UInt_t  crate,
UInt_t  slot 
)
inlinestaticprotected
Bool_t THaEvData::GoodIndex ( UInt_t  crate,
UInt_t  slot 
) const
inlineprotected
Bool_t THaEvData::HasCapability ( Decoder::EModuleType  type,
UInt_t  crate,
UInt_t  slot 
) const
inline
Bool_t THaEvData::HelicityEnabled ( ) const
inline
void THaEvData::hexdump ( const char *  cbuff,
size_t  len 
)
static
UInt_t THaEvData::idx ( UInt_t  crate,
UInt_t  slot 
) const
inlineprotected
UInt_t THaEvData::idx ( UInt_t  crate,
UInt_t  slot 
)
inlineprotected
Bool_t THaEvData::InCrate ( UInt_t  crate,
UInt_t  i 
) const
inline
Int_t THaEvData::Init ( )
virtual

Reimplemented in Decoder::CodaDecoder.

int THaEvData::init_cmap ( )
protectedvirtual
int THaEvData::init_slotdata ( )
protectedvirtual

Reimplemented in Decoder::CodaDecoder.

Bool_t THaEvData::IsEpicsEvent ( ) const
inline
virtual Bool_t THaEvData::IsLoadedEpics ( const char *  ) const
inlinevirtual
Bool_t THaEvData::IsMultifunction ( UInt_t  crate,
UInt_t  slot 
) const
inline
Bool_t THaEvData::IsPhysicsTrigger ( ) const
inline
Bool_t THaEvData::IsPrescaleEvent ( ) const
inline
Bool_t THaEvData::IsPrestartEvent ( ) const
inline
Bool_t THaEvData::IsScalerEvent ( ) const
inline
Bool_t THaEvData::IsSpecialEvent ( ) const
inline
virtual Int_t THaEvData::LoadEvent ( const UInt_t *  evbuffer)
pure virtual

Implemented in Decoder::CodaDecoder.

void THaEvData::makeidx ( UInt_t  crate,
UInt_t  slot 
)
protectedvirtual
void THaEvData::PrintOut ( ) const
virtual
void THaEvData::PrintSlotData ( UInt_t  crate,
UInt_t  slot 
) const
virtual
Bool_t THaEvData::ScalersEnabled ( ) const
inline
void THaEvData::SetCrateMapName ( const char *  name)
Int_t THaEvData::SetDataVersion ( Int_t  version)
virtual

Reimplemented in Decoder::CodaDecoder.

void THaEvData::SetDebug ( Int_t  level)
virtual void THaEvData::SetDebugFile ( std::ofstream *  file)
inlinevirtual
void THaEvData::SetDefaultCrateMapName ( const char *  name)
static
void THaEvData::SetEpicsEvtType ( UInt_t  itype)
inline
void THaEvData::SetEvTime ( ULong64_t  evtime)
inline
void THaEvData::SetOrigPS ( Int_t  event_type)
void THaEvData::SetRunTime ( ULong64_t  tloc)
virtual

Reimplemented in Decoder::CodaDecoder.

void THaEvData::SetVerbose ( Int_t  level)

Member Data Documentation

UInt_t THaEvData::bank_tag
protected
UInt_t THaEvData::block_size
protected
const UInt_t* THaEvData::buffer
protected
Bool_t THaEvData::buffmode
protected
std::vector<std::unique_ptr<Decoder::THaSlotData> > THaEvData::crateslot
protected
UInt_t THaEvData::data_type
protected
UInt_t THaEvData::event_length
protected
UInt_t THaEvData::event_num
protected
UInt_t THaEvData::event_type
protected
Int_t THaEvData::evscaler
protected
ULong64_t THaEvData::evt_time
protected
std::unique_ptr<THaBenchmark> THaEvData::fBench
protected
TString THaEvData::fCrateMapName
protected
Int_t THaEvData::fDataVersion
protected
Int_t THaEvData::fDebug
protected
std::ofstream* THaEvData::fDebugFile
protected
Bool_t THaEvData::fDoBench
protected
UInt_t THaEvData::fEpicsEvtType
protected
TObject* THaEvData::fExtra
protected
Bool_t THaEvData::fgAllowUnimpl = false
staticprotected
TString THaEvData::fgDefaultCrateMapName = "cratemap"
staticprotected
TBits THaEvData::fgInstances
staticprotected
UInt_t THaEvData::fInstance
protected
Bool_t THaEvData::first_decode
protected
std::unique_ptr<Decoder::THaCrateMap> THaEvData::fMap
protected
TBits THaEvData::fMsgPrinted
protected
Bool_t THaEvData::fNeedInit
protected
ULong64_t THaEvData::fRunTime
protected
std::vector<UShort_t> THaEvData::fSlotClear
protected
std::vector<UShort_t> THaEvData::fSlotUsed
protected
Bool_t THaEvData::fTrigSupPS
protected
const Double_t THaEvData::kBig = 1e38
staticprotected
UInt_t THaEvData::recent_event
protected
std::array<RocDat_t, Decoder::MAXROC> THaEvData::rocdat
protected
UInt_t THaEvData::run_num
protected
UInt_t THaEvData::run_type
protected
Bool_t THaEvData::synchextra
protected
Bool_t THaEvData::synchmiss
protected
UInt_t THaEvData::tbLen
protected
Collaboration diagram for THaEvData:

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