OUTDIR=""
CURDIR=`pwd`
-RUN=0 # run number for OCDB access
+#RUN=0 # run number for OCDB access
SEED=1234567 # random number generator seed
SIMDIR="generated" # sub-directory where to move simulated files prior to reco
DUMPEVENT=5 # event to be dump on files
echo "Running simulation ..."
- aliroot -b -q runSimulation.C\($RUN,$SEED,$NEVENTS,\""$SIMCONFIG"\"\) >& $OUTDIR/testSim.out
+ aliroot -b -q runSimulation.C\($SEED,$NEVENTS,\""$SIMCONFIG"\"\) >& $OUTDIR/testSim.out
echo "Moving generated files to $SIMDIR"
mkdir $OUTDIR/$SIMDIR
cd $OUTDIR
- aliroot -b -q runReconstruction\.C\($RUN,$SEED,\""$OUTDIR/raw.root"\",\""$RECOPTIONS"\"\) >& $OUTDIR/testReco.out
+ aliroot -b -q runReconstruction\.C\($SEED,\""$OUTDIR/raw.root"\",\""$RECOPTIONS"\"\) >& $OUTDIR/testReco.out
fi
if [ "$CHECKS" -eq 1 ]; then
- if [ "$SIMULATION" -eq 1 ]; then
+ if [ -f "$OUTDIR/$SIMDIR/galice.root" ]; then
echo "Running efficiency ..."
.q
EOF
- if [ "$RECONSTRUCTION" -eq 1 ]; then
+ if [ -f "$OUTDIR/galice.root" ]; then
echo "Running Trigger efficiency ..."
aliroot -b >& $OUTDIR/testTriggerResults.out << EOF
.q
EOF
- echo "Running check ..."
- aliroot -b >& $OUTDIR/testCheck.out << EOF
- gSystem->Load("libMUONevaluation");
- .L $ALICE_ROOT/MUON/MUONCheck.C+
- MUONCheck(0, $NEVENTS-1, "$OUTDIR/$SIMDIR/galice.root", "$OUTDIR/galice.root", "$OUTDIR/AliESDs.root");
- .q
+ if [ -f "$OUTDIR/AliESDs.root" ]; then
+
+ echo "Running check ..."
+ aliroot -b >& $OUTDIR/testCheck.out << EOF
+ gSystem->Load("libMUONevaluation");
+ .L $ALICE_ROOT/MUON/MUONCheck.C+
+ MUONCheck(0, $NEVENTS-1, "$OUTDIR/$SIMDIR/galice.root", "$OUTDIR/galice.root", "$OUTDIR/AliESDs.root");
+ .q
EOF
+ fi
fi
fi
if [ -f "$OUTDIR/$SIMDIR/galice.root" ]; then
aliroot -b << EOF
+ AliCDBManager* man = AliCDBManager::Instance();
+ man->SetDefaultStorage("local://$ALICE_ROOT");
AliMUONMCDataInterface mcdSim("$OUTDIR/$SIMDIR/galice.root");
mcdSim.DumpKine($DUMPEVENT); > $OUTDIR/dump.$DUMPEVENT.kine
mcdSim.DumpHits($DUMPEVENT); > $OUTDIR/dump.$DUMPEVENT.hits
if [ -f "$OUTDIR/galice.root" ]; then
aliroot -b << EOF
+ AliCDBManager* man = AliCDBManager::Instance();
+ man->SetDefaultStorage("local://$ALICE_ROOT");
AliMUONDataInterface dRec("$OUTDIR/galice.root");
dRec.DumpDigits($DUMPEVENT,true); > $OUTDIR/dump.$DUMPEVENT.recdigits
dRec.DumpRecPoints($DUMPEVENT); > $OUTDIR/dump.$DUMPEVENT.recpoints
- dRec.DumpTracks($DUMPEVENT); > $OUTDIR/dump.$DUMPEVENT.tracks
- dRec.DumpTriggerTracks($DUMPEVENT); > $OUTDIR/dump.$DUMPEVENT.triggertracks
dRec.DumpTrigger($DUMPEVENT); > $OUTDIR/dump.$DUMPEVENT.trigger
.q
EOF