// Jerzy.Lukasik@ifj.edu.pl { const int NROW = 5; const int NCOL = 7; TCanvas *cf = 0; cf = new TCanvas("cf","FADC",0,0,1200,900); cf->Divide(NCOL,NROW,0.001,0.001,10); cf->Connect("ProcessedEvent(Int_t,Int_t,Int_t,TObject*)", 0,0, "ProcEvent(Int_t,Int_t,Int_t,TObject*)"); cf->Draw(); for(int MOD=0;MOD<35;MOD++){ int irow = NROW-MOD/NCOL-1; int icol = MOD%NCOL; int ipad = NCOL*NROW-MOD; TFile *fcut = new TFile(Form("cal_cutgpextra_m%02d_0000-3000.root",MOD),"read"); if(MOD==3) fcut = new TFile(Form("cal_cutgpextra_m%02d_1601-3000.root",MOD),"read"); TCanvas *tc = (TCanvas*)fcut->Get("c1")); TCutG *cutg1 = 0; cutg1 = (TCutG*)tc->FindObject("CUTGPEXTRA"); if(cutg1) printf("%2d %s\n",MOD,cutg1->GetName()); else printf("%2d NOCUT\n",MOD); if(cutg1){ TH2F *hh = (TH2F*)tc->FindObject("hh1ns0"); //tc->GetListOfPrimitives()->Print(); cf->cd(ipad); gPad->SetLogz(1); hh->SetMinimum(1); hh->DrawCopy("col"); cutg1->SetLineWidth(3); cutg1->SetMarkerStyle(20); cutg1->SetMarkerColor(13); cutg1->Draw("lp"); } fcut->Close(); } }