1 #if !defined(__CINT__) || defined(__MAKECINT__)
6 #include <TStopwatch.h>
8 #include <TClassTable.h>
13 #include <TFunction.h>
20 void CheckTDCHistos(Int_t nRun=0, Bool_t optPlot=kTRUE)
23 printf("\n\n YOU MUST PROVIDE A RUN NUMBER!!! \n\n");
27 TGrid::Connect("alien:",0,0,"t");
30 sprintf(histoFName,"alien:///alice/data/2011/Reference/ZDC/%d_tdcReference.root",nRun);
32 TFile *file = TFile::Open(histoFName);
34 TH1F::AddDirectory(0);
37 for(Int_t it=0; it<6; it++){
38 if(it==0) hTDC[it] = dynamic_cast<TH1F*> (file->Get("TDCZNC"));
39 else if(it==1) hTDC[it] = dynamic_cast<TH1F*> (file->Get("TDCZNA"));
40 else if(it==2) hTDC[it] = dynamic_cast<TH1F*> (file->Get("TDCZPC"));
41 else if(it==3) hTDC[it] = dynamic_cast<TH1F*> (file->Get("TDCZPA"));
42 else if(it==4) hTDC[it] = dynamic_cast<TH1F*> (file->Get("TDCZEM1"));
43 else if(it==5) hTDC[it] = dynamic_cast<TH1F*> (file->Get("TDCZEM2"));
48 // Plot the retrieved histos
49 //***********************************************************
50 // #### ROOT initialization
52 gStyle->SetCanvasColor(10);
53 gStyle->SetFrameFillColor(10);
54 gStyle->SetOptTitle(0);
55 gStyle->SetOptStat(1111);
56 gStyle->SetOptFit(111);
57 gStyle->SetTitleTextColor(9);
58 gStyle->SetStatTextColor(4);
59 gStyle->SetLineColor(1);
60 gStyle->SetPalette(1);
61 //***********************************************************
62 TCanvas *c6 = new TCanvas("c6","Side C correlations",0,200,1000,800);
64 for(Int_t t=0; t<6; t++){
65 c6->cd(t+1); gPad->SetLogy(1);
66 hTDC[t]->SetLineColor(kAzure+t);
70 sprintf(psname,"TDCrun%d.gif",nRun);