Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-23 09:21:01

0001 {
0002   gROOT->Reset();
0003   
0004   // Draw histos 1-6 filled by Geant4 simulation with run02.mac
0005   //   
0006   TFile f0("testem6_0.root");
0007   TCanvas* c1 = new TCanvas("c1", "  ");
0008   c1->Divide(2,3);
0009   for(int i=1; i < 7; ++i)
0010   {
0011     c1->cd(i);
0012     auto hname = std::string("h"+std::to_string(i)); // h1, h2, .. h6
0013     f0.Get(hname.c_str())->Draw("HIST");
0014   }
0015 }