StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
BEMCPlots.h
1 #ifndef BEMCPlots_H
2 #define BEMCPlots_H
3 
4 class TH1F;
5 class TH2F;
6 class TFile;
7 class TObjArray;
8 
9 #define BEMCNJET 12
10 #define BEMCTOW 4800
11 
12 class BEMCPlots {
13 
14  public:
15  BEMCPlots(TObjArray *list = 0);
16  ~BEMCPlots();
17 
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
27  );
28 
29  int getDebug() {return mDebug;}
30  void setDebug(int d) {mDebug = d;}
31 
32  // These are called from Pplots
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
42  );
43 
44 
45  private:
46  int mDebug;
47 
48  int mDsmL0InputHighTower[300];
49  int mDsmL0InputPatchSum[300];
50 
51  int mDsmL1InputHighTowerBits[6][6];
52  int mDsmL1InputPatchSum[6][6];
53 
54  int mDsmL2InputHighTowerBits[12];
55  int mDsmL2InputPatchSumBits[12];
56  int mDsmL2InputPatchSum[6];
57 
58  int mDsmL3InputHighTowerBits[1];
59  int mDsmL3InputPatchSumBits[1];
60  int mDsmL3InputBackToBackBit[1];
61  int mDsmL3InputJPsiTopoBit[1];
62  int mDsmL3InputJetPatchTopoBit[1];
63 
64  TH1F *mHistTot;
65  TH2F *mHistDsmL0InputHighTower;
66  TH2F *mHistDsmL0InputPatchSum;
67 
68  TH2F *mHistDsmL1InputHighTowerBits;
69  TH2F *mHistDsmL1InputPatchSum;
70 
71  TH2F *mHistDsmL2InputHighTowerBits;
72  TH2F *mHistDsmL2InputPatchSumBits;
73  TH2F *mHistDsmL2InputPatchSum;
74 
75  TH1F *mHistDsmL3InputHighTowerBits;
76  TH1F *mHistDsmL3InputPatchSumBits;
77  TH1F *mHistDsmL3InputBackToBackBit;
78  TH1F *mHistDsmL3InputJPsiTopoBit;
79  TH1F *mHistDsmL3InputJetPatchTopoBit;
80 
81  TH2F *mHistRawAdc1;
82  TH2F *mHistRawAdc2;
83  TH2F *mHistRawAdc3;
84  TH2F *mHistRawAdc4;
85 
86  TH2F *mHistRawAdc1zoom;
87  TH2F *mHistRawAdc2zoom;
88  TH2F *mHistRawAdc3zoom;
89  TH2F *mHistRawAdc4zoom;
90 
91  TH2F *mHistRawAdcPsd1;
92  TH2F *mHistRawAdcPsd2;
93  TH2F *mHistRawAdcPsd3;
94  TH2F *mHistRawAdcPsd4;
95 
96  TH2F *mHistSmdFeeSum;
97  TH2F *mHistPsdFeeSum;
98 
99  TH2F *mHistSmdFeeSumNonZS;
100  TH2F *mHistPsdFeeSumNonZS;
101 
102  TH1F *mHistHighTowerSpectrum[BEMCNJET];
103  TH1F *mHistPatchSumSpectrum[BEMCNJET];
104 
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;
114 
115  TH2F *mHist_TDC_status;
116  TH2F *mHist_SMD_status;
117  TH2F *mHist_PSD_status;
118  TH1F *mHist_BTOW_Corruption;
119 
120  TH2F *mHist_btow_spectra_1;
121  TH2F *mHist_btow_spectra_2;
122  TH2F *mHist_btow_spectra_3;
123 
124  TH1F *mHist_smd_spectra;
125  TH1F *mHist_smd_spectraNonZS;
126  TH2F *mHist_smd_capacitor;
127  TH2F *mHist_smd_sum;
128  TH1F *mHist_psd_spectra;
129  TH1F *mHist_psd_spectraNonZS;
130  TH2F *mHist_psd_capacitor;
131  TH2F *mHist_psd_sum;
132 
133  TH2F *mHist_HTMAX_spectra;
134  TH2F *mHist_PAMAX_spectra;
135  TH1F *mHist_HTMAX_dist;
136  TH1F *mHist_PAMAX_dist;
137 
138  TH2F *mHist_JET_ped;
139  TH2F *mHist_JET_spectra;
140  TH2F *mHist_JETMAX_spectra;
141  TH1F *mHist_JETMAX_dist;
142 
143  TH2F *mHist_ADCEtaPhi_TowHits;
144  TH2F *mHist_ADCEtaPhi_Pre1Hits;
145 
146  int BEMCNJPPED[BEMCNJET];
147  int BEMCJPPED[BEMCNJET];
148  float towerPed[BEMCTOW];
149 
150 };
151 
152 #endif
153