Check if AliPhysics is installed; instantiate the EMCAL geometry
[u/mrichter/AliRoot.git] / test / ppbench / aod.C
1 void aod(){
2
3     gSystem->Load("libANALYSIS");
4     gSystem->Load("libANALYSISalice");
5
6     if( gSystem->Load("libCORRFW") <0) {
7       cerr << "Error: AliPhysics is not installed, no AOD test is possible!" << endl;
8       return;
9     }
10     gSystem->Load("libPWGHFbase");
11     gSystem->Load("libPWGmuon");
12     gSystem->Load("libESDfilter");
13     gSystem->Load("libTender");
14     gSystem->Load("libPWGPP");
15
16     AliEMCALGeometry::GetInstance("EMCAL_COMPLETEV1");
17
18     gROOT->Macro("${ALICE_ROOT}/STEER/macros/CreateAODfromESD.C(\"AliESDs.root\",\"AliAOD.root\",\"local://$ALICE_ROOT/OCDB\",\"local://.\")");
19 }