Check if AliPhysics is installed; instantiate the EMCAL geometry
authorhristov <Peter.Hristov@cern.ch>
Fri, 27 Feb 2015 15:25:57 +0000 (16:25 +0100)
committerhristov <Peter.Hristov@cern.ch>
Fri, 27 Feb 2015 15:26:46 +0000 (16:26 +0100)
test/PbPbbench/aod.C
test/PbPbbench/recraw/aod.C
test/genkine/sim/aod.C
test/gun/aod.C
test/gun/recraw/aod.C
test/ppbench/aod.C
test/ppbench/recraw/aod.C

index 249a626..f3c8077 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\",\"AliAOD.root\",\"local://$ALICE_ROOT/OCDB\",\"local://.\")");
 }
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)");
 }
index 249a626..f3c8077 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\",\"AliAOD.root\",\"local://$ALICE_ROOT/OCDB\",\"local://.\")");
 }
index 249a626..f3c8077 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\",\"AliAOD.root\",\"local://$ALICE_ROOT/OCDB\",\"local://.\")");
 }
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)");
 }
index 249a626..f3c8077 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\",\"AliAOD.root\",\"local://$ALICE_ROOT/OCDB\",\"local://.\")");
 }
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)");
 }