#include <TEpicsProc.h>
Data Structures | |
struct | VariableHist |
Public Member Functions | |
TEpicsProc () | |
TEpicsProc (const char *name) | |
virtual | ~TEpicsProc () |
virtual void | InitEvent (TGo4EventElement *) |
virtual void | ProcessSubevent (TGo4MbsSubEvent *subevt) |
virtual void | FinalizeEvent () |
virtual Bool_t | BuildEvent (TGo4EventElement *) |
Short_t | GetTriggerNumber () const |
Int_t | GetEventNumber () const |
Long_t | ExecuteScript (const char *script_name) |
Protected Member Functions | |
VariableHist * | CreateHist (const char *varname) |
void | UpdateHist (VariableHist *hst, double val, const char *varname) |
void | UpdateTrending (TH1 *histo, Double_t val, time_t time) |
void | IncTrending (TH1 *histo, Double_t value, bool forwards) |
void | UpdateTimeGraph (TGraph *gr, Double_t value, time_t time) |
TGraph * | MakeTimeGraph (const TString &name, const TString &dir) |
VariableHist * | FindVariable (const char *name) |
void | AddSubProcessor (TCBMBeamtimeProc *) |
Protected Attributes | |
TEpicsParam * | fPar |
TEpicsEvent * | fOutputEvent |
std::vector< VariableHist > | all_hists |
TCBMBeamtimeEvent * | fBeamtimeEvent |
TGo4MbsEvent * | fMbsInput |
Short_t | fMbsTriggerNumber |
Int_t | fMbsEventNumber |
Friends | |
class | TCBMBeamtimeProc |
Definition at line 19 of file TEpicsProc.h.
TEpicsProc::TEpicsProc | ( | ) |
Definition at line 19 of file TEpicsProc.cxx.
TEpicsProc::TEpicsProc | ( | const char * | name | ) |
Definition at line 26 of file TEpicsProc.cxx.
References CreateHist(), TEpicsParam::DoubleName(), fPar, and TEpicsParam::LongName().
TEpicsProc::~TEpicsProc | ( | ) | [virtual] |
Definition at line 74 of file TEpicsProc.cxx.
void TCBMBeamtimeProc::AddSubProcessor | ( | TCBMBeamtimeProc * | proc | ) | [protected, inherited] |
Definition at line 41 of file TCBMBeamtimeProc.cxx.
References TCBMBeamtimeProc::fSubProcessors.
Referenced by TCernGem12DetectorProc::TCernGem12DetectorProc(), TCernGem12FinalProc::TCernGem12FinalProc(), TCernGem12UnpackProc::TCernGem12UnpackProc(), TCernOct11DetectorProc::TCernOct11DetectorProc(), TCernOct11UnpackProc::TCernOct11UnpackProc(), TCernOct12DetectorProc::TCernOct12DetectorProc(), TCernOct12FinalProc::TCernOct12FinalProc(), TCernOct12UnpackProc::TCernOct12UnpackProc(), TCosyJan12DetectorProc::TCosyJan12DetectorProc(), TCosyJan12FinalProc::TCosyJan12FinalProc(), TCosyJan12UnpackProc::TCosyJan12UnpackProc(), TCosyNov11DetectorProc::TCosyNov11DetectorProc(), TCosyNov11UnpackProc::TCosyNov11UnpackProc(), TGsiAug12CalibrationProc::TGsiAug12CalibrationProc(), TGsiAug12DetectorProc::TGsiAug12DetectorProc(), TGsiAug12OutputProc::TGsiAug12OutputProc(), TGsiAug12TrackingProc::TGsiAug12TrackingProc(), TGsiAug12UnpackProc::TGsiAug12UnpackProc(), TLaserTest12DetectorProc::TLaserTest12DetectorProc(), and TLaserTest12UnpackProc::TLaserTest12UnpackProc().
Bool_t TCBMBeamtimeProc::BuildEvent | ( | TGo4EventElement * | outevnt | ) | [virtual, inherited] |
Reimplemented in TCernNov10Proc, TCosyDec10Proc, TRocProc, and TSpadicProc.
Definition at line 52 of file TCBMBeamtimeProc.cxx.
References TCBMBeamtimeProc::fBeamtimeEvent, TCBMBeamtimeProc::FinalizeEvent(), TCBMBeamtimeProc::fMbsEventNumber, TCBMBeamtimeProc::fMbsInput, TCBMBeamtimeProc::fMbsTriggerNumber, TCBMBeamtimeProc::fProcIterator, TCBMBeamtimeProc::InitEvent(), and TCBMBeamtimeProc::ProcessSubevent().
TEpicsProc::VariableHist * TEpicsProc::CreateHist | ( | const char * | varname | ) | [protected] |
Definition at line 78 of file TEpicsProc.cxx.
References all_hists, and MakeTimeGraph().
Referenced by FinalizeEvent(), and TEpicsProc().
Long_t TCBMBeamtimeProc::ExecuteScript | ( | const char * | script_name | ) | [inherited] |
Temporary here - will be from 4.5.3 version in distribution
Definition at line 142 of file TCBMBeamtimeProc.cxx.
Referenced by TCernOct12UnpackProc::TCernOct12UnpackProc(), TFaspProc::TFaspProc(), TFiberHodProc::TFiberHodProc(), TSpadicV10Proc::TSpadicV10Proc(), and TTrbProc::TTrbProc().
void TEpicsProc::FinalizeEvent | ( | ) | [virtual] |
Reimplemented from TCBMBeamtimeProc.
Definition at line 210 of file TEpicsProc.cxx.
References CreateHist(), TEpicsParam::DoubleName(), TEpicsParam::fAutoFill, FindVariable(), fOutputEvent, fPar, TEpicsParam::fVerbose, TEpicsEvent::GetDouble(), TEpicsEvent::GetDoubleName(), TEpicsEvent::GetLong(), TEpicsEvent::GetLongName(), TEpicsEvent::GetNumDoubles(), TEpicsEvent::GetNumLongs(), TEpicsParam::LongName(), TEpicsEvent::PrintEvent(), and UpdateHist().
TEpicsProc::VariableHist * TEpicsProc::FindVariable | ( | const char * | name | ) | [protected] |
Int_t TCBMBeamtimeProc::GetEventNumber | ( | ) | const [inline, inherited] |
Returns event number of main MBS event
Definition at line 48 of file TCBMBeamtimeProc.h.
References TCBMBeamtimeProc::fMbsEventNumber.
Referenced by TSpadicV10Proc::FinalizeEvent(), TRocProc::FinalizeEvent(), TGet4v1Proc::FinalizeEvent(), TRPCProc::FinalizeEvent(), TGet4v1Proc::ProcessSubevent(), and TGet4v1Proc::ProcessTriggerMessage().
Short_t TCBMBeamtimeProc::GetTriggerNumber | ( | ) | const [inline, inherited] |
Returns trigger number of main MBS event
Definition at line 45 of file TCBMBeamtimeProc.h.
References TCBMBeamtimeProc::fMbsTriggerNumber.
Referenced by TSpadicV10Proc::FinalizeEvent(), TRocProc::FinalizeEvent(), TTrbProc::ProcessSubevent(), TSpadicV10Proc::ProcessSubevent(), TSpadicProc::ProcessSubevent(), TGet4v1Proc::ProcessSubevent(), and TMbsCrateProc::ProcessSubevent().
void TEpicsProc::IncTrending | ( | TH1 * | histo, | |
Double_t | value, | |||
bool | forwards | |||
) | [protected] |
Definition at line 267 of file TEpicsProc.cxx.
Referenced by UpdateTrending().
void TEpicsProc::InitEvent | ( | TGo4EventElement * | outevnt | ) | [virtual] |
Reimplemented from TCBMBeamtimeProc.
Definition at line 105 of file TEpicsProc.cxx.
References fOutputEvent, and TCBMBeamtimeEvent::GetSubEvent().
TGraph * TEpicsProc::MakeTimeGraph | ( | const TString & | name, | |
const TString & | dir | |||
) | [protected] |
Definition at line 282 of file TEpicsProc.cxx.
Referenced by CreateHist().
void TEpicsProc::ProcessSubevent | ( | TGo4MbsSubEvent * | subevt | ) | [virtual] |
Reimplemented from TCBMBeamtimeProc.
Definition at line 122 of file TEpicsProc.cxx.
References TEpicsEvent::CheckConsistent(), TEpicsEvent::fDoubleRecords, TEpicsEvent::fEventId, TEpicsEvent::fLongRecords, fOutputEvent, fPar, TEpicsEvent::fUTimeSeconds, TEpicsParam::fVerbose, TEpicsEvent::GetUpdateTimeString(), TEpicsEvent::ResetData(), and TEpicsEvent::UpdateRecordNames().
void TEpicsProc::UpdateHist | ( | VariableHist * | hst, | |
double | val, | |||
const char * | varname | |||
) | [protected] |
Definition at line 313 of file TEpicsProc.cxx.
References TEpicsProc::VariableHist::fGraph, fOutputEvent, TEpicsProc::VariableHist::fStat, TEpicsProc::VariableHist::fTrend, TEpicsEvent::GetUpdateTimeSeconds(), TEpicsEvent::GetUpdateTimeString(), UpdateTimeGraph(), and UpdateTrending().
Referenced by FinalizeEvent().
void TEpicsProc::UpdateTimeGraph | ( | TGraph * | gr, | |
Double_t | value, | |||
time_t | time | |||
) | [protected] |
Definition at line 305 of file TEpicsProc.cxx.
Referenced by UpdateHist().
void TEpicsProc::UpdateTrending | ( | TH1 * | histo, | |
Double_t | val, | |||
time_t | time | |||
) | [protected] |
Definition at line 260 of file TEpicsProc.cxx.
References IncTrending().
Referenced by UpdateHist().
friend class TCBMBeamtimeProc [friend] |
Definition at line 21 of file TEpicsProc.h.
std::vector<VariableHist> TEpicsProc::all_hists [protected] |
Definition at line 65 of file TEpicsProc.h.
Referenced by CreateHist(), and FindVariable().
TCBMBeamtimeEvent* TCBMBeamtimeProc::fBeamtimeEvent [protected, inherited] |
Definition at line 60 of file TCBMBeamtimeProc.h.
Referenced by TCBMBeamtimeProc::BuildEvent().
Int_t TCBMBeamtimeProc::fMbsEventNumber [protected, inherited] |
Definition at line 63 of file TCBMBeamtimeProc.h.
Referenced by TCBMBeamtimeProc::BuildEvent(), TRPCProc::FinalizeEvent(), and TCBMBeamtimeProc::GetEventNumber().
TGo4MbsEvent* TCBMBeamtimeProc::fMbsInput [protected, inherited] |
Definition at line 61 of file TCBMBeamtimeProc.h.
Referenced by TCBMBeamtimeProc::BuildEvent().
Short_t TCBMBeamtimeProc::fMbsTriggerNumber [protected, inherited] |
Definition at line 62 of file TCBMBeamtimeProc.h.
Referenced by TCBMBeamtimeProc::BuildEvent(), and TCBMBeamtimeProc::GetTriggerNumber().
TEpicsEvent* TEpicsProc::fOutputEvent [protected] |
Definition at line 63 of file TEpicsProc.h.
Referenced by FinalizeEvent(), InitEvent(), ProcessSubevent(), and UpdateHist().
TEpicsParam* TEpicsProc::fPar [protected] |
Definition at line 62 of file TEpicsProc.h.
Referenced by FinalizeEvent(), ProcessSubevent(), and TEpicsProc().