10 #ifndef ST_FMS_TRIGGER_MAKER_H
11 #define ST_FMS_TRIGGER_MAKER_H
16 #if !defined(__CINT__)
31 void Clear(Option_t* option =
"");
33 int InitRun(
int runNumber);
38 void useTrgData() { mUseTrgData = 1;}
39 void useMuDst() { mUseMuDst = 1;}
40 void useStEvent() { mUseStEvent = 1; }
43 void overwriteThr(
char* name,
int value);
44 void forceRunNumber(
int run) {mForceRun=run;}
45 void useDsmData() {mUseDsmData=1;}
46 void useQTSim() {mUseDsmData=0;}
55 int FP201output(
int t=MAXPP)
const {
return fp201.output[t]; }
56 int FM0xxoutput(
int number,
int t=MAXPP)
const;
57 int FM1xxoutput(
int number,
int t=MAXPP)
const;
59 int FP201input(
int ch,
int t=MAXPP)
const;
60 int FM0xxinput(
int number,
int ch,
int t=MAXPP)
const;
61 int FM1xxinput(
int number,
int ch,
int t=MAXPP)
const;
63 int FP201data(
int ch)
const;
64 int FM0xxdata(
int number,
int ch,
int t=MAXPP)
const;
65 int FM1xxdata(
int number,
int ch,
int t=MAXPP)
const;
67 int FP201userdata(
int ch,
int t=MAXPP)
const;
68 int FM0xxuserdata(
int number,
int ch,
int t=MAXPP)
const;
69 int FM1xxuserdata(
int number,
int ch,
int t=MAXPP)
const;
71 int FmsHighTowerTh0(
int t=MAXPP)
const {
return btest(fp201.output[t],0); }
72 int FmsHighTowerTh1(
int t=MAXPP)
const {
return btest(fp201.output[t],1); }
73 int FmsSmallClusterTh0(
int t=MAXPP)
const {
return btest(fp201.output[t],2); }
74 int FmsSmallClusterTh1(
int t=MAXPP)
const {
return btest(fp201.output[t],3); }
75 int FmsSmallClusterTh2(
int t=MAXPP)
const {
return btest(fp201.output[t],4); }
76 int FmsLargeClusterTh0(
int t=MAXPP)
const {
return btest(fp201.output[t],5); }
77 int FmsLargeClusterTh1(
int t=MAXPP)
const {
return btest(fp201.output[t],6); }
78 int FmsLargeClusterTh2(
int t=MAXPP)
const {
return btest(fp201.output[t],7); }
79 int FmsJetPatchTh0(
int t=MAXPP)
const {
return btest(fp201.output[t],8); }
80 int FmsJetPatchTh1(
int t=MAXPP)
const {
return btest(fp201.output[t],9); }
81 int FmsJetPatchTh2(
int t=MAXPP)
const {
return btest(fp201.output[t],10); }
82 int FmsDijet(
int t=MAXPP)
const {
return btest(fp201.output[t],11); }
83 int FPE(
int t=MAXPP)
const {
return btest(fp201.output[t],14); }
90 int FmsFPEcombo1(
int t=MAXPP)
const {
return btest(fp201.output[t],12); }
91 int FmsFPEcombo2(
int t=MAXPP)
const {
return btest(fp201.output[t],13); }
94 int loadRegisters(
int runNumber);
99 Crate& crateAt(
int i) {
return crates[i-1]; }
100 const Crate& crateAt(
int i)
const {
return crates[i-1]; }
102 void runFpeQtLayer(
int t=MAXPP);
103 void runFmsQtLayer(
int t=MAXPP);
104 void runFmsLayer0(
int t=MAXPP);
105 void runFpeLayer1(
int t=MAXPP);
106 void runFmsLayer1(
int t=MAXPP);
107 void runFpdLayer2(
int t=MAXPP);
110 void writeQtCrate(
const T*
hit,
int t=MAXPP);
111 void writeQtCrate(
int crate,
int slot,
int ch,
int adc,
int t=MAXPP);
112 void writeDsmData(
int t=MAXPP);
114 void writeFpeQtLayerToFpeLayer1(
Crate& sim,
int t=MAXPP);
115 void writeFmsQtLayerToFmsLayer0(
Crate& sim,
int t=MAXPP);
116 void writeFmsLayer0ToFmsLayer1(
Crate& sim,
int t=MAXPP);
117 void writeFpeLayer1ToFpdLayer2(
Crate& sim,
int t=MAXPP);
118 void writeFmsLayer1ToFpdLayer2(
Crate& sim,
int t=MAXPP);
119 void writeFpdLayer2ToFpdLayer3(
Crate& sim,
int t=MAXPP);
121 void fillQtHistogram(
const Crate& qtcrate, TH2F* hqtadc,
int t=MAXPP);
122 void fillQtHistograms(
int t=MAXPP);
133 enum { NCRATES = 14 };
134 #if !defined(__CINT__)
136 Crate crates[NCRATES];
242 static const int MAX=100;
244 TString mThrOWName[MAX];
245 Int_t mThrOWValue[MAX];
260 #endif // ST_FMS_TRIGGER_SIMU_H
void Clear(Option_t *option="")
User defined functions.