15 #ifndef STAR_StTriggerSimuMaker
16 #define STAR_StTriggerSimuMaker
23 #include "StTriggerSimuResult.h"
42 const int numSimulators=5;
55 int mBarrelJetPatchTh[4];
56 int mBarrelHighTowerTh[4];
58 int mEndcapJetPatchTh[4];
59 int mEndcapHighTowerTh[2];
60 int mOverlapJetPatchTh[3];
61 void overwrite2009DsmRegisters();
64 void changeJetPatchTh();
71 map<int,StTriggerSimuResult> mResults;
73 void buildDetailedResult(
int trigId);
74 bool get2009DsmRegistersFromOfflineDatabase(
int runNumber);
75 bool get2009DsmRegistersFromOnlineDatabase(
int runNumber);
76 bool getTriggerDefinitions(
int runNumber);
77 bool getTriggerThresholds(
int runNumber);
79 void setTriggerThresholds2017();
83 void useEemc(
int flag=0);
89 void setMC(
int x) {mMCflag=x;}
93 virtual Int_t Finish();
94 virtual void Clear(
const Option_t* =
"");
95 virtual Int_t InitRun (
int runumber);
98 void setHList(TObjArray * x){mHList=x;}
99 bool isTrigger(
int trigId);
100 bool isTriggerDefined(
int trigId);
101 vector<int> triggerIds()
const;
115 void setBarrelHighTowerTh(
int i,
int value) { mBarrelHighTowerTh[i] = value; }
117 void setEndcapJetPatchTh(
int i,
int value) { mEndcapJetPatchTh[i] = value; }
118 void setEndcapHighTowerTh(
int i,
int value) { mEndcapHighTowerTh[i] = value; }
120 void setOverlapJetPatchTh(
int i,
int value) { mOverlapJetPatchTh[i] = value; }
122 void changeJPThresh(
int value) { mChangeJPThresh = value; }
124 void setLastDsmRegister(
int reg,
int value);
128 void useOfflineDB() { mUseOfflineDB = 1; }
131 virtual const char *GetCVS()
const
132 {
static const char cvs[]=
"Tag $Name: $ $Id: StTriggerSimuMaker.h $ built " __DATE__
" " __TIME__ ;
return cvs;}
void setBarrelJetPatchTh(int i, int value)
Use these setters to overwrite thresholds from the database (2009)
void useOnlineDB()
Choose DB to access trigger definitions and thresholds.
const StTriggerSimuResult & detailedResult(int trigId)
returns object containing detailed information about simulation of given trigger