Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-04 08:56:08

0001 //
0002 //   export SANDBOX=/home/eic/CERN-2026
0003 //   export LD_LIBRARY_PATH=${SANDBOX}/lib:${LD_LIBRARY_PATH}
0004 //
0005 //   root -l './scripts/pfrich-cern-reco.C("pfrich-cern-events.root", "pfrich-cern-reco.json")'
0006 //
0007 
0008 void pfrich_cern_reco(const char *dfname, const char *jfname, unsigned stat = 0)
0009 {
0010   // Initialize and configure ReconstructionFactory;
0011   auto *reco = new IRT2::ReconstructionFactory(dfname, dfname, "pfRICH-2x2");
0012   reco->JsonParser(jfname);
0013 
0014   // Loop through events;
0015   reco->BareEventLoop(stat);
0016   
0017   // Output 1D histograms; canvas sizes / offsets are tuned for a 1920 x 1200 pixel display;
0018   {
0019     auto *ra = reco->GetMyRICH()->GetRadiator("BelleIIAerogel3");
0020     ra  ->DisplayStandardPlots("wa", "Aerogel radiator",     -10,  10, 1250, 540);
0021     
0022     reco->DisplayStandardPlots("Track / event level plots", 1265,  10,  625, 800);
0023   }
0024 } // pfrich_cern_reco()