22 TCanvas* canvas(
int nx,
int ny,
int sx=600,
int sy =900)
24 if(CANVAS) {
delete CANVAS; CANVAS=0;}
25 CANVAS =
new TCanvas();
28 CANVAS->Divide(nx,ny);
31 void draw(emcCalib_st* t1)
34 h[0] =
new TH1F(
"emcCalib_0",
"",4800,0.5,4800.5);
35 h[1] =
new TH1F(
"emcCalib_1",
"",4800,0.5,4800.5);
36 h[2] =
new TH1F(
"emcCalib_2",
"",4800,0.5,4800.5);
37 h[3] =
new TH1F(
"emcCalib_3",
"",4800,0.5,4800.5);
38 h[4] =
new TH1F(
"emcCalib_4",
"",4800,0.5,4800.5);
39 h[5] =
new TH1F(
"emcCalib_S",
"",4800,0.5,4800.5);
40 for(
int i = 0; i<4800;i++)
42 for(
int j=0;j<5;j++) h[j]->Fill(i+1,t1->AdcToE[i][j]);
43 h[5]->Fill(i+1,(
float)t1->Status[i]);
45 TCanvas* c = canvas(1,6);
53 void draw(smdCalib_st* t1)
56 h[0] =
new TH1F(
"smdCalib_0",
"",18000,0.5,18000.5);
57 h[1] =
new TH1F(
"smdCalib_1",
"",18000,0.5,18000.5);
58 h[2] =
new TH1F(
"smdCalib_2",
"",18000,0.5,18000.5);
59 h[3] =
new TH1F(
"smdCalib_3",
"",18000,0.5,18000.5);
60 h[4] =
new TH1F(
"smdCalib_4",
"",18000,0.5,18000.5);
61 h[5] =
new TH1F(
"smdCalib_S",
"",18000,0.5,18000.5);
62 for(
int i = 0; i<18000;i++)
64 for(
int j=0;j<5;j++) h[j]->Fill(i+1,t1->AdcToE[i][j]);
65 h[5]->Fill(i+1,(
float)t1->Status[i]);
67 TCanvas* c = canvas(1,6);
75 void draw(emcStatus_st* t1)
78 h[0] =
new TH1F(
"emcStatus_S",
"",4800,0.5,4800.5);
79 for(
int i = 0; i<4800;i++)
81 h[0]->Fill(i+1,(
float)t1->Status[i]);
83 TCanvas* c = canvas(1,1,600,300);
88 void draw(smdStatus_st* t1)
91 h[0] =
new TH1F(
"smdStatus_S",
"",18000,0.5,18000.5);
92 for(
int i = 0; i<18000;i++)
94 h[0]->Fill(i+1,(
float)t1->Status[i]);
96 TCanvas* c = canvas(1,1,600,300);
101 void draw(emcGain_st* t1)
104 h[0] =
new TH1F(
"emcGain_S",
"",4800,0.5,4800.5);
105 for(
int i = 0; i<4800;i++)
107 h[0]->Fill(i+1,(
float)t1->Gain[i]);
109 TCanvas* c = canvas(1,1,600,300);
114 void draw(smdGain_st* t1)
117 h[0] =
new TH1F(
"smdGain_S",
"",18000,0.5,18000.5);
118 for(
int i = 0; i<18000;i++)
120 h[0]->Fill(i+1,(
float)t1->Gain[i]);
122 TCanvas* c = canvas(1,1,600,300);
127 void draw(smdPed_st* t1)
130 h[0] =
new TH1F(
"smdPed_ADC0",
"",18000,0.5,18000.5);
131 h[1] =
new TH1F(
"smdPed_ADC1",
"",18000,0.5,18000.5);
132 h[2] =
new TH1F(
"smdPed_ADC2",
"",18000,0.5,18000.5);
133 h[3] =
new TH1F(
"smdPed_RMS0",
"",18000,0.5,18000.5);
134 h[4] =
new TH1F(
"smdPed_RMS1",
"",18000,0.5,18000.5);
135 h[5] =
new TH1F(
"smdPed_RMS2",
"",18000,0.5,18000.5);
136 h[6] =
new TH1F(
"smdPed_STATUS",
"",18000,0.5,18000.5);
137 for(
int i = 0; i<18000;i++)
139 h[0]->Fill(i+1,(
float)t1->AdcPedestal[i][0]/100);
140 h[1]->Fill(i+1,(
float)t1->AdcPedestal[i][1]/100);
141 h[2]->Fill(i+1,(
float)t1->AdcPedestal[i][2]/100);
142 h[3]->Fill(i+1,(
float)t1->AdcPedestalRMS[i][0]/100);
143 h[4]->Fill(i+1,(
float)t1->AdcPedestalRMS[i][1]/100);
144 h[5]->Fill(i+1,(
float)t1->AdcPedestalRMS[i][2]/100);
145 h[6]->Fill(i+1,(
float)t1->Status[i]);
147 TCanvas* c = canvas(3,3,800,500);
156 void draw(emcPed_st* t1)
159 h[0] =
new TH1F(
"emcPed_ADC",
"",4800,0.5,4800.5);
160 h[1] =
new TH1F(
"emcPed_RMS",
"",4800,0.5,4800.5);
161 h[2] =
new TH1F(
"emcPed_STATUS",
"",4800,0.5,4800.5);
162 for(
int i = 0; i<4800;i++)
164 h[0]->Fill(i+1,(
float)t1->AdcPedestal[i]/100);
165 h[1]->Fill(i+1,(
float)t1->AdcPedestalRMS[i]/100);
166 h[2]->Fill(i+1,(
float)t1->Status[i]);
168 TCanvas* c = canvas(1,3);
177 void draw(emcTriggerPed_st* t1)
180 h[0] =
new TH1F(
"emcTriggerPed_BITCONV",
"",300,0,300);
181 h[1] =
new TH1F(
"emcTriggerPed_PED",
"",4800,0,4800);
182 for(
int c=0;c<30;c++)
184 for(
int p=0;p<10;p++)
185 h[0]->Fill(c*10+p, (
float)t1->BitConversionMode[c][p]);
186 for(
int p=0;p<160;p++)
187 h[1]->Fill(c*160+p,(
float)t1->Ped[c][p]/100) ;
189 TCanvas* q = canvas(1,2);
198 void draw(emcTriggerStatus_st* t1)
201 h[0] =
new TH1F(
"emcTriggerStatus_Patch",
"",300,0,300);
202 h[1] =
new TH1F(
"emcTriggerStatus_HighTower",
"",300,0,300);
203 h[2] =
new TH1F(
"emcTriggerStatus_Tower",
"",4800,0,4800);
204 for(
int c=0;c<30;c++)
206 for(
int p=0;p<10;p++)
208 h[0]->Fill(c*10+p,t1->PatchStatus[c*10+p]) ;
209 h[1]->Fill(c*10+p,t1->HighTowerStatus[c*10+p]) ;
211 for(
int p=0;p<160;p++)
212 h[2]->Fill(c*160+p,t1->TowerStatus[c][p]);
214 TCanvas* q = canvas(1,3);
223 void draw(emcTriggerLUT_st* t1)
226 h[0] =
new TH1F(
"emcTriggerStatus_Tag",
"",300,0,300);
227 h[1] =
new TH1F(
"emcTriggerStatus_Par0",
"",300,0,300);
228 h[2] =
new TH1F(
"emcTriggerStatus_Par1",
"",300,0,300);
229 h[3] =
new TH1F(
"emcTriggerStatus_Par2",
"",300,0,300);
230 h[4] =
new TH1F(
"emcTriggerStatus_Par3",
"",300,0,300);
231 h[5] =
new TH1F(
"emcTriggerStatus_Par4",
"",300,0,300);
232 h[6] =
new TH1F(
"emcTriggerStatus_Par5",
"",300,0,300);
233 for(
int c=0;c<30;c++)
235 for(
int p=0;p<10;p++)
237 h[0]->Fill(c*30+p,t1->FormulaTag[c][p]) ;
238 h[1]->Fill(c*30+p,t1->FormulaParameter0[c][p]);
239 h[2]->Fill(c*30+p,t1->FormulaParameter1[c][p]);
240 h[3]->Fill(c*30+p,t1->FormulaParameter2[c][p]);
241 h[4]->Fill(c*30+p,t1->FormulaParameter3[c][p]);
242 h[5]->Fill(c*30+p,t1->FormulaParameter4[c][p]);
243 h[6]->Fill(c*30+p,t1->FormulaParameter5[c][p]);
246 TCanvas* q = canvas(1,7);