85 |
return file2; |
return file2; |
86 |
} |
} |
87 |
|
|
88 |
void FCaloQLOOK(TString filename, Int_t fromevent=0, Int_t toevent=0, TString outDir="", TString saveas = "ps"){ |
void FCaloQLOOK(TString filename, Int_t fromevent=0, Int_t toevent=0, TString outDir="", TString saveas = "png"){ |
89 |
gStyle->SetPaperSize(19.,25.); |
gStyle->SetPaperSize(19.,25.); |
90 |
const char* startingdir = gSystem->WorkingDirectory(); |
const char* startingdir = gSystem->WorkingDirectory(); |
91 |
// printf(" basename is %s \n",gSystem->BaseName(filename.Data())); |
// printf(" basename is %s \n",gSystem->BaseName(filename.Data())); |
995 |
Calstriphit->Draw("SAME"); |
Calstriphit->Draw("SAME"); |
996 |
// |
// |
997 |
pd4->cd(); |
pd4->cd(); |
998 |
|
gPad->SetLogy(); |
999 |
Dexy->SetXTitle("ADC channels"); |
Dexy->SetXTitle("ADC channels"); |
1000 |
Dexy->SetYTitle("Number of events"); |
Dexy->SetYTitle("Number of events"); |
1001 |
Dexy->Draw(); |
Dexy->Draw(); |
1002 |
h1max = Dexy->GetMaximum()*1.05; |
// h1max = Dexy->GetMaximum()*1.05; |
1003 |
|
h1max = Dexy->GetMaximum()*2.05; |
1004 |
Double_t xd[4] = {2000.,5000.,5000.,2000.}; |
Double_t xd[4] = {2000.,5000.,5000.,2000.}; |
1005 |
Double_t yd[4] = {0.,0.,h1max,h1max}; |
Double_t yd[4] = {0.,0.,h1max,h1max}; |
1006 |
banda1 = new TPolyLine(4,xd,yd); |
banda1 = new TPolyLine(4,xd,yd); |
1036 |
pd4->Draw(); |
pd4->Draw(); |
1037 |
// |
// |
1038 |
pd4->cd(); |
pd4->cd(); |
1039 |
|
gPad->SetLogy(); |
1040 |
Dexy->SetXTitle("ADC channels"); |
Dexy->SetXTitle("ADC channels"); |
1041 |
Dexy->SetYTitle("Number of events"); |
Dexy->SetYTitle("Number of events"); |
1042 |
Dexy->Draw(); |
Dexy->Draw(); |
1043 |
h1max = Dexy->GetMaximum()*1.05; |
// h1max = Dexy->GetMaximum()*1.05; |
1044 |
|
h1max = Dexy->GetMaximum()*2.05; |
1045 |
Double_t xd[4] = {2000.,5000.,5000.,2000.}; |
Double_t xd[4] = {2000.,5000.,5000.,2000.}; |
1046 |
Double_t yd[4] = {0.,0.,h1max,h1max}; |
Double_t yd[4] = {0.,0.,h1max,h1max}; |
1047 |
banda1 = new TPolyLine(4,xd,yd); |
banda1 = new TPolyLine(4,xd,yd); |