Skip to content

Commit

Permalink
Make QAtrain_duo work without AliEn
Browse files Browse the repository at this point in the history
  • Loading branch information
Dario Berzano authored and fprino committed May 21, 2018
1 parent c1dbbc6 commit 31bc19b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions QA/main_QAtrain_duo.C
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ void main_QAtrain_duo(const char *suffix="", Int_t run = 0,
PrintSettings();

TString cdbString(cdb);
if (cdbString.Contains("raw://"))
if (cdbString.Contains("raw://") && !gSystem->Getenv("OCDB_PATH"))
{
TGrid::Connect("alien://");
if (!gGrid || !gGrid->IsConnected()) {
Expand Down Expand Up @@ -235,8 +235,8 @@ void AddAnalysisTasks(const char *suffix, const char *cdb_location)
disableESDtrackQA=kFALSE;
useEmptyStringForPHOS=kTRUE;
}else if(ver==5){
if(n1>9 || (n1==9 && n2>=14)) disableESDtrackQA=kFALSE;
if(n1>9 || (n1==9 && n2>=24)) useEmptyStringForPHOS=kTRUE;
if(n1>9 || (n1==9 && n2>=14)) disableESDtrackQA=kFALSE; // >= v5-09-14
if(n1>9 || (n1==9 && n2>=24)) useEmptyStringForPHOS=kTRUE; // >= v5-09-24
}
}

Expand Down
2 changes: 1 addition & 1 deletion bin/train_merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fi

if [ -f "QAtrain_duo.C" ]; then
echo "QAtrain_duo macro found"
if grep -q -E -e "/cpass1|cpass1/" *.xml; then
if grep -q -E -e "/cpass1|cpass1/" *.xml || grep -q -E -e "/cpass1|cpass1/" "$1"; then
echo "* Running QA duo on _barrel" >&2
time aliroot -b -q -x QAtrain_duo.C\(\"_barrel\",$runNum,\"$1\",$2\) >stdout.barrel.log 2>stderr.barrel.log

Expand Down

0 comments on commit 31bc19b

Please sign in to comment.