reconstruction macros.
For Alien setup a default argument is expected.
For future usage of the trigger mask can be considered in the jdl file
aliroot -b -q 'recCPass0.C("raw.root",100)'
*/
-void recCPass0(const char *filename="raw.root",Int_t nevents=-1, const char *ocdb="raw://")
+void recCPass0(const char *filename="raw.root",Int_t nevents=-1, const char *ocdb="raw://", const char* options="?Trigger=kCalibBarrel")
{
// Load some system libs for Grid and monitoring
// Set the CDB storage location
// AliReconstruction settings - hardwired MB trigger for calibration
TString newfilename = filename;
- newfilename += "?Trigger=kCalibBarrel";
+ newfilename += options;
rec.SetInput(newfilename.Data());
// Set protection against too many events in a chunk (should not happen)
# Script to run:
# 1. reconstruction
-# 2. calibration and friend track filtering
+# 2. calibration
#
# Files assumed to be in working directory:
# recCPass0.C - reconstruction macro
# 1 - raw data file name
# 2 - number of events to be processed
# 3 - run number
-
+# 4 - OCDBPath
+# 5 - optional trigger mask
# example:
-# runCPass0.sh raw.root 50 104892
+# runCPass0.sh raw.root 50 104892 raw://
#ALIEN setting
# $1 = raw input filename
nEvents=99999999
fileName="alien://"$1
ocdbPath="raw://"
+ triggerOption="?Trigger=kCalibBarrel"
fi;
-if [ $# -eq 4 ] ; then
+if [ $# -ge 4 ] ; then
# local setup
+ fileName=$1
nEvents=$2
runNum=$3
- fileName=$1
ocdbPath=$4
+ triggerOption="?Trigger=kCalibBarrel"
+fi
+if [ $# -eq 5 ] ; then
+ # local setup in case we provide the trigger mask
+ # the trigger mask is first stripped of quotation characters
+ triggerOption=${5//\"/}
fi
echo xxxxxxxxxxxxxxxxxxxxxxxxxxx
echo nEvents=$nEvents
echo runNum=$runNum
echo ocdbPath=$ocdbPath
+echo triggerOption=$triggerOption
echo xxxxxxxxxxxxxxxxxxxxxxxxxxx
if [ -f Run0_999999999_v3_s0.root ]; then
echo ">>>>>>> Running AliRoot to reconstruct $1. Run number is $runNum..."
-aliroot -l -b -q recCPass0.C\(\""$fileName\", $nEvents, \"$ocdbPath"\"\) 2>&1 | tee rec.log
+aliroot -l -b -q "recCPass0.C(\"$fileName\", $nEvents, \"$ocdbPath\", \"$triggerOption\")" 2>&1 | tee rec.log
mv syswatch.log syswatch_rec.log
echo ">>>>>>> Running AliRoot to make calibration..."
aliroot -b -q 'recCPass1.C("raw.root",100)'
*/
-void recCPass1(const char *filename="raw.root",Int_t nevents=-1, const char *ocdb="raw://")
+void recCPass1(const char *filename="raw.root",Int_t nevents=-1, const char *ocdb="raw://", const char* options="?Trigger=kCalibBarrel")
{
// Load some system libs for Grid and monitoring
// Set the CDB storage location
// AliReconstruction settings - hardwired MB trigger for calibration
TString newfilename = filename;
-newfilename += "?Trigger=kCalibBarrel";
+ newfilename += options;
rec.SetInput(newfilename.Data());
// Set protection against too many events in a chunk (should not happen)
# Script to run:
# 1. reconstruction
-# 2. calibration and friend track filtering
+# 2. calibration
#
# Files assumed to be in working directory:
# recCPass1.C - reconstruction macro
# 1 - raw data file name
# 2 - number of events to be processed
# 3 - run number
-
+# 4 - OCDBPath
+# 5 - optional trigger mask
# example:
-# runCPass1.sh raw.root 50 104892
+# runCPass1.sh raw.root 50 104892 raw://
#ALIEN setting
# $1 = raw input filename
fileName="alien://"$1
ocdbPath="raw://"
fi;
-if [ $# -eq 4 ] ; then
+if [ $# -ge 4 ] ; then
# local setup
+ fileName=$1
nEvents=$2
runNum=$3
- fileName=$1
ocdbPath=$4
+ triggerOptions="?Trigger=kCalibBarrel"
+fi
+if [ $# -eq 5 ] ; then
+ # local setup in case we specify the trigger mask
+ triggerOptions=$5
+
fi
echo xxxxxxxxxxxxxxxxxxxxxxxxxxx
mkdir OuterDet
cd Barrel
-time aliroot -l -b -q ../recCPass1.C\(\""$fileName\", $nEvents, \"$ocdbPath"\"\) 2>&1 | tee rec_Barrel.log
+time aliroot -l -b -q "../recCPass1.C(\"$fileName\", $nEvents, \"$ocdbPath\", \"$triggerOptions\")" 2>&1 | tee rec_Barrel.log
mv syswatch.log syswatch_rec_Barrel.log
echo ">>>>>>> Running AliRoot to make calibration..."