Skip to content

Commit

Permalink
Properly deal with QA/AOD merging jobs where OCDB snapshots are not a…
Browse files Browse the repository at this point in the history
…vailable.

Attached tasks might need to access the OCDB, therefore in the merging case the use of RAW OCDB is enforced.
  • Loading branch information
preghenella committed Apr 3, 2017
1 parent da94a4c commit 2cd1f04
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion AOD/AODtrainsim.C
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,14 @@ void AODtrainsim(Int_t merge=0)
TString ocdbConfig = "default,snapshot";
if (gSystem->Getenv("CONFIG_OCDB"))
ocdbConfig = gSystem->Getenv("CONFIG_OCDB");
if (ocdbConfig.Contains("alien")) {
if (merge != 0) {
//
gSystem->Setenv("CONFIG_RUN", gSystem->Getenv("ALIEN_JDL_LPMRUNNUMBER"));
// set OCDB
gROOT->LoadMacro("$ALIDPG_ROOT/MC/OCDBConfig.C");
OCDBDefault(1);
}
else if (ocdbConfig.Contains("alien")) {
// set OCDB
gROOT->LoadMacro("$ALIDPG_ROOT/MC/OCDBConfig.C");
OCDBDefault(1);
Expand Down
9 changes: 8 additions & 1 deletion QA/QAtrainsim.C
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,14 @@ void QAtrainsim(Int_t run = 0,
TString ocdbConfig = "default,snapshot";
if (gSystem->Getenv("CONFIG_OCDB"))
ocdbConfig = gSystem->Getenv("CONFIG_OCDB");
if (ocdbConfig.Contains("alien")) {
if (stage != 0) {
//
gSystem->Setenv("CONFIG_RUN", gSystem->Getenv("ALIEN_JDL_LPMRUNNUMBER"));
// set OCDB
gROOT->LoadMacro("$ALIDPG_ROOT/MC/OCDBConfig.C");
OCDBDefault(1);
}
else if (ocdbConfig.Contains("alien")) {
// set OCDB
gROOT->LoadMacro("$ALIDPG_ROOT/MC/OCDBConfig.C");
OCDBDefault(1);
Expand Down

0 comments on commit 2cd1f04

Please sign in to comment.