]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AlirootRun_MUONtestAlign.sh
Small correction for shifts in SSD (M. Van Leeuwen)
[u/mrichter/AliRoot.git] / MUON / AlirootRun_MUONtestAlign.sh
index 8783eaebc7aeac5f5cf8013adad251548c1a4672..1d240887bf4767e34b8e9c04fe689c3d371d5b05 100755 (executable)
@@ -3,9 +3,9 @@
 #
 # By J. Castillo
 
-
 CURDIR=`pwd`
 OUTDIR=test_align
+SIMDIR="generated"
 
 rm -fr $OUTDIR
 mkdir $OUTDIR
@@ -19,6 +19,7 @@ SEED=1234567
 echo "Generating misalignment ..."
 
 aliroot -b >& testMisalign.out << EOF
+AliMpCDB::LoadMpSegmentation2();
 gAlice->Init("$ALICE_ROOT/MUON/Config.C");
 gGeoManager->Export("geometry.root");
 .L $ALICE_ROOT/MUON/MUONCheckMisAligner.C+
@@ -29,32 +30,54 @@ EOF
 echo "Running simulation  ..."
 
 aliroot -b  >& testSim.out << EOF 
-// Uncoment following lines to run simulation with local residual mis-alignment
+// Uncoment following lines to run simulation with local full mis-alignment
 // (generated via MUONGenerateGeometryData.C macro)
 AliCDBManager* man = AliCDBManager::Instance();
 man->SetDefaultStorage("local://$ALICE_ROOT");
 man->SetSpecificStorage("MUON/Align/Data","local://FullMisAlignCDB");
-gRandom->SetSeed($SEED);
 AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
+MuonSim.SetSeed($SEED);
 MuonSim.SetMakeTrigger("MUON");
-MuonSim.SetWriteRawData("MUON");
+MuonSim.SetWriteRawData("MUON","raw.root",kTRUE);
+MuonSim.SetMakeDigits("MUON");
+MuonSim.SetMakeSDigits("MUON");
+MuonSim.SetMakeDigitsFromHits("");
 MuonSim.Run($NEVENTS);
 .q
 EOF
 
+echo "Moving generated files to $SIMDIR"
+mkdir $SIMDIR
+mv *QA*.root *.log $SIMDIR
+mv MUON*.root Kinematics*.root galice.root TrackRefs*.root $SIMDIR
+
 echo "Running reconstruction  ..."
 
 aliroot -b >& testReco.out << EOF
+// Uncoment following lines to run reconstruction with local full mis-alignment
+// (generated via MUONGenerateGeometryData.C macro)
+//AliCDBManager* man = AliCDBManager::Instance();
+//man->SetDefaultStorage("local://$ALICE_ROOT");
+//man->SetSpecificStorage("MUON/Align/Data","local://$ALICE_ROOT/MUON/FullMisAlignCDB");
 gRandom->SetSeed($SEED);
 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
 AliTracker::SetFieldMap(field, kFALSE);
 AliReconstruction MuonRec("galice.root");
-MuonRec.SetInput("$FULLPATH/");
-MuonRec.SetRunTracking("MUON");
+MuonRec.SetInput("$FULLPATH/raw.root");
 MuonRec.SetRunVertexFinder(kFALSE);
 MuonRec.SetRunLocalReconstruction("MUON");
-MuonRec.SetFillESD("MUON");
+MuonRec.SetRunTracking("MUON");
+MuonRec.SetFillESD("");
 MuonRec.SetLoadAlignData("MUON")
+MuonRec.SetNumberOfEventsPerFile(1000);
+AliMUONRecoParam *muonRecoParam = AliMUONRecoParam::GetLowFluxParam();
+//  muonRecoParam->SaveFullClusterInESD(kTRUE,100.);
+muonRecoParam->CombineClusterTrackReco(kFALSE);
+//muonRecoParam->SetClusteringMode("PEAKFIT");
+//muonRecoParam->SetClusteringMode("PEAKCOG");
+muonRecoParam->Print("FULL");
+
+AliRecoParam::Instance()->RegisterRecoParam(muonRecoParam);
 MuonRec.Run();
 .q
 EOF
@@ -63,6 +86,7 @@ echo "Running alignment ..."
 
 aliroot -b >& testAlign.out << EOF
 .L $ALICE_ROOT/MUON/MUONAlignment.C+
+AliMpCDB::LoadMpSegmentation2();
 MUONAlignment();
 .q
 EOF