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   TCanvas* c1 = new TCanvas("c1", "  ");
0007   
0008   c1->SetLogx(1);
0009   c1->SetLogy(1);
0010   c1->SetGridy(1);
0011   c1->cd();
0012   c1->Update();
0013   
0014   TFile fa("pixe.root");  
0015 
0016   TH1D* ha1 = (TH1D*)fa.Get("11");  
0017   ha1->SetLineColor(kBlue);        
0018   ha1->Draw("HIST");
0019 
0020 }