1 #if !defined(__CINT__) || defined(__MAKECINT__)
7 #include <TClassTable.h>
22 #include <TFileMerger.h>
23 #include <TGridResult.h>
29 void MakePlots(TString ntupleFileName);
31 void ZDCQAtrending(TString period,
33 TString qaTrain = "QA",
34 Bool_t useOnlyMerged = kTRUE,
36 Int_t lastRun = 999999999,
37 TString runListFile = "",
38 TString fileName = "QAresults.root"){
40 gStyle->SetOptStat(0);
42 TGrid::Connect("alien:");
44 if(period.Contains("LHC09")) year = 2009;
45 else if(period.Contains("LHC10")) year = 2010;
46 else if(period.Contains("LHC11")) year = 2011;
48 Bool_t useExternalList = kFALSE;
51 if(runListFile.Length()>0){
52 if(!gSystem->Exec(Form("ls -l %s > /dev/null 2>&1",runListFile.Data()))){
53 printf("Use Run List from %s --- runs to be analyzed:\n",runListFile.Data());
54 useExternalList = kTRUE;
55 FILE* rfil = fopen(runListFile.Data(),"r");
58 int stat = fscanf(rfil,"%d, ",&nrun);
60 runList[totRuns++] = nrun;
62 for(Int_t ir = 0; ir<totRuns; ir++){
63 printf("%d\n",runList[ir]);
67 printf("File with run list does not exist\n");
71 TString outFilNam = Form("ZDCtrend_%s_%s_%s.root",period.Data(),recoPass.Data(),qaTrain.Data());
74 const Int_t nVariables = 27;
75 TNtuple* ntzdc = new TNtuple("ntzdc","ZDC trending",
76 "nrun:meanZNC:meanZPC:meanZNA:meanZPA:meanZEM1:meanZEM2:emeanZNC:emeanZPC:emeanZNA:emeanZPA:emeanZEM1:emeanZEM2:"
77 "ZNClg:ZNAlg:eZNClg:eZNAlg:pmcZNClg:pmcZNAlg:epmcZNClg:epmcZNAlg:xZNC:yZNC:xZNA:yZNA:tdcSum:tdcDiff");
78 Float_t xnt[nVariables];
80 TBits* readRun = new TBits(999999);
81 readRun->ResetAllBits();
83 if(!gSystem->Exec(Form("ls -l %s > /dev/null 2>&1",outFilNam.Data()))){
84 TFile* oldfil = new TFile(outFilNam.Data());
85 TNtuple* ntmp = (TNtuple*)oldfil->Get("ntzdc");
88 if(ntmp->GetNvar() == ntzdc->GetNvar()){
90 TObjArray* arr1 = (TObjArray*)ntzdc->GetListOfBranches();
91 TObjArray* arr2 = (TObjArray*)ntmp->GetListOfBranches();
92 for(Int_t iV = 0; iV<ntmp->GetNvar(); iV++){
93 TString vnam1 = arr1->At(iV)->GetName();
94 TString vnam2 = arr2->At(iV)->GetName();
95 if(vnam1 != vnam2) isOK = kFALSE;
96 ntmp->SetBranchAddress(vnam2.Data(),&xnt[iV]);
99 for(Int_t nE = 0; nE<ntmp->GetEntries(); nE++){
101 Int_t theRun = (Int_t)(xnt[0]+0.0001);
102 readRun->SetBitNumber(theRun);
109 printf("Ntuple in local file not OK -> will be recreated\n");
116 if(!gGrid||!gGrid->IsConnected()) {
117 printf("gGrid not found! exit macro\n");
121 TString path = Form("/alice/data/%d/%s/",year,period.Data());
122 TGridResult *gr = gGrid->Query(path,fileName);
123 Int_t nFiles = gr->GetEntries();
124 printf(" --->%d merged QAresults.root files found in %s\n", nFiles,path.Data());
125 if(nFiles < 1) return;
127 Int_t nAnalyzedFiles = 0;
129 for(Int_t iFil = 0; iFil <nFiles ; iFil++) {
130 TString fileNameLong = Form("%s",gr->GetKey(iFil,"turl"));
131 if(!fileNameLong.Contains(recoPass.Data())) continue;
132 // Commented Sep. 2011
133 // if(!fileNameLong.Contains(qaTrain.Data())) continue;
134 // if(fileNameLong.Contains("TRD") || fileNameLong.Contains("EMCAL")) continue;
135 TString runNumber = fileNameLong;
136 runNumber.ReplaceAll(Form("alien:///alice/data/%d/%s/",year,period.Data()),"");
137 runNumber.Remove(9,runNumber.Sizeof());
139 Int_t iRun = atoi(runNumber.Data());
140 //printf(" runNumber: %s -> iRun %d\n",runNumber.Data(), iRun);
142 Bool_t keepRun = kFALSE;
143 for(Int_t ir = 0; ir<totRuns; ir++){
144 if(iRun == runList[ir]){
149 if(!keepRun) continue;
151 if(readRun->TestBitNumber(iRun)){
152 printf("Run %d already in local ntuple -> skipping it\n",iRun);
155 if(iRun<firstRun) continue;
156 if(iRun>lastRun) continue;
158 printf(" fileNameLog: %s\n",fileNameLong.Data());
160 TString isMerged = fileNameLong;
162 if(!isMerged.Contains(recoPass.Data())) continue;
163 if(isMerged.Contains("Stage")) continue;
164 printf(" -> isMerged: %s\n",isMerged.Data());
165 isMerged.Remove(0,isMerged.Sizeof()-20);
166 printf(" -> isMerged: %s\n",isMerged.Data());
167 if(!isMerged.Contains(qaTrain) || !isMerged.Contains("QAresults.root")) continue;
168 printf("isMerged %s\n",isMerged.Data());
171 printf("Open File %s \n",fileNameLong.Data());
174 TFile* f = TFile::Open(fileNameLong.Data());
176 TDirectoryFile* df = (TDirectoryFile*)f->Get("ZDC_Performance");
178 printf("Run %d ZDC_Performance MISSING -> Exit\n",iRun);
181 TList* l = (TList*)df->Get("QAZDCHists");
183 printf("Run %d QAZDCHists TList MISSING -> Exit\n",iRun);
188 if(!useOnlyMerged) readRun->SetBitNumber(iRun);
190 TH1F *fhTDCZNSum = (TH1F*)l->FindObject("fhTDCZNSum");
191 TH1F *fhTDCZNDiff = (TH1F*)l->FindObject("fhTDCZNDiff");
192 TH1F *fhZNCSpectrum = (TH1F*)l->FindObject("fhZNCSpectrum");
193 TH1F *fhZNASpectrum = (TH1F*)l->FindObject("fhZNASpectrum");
194 TH1F *fhZPCSpectrum = (TH1F*)l->FindObject("fhZPCSpectrum");
195 TH1F *fhZPASpectrum = (TH1F*)l->FindObject("fhZPASpectrum");
196 TH1F *fhZEM1Spectrum = (TH1F*)l->FindObject("fhZEM1Spectrum");
197 TH1F *fhZEM2Spectrum = (TH1F*)l->FindObject("fhZEM2Spectrum");
198 /*TH1F *fhZNCpmc = (TH1F*)l->FindObject("fhZNCpmc");
199 TH1F *fhZNApmc = (TH1F*)l->FindObject("fhZNApmc");
200 TH1F *fhZPCpmc = (TH1F*)l->FindObject("fhZPCpmc");
201 TH1F *fhZPApmc = (TH1F*)l->FindObject("fhZPApmc");*/
202 TH2F *fhZNCCentroid = (TH2F*)l->FindObject("fhZNCCentroid");
203 TH2F *fhZNACentroid = (TH2F*)l->FindObject("fhZNACentroid");
204 TH1F *fhZNCemd = (TH1F*)l->FindObject("fhZNCemd");
205 TH1F *fhZNAemd = (TH1F*)l->FindObject("fhZNAemd");
206 TH1F *fhPMCZNCemd = (TH1F*)l->FindObject("fhPMCZNCemd");
207 TH1F *fhPMCZNAemd = (TH1F*)l->FindObject("fhPMCZNAemd");
209 TH1D *hxZNC = fhZNCCentroid->ProjectionX("hxZNC");
210 TH1D *hyZNC = fhZNCCentroid->ProjectionY("hyZNC");
211 TH1D *hxZNA = fhZNACentroid->ProjectionX("hxZNA");
212 TH1D *hyZNA = fhZNACentroid->ProjectionY("hyZNA");
215 xnt[index++] = (Float_t)iRun;
216 xnt[index++] = fhZNCSpectrum->GetMean();
217 xnt[index++] = fhZPCSpectrum->GetMean();
218 xnt[index++] = fhZNASpectrum->GetMean();
219 xnt[index++] = fhZPASpectrum->GetMean();
220 xnt[index++] = fhZEM1Spectrum->GetMean();
221 xnt[index++] = fhZEM2Spectrum->GetMean();
222 if(fhZNCSpectrum->GetEntries()>0) xnt[index++] = fhZNCSpectrum->GetMean()/fhZNCSpectrum->GetEntries();
223 if(fhZPCSpectrum->GetEntries()>0) xnt[index++] = fhZPCSpectrum->GetMean()/fhZPCSpectrum->GetEntries();
224 if(fhZNASpectrum->GetEntries()>0) xnt[index++] = fhZNASpectrum->GetMean()/fhZNASpectrum->GetEntries();
225 if(fhZPASpectrum->GetEntries()>0) xnt[index++] = fhZPASpectrum->GetMean()/fhZPASpectrum->GetEntries();
226 if(fhZEM1Spectrum->GetEntries()>0) xnt[index++] = fhZEM1Spectrum->GetMean()/fhZEM1Spectrum->GetEntries();
227 if(fhZEM2Spectrum->GetEntries()>0) xnt[index++] = fhZEM2Spectrum->GetMean()/fhZEM2Spectrum->GetEntries();
228 xnt[index++] = fhZNCemd->GetMean();
229 xnt[index++] = fhZNAemd->GetMean();
230 if(fhZNCemd->GetEntries()>0) xnt[index++] = fhZNCemd->GetMean()/fhZNCemd->GetEntries();
231 if(fhZNAemd->GetEntries()>0) xnt[index++] = fhZNAemd->GetMean()/fhZNAemd->GetEntries();
232 xnt[index++] = fhPMCZNCemd->GetMean();
233 xnt[index++] = fhPMCZNAemd->GetMean();
234 if(fhPMCZNCemd->GetEntries()>0) xnt[index++] = fhPMCZNCemd->GetMean()/fhPMCZNCemd->GetEntries();
235 if(fhPMCZNAemd->GetEntries()>0) xnt[index++] = fhPMCZNAemd->GetMean()/fhPMCZNAemd->GetEntries();
236 xnt[index++] = hxZNC->GetMean();
237 xnt[index++] = hyZNC->GetMean();
238 xnt[index++] = hxZNA->GetMean();
239 xnt[index++] = hyZNA->GetMean();
240 xnt[index++] = fhTDCZNSum->GetMean();
241 xnt[index++] = fhTDCZNDiff->GetMean();
245 printf("Number of analyzed files = %d\n",nAnalyzedFiles);
247 if(nAnalyzedFiles>0){
248 TFile* outfil = new TFile(outFilNam.Data(),"recreate");
253 MakePlots(outFilNam);
257 void MakePlots(TString ntupleFileName){
258 TFile* fil = new TFile(ntupleFileName.Data(),"read");
260 printf("File with ntuple does not exist\n");
263 TNtuple* ntzdc = (TNtuple*)fil->Get("ntzdc");
266 Float_t meanZNC,meanZPC,meanZNA,meanZPA,meanZEM1,meanZEM2;
267 Float_t emeanZNC,emeanZPC,emeanZNA,emeanZPA,emeanZEM1,emeanZEM2;
268 Float_t ZNClg,ZNAlg,pmcZNClg,pmcZNAlg;
269 Float_t eZNClg,eZNAlg,epmcZNClg,epmcZNAlg;
270 Float_t xZNC,yZNC,xZNA,yZNA,tdcSum,tdcDiff;
272 ntzdc->SetBranchAddress("nrun",&nrun);
273 ntzdc->SetBranchAddress("meanZNC",&meanZNC);
274 ntzdc->SetBranchAddress("meanZPC",&meanZPC);
275 ntzdc->SetBranchAddress("meanZNA",&meanZNA);
276 ntzdc->SetBranchAddress("meanZPA",&meanZPA);
277 ntzdc->SetBranchAddress("meanZEM1",&meanZEM1);
278 ntzdc->SetBranchAddress("meanZEM2",&meanZEM2);
279 ntzdc->SetBranchAddress("emeanZNC",&emeanZNC);
280 ntzdc->SetBranchAddress("emeanZPC",&emeanZPC);
281 ntzdc->SetBranchAddress("emeanZNA",&emeanZNA);
282 ntzdc->SetBranchAddress("emeanZPA",&emeanZPA);
283 ntzdc->SetBranchAddress("emeanZEM1",&emeanZEM1);
284 ntzdc->SetBranchAddress("emeanZEM2",&emeanZEM2);
285 ntzdc->SetBranchAddress("ZNClg",&ZNClg);
286 ntzdc->SetBranchAddress("ZNAlg",&ZNAlg);
287 ntzdc->SetBranchAddress("eZNClg",&eZNClg);
288 ntzdc->SetBranchAddress("eZNAlg",&eZNAlg);
289 ntzdc->SetBranchAddress("pmcZNClg",&pmcZNClg);
290 ntzdc->SetBranchAddress("pmcZNAlg",&pmcZNAlg);
291 ntzdc->SetBranchAddress("epmcZNClg",&epmcZNClg);
292 ntzdc->SetBranchAddress("epmcZNAlg",&epmcZNAlg);
293 ntzdc->SetBranchAddress("xZNC",&xZNC);
294 ntzdc->SetBranchAddress("yZNC",&yZNC);
295 ntzdc->SetBranchAddress("xZNA",&xZNA);
296 ntzdc->SetBranchAddress("yZNA",&yZNA);
297 ntzdc->SetBranchAddress("tdcSum",&tdcSum);
298 ntzdc->SetBranchAddress("tdcDiff",&tdcDiff);
300 TH1F *hznc = new TH1F("hznc","",(Int_t)ntzdc->GetEntries(),0.,ntzdc->GetEntries());
301 TH1F *hzna = new TH1F("hzna","",(Int_t)ntzdc->GetEntries(),0.,ntzdc->GetEntries());
302 TH1F *hzpc = new TH1F("hzpc","",(Int_t)ntzdc->GetEntries(),0.,ntzdc->GetEntries());
303 TH1F *hzpa = new TH1F("hzpa","",(Int_t)ntzdc->GetEntries(),0.,ntzdc->GetEntries());
304 TH1F *hzem1 = new TH1F("hzem1","",(Int_t)ntzdc->GetEntries(),0.,ntzdc->GetEntries());
305 TH1F *hzem2 = new TH1F("hzem2","",(Int_t)ntzdc->GetEntries(),0.,ntzdc->GetEntries());
306 TH1F *hznclg = new TH1F("hznclg","",(Int_t)ntzdc->GetEntries(),0.,ntzdc->GetEntries());
307 TH1F *hznalg = new TH1F("hznalg","",(Int_t)ntzdc->GetEntries(),0.,ntzdc->GetEntries());
308 TH1F *hpmcznclg = new TH1F("hpmcznclg","",(Int_t)ntzdc->GetEntries(),0.,ntzdc->GetEntries());
309 TH1F *hpmcznalg = new TH1F("hpmcznalg","",(Int_t)ntzdc->GetEntries(),0.,ntzdc->GetEntries());
310 TH1F *hxznc = new TH1F("hxznc","",(Int_t)ntzdc->GetEntries(),0.,ntzdc->GetEntries());
311 TH1F *hyznc = new TH1F("hyznc","",(Int_t)ntzdc->GetEntries(),0.,ntzdc->GetEntries());
312 TH1F *hxzna = new TH1F("hxzna","",(Int_t)ntzdc->GetEntries(),0.,ntzdc->GetEntries());
313 TH1F *hyzna = new TH1F("hyzna","",(Int_t)ntzdc->GetEntries(),0.,ntzdc->GetEntries());
314 TH1F *htdcsum = new TH1F("htdcsum","",(Int_t)ntzdc->GetEntries(),0.,ntzdc->GetEntries());
315 TH1F *htdcdiff = new TH1F("htdcdiff","",(Int_t)ntzdc->GetEntries(),0.,ntzdc->GetEntries());
317 for(Int_t i = 0; i<ntzdc->GetEntries();i++){
320 hznc->SetBinContent(i+1, meanZNC);
321 hznc->SetBinError(i+1, emeanZNC);
322 hznc->GetXaxis()->SetBinLabel(i+1,Form("%d",(Int_t)nrun));
323 hznc->GetXaxis()->SetTitle("RUN #");
324 hznc->GetYaxis()->SetTitle("ZNC mean signal");
325 hzpc->SetBinContent(i+1, meanZPC);
326 hzpc->SetBinError(i+1, emeanZPC);
327 hzpc->GetXaxis()->SetBinLabel(i+1,Form("%d",(Int_t)nrun));
328 hzpc->GetXaxis()->SetTitle("RUN #");
329 hzpc->GetYaxis()->SetTitle("ZPC mean signal");
330 hzna->SetBinContent(i+1, meanZNA);
331 hzna->SetBinError(i+1, emeanZNA);
332 hzna->GetXaxis()->SetBinLabel(i+1,Form("%d",(Int_t)nrun));
333 hzna->GetXaxis()->SetTitle("RUN #");
334 hzna->GetYaxis()->SetTitle("ZNA mean signal");
335 hzpa->SetBinContent(i+1, meanZPA);
336 hzpa->SetBinError(i+1, emeanZPA);
337 hzpa->GetXaxis()->SetBinLabel(i+1,Form("%d",(Int_t)nrun));
338 hzpa->GetXaxis()->SetTitle("RUN #");
339 hzpa->GetYaxis()->SetTitle("ZPA mean signal");
340 hzem1->SetBinContent(i+1, meanZEM1);
341 hzem1->SetBinError(i+1, emeanZEM1);
342 hzem1->GetXaxis()->SetBinLabel(i+1,Form("%d",(Int_t)nrun));
343 hzem1->GetXaxis()->SetTitle("RUN #");
344 hzem1->GetYaxis()->SetTitle("ZEM1 mean signal");
345 hzem2->SetBinContent(i+1, meanZEM2);
346 hzem2->SetBinError(i+1, emeanZEM2);
347 hzem2->GetXaxis()->SetBinLabel(i+1,Form("%d",(Int_t)nrun));
348 hzem2->GetXaxis()->SetTitle("RUN #");
349 hzem2->GetYaxis()->SetTitle("ZEM1 mean signal");
350 hznclg->SetBinContent(i+1, ZNClg);
351 hznclg->SetBinError(i+1, eZNClg);
352 hznclg->GetXaxis()->SetBinLabel(i+1,Form("%d",(Int_t)nrun));
353 hznclg->GetXaxis()->SetTitle("RUN #");
354 hznclg->GetYaxis()->SetTitle("ZNC LG mean signal");
355 hznalg->SetBinContent(i+1, ZNAlg);
356 hznalg->SetBinError(i+1, eZNAlg);
357 hznalg->GetXaxis()->SetBinLabel(i+1,Form("%d",(Int_t)nrun));
358 hznalg->GetXaxis()->SetTitle("RUN #");
359 hznalg->GetYaxis()->SetTitle("ZNA LG mean signal");
360 hpmcznclg->SetBinContent(i+1, pmcZNClg);
361 hpmcznclg->SetBinError(i+1, epmcZNClg);
362 hpmcznclg->GetXaxis()->SetBinLabel(i+1,Form("%d",(Int_t)nrun));
363 hpmcznclg->GetXaxis()->SetTitle("RUN #");
364 hpmcznclg->GetYaxis()->SetTitle("ZNC LG PMC mean signal");
365 hpmcznalg->SetBinContent(i+1, pmcZNAlg);
366 hpmcznalg->SetBinError(i+1, epmcZNAlg);
367 hpmcznalg->GetXaxis()->SetBinLabel(i+1,Form("%d",(Int_t)nrun));
368 hpmcznalg->GetXaxis()->SetTitle("RUN #");
369 hpmcznalg->GetYaxis()->SetTitle("ZNC LG PMC mean signal");
370 hxznc->SetBinContent(i+1, xZNC);
371 hxznc->SetBinError(i+1, 0.1*xZNC);
372 hxznc->GetXaxis()->SetBinLabel(i+1,Form("%d",(Int_t)nrun));
373 hxznc->GetXaxis()->SetTitle("RUN #");
374 hxznc->GetYaxis()->SetTitle("X_{ZN} (cm)");
375 hyznc->SetBinContent(i+1, yZNC);
376 hyznc->SetBinError(i+1, 0.1*yZNC);
377 hyznc->GetXaxis()->SetBinLabel(i+1,Form("%d",(Int_t)nrun));
378 hyznc->GetXaxis()->SetTitle("RUN #");
379 hyznc->GetYaxis()->SetTitle("Y_{ZN} (cm)");
380 hxzna->SetBinContent(i+1, xZNA);
381 hxzna->SetBinError(i+1, 0.1*xZNA);
382 hxzna->GetXaxis()->SetBinLabel(i+1,Form("%d",(Int_t)nrun));
383 hxzna->GetXaxis()->SetTitle("RUN #");
384 hxzna->GetYaxis()->SetTitle("X_{ZN} (cm)");
385 hyzna->SetBinContent(i+1, yZNA);
386 hyzna->SetBinError(i+1, 0.1*yZNA);
387 hyzna->GetXaxis()->SetBinLabel(i+1,Form("%d",(Int_t)nrun));
388 hyzna->GetXaxis()->SetTitle("RUN #");
389 hyzna->GetYaxis()->SetTitle("Y_{ZN} (cm)");
390 htdcsum->SetBinContent(i+1, tdcSum);
391 htdcsum->GetXaxis()->SetBinLabel(i+1,Form("%d",(Int_t)nrun));
392 htdcsum->GetXaxis()->SetTitle("RUN #");
393 htdcsum->GetYaxis()->SetTitle("TDC Sum (ns)");
394 htdcdiff->SetBinContent(i+1, tdcDiff);
395 htdcdiff->GetXaxis()->SetBinLabel(i+1,Form("%d",(Int_t)nrun));
396 htdcdiff->GetXaxis()->SetTitle("RUN #");
397 htdcdiff->GetYaxis()->SetTitle("TDC Diff (ns)");
401 TCanvas *c1 = new TCanvas("c1", "Mean value ZNs", 0, 0, 1200, 1000);
405 hznc->SetMarkerColor(kAzure+6); hznc->SetLineColor(kAzure+6);
406 hznc->SetMarkerStyle(21);
408 hzna->SetMarkerColor(kPink-2); hzna->SetLineColor(kPink-2);
409 hzna->SetMarkerStyle(20);
412 TLegend *l1 = new TLegend(0.44,0.18,0.54,0.32);
413 l1->SetFillColor(kWhite);
414 l1->AddEntry(hznc," ZNC " ,"P");
415 l1->AddEntry(hzna," ZNA " ,"P");
419 hznalg->SetMarkerColor(kBlue+1); hznalg->SetLineColor(kBlue+1);
420 hznalg->SetMarkerStyle(20); hznalg->SetMinimum(0);
422 hznclg->SetMarkerColor(kPink+5); hznclg->SetLineColor(kPink+5);
423 hznclg->SetMarkerStyle(21);
424 hznclg->Draw("SAME");
426 TLegend *l2 = new TLegend(0.44,0.18,0.54,0.32);
427 l2->SetFillColor(kWhite);
428 l2->AddEntry(hznc," ZNC LG " ,"P");
429 l2->AddEntry(hzna," ZNA LG " ,"P");
433 TCanvas *c1b = new TCanvas("c1b", "Mean value ZEMs ZPs", 200, 0, 1200, 1000);
436 hzpc->SetMarkerColor(kAzure+6); hzpc->SetLineColor(kAzure+6);
437 hzpc->SetMarkerStyle(21);
439 hzpa->SetMarkerColor(kPink-2); hzpa->SetLineColor(kPink-2);
440 hzpa->SetMarkerStyle(20);
443 TLegend *l3 = new TLegend(0.44,0.18,0.54,0.32);
444 l3->SetFillColor(kWhite);
445 l3->AddEntry(hzpc," ZPC " ,"P");
446 l3->AddEntry(hzpa," ZPA " ,"P");
450 hzem1->SetMarkerColor(kTeal-7); hzem1->SetLineColor(kTeal-7);
451 hzem1->SetMarkerStyle(29);
452 hzem2->SetMarkerColor(kTeal+5); hzem2->SetLineColor(kTeal+5);
453 hzem2->SetMarkerStyle(30);
457 TLegend *l4 = new TLegend(0.44,0.18,0.54,0.32);
458 l4->SetFillColor(kWhite);
459 l4->AddEntry(hzem1," ZEM1 " ,"P");
460 l4->AddEntry(hzem2," ZEM2 " ,"P");
464 /*TCanvas *c2 = new TCanvas("c2", "ZN centroids", 400, 400, 1200, 1000);
468 hxznc->SetMarkerColor(kAzure+5); hxznc->SetLineColor(kAzure+5);
469 hxznc->SetMarkerStyle(21);
470 hxzna->SetMarkerColor(kPink+5); hxzna->SetLineColor(kPink+5);
471 hxzna->SetMarkerStyle(20);
475 hyznc->SetMarkerColor(kAzure+5); hyznc->SetLineColor(kAzure+5);
476 hyznc->SetMarkerStyle(21);
477 hyzna->SetMarkerColor(kPink+5); hyzna->SetLineColor(kPink+5);
478 hyzna->SetMarkerStyle(20);
480 hyzna->Draw("SAME");*/
483 TCanvas *c3 = new TCanvas("c3", "LG signals", 600, 0, 1200, 1000);
487 hznalg->SetMarkerColor(kBlue+1); hznalg->SetLineColor(kBlue+1);
488 hznalg->SetMarkerStyle(20);
490 hznclg->SetMarkerColor(kPink+5); hznclg->SetLineColor(kPink+5);
491 hznclg->SetMarkerStyle(21);
492 hznclg->Draw("SAME");
493 TLegend *l7 = new TLegend(0.44,0.18,0.54,0.32);
494 l7->SetFillColor(kWhite);
495 l7->AddEntry(hznclg," ZNC LG " ,"P");
496 l7->AddEntry(hznalg," ZNA LG " ,"P");
500 hpmcznalg->SetMarkerColor(kAzure+7); hpmcznalg->SetLineColor(kAzure+7);
501 hpmcznalg->SetMarkerStyle(20); hpmcznalg->SetMinimum(0);
503 hpmcznclg->SetMarkerColor(kPink+6); hpmcznclg->SetLineColor(kPink+6);
504 hpmcznclg->SetMarkerStyle(21);
505 hpmcznclg->Draw("SAME");
506 TLegend *l8 = new TLegend(0.44,0.15,0.58,0.32);
507 l8->SetFillColor(kWhite);
508 l8->AddEntry(hpmcznclg," ZNC LG PMC" ,"P");
509 l8->AddEntry(hpmcznalg," ZNA LG PMC" ,"P");