StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StDetectorDbIntegratedTriggerID.h
1 #ifndef StDetectorDbIntegratedTriggerID_h
2 #define StDetectorDbIntegratedTriggerID_h
3 #include "St_triggerInfoC.h"
4 #include "St_defaultTrgLvlC.h"
5 
7 public:
8  static StDetectorDbIntegratedTriggerID* instance() {if (! fgInstance) fgInstance = new StDetectorDbIntegratedTriggerID(); return fgInstance;}
9  virtual ~StDetectorDbIntegratedTriggerID() {fgInstance = 0;}
10  UInt_t getIDNumRows() {return St_triggerInfoC::instance()->getNumRows();}
11  Int_t getIDRunNumber() {return St_triggerInfoC::instance()->runNumber();}
12  Int_t getIdxTrg(UInt_t entry = 0) {return St_triggerInfoC::instance()->idxTrg();}
13  Int_t getDaqTrgId(UInt_t entry = 0) {return St_triggerInfoC::instance()->daqTrgId();}
14  Int_t getOfflineTrgId(UInt_t entry = 0) {return St_triggerInfoC::instance()->offlineTrgId();}
15  Int_t getTrgNameVersion(UInt_t entry = 0) {return St_triggerInfoC::instance()->trgNameVersion();}
16  Int_t getTrgVersion(UInt_t entry = 0) {return St_triggerInfoC::instance()->trgVersion();}
17  Int_t getThreashVersion(UInt_t entry = 0) {return St_triggerInfoC::instance()->threashVersion();}
18  Int_t getPsVersion(UInt_t entry = 0) {return St_triggerInfoC::instance()->psVersion();}
19  Int_t getPsL0(UInt_t entry = 0) {return St_triggerInfoC::instance()->psL0();}
20  Char_t* getName(UInt_t entry = 0) {return St_triggerInfoC::instance()->name();}
21  UInt_t getDetectorLiveOnBits(UInt_t entry = 0) {return St_triggerInfoC::instance()->detectorLiveOnBits();}
22  UInt_t getDetectorLiveOffBits(UInt_t entry = 0) {return St_triggerInfoC::instance()->detectorLiveOffBits();}
23  UInt_t getDetectorRequest(UInt_t entry = 0) {return St_triggerInfoC::instance()->detectorRequest();}
24  Int_t getIdxLevel(UInt_t entry = 0) {return St_triggerInfoC::instance()->idxLevel();}
25  Int_t getAlgorithmId(UInt_t entry = 0) {return St_triggerInfoC::instance()->algorithmId();}
26  Float_t getPs(UInt_t entry = 0) {return St_triggerInfoC::instance()->ps();}
27  UInt_t getDefaultTriggerLevel() {return St_defaultTrgLvlC::instance()->level();}
28 protected:
30 private:
31  static StDetectorDbIntegratedTriggerID* fgInstance;
32 };
33 
34 #endif