Check if AliPhysics is installed; instantiate the EMCAL geometry
[u/mrichter/AliRoot.git] / test / PbPbbench / recraw / aod.C
index 3f0eef0..b987f3e 100644 (file)
@@ -2,12 +2,18 @@ void aod(){
 
     gSystem->Load("libANALYSIS");
     gSystem->Load("libANALYSISalice");
-    gSystem->Load("libCORRFW");
+
+    if( gSystem->Load("libCORRFW") <0) {
+      cerr << "Error: AliPhysics is not installed, no AOD test is possible!" << endl;
+      return;
+    }
     gSystem->Load("libPWGHFbase");
     gSystem->Load("libPWGmuon");
     gSystem->Load("libESDfilter");
     gSystem->Load("libTender");
     gSystem->Load("libPWGPP");
 
+    AliEMCALGeometry::GetInstance("EMCAL_COMPLETEV1");
+
     gROOT->Macro("${ALICE_ROOT}/STEER/macros/CreateAODfromESD.C(\"AliESDs.root\",\"AliAODs.root\",\"local://$ALICE_ROOT/OCDB\",\"local://..\",kFALSE)");
 }