Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-23 09:20:54

0001 {
0002   gROOT->Reset();
0003   
0004   // Draw histos filled by Geant4 simulation 
0005   //   
0006   TFile f("run01.root");
0007   TCanvas* c1 = new TCanvas("c1", "  ");
0008   c1->Divide(3,1);
0009 
0010   TH1D* hist1 = (TH1D*)f.Get("1");
0011   c1->cd(1);
0012   hist1->Draw("HIST");
0013   gPad->SetLogy();
0014   
0015   TH1D* hist2 = (TH1D*)f.Get("2");
0016   c1->cd(2);
0017   hist2->Draw("HIST");
0018   gPad->SetLogy();
0019   
0020   TH1D* hist3 = (TH1D*)f.Get("3");
0021   c1->cd(3);
0022   hist3->Draw("HIST");
0023   gPad->SetLogy();
0024 }