3 static int runnum, yearday, trgVersion, alg;
8 sprintf(fname,
"%d_%s_tv%d.png",runnum,name,trgVersion);
10 sprintf(fname,
"%d/%d.%s.png",yearday,runnum,name);
16 void plotcosmic(
int plt=0,
int run=22179052){
20 c1 =
new TCanvas(
"c1",
"FCSCOSMIC",50,0,1500,1200);
21 gStyle->SetLabelSize(0.1,
"xy");
22 gStyle->SetPalette(1);
23 gStyle->SetStatW(0.4);
26 sprintf(fname,
"%d/%d.cosmic.root",yearday,run);
27 cout <<
"Opening "<<fname<<endl;
28 file=
new TFile(fname,
"old");
36 gStyle->SetTitleH(0.06);
37 gStyle->SetOptTitle(1);
39 gStyle->SetOptStat(0);
41 if(plt==0 || plt==1) {
44 c1->cd(1)->SetLogy(); Ecal_NTower->Draw();
45 c1->cd(2)->SetLogy(); Ecal_SigmaMax->Draw();
46 c1->cd(3)->SetLogy(); Ecal_SigmaMin->Draw();
47 c1->cd(4)->SetLogz(); Ecal_Sigma->Draw(
"colz");
48 c1->cd(5)->SetLogz(); Ecal_SigmaNtow->Draw(
"colz");
49 c1->cd(6); Ecal_ADC->Draw(
"colz");
52 if(plt==0 || plt==2) {
55 c1->cd(1)->SetLogy(); Hcal_NTower->Draw();
56 c1->cd(2)->SetLogy(); Hcal_SigmaMax->Draw();
57 c1->cd(3)->SetLogy(); Hcal_SigmaMin->Draw();
58 c1->cd(4)->SetLogz(); Hcal_Sigma->Draw(
"colz");
59 c1->cd(5)->SetLogz(); Hcal_SigmaNtow->Draw(
"colz");
60 c1->cd(6); Hcal_ADC->Draw(
"colz");