Back to home page

EIC code displayed by LXR

 
 

    


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

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