echo "Running simulation ..."
aliroot -b >& testSim.out << EOF
+// Uncoment following lines to run simulation with local residual mis-alignment
+// (generated via MUONGenerateGeometryData.C macro)
+// AliCDBManager* man = AliCDBManager::Instance();
+// man->SetDefaultStorage("local://$ALICE_ROOT");
+// man->SetSpecificStorage("MUON","local://$ALICE_ROOT/MUON/ResMisAlignCDB");
gRandom->SetSeed($SEED);
AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
+MuonSim.SetMakeTrigger("MUON");
MuonSim.SetWriteRawData("MUON");
-MuonSim.Run($NEVENTS)
+MuonSim.Run($NEVENTS);
.q
EOF
aliroot -b >& testReco.out << EOF
gRandom->SetSeed($SEED);
-AliReconstruction MuonRec("galice.root")
+AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
+AliTracker::SetFieldMap(field, kFALSE);
+AliReconstruction MuonRec("galice.root");
MuonRec.SetInput("$FULLPATH/");
-MuonRec.SetRunTracking("")
-MuonRec.SetRunVertexFinder(kFALSE)
-MuonRec.SetRunLocalReconstruction("MUON")
-MuonRec.SetFillESD("MUON")
+MuonRec.SetRunTracking("");
+MuonRec.SetRunVertexFinder(kFALSE);
+MuonRec.SetRunLocalReconstruction("MUON");
+MuonRec.SetFillESD("MUON");
+MuonRec.SetLoadAlignData("MUON");
+// Uncoment following line to run reconstruction with the orginal tracking method
+// instead of the kalman one (default)
+// MuonRec.SetOption("MUON","Original");
+// Use the following to change clustering method
+//MuonRec.SetOption("MUON","MLEM"); // new scheme AZ's clustering
+//MuonRec.SetOption("MUON","SIMPLEFIT"); // new scheme simple fitting
+//MuonRec.SetOption("MUON","COG"); // new scheme basic center-of-gravity only
MuonRec.Run();
.q
EOF
echo "Running Trigger efficiency ..."
aliroot -b >& testTriggerResults.out << EOF
-.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C++
+.L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
MUONTriggerEfficiency();
.q
EOF
echo "Running efficiency ..."
aliroot -b >& testResults.out << EOF
-.L $ALICE_ROOT/MUON/MUONefficiency.C++
+.L $ALICE_ROOT/MUON/MUONefficiency.C+
// no argument assumes Upsilon but MUONefficiency(443) works on Jpsi
MUONefficiency();
.q
EOF
-echo "Running dumps ..."
-
if [ "$NEVENTS" -le 20 ]; then
+echo "Running dumps ..."
+
aliroot -b << EOF
-.L $ALICE_ROOT/MUON/MUONCheck.C++
+.L $ALICE_ROOT/MUON/MUONCheck.C+
MUONdigits(); > check.digits
MUONrecpoints(); > check.recpoints
MUONrectracks(); > check.rectracks
MUONrectrigger(); > check.rectrigger
+.q
EOF
fi