Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /geant4/examples/advanced/amsEcal/showers/plotHisto.C was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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