===============================================================================================================================================================================================
variant2: for each run define phi-averaged A for normalization channel (Dref,16) and then, divide Rijk on it, i.e. get RRijk
eta=27
41 printf(
"reco: gROOT Reset \n");
43 gROOT->SetStyle(
"Plain");
51 gStyle->SetOptStat(101110);
56 gStyle->SetOptFit(0010);
65 gStyle->SetStatX(0.91);
66 gStyle->SetStatY(0.75);
67 gStyle->SetStatW(0.20);
68 gStyle->SetStatH(0.10);
74 Float_t LeftOffset = 0.12;
75 Float_t TopOffset = 0.22;
77 gStyle->SetLineWidth(1);
81 gStyle->SetOptTitle(0);
83 gStyle->SetTitleColor(1);
85 gStyle->SetTitleX(0.15);
86 gStyle->SetTitleH(0.15);
88 gStyle->SetTitleW(0.60);
89 gStyle->SetTitleFont(42);
90 gStyle->SetTitleFontSize(0.07);
92 gStyle->SetPalette(1);
105 gStyle->SetPadTopMargin(TopOffset);
106 gStyle->SetPadBottomMargin(LeftOffset);
107 gStyle->SetPadRightMargin(TopOffset);
108 gStyle->SetPadLeftMargin(LeftOffset);
156 TFile *hfile1 =
new TFile(
"Global_346511.root",
"READ");
168 TPostScript psfile(
"zlumiadcampltest.ps", 111);
173 TCanvas *
c1 =
new TCanvas(
"c1",
"Hcal4test", 1000, 500);
176 TDirectory *
dir = (TDirectory *)hfile1->FindObjectAny(dirnm.c_str());
190 TH1F *LumLum = (TH1F *)
dir->FindObjectAny(
"h_lsnumber_per_eachLS");
191 int MaxLumDanila = LumLum->GetBinContent(LumLum->GetMaximumBin());
192 cout <<
" MaxLumDanila= " << MaxLumDanila << endl;
195 LumLum->SetMarkerStyle(21);
196 LumLum->SetMarkerSize(0.8);
197 LumLum->GetYaxis()->SetLabelSize(0.04);
198 LumLum->SetTitle(
"Cont. number per LS \b");
199 LumLum->SetXTitle(
"Cont.number \b");
200 LumLum->SetYTitle(
"Ls \b");
201 LumLum->SetMarkerColor(4);
202 LumLum->SetLineColor(0);
203 LumLum->SetMinimum(0.8);
204 LumLum->GetXaxis()->SetRangeUser(0, MaxLumDanila + 5.);
205 LumLum->Draw(
"Error");
208 TH1F *LumiEv = (TH1F *)
dir->FindObjectAny(
"h_nevents_per_eachRealLS");
209 int MaxLum0 = LumiEv->GetBinContent(LumiEv->GetMaximumBin());
211 for (
int i = 1;
i <= LumiEv->GetXaxis()->GetNbins();
i++) {
212 if (LumiEv->GetBinContent(
i)) {
216 cout <<
" Nev in bin of MaxLum = " << MaxLum0 <<
" MaxLum= " << MaxLum << endl;
222 LumiEv->GetYaxis()->SetLabelSize(0.04);
223 LumiEv->SetTitle(
"Number of events per LS");
224 LumiEv->SetXTitle(
"LS");
225 LumiEv->SetYTitle(
"Number of events ");
226 LumiEv->SetMarkerStyle(21);
227 LumiEv->SetMarkerSize(0.8);
228 LumiEv->SetMarkerColor(4);
229 LumiEv->SetLineColor(0);
230 LumiEv->SetMinimum(0.8);
231 LumiEv->GetXaxis()->SetRangeUser(0, MaxLum + 5.);
232 LumiEv->Draw(
"Error");
256 TH1F *MilMil = (TH1F *)
dir->FindObjectAny(
"h_lsnumber_per_eachLS");
257 int MaxMilDanila = MilMil->GetBinContent(MilMil->GetMaximumBin());
258 cout <<
" MaxMilDanila= " << MaxMilDanila << endl;
261 MilMil->GetYaxis()->SetLabelSize(0.04);
262 MilMil->SetTitle(
"Cont. number per LS \b");
263 MilMil->SetXTitle(
"Cont.number \b");
264 MilMil->SetYTitle(
"Ls \b");
265 MilMil->SetMarkerStyle(20);
266 MilMil->SetMarkerSize(0.2);
267 MilMil->SetMarkerColor(4);
268 MilMil->SetLineColor(0);
269 MilMil->SetMinimum(0.8);
270 MilMil->GetXaxis()->SetRangeUser(0, MaxMilDanila);
271 MilMil->Draw(
"Error");
274 TH1F *MiliEv = (TH1F *)
dir->FindObjectAny(
"h_nevents_per_eachLS");
275 int MaxMil0 = MiliEv->GetBinContent(MiliEv->GetMaximumBin());
277 for (
int i = 1;
i <= MiliEv->GetXaxis()->GetNbins();
i++) {
278 if (MiliEv->GetBinContent(
i)) {
282 cout <<
" MaxMil0= " << MaxMil0 <<
" MaxMil= " << MaxMil << endl;
288 MiliEv->GetYaxis()->SetLabelSize(0.04);
289 MiliEv->SetTitle(
"Number of events per LS");
290 MiliEv->SetXTitle(
"LS");
291 MiliEv->SetYTitle(
"Number of events ");
292 MiliEv->SetMarkerStyle(20);
293 MiliEv->SetMarkerSize(0.2);
294 MiliEv->SetMarkerColor(4);
295 MiliEv->SetLineColor(0);
297 MiliEv->GetXaxis()->SetRangeUser(0, MaxMil);
298 MiliEv->Draw(
"Error");
301 TH1F *GiriEv = (TH1F *)
dir->FindObjectAny(
"h_nls_per_run");
302 int MaxGir0 = GiriEv->GetBinContent(GiriEv->GetMaximumBin());
304 for (
int i = 1;
i <= GiriEv->GetXaxis()->GetNbins();
i++) {
305 if (GiriEv->GetBinContent(
i)) {
309 cout <<
"nls_per_run = " << MaxGir0 <<
" Maxnls_per_run= " << MaxGir << endl;
315 GiriEv->GetYaxis()->SetLabelSize(0.04);
316 GiriEv->SetTitle(
"Number of LS per run");
317 GiriEv->SetXTitle(
"irun");
318 GiriEv->SetYTitle(
"Number of LS ");
319 GiriEv->SetMarkerStyle(20);
320 GiriEv->SetMarkerSize(0.8);
321 GiriEv->SetMarkerColor(4);
322 GiriEv->SetLineColor(0);
324 GiriEv->GetXaxis()->SetRangeUser(0, MaxGir);
325 GiriEv->Draw(
"Error");
328 TH1F *SumiEv = (TH1F *)
dir->FindObjectAny(
"h_nevents_per_eachRealLS");
329 int MaxSum0 = SumiEv->GetBinContent(SumiEv->GetMaximumBin());
331 for (
int i = 1;
i <= SumiEv->GetXaxis()->GetNbins();
i++) {
332 if (SumiEv->GetBinContent(
i)) {
336 cout <<
" MaxSum0= " << MaxSum0 <<
" MaxSum= " << MaxSum << endl;
342 SumiEv->GetYaxis()->SetLabelSize(0.04);
343 SumiEv->SetTitle(
"Number of events per RealLS");
344 SumiEv->SetXTitle(
"LS");
345 SumiEv->SetYTitle(
"Number of events ");
346 SumiEv->SetMarkerStyle(20);
347 SumiEv->SetMarkerSize(0.2);
348 SumiEv->SetMarkerColor(4);
349 SumiEv->SetLineColor(0);
351 SumiEv->GetXaxis()->SetRangeUser(0, MaxSum);
352 SumiEv->Draw(
"Error");
355 TH1F *TiriEv = (TH1F *)
dir->FindObjectAny(
"h_nevents_per_LS");
356 int MaxTir0 = TiriEv->GetBinContent(TiriEv->GetMaximumBin());
358 for (
int i = 1;
i <= TiriEv->GetXaxis()->GetNbins();
i++) {
359 if (TiriEv->GetBinContent(
i)) {
363 cout <<
" MaxTir0= " << MaxTir0 <<
" MaxTir= " << MaxTir << endl;
365 TiriEv->GetYaxis()->SetLabelSize(0.04);
366 TiriEv->SetTitle(
"Number of events per LS");
367 TiriEv->SetXTitle(
"LS");
368 TiriEv->SetYTitle(
"Number of events ");
369 TiriEv->SetMarkerStyle(20);
370 TiriEv->SetMarkerSize(0.8);
371 TiriEv->SetMarkerColor(4);
372 TiriEv->SetLineColor(0);
374 TiriEv->GetXaxis()->SetRangeUser(0, MaxTir);
375 TiriEv->Draw(
"Error");
378 TH1F *MasiEv = (TH1F *)
dir->FindObjectAny(
"h_nevents_per_LSzoom");
379 int MaxMas0 = MasiEv->GetBinContent(MasiEv->GetMaximumBin());
381 for (
int i = 1;
i <= MasiEv->GetXaxis()->GetNbins();
i++) {
382 if (MasiEv->GetBinContent(
i)) {
386 cout <<
" MaxMas0= " << MaxMas0 <<
" MaxMas= " << MaxMas << endl;
388 MasiEv->GetYaxis()->SetLabelSize(0.04);
389 MasiEv->SetTitle(
"Number of events per LS");
390 MasiEv->SetXTitle(
"LS");
391 MasiEv->SetYTitle(
"Number of events ");
392 MasiEv->SetMarkerStyle(20);
393 MasiEv->SetMarkerSize(0.8);
394 MasiEv->SetMarkerColor(4);
395 MasiEv->SetLineColor(0);
397 MasiEv->GetXaxis()->SetRangeUser(0, MaxMas);
398 MasiEv->Draw(
"Error");
401 TH1F *LediEv = (TH1F *)
dir->FindObjectAny(
"h_nls_per_run10");
402 int MaxLed0 = LediEv->GetBinContent(LediEv->GetMaximumBin());
404 for (
int i = 1;
i <= LediEv->GetXaxis()->GetNbins();
i++) {
405 if (LediEv->GetBinContent(
i)) {
409 cout <<
" NlsPERrun= " << MaxLed0 <<
" MaxbinHisto= " << MaxLed << endl;
411 LediEv->GetYaxis()->SetLabelSize(0.04);
412 LediEv->SetTitle(
"Number of ls(ev>10) per run");
413 LediEv->SetXTitle(
"run");
414 LediEv->SetYTitle(
"Number of ls ");
415 LediEv->SetMarkerStyle(20);
416 LediEv->SetMarkerSize(0.8);
417 LediEv->SetMarkerColor(4);
418 LediEv->SetLineColor(0);
420 LediEv->GetXaxis()->SetRangeUser(0, MaxLed);
421 LediEv->Draw(
"Error");