]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AlirootRun_MUONtest.sh
Optional geometry without CPV
[u/mrichter/AliRoot.git] / MUON / AlirootRun_MUONtest.sh
index 929f06cee74da0ab1ad438b7ce3a67618b8bd43d..6f15f93892f2d1d70fe735f95ceb4fa31f6acba5 100755 (executable)
@@ -16,10 +16,16 @@ SEED=1234567
 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
 
@@ -27,19 +33,29 @@ echo "Running reconstruction  ..."
 
 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
@@ -47,22 +63,23 @@ 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