36 #ifndef STAR_StEmcTriggerMaker
37 #define STAR_StEmcTriggerMaker
45 #include "StBemcTrigger.h"
46 #include "StEmcUtil/database/StBemcTables.h"
47 #include "StMessMgr.h"
71 int HT12005array[kNTowers];
72 int HT22005array[kNTowers];
73 int JP12005array[kNJet];
74 int JP22005array[kNJet];
75 int JPSI2005adc[kNJet];
76 int JPSI2005id[kNJet];
77 int BL12006arrayADC[kNJet/2];
133 int HT1_2005_array[kNTowers];
134 int HT2_2005_array[kNTowers];
135 int JP1_2005_array[kNJet];
136 int JP2_2005_array[kNJet];
137 int ADJ_2005_array[kNJet];
138 int JPSI_2005_ADC[kNJet];
139 int JPSI_2005_ID[kNJet];
143 int HT2_2006_array[6][kNTowers];
144 int JP0_2006_array[6][kNJet];
145 int JP1_2006_array[6][kNJet];
146 int JPSI_2006_ADC[6][kNJet];
147 int JPSI_2006_ID[6][kNJet];
149 int HTTP_2006_arrayTP[6][kNPatches];
150 int HTTP_2006_arrayHT[6][kNPatches];
151 int HTTP_2006_arrayTP_ADC[6][kNPatches];
152 int HTTP_2006_arrayHT_ADC[6][kNPatches];
153 int BL1_2006_arrayADC[kNJet/2];
160 virtual Int_t Init();
161 virtual Int_t Make();
162 virtual Int_t Finish();
165 void saveHistograms(
char*);
167 void set2006Trigger(
int);
170 int isTrigger(
int trigId);
172 int barrelTowerThreshold(
int trigId,
int softId=1);
174 int barrelTriggerPatchThreshold(
int trigId,
int patchId=1);
176 int barrelJetPatchThreshold(
int trigId,
int patchId=1);
181 map<int,int> barrelTowersAboveThreshold(
int trigId);
183 map<int,int> barrelTriggerPatchesAboveThreshold(
int trigId);
185 map<int,int> barrelJetPatchesAboveThreshold(
int trigId);
187 int barrelTriggerPatchForTower(
int softId);
189 int endcapTowerThreshold(
int trigId);
190 int endcapTriggerPatchThreshold(
int trigId);
191 int endcapJetPatchThreshold(
int trigId);
193 map<int,int> endcapTowersAboveThreshold(
int trigId);
194 map<int,int> endcapTriggerPatchesAboveThreshold(
int trigId);
195 map<int,int> endcapJetPatchesAboveThreshold(
int trigId);
198 int totalEnergyThreshold(
int trigId);
203 int is2003HT1() {
return mIs2003HT1;}
204 int is2003HT2() {
return mIs2003HT2;}
205 int is2004HT1() {
return mIs2004HT1;}
206 int is2004HT2() {
return mIs2004HT2;}
207 int is2004JP1() {
return mIs2004JP1;}
208 int is2004JP2() {
return mIs2004JP2;}
209 int is2005HT1() {
return mIs2005HT1;}
210 int is2005HT2() {
return mIs2005HT2;}
211 int is2005JP1() {
return mIs2005JP1;}
212 int is2005JP2() {
return mIs2005JP2;}
213 int is2005ADJ() {
return mIs2005ADJ;}
214 int is2005JPSI() {
return mIs2005JPSI;}
216 int get2003HT1_ID() {
return HT1_ID_2003;}
217 int get2003HT2_ID() {
return HT2_ID_2003;}
218 int get2004HT1_ID() {
return HT1_ID_2004;}
219 int get2004HT2_ID() {
return HT2_ID_2004;}
220 int get2004JP1_ID() {
return JP1_ID_2004;}
221 int get2004JP2_ID() {
return JP2_ID_2004;}
222 int get2005HT1_ID() {
return HT1_ID_2005;}
223 int get2005HT2_ID() {
return HT2_ID_2005;}
224 int get2005JP1_ID() {
return JP1_ID_2005;}
225 int get2005JP2_ID() {
return JP2_ID_2005;}
226 int get2005ADJ_ID() {
return ADJ_ID_2005;}
228 int get2003HT1_ADC() {
return HT1_DSM_2003;}
229 int get2003HT2_ADC() {
return HT2_DSM_2003;}
230 int get2004HT1_ADC() {
return HT1_DSM_2004;}
231 int get2004HT2_ADC() {
return HT2_DSM_2004;}
232 int get2004JP1_ADC() {
return JP1_DSM_2004;}
233 int get2004JP2_ADC() {
return JP2_DSM_2004;}
234 int get2005HT1_ADC() {
return HT1_DSM_2005;}
235 int get2005HT2_ADC() {
return HT2_DSM_2005;}
236 int get2005JP1_ADC() {
return JP1_DSM_2005;}
237 int get2005JP2_ADC() {
return JP2_DSM_2005;}
238 int get2005ADJ_ADC() {
return ADJ_DSM_2005;}
240 void get2005HT1_TOWS(
int,
int*);
241 void get2005HT2_TOWS(
int,
int*);
242 int get2005HT1_NTOWS() {
return numHT1_2005;}
243 int get2005HT2_NTOWS() {
return numHT2_2005;}
245 void get2005JP1_PATCHES(
int,
int*);
246 void get2005JP2_PATCHES(
int,
int*);
247 int get2005JP1_NPATCHES() {
return numJP1_2005;}
248 int get2005JP2_NPATCHES() {
return numJP2_2005;}
250 void get2005JPSI_ADC(
int,
int*);
251 void get2005JPSI_ID(
int,
int*);
252 void get2006BL1_ADC(
int,
int*);
271 mBemcTrigger->setTableMaker(bemcTab);