9 Float_t raderror,phierror;
14 Float_t timepos,padpos,timesigma,padsigma;
15 Float_t peakheight, charge;
17 Int_t padlength,timelength;
27 Float_t temperature,pressure;
32 void plotPadOcc(
const Char_t *fileName=
"filelist.txt")
41 gStyle->SetTitleOffset(1.25);
42 gStyle->SetCanvasBorderMode(0);
43 gStyle->SetPadBorderMode(0);
44 gStyle->SetPadColor(0);
45 gStyle->SetCanvasColor(0);
46 gStyle->SetTitleColor(0);
47 gStyle->SetStatColor(0);
48 gStyle->SetPalette(1);
49 gStyle->SetOptStat(1111);
54 Int_t secrow[61][3][161];
56 for (Int_t isec=1;isec<61;isec++) {
57 for (Int_t irow=1;irow<3;irow++) {
58 for (Int_t ipad=1;ipad<161;ipad++) {
59 secrow[isec][irow][ipad]=0;
65 sec1row1 =
new TH1I(
"hsec1_hrow1",
"hsec1_hrow1",160,0,160);
66 sec2row1 =
new TH1I(
"hsec2_hrow1",
"hsec2_hrow1",160,0,160);
67 sec3row1 =
new TH1I(
"hsec3_hrow1",
"hsec3_hrow1",160,0,160);
68 sec4row1 =
new TH1I(
"hsec4_hrow1",
"hsec4_hrow1",160,0,160);
69 sec5row1 =
new TH1I(
"hsec5_hrow1",
"hsec5_hrow1",160,0,160);
70 sec6row1 =
new TH1I(
"hsec6_hrow1",
"hsec6_hrow1",160,0,160);
71 sec1row2 =
new TH1I(
"hsec1_hrow2",
"hsec1_hrow2",160,0,160);
72 sec2row2 =
new TH1I(
"hsec2_hrow2",
"hsec2_hrow2",160,0,160);
73 sec3row2 =
new TH1I(
"hsec3_hrow2",
"hsec3_hrow2",160,0,160);
74 sec4row2 =
new TH1I(
"hsec4_hrow2",
"hsec4_hrow2",160,0,160);
75 sec5row2 =
new TH1I(
"hsec5_hrow2",
"hsec5_hrow2",160,0,160);
76 sec6row2 =
new TH1I(
"hsec6_hrow2",
"hsec6_hrow2",160,0,160);
78 sec7row1 =
new TH1I(
"hsec7_hrow1",
"hsec7_hrow1",160,0,160);
79 sec8row1 =
new TH1I(
"hsec8_hrow1",
"hsec8_hrow1",160,0,160);
80 sec9row1 =
new TH1I(
"hsec9_hrow1",
"hsec9_hrow1",160,0,160);
81 sec10row1 =
new TH1I(
"hsec10_hrow1",
"hsec10_hrow1",160,0,160);
82 sec11row1 =
new TH1I(
"hsec11_hrow1",
"hsec11_hrow1",160,0,160);
83 sec12row1 =
new TH1I(
"hsec12_hrow1",
"hsec12_hrow1",160,0,160);
84 sec7row2 =
new TH1I(
"hsec7_hrow2",
"hsec7_hrow2",160,0,160);
85 sec8row2 =
new TH1I(
"hsec8_hrow2",
"hsec8_hrow2",160,0,160);
86 sec9row2 =
new TH1I(
"hsec9_hrow2",
"hsec9_hrow2",160,0,160);
87 sec10row2 =
new TH1I(
"hsec10_hrow2",
"hsec10_hrow2",160,0,160);
88 sec11row2 =
new TH1I(
"hsec11_hrow2",
"hsec11_hrow2",160,0,160);
89 sec12row2 =
new TH1I(
"hsec12_hrow2",
"hsec12_hrow2",160,0,160);
91 sec13row1 =
new TH1I(
"hsec13_hrow1",
"hsec13_hrow1",160,0,160);
92 sec14row1 =
new TH1I(
"hsec14_hrow1",
"hsec14_hrow1",160,0,160);
93 sec15row1 =
new TH1I(
"hsec15_hrow1",
"hsec15_hrow1",160,0,160);
94 sec16row1 =
new TH1I(
"hsec16_hrow1",
"hsec16_hrow1",160,0,160);
95 sec17row1 =
new TH1I(
"hsec17_hrow1",
"hsec17_hrow1",160,0,160);
96 sec18row1 =
new TH1I(
"hsec18_hrow1",
"hsec18_hrow1",160,0,160);
97 sec13row2 =
new TH1I(
"hsec13_hrow2",
"hsec13_hrow2",160,0,160);
98 sec14row2 =
new TH1I(
"hsec14_hrow2",
"hsec14_hrow2",160,0,160);
99 sec15row2 =
new TH1I(
"hsec15_hrow2",
"hsec15_hrow2",160,0,160);
100 sec16row2 =
new TH1I(
"hsec16_hrow2",
"hsec16_hrow2",160,0,160);
101 sec17row2 =
new TH1I(
"hsec17_hrow2",
"hsec17_hrow2",160,0,160);
102 sec18row2 =
new TH1I(
"hsec18_hrow2",
"hsec18_hrow2",160,0,160);
104 sec19row1 =
new TH1I(
"hsec19_hrow1",
"hsec19_hrow1",160,0,160);
105 sec20row1 =
new TH1I(
"hsec20_hrow1",
"hsec20_hrow1",160,0,160);
106 sec21row1 =
new TH1I(
"hsec21_hrow1",
"hsec21_hrow1",160,0,160);
107 sec22row1 =
new TH1I(
"hsec22_hrow1",
"hsec22_hrow1",160,0,160);
108 sec23row1 =
new TH1I(
"hsec23_hrow1",
"hsec23_hrow1",160,0,160);
109 sec24row1 =
new TH1I(
"hsec24_hrow1",
"hsec24_hrow1",160,0,160);
110 sec19row2 =
new TH1I(
"hsec19_hrow2",
"hsec19_hrow2",160,0,160);
111 sec20row2 =
new TH1I(
"hsec20_hrow2",
"hsec20_hrow2",160,0,160);
112 sec21row2 =
new TH1I(
"hsec21_hrow2",
"hsec21_hrow2",160,0,160);
113 sec22row2 =
new TH1I(
"hsec22_hrow2",
"hsec22_hrow2",160,0,160);
114 sec23row2 =
new TH1I(
"hsec23_hrow2",
"hsec23_hrow2",160,0,160);
115 sec24row2 =
new TH1I(
"hsec24_hrow2",
"hsec24_hrow2",160,0,160);
117 sec25row1 =
new TH1I(
"hsec25_hrow1",
"hsec25_hrow1",160,0,160);
118 sec26row1 =
new TH1I(
"hsec26_hrow1",
"hsec26_hrow1",160,0,160);
119 sec27row1 =
new TH1I(
"hsec27_hrow1",
"hsec27_hrow1",160,0,160);
120 sec28row1 =
new TH1I(
"hsec28_hrow1",
"hsec28_hrow1",160,0,160);
121 sec29row1 =
new TH1I(
"hsec29_hrow1",
"hsec29_hrow1",160,0,160);
122 sec30row1 =
new TH1I(
"hsec30_hrow1",
"hsec30_hrow1",160,0,160);
123 sec25row2 =
new TH1I(
"hsec25_hrow2",
"hsec25_hrow2",160,0,160);
124 sec26row2 =
new TH1I(
"hsec26_hrow2",
"hsec26_hrow2",160,0,160);
125 sec27row2 =
new TH1I(
"hsec27_hrow2",
"hsec27_hrow2",160,0,160);
126 sec28row2 =
new TH1I(
"hsec28_hrow2",
"hsec28_hrow2",160,0,160);
127 sec29row2 =
new TH1I(
"hsec29_hrow2",
"hsec29_hrow2",160,0,160);
128 sec30row2 =
new TH1I(
"hsec30_hrow2",
"hsec30_hrow2",160,0,160);
131 sec31row1 =
new TH1I(
"hsec31_hrow1",
"hsec31_hrow1",160,0,160);
132 sec32row1 =
new TH1I(
"hsec32_hrow1",
"hsec32_hrow1",160,0,160);
133 sec33row1 =
new TH1I(
"hsec33_hrow1",
"hsec33_hrow1",160,0,160);
134 sec34row1 =
new TH1I(
"hsec34_hrow1",
"hsec34_hrow1",160,0,160);
135 sec35row1 =
new TH1I(
"hsec35_hrow1",
"hsec35_hrow1",160,0,160);
136 sec36row1 =
new TH1I(
"hsec36_hrow1",
"hsec36_hrow1",160,0,160);
137 sec31row2 =
new TH1I(
"hsec31_hrow2",
"hsec31_hrow2",160,0,160);
138 sec32row2 =
new TH1I(
"hsec32_hrow2",
"hsec32_hrow2",160,0,160);
139 sec33row2 =
new TH1I(
"hsec33_hrow2",
"hsec33_hrow2",160,0,160);
140 sec34row2 =
new TH1I(
"hsec34_hrow2",
"hsec34_hrow2",160,0,160);
141 sec35row2 =
new TH1I(
"hsec35_hrow2",
"hsec35_hrow2",160,0,160);
142 sec36row2 =
new TH1I(
"hsec36_hrow2",
"hsec36_hrow2",160,0,160);
144 sec37row1 =
new TH1I(
"hsec37_hrow1",
"hsec37_hrow1",160,0,160);
145 sec38row1 =
new TH1I(
"hsec38_hrow1",
"hsec38_hrow1",160,0,160);
146 sec39row1 =
new TH1I(
"hsec39_hrow1",
"hsec39_hrow1",160,0,160);
147 sec40row1 =
new TH1I(
"hsec40_hrow1",
"hsec40_hrow1",160,0,160);
148 sec41row1 =
new TH1I(
"hsec41_hrow1",
"hsec41_hrow1",160,0,160);
149 sec42row1 =
new TH1I(
"hsec42_hrow1",
"hsec42_hrow1",160,0,160);
150 sec37row2 =
new TH1I(
"hsec37_hrow2",
"hsec37_hrow2",160,0,160);
151 sec38row2 =
new TH1I(
"hsec38_hrow2",
"hsec38_hrow2",160,0,160);
152 sec39row2 =
new TH1I(
"hsec39_hrow2",
"hsec39_hrow2",160,0,160);
153 sec40row2 =
new TH1I(
"hsec40_hrow2",
"hsec40_hrow2",160,0,160);
154 sec41row2 =
new TH1I(
"hsec41_hrow2",
"hsec41_hrow2",160,0,160);
155 sec42row2 =
new TH1I(
"hsec42_hrow2",
"hsec42_hrow2",160,0,160);
157 sec43row1 =
new TH1I(
"hsec43_hrow1",
"hsec43_hrow1",160,0,160);
158 sec44row1 =
new TH1I(
"hsec44_hrow1",
"hsec44_hrow1",160,0,160);
159 sec45row1 =
new TH1I(
"hsec45_hrow1",
"hsec45_hrow1",160,0,160);
160 sec46row1 =
new TH1I(
"hsec46_hrow1",
"hsec46_hrow1",160,0,160);
161 sec47row1 =
new TH1I(
"hsec47_hrow1",
"hsec47_hrow1",160,0,160);
162 sec48row1 =
new TH1I(
"hsec48_hrow1",
"hsec48_hrow1",160,0,160);
163 sec43row2 =
new TH1I(
"hsec43_hrow2",
"hsec43_hrow2",160,0,160);
164 sec44row2 =
new TH1I(
"hsec44_hrow2",
"hsec44_hrow2",160,0,160);
165 sec45row2 =
new TH1I(
"hsec45_hrow2",
"hsec45_hrow2",160,0,160);
166 sec46row2 =
new TH1I(
"hsec46_hrow2",
"hsec46_hrow2",160,0,160);
167 sec47row2 =
new TH1I(
"hsec47_hrow2",
"hsec47_hrow2",160,0,160);
168 sec48row2 =
new TH1I(
"hsec48_hrow2",
"hsec48_hrow2",160,0,160);
170 sec49row1 =
new TH1I(
"hsec49_hrow1",
"hsec49_hrow1",160,0,160);
171 sec50row1 =
new TH1I(
"hsec50_hrow1",
"hsec50_hrow1",160,0,160);
172 sec51row1 =
new TH1I(
"hsec51_hrow1",
"hsec51_hrow1",160,0,160);
173 sec52row1 =
new TH1I(
"hsec52_hrow1",
"hsec52_hrow1",160,0,160);
174 sec53row1 =
new TH1I(
"hsec53_hrow1",
"hsec53_hrow1",160,0,160);
175 sec54row1 =
new TH1I(
"hsec54_hrow1",
"hsec54_hrow1",160,0,160);
176 sec49row2 =
new TH1I(
"hsec49_hrow2",
"hsec49_hrow2",160,0,160);
177 sec50row2 =
new TH1I(
"hsec50_hrow2",
"hsec50_hrow2",160,0,160);
178 sec51row2 =
new TH1I(
"hsec51_hrow2",
"hsec51_hrow2",160,0,160);
179 sec52row2 =
new TH1I(
"hsec52_hrow2",
"hsec52_hrow2",160,0,160);
180 sec53row2 =
new TH1I(
"hsec53_hrow2",
"hsec53_hrow2",160,0,160);
181 sec54row2 =
new TH1I(
"hsec54_hrow2",
"hsec54_hrow2",160,0,160);
183 sec55row1 =
new TH1I(
"hsec55_hrow1",
"hsec55_hrow1",160,0,160);
184 sec56row1 =
new TH1I(
"hsec56_hrow1",
"hsec56_hrow1",160,0,160);
185 sec57row1 =
new TH1I(
"hsec57_hrow1",
"hsec57_hrow1",160,0,160);
186 sec58row1 =
new TH1I(
"hsec58_hrow1",
"hsec58_hrow1",160,0,160);
187 sec59row1 =
new TH1I(
"hsec59_hrow1",
"hsec59_hrow1",160,0,160);
188 sec60row1 =
new TH1I(
"hsec60_hrow1",
"hsec60_hrow1",160,0,160);
189 sec55row2 =
new TH1I(
"hsec55_hrow2",
"hsec55_hrow2",160,0,160);
190 sec56row2 =
new TH1I(
"hsec56_hrow2",
"hsec56_hrow2",160,0,160);
191 sec57row2 =
new TH1I(
"hsec57_hrow2",
"hsec57_hrow2",160,0,160);
192 sec58row2 =
new TH1I(
"hsec58_hrow2",
"hsec58_hrow2",160,0,160);
193 sec59row2 =
new TH1I(
"hsec59_hrow2",
"hsec59_hrow2",160,0,160);
194 sec60row2 =
new TH1I(
"hsec60_hrow2",
"hsec60_hrow2",160,0,160);
198 cout<<
"Histogram the number of good clusters per pad for each sector"<<endl;
202 char **fList =
new char[200][256];
204 ifstream fin(fileName);
207 cout <<
"Input file " << fileName <<
" found." << endl;
208 for (Int_t i=0;i<200;i++){
209 char *line =
new char[256];
211 if (fin.eof())
break;
213 cout <<
" Added file : " << fList[j] << endl;
222 for (Int_t ifile=0;ifile<nfile;ifile++) {
223 TString eingabe = fList[ifile];
229 TTree *dtree=(TTree*) f.Get(
"cl");
232 TBranch *bcluster=dtree->GetBranch(
"cluster");
233 bcluster->SetAddress(&cluster);
234 TBranch *bevent=dtree->GetBranch(
"event");
235 bevent->SetAddress(&event);
239 Int_t CurrentEvent =
event.nevent;
240 maxentries=bcluster->GetEntries();
242 for (
int i=0;i<=maxentries;i++) {
244 if (event.nevent != CurrentEvent){
246 CurrentEvent =
event.nevent;
248 bcluster->GetEntry(i);
251 if ((cluster.padlength>=3&&cluster.padlength<=6) &&
252 (cluster.timelength>=4&&cluster.timelength<=8)){
253 secrow[cluster.sec][cluster.row][cluster.pad]++;
258 for (Int_t i=0;i<160;i++) {
260 sec1row1->SetBinContent(i,secrow[1][1][i]);
261 sec2row1->SetBinContent(i,secrow[2][1][i]);
262 sec3row1->SetBinContent(i,secrow[3][1][i]);
263 sec4row1->SetBinContent(i,secrow[4][1][i]);
264 sec5row1->SetBinContent(i,secrow[5][1][i]);
265 sec6row1->SetBinContent(i,secrow[6][1][i]);
266 sec1row2->SetBinContent(i,secrow[1][2][i]);
267 sec2row2->SetBinContent(i,secrow[2][2][i]);
268 sec3row2->SetBinContent(i,secrow[3][2][i]);
269 sec4row2->SetBinContent(i,secrow[4][2][i]);
270 sec5row2->SetBinContent(i,secrow[5][2][i]);
271 sec6row2->SetBinContent(i,secrow[6][2][i]);
273 sec7row1->SetBinContent(i,secrow[7][1][i]);
274 sec8row1->SetBinContent(i,secrow[8][1][i]);
275 sec9row1->SetBinContent(i,secrow[9][1][i]);
276 sec10row1->SetBinContent(i,secrow[10][1][i]);
277 sec11row1->SetBinContent(i,secrow[11][1][i]);
278 sec12row1->SetBinContent(i,secrow[12][1][i]);
279 sec7row2->SetBinContent(i,secrow[7][2][i]);
280 sec8row2->SetBinContent(i,secrow[8][2][i]);
281 sec9row2->SetBinContent(i,secrow[8][2][i]);
282 sec10row2->SetBinContent(i,secrow[10][2][i]);
283 sec11row2->SetBinContent(i,secrow[11][2][i]);
284 sec12row2->SetBinContent(i,secrow[12][2][i]);
286 sec13row1->SetBinContent(i,secrow[13][1][i]);
287 sec14row1->SetBinContent(i,secrow[14][1][i]);
288 sec15row1->SetBinContent(i,secrow[15][1][i]);
289 sec16row1->SetBinContent(i,secrow[16][1][i]);
290 sec17row1->SetBinContent(i,secrow[17][1][i]);
291 sec18row1->SetBinContent(i,secrow[18][1][i]);
292 sec13row2->SetBinContent(i,secrow[13][2][i]);
293 sec14row2->SetBinContent(i,secrow[14][2][i]);
294 sec15row2->SetBinContent(i,secrow[15][2][i]);
295 sec16row2->SetBinContent(i,secrow[16][2][i]);
296 sec17row2->SetBinContent(i,secrow[17][2][i]);
297 sec18row2->SetBinContent(i,secrow[18][2][i]);
299 sec19row1->SetBinContent(i,secrow[19][1][i]);
300 sec20row1->SetBinContent(i,secrow[20][1][i]);
301 sec21row1->SetBinContent(i,secrow[21][1][i]);
302 sec22row1->SetBinContent(i,secrow[22][1][i]);
303 sec23row1->SetBinContent(i,secrow[23][1][i]);
304 sec24row1->SetBinContent(i,secrow[24][1][i]);
305 sec19row2->SetBinContent(i,secrow[19][2][i]);
306 sec20row2->SetBinContent(i,secrow[20][2][i]);
307 sec21row2->SetBinContent(i,secrow[21][2][i]);
308 sec22row2->SetBinContent(i,secrow[22][2][i]);
309 sec23row2->SetBinContent(i,secrow[23][2][i]);
310 sec24row2->SetBinContent(i,secrow[24][2][i]);
312 sec25row1->SetBinContent(i,secrow[25][1][i]);
313 sec26row1->SetBinContent(i,secrow[26][1][i]);
314 sec27row1->SetBinContent(i,secrow[27][1][i]);
315 sec28row1->SetBinContent(i,secrow[28][1][i]);
316 sec29row1->SetBinContent(i,secrow[29][1][i]);
317 sec30row1->SetBinContent(i,secrow[30][1][i]);
318 sec25row2->SetBinContent(i,secrow[25][2][i]);
319 sec26row2->SetBinContent(i,secrow[26][2][i]);
320 sec27row2->SetBinContent(i,secrow[27][2][i]);
321 sec28row2->SetBinContent(i,secrow[28][2][i]);
322 sec29row2->SetBinContent(i,secrow[29][2][i]);
323 sec30row2->SetBinContent(i,secrow[30][2][i]);
325 sec31row1->SetBinContent(i,secrow[31][1][i]);
326 sec32row1->SetBinContent(i,secrow[32][1][i]);
327 sec33row1->SetBinContent(i,secrow[33][1][i]);
328 sec34row1->SetBinContent(i,secrow[34][1][i]);
329 sec35row1->SetBinContent(i,secrow[35][1][i]);
330 sec36row1->SetBinContent(i,secrow[36][1][i]);
331 sec31row2->SetBinContent(i,secrow[31][2][i]);
332 sec32row2->SetBinContent(i,secrow[32][2][i]);
333 sec33row2->SetBinContent(i,secrow[33][2][i]);
334 sec34row2->SetBinContent(i,secrow[34][2][i]);
335 sec35row2->SetBinContent(i,secrow[35][2][i]);
336 sec36row2->SetBinContent(i,secrow[36][2][i]);
338 sec37row1->SetBinContent(i,secrow[37][1][i]);
339 sec38row1->SetBinContent(i,secrow[38][1][i]);
340 sec39row1->SetBinContent(i,secrow[39][1][i]);
341 sec40row1->SetBinContent(i,secrow[40][1][i]);
342 sec41row1->SetBinContent(i,secrow[41][1][i]);
343 sec42row1->SetBinContent(i,secrow[42][1][i]);
344 sec37row2->SetBinContent(i,secrow[37][2][i]);
345 sec38row2->SetBinContent(i,secrow[38][2][i]);
346 sec39row2->SetBinContent(i,secrow[39][2][i]);
347 sec40row2->SetBinContent(i,secrow[40][2][i]);
348 sec41row2->SetBinContent(i,secrow[41][2][i]);
349 sec42row2->SetBinContent(i,secrow[42][2][i]);
351 sec43row1->SetBinContent(i,secrow[43][1][i]);
352 sec44row1->SetBinContent(i,secrow[44][1][i]);
353 sec45row1->SetBinContent(i,secrow[45][1][i]);
354 sec46row1->SetBinContent(i,secrow[46][1][i]);
355 sec47row1->SetBinContent(i,secrow[47][1][i]);
356 sec48row1->SetBinContent(i,secrow[48][1][i]);
357 sec43row2->SetBinContent(i,secrow[43][2][i]);
358 sec44row2->SetBinContent(i,secrow[44][2][i]);
359 sec45row2->SetBinContent(i,secrow[45][2][i]);
360 sec46row2->SetBinContent(i,secrow[46][2][i]);
361 sec47row2->SetBinContent(i,secrow[47][2][i]);
362 sec48row2->SetBinContent(i,secrow[48][2][i]);
364 sec49row1->SetBinContent(i,secrow[49][1][i]);
365 sec50row1->SetBinContent(i,secrow[50][1][i]);
366 sec51row1->SetBinContent(i,secrow[51][1][i]);
367 sec52row1->SetBinContent(i,secrow[52][1][i]);
368 sec53row1->SetBinContent(i,secrow[53][1][i]);
369 sec54row1->SetBinContent(i,secrow[54][1][i]);
370 sec49row2->SetBinContent(i,secrow[49][2][i]);
371 sec50row2->SetBinContent(i,secrow[50][2][i]);
372 sec51row2->SetBinContent(i,secrow[51][2][i]);
373 sec52row2->SetBinContent(i,secrow[52][2][i]);
374 sec53row2->SetBinContent(i,secrow[53][2][i]);
375 sec54row2->SetBinContent(i,secrow[54][2][i]);
377 sec55row1->SetBinContent(i,secrow[55][1][i]);
378 sec56row1->SetBinContent(i,secrow[56][1][i]);
379 sec57row1->SetBinContent(i,secrow[57][1][i]);
380 sec58row1->SetBinContent(i,secrow[58][1][i]);
381 sec59row1->SetBinContent(i,secrow[59][1][i]);
382 sec60row1->SetBinContent(i,secrow[60][1][i]);
383 sec55row2->SetBinContent(i,secrow[55][2][i]);
384 sec56row2->SetBinContent(i,secrow[56][2][i]);
385 sec57row2->SetBinContent(i,secrow[57][2][i]);
386 sec58row2->SetBinContent(i,secrow[58][2][i]);
387 sec59row2->SetBinContent(i,secrow[59][2][i]);
388 sec60row2->SetBinContent(i,secrow[60][2][i]);
391 TCanvas *c1 =
new TCanvas(
"c1",
"ps",200,10,700,500);
393 psFile =
"plotPadOcc.ps";
394 TPostScript *fps=
new TPostScript(psFile,112);