pl_all_Fpar.C 1.23 KiB
void pl_all_Fpar(Int_t iNSt = 6, Int_t iPar = 0) {
// TCanvas *can = new TCanvas("can22","can22");
// can->Divide(2,2);
// TCanvas *can = new TCanvas("can","can",48,55,700,900);
TCanvas* can = new TCanvas("can", "can", 48, 56, 900, 900);
can->Divide(2, 3, 0.01, 0.01);
// can->Divide(2,2,0,0);
Float_t lsize = 0.07;
gPad->SetFillColor(0);
gStyle->SetPalette(1);
gStyle->SetLabelSize(lsize);
//gStyle->SetOptStat(kTRUE);
//gROOT->cd();
//gROOT->SetDirLevel(2);
TH1* h;
TH2* h2;
const Int_t iType[6] = {5, 4, 6, 2, 9, 8};
const Int_t iSmNum[6] = {1, 1, 1, 2, 3, 3};
const Int_t iRpcNum[6] = {1, 1, 2, 1, 2, 1};
Int_t iCanv = 0;
// if (h!=NULL) h->Delete();
for (Int_t iSt = 0; iSt < iNSt; iSt++) {
cout << "plot station " << iSt << " with " << iSmNum[iSt] << " modules of "
<< iRpcNum[iSt] << " Rpcs each" << endl;
can->cd(iCanv + 1);
iCanv++;
gROOT->cd();
TString hname = Form("cl_SmT%01d_Fpar%01d", iType[iSt], iPar);
h = (TH1*) gROOT->FindObjectAny(hname);
if (h != NULL) {
h->Draw("");
// gPad->SetLogy();
} else {
cout << "Histogram " << hname << " not existing. " << endl;
}
}
can->SaveAs(Form("pl_all_Fpar.pdf"));
}