]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AlirootRun_MUONtest.sh
In PointSetArray: added member for default daughter PointSet capacity (fDefPointSetCa...
[u/mrichter/AliRoot.git] / MUON / AlirootRun_MUONtest.sh
index d024b72d92fed5ba3c727ea1d36e16b23f8421d3..7083378776f07fb9d7a975918177fd84169d4bd8 100755 (executable)
@@ -13,34 +13,19 @@ FULLPATH="$CURDIR/$OUTDIR"
 NEVENTS=100
 SEED=1234567
 
-CDBDIRECTORY="$ALICE_ROOT/MUON/CDB/Default";
-CDB="local://$CDBDIRECTORY";
-
-if [ ! -d $CDBDIRECTORY"/MUON" ]; then
-
-echo "Generating Condition Database in directory $CDBDIRECTORY. This may take a while, so please be patient..."
-
-aliroot -b >& testGenerateCalibrations.out << EOF
-.L $ALICE_ROOT/MUON/MUONCDB.C++
-gRandom->SetSeed($SEED);
-generateCalibrations("$CDB",true);
-.q
-EOF
-
-else
-
-echo "Condition Database found in directory $CDBDIRECTORY. Will use it if needed."
-
-fi
-
 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);
-AliCDBManager::Instance()->SetDefaultStorage("$CDB");
 AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
+MuonSim.SetMakeTrigger("MUON");
 MuonSim.SetWriteRawData("MUON");
-MuonSim.Run($NEVENTS)
+MuonSim.Run($NEVENTS);
 .q
 EOF
 
@@ -48,20 +33,19 @@ echo "Running reconstruction  ..."
 
 aliroot -b >& testReco.out << EOF
 gRandom->SetSeed($SEED);
-AliCDBManager::Instance()->SetDefaultStorage("$CDB");
-AliReconstruction MuonRec("galice.root")
+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.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
@@ -69,22 +53,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
 
-aliroot -b > /dev/null << EOF
-.L $ALICE_ROOT/MUON/MUONCheck.C++
+echo "Running dumps ..."
+
+aliroot -b << EOF
+.L $ALICE_ROOT/MUON/MUONCheck.C+
 MUONdigits(); > check.digits
 MUONrecpoints(); > check.recpoints
 MUONrectracks(); > check.rectracks
 MUONrectrigger(); > check.rectrigger
+.q
 EOF
 
 fi