#include <TEpicsEvent.h>
Public Member Functions | |
TEpicsEvent () | |
TEpicsEvent (const char *name, Short_t id=0) | |
virtual | ~TEpicsEvent () |
virtual void | Clear (Option_t *t="") |
virtual void | PrintEvent () |
void | ResetData () |
void | InitRecordNames () |
bool | CheckConsistent (bool printerr=false) |
void | UpdateRecordNames (const char *descriptor, size_t dlen) |
const char * | GetUpdateTimeString () |
UInt_t | GetUpdateTimeSeconds () |
bool | IsLong (const std::string &pvname) const |
bool | IsDouble (const std::string &pvname) const |
Long64_t | GetLong (const std::string &pvname) const |
Double_t | GetDouble (const std::string &pvname) const |
std::string | GetLongName (UInt_t index) |
Long64_t | GetLong (UInt_t index) const |
std::string | GetDoubleName (unsigned index) |
Double_t | GetDouble (UInt_t index) const |
UInt_t | GetNumLongs () const |
UInt_t | GetNumDoubles () const |
Data Fields | |
UInt_t | fEventId |
UInt_t | fUTimeSeconds |
char | fcTimeString [CBM_EPIX_STRLEN] |
std::vector< Long64_t > | fLongRecords |
std::vector< Double_t > | fDoubleRecords |
std::vector< std::string > | fEpicsLongIndices |
std::vector< std::string > | fEpicsDoubleIndices |
Definition at line 23 of file TEpicsEvent.h.
TEpicsEvent::TEpicsEvent | ( | ) |
Definition at line 19 of file TEpicsEvent.cxx.
TEpicsEvent::TEpicsEvent | ( | const char * | name, | |
Short_t | id = 0 | |||
) |
Definition at line 24 of file TEpicsEvent.cxx.
References InitRecordNames().
TEpicsEvent::~TEpicsEvent | ( | ) | [virtual] |
Definition at line 32 of file TEpicsEvent.cxx.
bool TEpicsEvent::CheckConsistent | ( | bool | printerr = false |
) |
Definition at line 161 of file TEpicsEvent.cxx.
References fDoubleRecords, fEpicsDoubleIndices, fEpicsLongIndices, fLongRecords, and ResetData().
Referenced by TEpicsProc::ProcessSubevent().
void TEpicsEvent::Clear | ( | Option_t * | t = "" |
) | [virtual] |
Method called by the framework to clear the event element.
Definition at line 36 of file TEpicsEvent.cxx.
Double_t TEpicsEvent::GetDouble | ( | UInt_t | index | ) | const [inline] |
Definition at line 70 of file TEpicsEvent.h.
References fDoubleRecords.
Double_t TEpicsEvent::GetDouble | ( | const std::string & | pvname | ) | const |
Definition at line 98 of file TEpicsEvent.cxx.
References fEpicsDoubleIndices.
Referenced by TEpicsProc::FinalizeEvent(), TRootConverterProc::FinalizeEvent(), TTRDMuensterFrankfurtProc::FinalizeEvent(), PrintEvent(), TRICHProc::ProcessRICH(), TRICHProc::SaveParameters(), and spadic_beam_Analysis().
std::string TEpicsEvent::GetDoubleName | ( | unsigned | index | ) | [inline] |
Definition at line 67 of file TEpicsEvent.h.
References fEpicsDoubleIndices.
Referenced by TEpicsProc::FinalizeEvent(), and TRootConverterProc::FinalizeEvent().
Long64_t TEpicsEvent::GetLong | ( | const std::string & | pvname | ) | const |
Definition at line 86 of file TEpicsEvent.cxx.
References fEpicsLongIndices.
Referenced by TEpicsProc::FinalizeEvent(), and PrintEvent().
Long64_t TEpicsEvent::GetLong | ( | UInt_t | index | ) | const [inline] |
Definition at line 64 of file TEpicsEvent.h.
References fLongRecords, and GetNumLongs().
std::string TEpicsEvent::GetLongName | ( | UInt_t | index | ) | [inline] |
Definition at line 61 of file TEpicsEvent.h.
References fEpicsLongIndices.
Referenced by TEpicsProc::FinalizeEvent().
UInt_t TEpicsEvent::GetNumDoubles | ( | ) | const [inline] |
Definition at line 75 of file TEpicsEvent.h.
References fDoubleRecords.
Referenced by TEpicsProc::FinalizeEvent(), TRootConverterProc::FinalizeEvent(), and PrintEvent().
UInt_t TEpicsEvent::GetNumLongs | ( | ) | const [inline] |
Definition at line 73 of file TEpicsEvent.h.
References fLongRecords.
Referenced by TEpicsProc::FinalizeEvent(), GetLong(), and PrintEvent().
UInt_t TEpicsEvent::GetUpdateTimeSeconds | ( | ) | [inline] |
Definition at line 51 of file TEpicsEvent.h.
References fUTimeSeconds.
Referenced by TEpicsProc::UpdateHist().
const char * TEpicsEvent::GetUpdateTimeString | ( | ) |
Definition at line 110 of file TEpicsEvent.cxx.
References CBM_EPIX_STRLEN, f_ut_utime(), fcTimeString, and fUTimeSeconds.
Referenced by PrintEvent(), TEpicsProc::ProcessSubevent(), and TEpicsProc::UpdateHist().
void TEpicsEvent::InitRecordNames | ( | ) |
Definition at line 185 of file TEpicsEvent.cxx.
References fEpicsDoubleIndices, and fEpicsLongIndices.
Referenced by TEpicsEvent().
bool TEpicsEvent::IsDouble | ( | const std::string & | pvname | ) | const |
Definition at line 78 of file TEpicsEvent.cxx.
References fEpicsDoubleIndices.
bool TEpicsEvent::IsLong | ( | const std::string & | pvname | ) | const |
Definition at line 71 of file TEpicsEvent.cxx.
References fEpicsLongIndices.
void TEpicsEvent::PrintEvent | ( | ) | [virtual] |
Definition at line 49 of file TEpicsEvent.cxx.
References fEpicsDoubleIndices, fEpicsLongIndices, GetDouble(), GetLong(), GetNumDoubles(), GetNumLongs(), and GetUpdateTimeString().
Referenced by TEpicsProc::FinalizeEvent().
void TEpicsEvent::ResetData | ( | ) |
Definition at line 41 of file TEpicsEvent.cxx.
References fDoubleRecords, fEventId, fLongRecords, and fUTimeSeconds.
Referenced by CheckConsistent(), and TEpicsProc::ProcessSubevent().
void TEpicsEvent::UpdateRecordNames | ( | const char * | descriptor, | |
size_t | dlen | |||
) |
Definition at line 126 of file TEpicsEvent.cxx.
References _VARPRINT_, fEpicsDoubleIndices, and fEpicsLongIndices.
Referenced by TEpicsProc::ProcessSubevent().
char TEpicsEvent::fcTimeString[CBM_EPIX_STRLEN] |
Definition at line 83 of file TEpicsEvent.h.
Referenced by GetUpdateTimeString().
std::vector<Double_t> TEpicsEvent::fDoubleRecords |
Definition at line 89 of file TEpicsEvent.h.
Referenced by CheckConsistent(), GetDouble(), GetNumDoubles(), TEpicsProc::ProcessSubevent(), and ResetData().
std::vector<std::string> TEpicsEvent::fEpicsDoubleIndices |
Definition at line 95 of file TEpicsEvent.h.
Referenced by CheckConsistent(), GetDouble(), GetDoubleName(), InitRecordNames(), IsDouble(), PrintEvent(), and UpdateRecordNames().
std::vector<std::string> TEpicsEvent::fEpicsLongIndices |
Definition at line 92 of file TEpicsEvent.h.
Referenced by CheckConsistent(), GetLong(), GetLongName(), InitRecordNames(), IsLong(), PrintEvent(), and UpdateRecordNames().
UInt_t TEpicsEvent::fEventId |
Definition at line 78 of file TEpicsEvent.h.
Referenced by TEpicsProc::ProcessSubevent(), and ResetData().
std::vector<Long64_t> TEpicsEvent::fLongRecords |
Definition at line 86 of file TEpicsEvent.h.
Referenced by CheckConsistent(), GetLong(), GetNumLongs(), TEpicsProc::ProcessSubevent(), and ResetData().
UInt_t TEpicsEvent::fUTimeSeconds |
Definition at line 81 of file TEpicsEvent.h.
Referenced by TRootConverterProc::FinalizeEvent(), GetUpdateTimeSeconds(), GetUpdateTimeString(), TEpicsProc::ProcessSubevent(), and ResetData().