30 #ifndef StDetectorDbTriggerID_h
31 #define StDetectorDbTriggerID_h
35 #include "St_triggerIDC.h"
36 #include "St_trigPrescalesC.h"
37 #include "St_L0TriggerInfoC.h"
38 #include "St_defaultTrgLvlC.h"
39 #include "St_trigL3ExpandedC.h"
40 #include "St_dsmPrescalesC.h"
41 #include "St_additionalTriggerIDC.h"
45 enum { kDbTriggerBadID = 999 };
54 UInt_t
getIDNumRows() {
return St_triggerIDC::instance()->getNumRows();}
55 UInt_t getIDRunNumber() {
return St_triggerIDC::instance()->runNumber();}
56 UInt_t getIdxTrg(UInt_t entry = 0) {
return St_triggerIDC::instance()->idxTrg(entry);}
57 UInt_t getDaqTrgId(UInt_t entry = 0) {
return St_triggerIDC::instance()->daqTrgId(entry);}
58 UInt_t getOfflineTrgId(UInt_t entry = 0) {
return St_triggerIDC::instance()->offlineTrgId(entry);}
59 UInt_t getTrgNameVersion(UInt_t entry = 0) {
return St_triggerIDC::instance()->trgNameVersion(entry);}
60 UInt_t getTrgVersion(UInt_t entry = 0) {
return St_triggerIDC::instance()->trgVersion(entry);}
61 UInt_t getThreashVersion(UInt_t entry = 0) {
return St_triggerIDC::instance()->threashVersion(entry);}
62 UInt_t getPsVersion(UInt_t entry = 0) {
return St_triggerIDC::instance()->psVersion(entry);}
69 UInt_t
getSNumRows() {
return St_trigPrescalesC::instance()->getNumRows();}
70 Int_t getSRunNumber() {
return St_trigPrescalesC::instance()->runNumber();}
71 Int_t getIdxTrigger(UInt_t entry = 0) {
return St_trigPrescalesC::instance()->idxTrigger(entry);}
72 Int_t getIdxLevel(UInt_t entry = 0) {
return St_trigPrescalesC::instance()->idxLevel(entry);}
73 Int_t getId(UInt_t entry = 0) {
return St_trigPrescalesC::instance()->id(entry);}
74 Float_t getPs(UInt_t entry = 0) {
return St_trigPrescalesC::instance()->ps(entry);}
81 UInt_t
getL0NumRows() {
return St_L0TriggerInfoC::instance()->getNumRows();}
82 Int_t getL0RunNumber() {
return St_L0TriggerInfoC::instance()->runNumber();}
83 Int_t getL0DaqTrgId(UInt_t entry = 0) {
return St_L0TriggerInfoC::instance()->daqTriggerId(entry);}
84 Int_t getL0OfflineTrgId(UInt_t entry = 0) {
return St_L0TriggerInfoC::instance()->offlineTriggerId(entry);}
85 Int_t getPsL0(UInt_t entry = 0) {
return St_L0TriggerInfoC::instance()->psL0(entry);}
86 Char_t* getName(UInt_t entry = 0) {
return St_L0TriggerInfoC::instance()->name(entry);}
87 UInt_t getDetectorLiveOnBits(UInt_t entry = 0) {
return St_L0TriggerInfoC::instance()->detectorLiveOnBits(entry);}
88 UInt_t getDetectorLiveOffBits(UInt_t entry = 0) {
return St_L0TriggerInfoC::instance()->detectorLiveOffBits(entry);}
89 UInt_t getDetectorRequest(UInt_t entry = 0) {
return St_L0TriggerInfoC::instance()->detectorRequest(entry);}
97 Int_t getTrigL3ExpandedRunNumber() {
return St_trigL3ExpandedC::instance()->runNumber();}
98 Char_t* getTrigL3ExpandedL2TriggerResultType(UInt_t entry=0) {
return St_trigL3ExpandedC::instance()->l2TriggerResultType(entry);}
99 Int_t getTrigL3ExpandedL3TrgId(UInt_t entry=0) {
return St_trigL3ExpandedC::instance()->l3TrgId(entry);}
100 Int_t getTrigL3ExpandedL3ExpandedTrgId(UInt_t entry=0) {
return St_trigL3ExpandedC::instance()->l3ExpandedTrgId(entry);}
101 Int_t getTrigL3ExpandedL2Algo(UInt_t entry=0) {
return St_trigL3ExpandedC::instance()->l2Algo(entry);}
102 Float_t getTrigL3ExpandedL2Ps(UInt_t entry=0) {
return St_trigL3ExpandedC::instance()->l2Ps(entry);}
103 Char_t* getTrigL3ExpandedName(UInt_t entry=0) {
return (Char_t *) St_trigL3ExpandedC::instance()->name(entry);}
111 Int_t getDsmPrescalesRunNumber() {
return St_dsmPrescalesC::instance()->runNumber();}
112 Int_t getDsmPrescalesTrgId(UInt_t entry=0) {
return St_dsmPrescalesC::instance()->trgId(entry);}
113 Int_t getDsmPrescalesDsmPrescale(UInt_t entry=0) {
return St_dsmPrescalesC::instance()->dsmPrescale(entry);}
139 UInt_t getAdditionalTriggerIDRunNumber(UInt_t entry=0) {
return St_additionalTriggerIDC::instance()->runNumber(entry);}
140 UInt_t getAdditionalTriggerIDEventNumber(UInt_t entry = 0) {
return St_additionalTriggerIDC::instance()->eventNumber(entry);}
141 UInt_t getAdditionalTriggerIDIdxTrg(UInt_t entry = 0) {
return St_additionalTriggerIDC::instance()->idxTrg(entry);}
142 UInt_t getAdditionalTriggerIDDaqTrgId(UInt_t entry = 0) {
return St_additionalTriggerIDC::instance()->daqTrgId(entry);}
143 UInt_t getAdditionalTriggerIDOfflineTrgId(UInt_t entry = 0) {
return St_additionalTriggerIDC::instance()->offlineTrgId(entry);}
144 UInt_t getAdditionalTriggerIDTrgNameVersion(UInt_t entry = 0) {
return St_additionalTriggerIDC::instance()->trgNameVersion(entry);}
145 UInt_t getAdditionalTriggerIDTrgVersion(UInt_t entry = 0) {
return St_additionalTriggerIDC::instance()->trgVersion(entry);}
146 UInt_t getAdditionalTriggerIDThreashVersion(UInt_t entry = 0) {
return St_additionalTriggerIDC::instance()->threashVersion(entry);}
147 UInt_t getAdditionalTriggerIDPsVersion(UInt_t entry = 0) {
return St_additionalTriggerIDC::instance()->psVersion(entry);}
map< Int_t, Float_t > getTotalPrescales()
UInt_t getDsmPrescalesNumRows()
UInt_t getAdditionalTriggerIDNumRows()
Accessor to the database for trigger id information.
UInt_t getDefaultTriggerLevel()
Float_t getTotalPrescaleByTrgId(Int_t trgId)
UInt_t getTrigL3ExpandedNumRows()