Skip to content

Commit

Permalink
Small modifications for TOF in data taking
Browse files Browse the repository at this point in the history
  • Loading branch information
miweberSMI authored and fprino committed Mar 15, 2018
1 parent e079a2a commit a9e9028
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions MC/Config.C
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,13 @@ ProcessEnvironment()
valid = kTRUE;
break;
}
if (!valid) {
TString triggerConfigString(gSystem->Getenv("CONFIG_TRIGGER"));
if(triggerConfigString.Contains("Custom.cfg")){
triggerConfig = kTriggerCustom;
valid = kTRUE;
}
}
if (!valid) {
printf(">>>>> Unknown trigger configuration: %s \n", gSystem->Getenv("CONFIG_TRIGGER"));
abort();
Expand Down
4 changes: 2 additions & 2 deletions MC/dpgsim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -637,13 +637,13 @@ fi
if [ "$CONFIG_TRIGGER" == "Custom.cfg" ] && [ ! -f Custom.cfg ]; then
echo "Custom.cfg trigger configuration requested, file not present"
exit 1
else
elif [[ $OVERRIDE_TRIGGER == "" ]]; then
aliroot -b -q "$ALIDPG_ROOT/MC/CheckTOF.C($CONFIG_RUN)"
checkTOF=$?
if [ $checkTOF == 1 ]; then
#echo "TOF was triggering but not in data acquisition --> Using custom trigger from AliDPG"
echo "TOF was not in data acquisition --> Using custom trigger from AliDPG"
$CONFIG_TRIGGER="$ALIDPG_ROOT/Utils/Custom.cfg"
CONFIG_TRIGGER="$ALIDPG_ROOT/Utils/Custom.cfg"
fi
fi

Expand Down

0 comments on commit a9e9028

Please sign in to comment.