Skip to content

Commit

Permalink
Load localOCDB* macro in AOD trains if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
Dario Berzano committed Jun 5, 2018
1 parent a76e163 commit 98a95d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions AOD/AODtrain.C
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ void AODtrain(Int_t merge=0){
//gROOT->LoadMacro("$ALICE_PHYSICS/PWGJE/macros/AddTaskJetCluster.C");
//gROOT->LoadMacro("$ALICE_PHYSICS/PWGJE/macros/AddTaskJetBackgroundSubtract.C");


if (gSystem->AccessPathName("localOCDBaccessConfig.C", kFileExists) == 0) {
gROOT->LoadMacro("localOCDBaccessConfig.C");
}

if (gSystem->AccessPathName("main_AODtrain.C", kFileExists)==0) {
Printf("Using local main_AODtrain.C");
gROOT->Macro(TString::Format("main_AODtrain.C(%d)", merge));
Expand Down
5 changes: 5 additions & 0 deletions AOD/AODtrainRawAndMC.C
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ void AODtrainRawAndMC(Int_t merge=0, Bool_t isMC=kFALSE)
gROOT->LoadMacro("$ALICE_PHYSICS/PWGJE/macros/AddTaskJetCluster.C");
gROOT->LoadMacro("$ALICE_PHYSICS/PWGJE/macros/AddTaskJetBackgroundSubtract.C");
*/

if (gSystem->AccessPathName("localOCDBaccessConfig.C", kFileExists) == 0) {
gROOT->LoadMacro("localOCDBaccessConfig.C");
}

// main AOD macro
if (gSystem->AccessPathName("main_AODtrainRawAndMC.C", kFileExists)==0) {
Printf("Using local main_AODtrainRawAndMC.C");
Expand Down

0 comments on commit 98a95d1

Please sign in to comment.