Back to home page

EIC code displayed by LXR

 
 

    


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

0001 {
0002   gROOT->Reset();
0003   
0004   // Draw histos filled by Geant4 simulation 
0005   //   
0006   TFile f("pixe.root");
0007   TCanvas* c1 = new TCanvas("c1", "  ");
0008   
0009   c1->SetLogy(1);
0010   c1->cd();
0011   c1->Update();
0012   
0013   ///TH1D* hist1 = (TH1D*)f.Get("1");
0014   ///hist1->Draw("HIST");
0015   
0016   ///TH1D* hist2 = (TH1D*)f.Get("2");
0017   ///hist2->Draw("HIST");
0018     
0019   ///TH1D* hist3 = (TH1D*)f.Get("3");
0020   ///hist3->Draw("HIST");
0021   
0022   ///TH1D* hist4 = (TH1D*)f.Get("4");
0023   ///hist4->Draw("HIST");
0024   
0025   ///TH1D* hist5 = (TH1D*)f.Get("5");
0026   ///hist5->Draw("HIST");
0027   
0028   ///TH1D* hist6 = (TH1D*)f.Get("6");
0029   ///hist6->Draw("HIST");
0030     
0031   TH1D* hist7 = (TH1D*)f.Get("7");
0032   hist7->Draw("HIST");
0033   
0034   ///TH1D* hist8 = (TH1D*)f.Get("8");
0035   ///hist8->Draw("HIST");
0036      
0037   ///TH1D* hist9 = (TH1D*)f.Get("9");
0038   ///hist9->Draw("HIST");
0039   
0040   ///TH1D* hist10 = (TH1D*)f.Get("10");
0041   ///hist10->Draw("HIST SAME");
0042   
0043   TH1D* hist11 = (TH1D*)f.Get("11");
0044   hist11->Draw("HIST");
0045   
0046   TH1D* hist12 = (TH1D*)f.Get("12");
0047   hist12->Draw("HIST");  
0048 }