18 void init(
unsigned int date,
unsigned int time,
const char *bemcStatus);
19 void clear(
const char *bemcStatus);
20 void saveHistograms(TFile *hfile);
21 void processEvent(
char *rdr
22 ,
const unsigned char *dsmL0WestInput = 0
23 ,
const unsigned char *dsmL0EastInput = 0
24 ,
const unsigned short *dsmL1Input = 0
25 ,
const unsigned short *dsmL2Input = 0
26 ,
const unsigned short *dsmL3Input = 0
29 int getDebug() {
return mDebug;}
30 void setDebug(
int d) {mDebug = d;}
33 static void initHisto(TObjArray *list = 0,
const char *bemcStatus = 0);
34 static void resetHisto(
const char *bemcStatus = 0);
35 static void saveHisto(TFile *hfile);
36 static void fillHisto(
char *rdr
37 ,
const unsigned char *dsmL0WestInput = 0
38 ,
const unsigned char *dsmL0EastInput = 0
39 ,
const unsigned short *dsmL1Input = 0
40 ,
const unsigned short *dsmL2Input = 0
41 ,
const unsigned short *dsmL3Input = 0
48 int mDsmL0InputHighTower[300];
49 int mDsmL0InputPatchSum[300];
51 int mDsmL1InputHighTowerBits[6][6];
52 int mDsmL1InputPatchSum[6][6];
54 int mDsmL2InputHighTowerBits[12];
55 int mDsmL2InputPatchSumBits[12];
56 int mDsmL2InputPatchSum[6];
58 int mDsmL3InputHighTowerBits[1];
59 int mDsmL3InputPatchSumBits[1];
60 int mDsmL3InputBackToBackBit[1];
61 int mDsmL3InputJPsiTopoBit[1];
62 int mDsmL3InputJetPatchTopoBit[1];
65 TH2F *mHistDsmL0InputHighTower;
66 TH2F *mHistDsmL0InputPatchSum;
68 TH2F *mHistDsmL1InputHighTowerBits;
69 TH2F *mHistDsmL1InputPatchSum;
71 TH2F *mHistDsmL2InputHighTowerBits;
72 TH2F *mHistDsmL2InputPatchSumBits;
73 TH2F *mHistDsmL2InputPatchSum;
75 TH1F *mHistDsmL3InputHighTowerBits;
76 TH1F *mHistDsmL3InputPatchSumBits;
77 TH1F *mHistDsmL3InputBackToBackBit;
78 TH1F *mHistDsmL3InputJPsiTopoBit;
79 TH1F *mHistDsmL3InputJetPatchTopoBit;
86 TH2F *mHistRawAdc1zoom;
87 TH2F *mHistRawAdc2zoom;
88 TH2F *mHistRawAdc3zoom;
89 TH2F *mHistRawAdc4zoom;
91 TH2F *mHistRawAdcPsd1;
92 TH2F *mHistRawAdcPsd2;
93 TH2F *mHistRawAdcPsd3;
94 TH2F *mHistRawAdcPsd4;
99 TH2F *mHistSmdFeeSumNonZS;
100 TH2F *mHistPsdFeeSumNonZS;
102 TH1F *mHistHighTowerSpectrum[BEMCNJET];
103 TH1F *mHistPatchSumSpectrum[BEMCNJET];
105 int mTowerData[4800][3];
106 int mPatchData[300][11];
107 int mTriggerPedestalShift;
108 TH1F *mHistTriggerCorruptionHighTower;
109 TH1F *mHistTriggerCorruptionPatchSum;
110 int mDsmSimuHighTower[300];
111 int mDsmSimuPatchSum[300];
112 TH2F *mHistDSM0HTCorr;
113 TH2F *mHistDSM0TPCorr;
115 TH2F *mHist_TDC_status;
116 TH2F *mHist_SMD_status;
117 TH2F *mHist_PSD_status;
118 TH1F *mHist_BTOW_Corruption;
120 TH2F *mHist_btow_spectra_1;
121 TH2F *mHist_btow_spectra_2;
122 TH2F *mHist_btow_spectra_3;
124 TH1F *mHist_smd_spectra;
125 TH1F *mHist_smd_spectraNonZS;
126 TH2F *mHist_smd_capacitor;
128 TH1F *mHist_psd_spectra;
129 TH1F *mHist_psd_spectraNonZS;
130 TH2F *mHist_psd_capacitor;
133 TH2F *mHist_HTMAX_spectra;
134 TH2F *mHist_PAMAX_spectra;
135 TH1F *mHist_HTMAX_dist;
136 TH1F *mHist_PAMAX_dist;
139 TH2F *mHist_JET_spectra;
140 TH2F *mHist_JETMAX_spectra;
141 TH1F *mHist_JETMAX_dist;
143 TH2F *mHist_ADCEtaPhi_TowHits;
144 TH2F *mHist_ADCEtaPhi_Pre1Hits;
146 int BEMCNJPPED[BEMCNJET];
147 int BEMCJPPED[BEMCNJET];
148 float towerPed[BEMCTOW];