1 void plotMip(
int plt=0,
int run=1){
3 sprintf(file,
"%d.mip.root",run);
4 printf(
"Reading %s\n",file);
5 TFile *F =
new TFile(file,
"old");
7 c1 =
new TCanvas(
"c1",
"FCS MIP",50,0,1500,1200);
8 gStyle->SetLabelSize(0.1,
"xy");
10 gStyle->SetStatW(0.4);
12 if(plt==0 || plt==1) {
15 c1->cd(1); NCluster_Ecal->Draw();
16 c1->cd(2); NTowerCluster_Ecal->Draw();
17 c1->cd(3); NNeiCluster_Ecal->Draw();
18 c1->cd(4); NCluster_Hcal->Draw();
19 c1->cd(5); NTowerCluster_Hcal->Draw();
20 c1->cd(6); NNeiCluster_Hcal->Draw();
21 c1->SaveAs(
"mip_clu.png");
27 ADC_EcalN->ProjectionY()->Draw();
28 h = ADCSingle_EcalN->ProjectionY(
"ES");
29 h->SetLineColor(kBlue); h->Draw(
"same");
31 ADC_HcalN->ProjectionY()->Draw();
32 h = ADCSingle_HcalN->ProjectionY(
"HS");
33 h->SetLineColor(kBlue); h->Draw(
"same");
34 h = ADCEcal_HcalN->ProjectionY(
"HE");
35 h->SetLineColor(kRed); h->Draw(
"same");
36 c1->SaveAs(
"mip_spec.png");
40 c1->cd(1); X->Draw(
"colz");
41 c1->cd(2); Y->Draw(
"colz");
42 c1->SaveAs(
"mip_xy.png");
46 c1->cd(1); DXX->Draw(
"colz");
47 c1->cd(2); DXY->Draw(
"colz");
48 c1->cd(3); DXX->ProjectionY()->Draw();
49 c1->SaveAs(
"mip_dx.png");
53 c1->cd(1); DYX->Draw(
"colz");
54 c1->cd(2); DYY->Draw(
"colz");
55 c1->cd(3); DYX->ProjectionY()->Draw();
56 c1->SaveAs(
"mip_dy.png");
60 c1->cd(1); DR->Draw(
"colz");
61 c1->cd(2); DR->ProjectionY()->Draw();
62 c1->SaveAs(
"mip_dr.png");