Skip to content

Commit

Permalink
Add SetRun() before specific storages in CPass0/1
Browse files Browse the repository at this point in the history
Runs only during the validation, not on Grid
  • Loading branch information
Dario Berzano authored and fprino committed May 21, 2018
1 parent c02a145 commit c1dbbc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DataProc/CPass0/main_recCPass0.C
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ void main_recCPass0(const char *filename="raw.root",Int_t nevents=-1, const char
else {
// setup ocdb by custom (if any) or default settings
if (gSystem->AccessPathName("localOCDBaccessConfig.C", kFileExists)==0) {
TString envRunNumBuf = gSystem->Getenv("ALIEN_JDL_LPMRUNNUMBER");
Int_t envRunNum = envRunNumBuf.Atoi();
if (envRunNum > 0) man->SetRun(envRunNum);
gInterpreter->ProcessLine("localOCDBaccessConfig();");
}
else { // default settings
Expand Down
3 changes: 3 additions & 0 deletions DataProc/CPass1/main_recCPass1.C
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ void main_recCPass1(const char *filename="raw.root",Int_t nevents=-1, const char
else {
// setup ocdb by custom (if any) or default settings
if (gSystem->AccessPathName("localOCDBaccessConfig.C", kFileExists)==0) {
TString envRunNumBuf = gSystem->Getenv("ALIEN_JDL_LPMRUNNUMBER");
Int_t envRunNum = envRunNumBuf.Atoi();
if (envRunNum > 0) man->SetRun(envRunNum);
gInterpreter->ProcessLine("localOCDBaccessConfig();");
}
else { // default settings
Expand Down

0 comments on commit c1dbbc6

Please sign in to comment.