Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-04-03 08:07:07

0001 {
0002   gROOT->Reset();
0003   
0004   // Draw histos filled by Geant4 simulation 
0005   //   
0006   ///TFile f("hadr05.root");
0007   TFile f("Fe-Sci.root");    
0008   TCanvas* c1 = new TCanvas("c1", "  ");
0009   
0010   TH1D* hist1 = (TH1D*)f.Get("1");
0011   hist1->Draw("HIST");
0012   
0013   TH1D* hist2 = (TH1D*)f.Get("2");
0014   hist2->Draw("HIST");
0015   
0016   TH1D* hist11 = (TH1D*)f.Get("11");
0017   c1->SetLogy(0);
0018   c1->cd();
0019   c1->Update(); 
0020   hist11->Draw("HIST");
0021   
0022   TH1D* hist12 = (TH1D*)f.Get("12");
0023   hist12->Draw("HIST");
0024   
0025   TH1D* hist21 = (TH1D*)f.Get("21");
0026   hist21->Draw("HIST");
0027   
0028   TH1D* hist22 = (TH1D*)f.Get("22");
0029   hist22->Draw("HIST");
0030   
0031   TH1D* hist23 = (TH1D*)f.Get("23");
0032   hist23->Draw("HIST");  
0033   
0034   TH1D* hist24 = (TH1D*)f.Get("24");
0035   hist24->Draw("HIST");              
0036 }