How to get geometry from parameter’s file

  1. In a stand-alone macro:
  2. gROOT->LoadMacro("$VMCWORKDIR/macro/mpd/mpdloadlibs.C");
    mpdloadlibs(1,1);
    TFile* f = new TFile("evetest.root");
    f->Get("FairBaseParSet"); 
    gGeoManager
    
  3. In any “mpdroot” analysis task (if gGeoManager is not yet known):
  4. FairRunAna* ana = FairRunAna::Instance();
    FairRuntimeDb* rtdb = ana->GetRuntimeDb();
    FairBaseParSet* baseParSet =  (FairBaseParSet*)rtdb->getContainer("FairBaseParSet");
    gGeoManager