131 |
// |
// |
132 |
// obtain information about the data file and select the output file |
// obtain information about the data file and select the output file |
133 |
const string filepath=file.Data(); |
const string filepath=file.Data(); |
134 |
Int_t dwpos = filepath.rfind("DW_"); |
Int_t dwpos = filepath.rfind("/"); |
135 |
Int_t dwpos1 = filepath.find(".root"); |
Int_t dwpos1 = filepath.find(".root"); |
136 |
TString fpath=(filepath.c_str()); |
TString fpath=(filepath.c_str()); |
137 |
TString base,ffile ; |
TString base,ffile ; |
138 |
stringcopy(ffile,fpath,dwpos,dwpos1); |
stringcopy(ffile,fpath,dwpos+1,dwpos1); |
139 |
stringcopy(base,fpath,0,dwpos); |
stringcopy(base,fpath,0,dwpos); |
140 |
|
if(dwpos>0) base+="/"; |
141 |
|
|
142 |
TString out; |
TString out; |
143 |
if(outdir.Length()==0){ |
if(outdir.Length()==0){ |
180 |
gStyle->SetLabelSize(0.06,"x"); |
gStyle->SetLabelSize(0.06,"x"); |
181 |
gStyle->SetLabelSize(0.06,"y"); |
gStyle->SetLabelSize(0.06,"y"); |
182 |
gStyle->SetTitleFontSize(0.1); |
gStyle->SetTitleFontSize(0.1); |
183 |
|
gStyle->SetFillColor(10); |
184 |
gStyle->SetTitleFillColor(10); |
gStyle->SetTitleFillColor(10); |
185 |
gStyle->SetTitleOffset(-1,"Y"); |
gStyle->SetTitleOffset(-1,"Y"); |
186 |
gStyle->SetOptStat(0); |
gStyle->SetOptStat(0); |
244 |
|
|
245 |
title<<"DSP "<<n+1; |
title<<"DSP "<<n+1; |
246 |
hid<<"h"<<n; |
hid<<"h"<<n; |
247 |
histomax[n] = new TH1F(hid.str().c_str(),title.str().c_str(),3072,0.5,3072.5); |
histomax[n] = new TH1F(hid.str().c_str(),title.str().c_str(),3073,-0.5,3072.5); |
248 |
hid<<"hh"<<n; |
hid<<"hh"<<n; |
249 |
histocomp[n] = new TH1F(hid.str().c_str(),title.str().c_str(),3072,0.5,3072.5); |
histocomp[n] = new TH1F(hid.str().c_str(),title.str().c_str(),3073,-0.5,3072.5); |
250 |
hid<<"hhh"<<n; |
hid<<"hhh"<<n; |
251 |
histofull[n] = new TH1F(hid.str().c_str(),title.str().c_str(),3072,0.5,3072.5); |
histofull[n] = new TH1F(hid.str().c_str(),title.str().c_str(),3073,-0.5,3072.5); |
252 |
title.str(""); |
title.str(""); |
253 |
hid.str(""); |
hid.str(""); |
254 |
} //end loop on views |
} //end loop on views |
423 |
histocomp[nn]->Fill((Float_t)i,whistocomp[i]); |
histocomp[nn]->Fill((Float_t)i,whistocomp[i]); |
424 |
histofull[nn]->Fill((Float_t)i,whistofull[i]); |
histofull[nn]->Fill((Float_t)i,whistofull[i]); |
425 |
} |
} |
426 |
|
|
427 |
|
TBox b; |
428 |
|
b.SetFillColor(6); |
429 |
|
b.SetFillStyle(3945); |
430 |
|
|
431 |
c1->cd(); |
c1->cd(); |
432 |
trkpadtext[nn]->Draw(); |
trkpadtext[nn]->Draw(); |
433 |
trkpad[nn]->Draw(); |
trkpad[nn]->Draw(); |
451 |
histomax[nn]->SetLineStyle(3); |
histomax[nn]->SetLineStyle(3); |
452 |
|
|
453 |
if(ifull[nn]==1) histofull[nn]->Draw("9bsame]["); |
if(ifull[nn]==1) histofull[nn]->Draw("9bsame]["); |
454 |
if(icomp[nn]==1) histocomp[nn]->Draw("bsame]["); |
if(icomp[nn]==1) histocomp[nn]->Draw("9bsame]["); |
455 |
if(imax[nn]==1) histomax[nn]->Draw("same]["); |
if(imax[nn]==1) histomax[nn]->Draw("same]["); |
456 |
histocomp[nn]->Draw("axis same"); |
histocomp[nn]->Draw("axis same"); |
457 |
|
if(nn==1){ |
458 |
|
b.DrawBox(2816.,-500.,3060.,4500.); |
459 |
|
} |
460 |
|
else if(nn==6){ |
461 |
|
b.DrawBox(2560.,-500.,2816.,4500.); |
462 |
|
b.DrawBox(512.,-500.,768.,4500.); |
463 |
|
b.DrawBox(1024.,-500.,1792.,4500.); |
464 |
|
} |
465 |
|
else if(nn==11){ |
466 |
|
b.DrawBox(768.,-500.,1024.,4500.); |
467 |
|
} |
468 |
c1->Update(); |
c1->Update(); |
469 |
|
|
470 |
}//end loop on views |
}//end loop on views |