3 # with galice.root, galice_sim.root
10 cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR
14 FULLPATH="$CURDIR/$OUTDIR"
18 echo "Running simulation ..."
20 aliroot -b >& testSim.out << EOF
21 // Uncoment following lines to run simulation with local residual mis-alignment
22 // (generated via MUONGenerateGeometryData.C macro)
23 // AliCDBManager* man = AliCDBManager::Instance();
24 // man->SetDefaultStorage("local://$ALICE_ROOT");
25 // man->SetSpecificStorage("MUON/Align/Data","local://$ALICE_ROOT/MUON/ResMisAlignCDB");
26 gRandom->SetSeed($SEED);
27 AliCDBManager::Instance()->SetRun($RUN);
28 AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
29 MuonSim.SetMakeTrigger("MUON");
30 MuonSim.SetWriteRawData("MUON","raw.root", kTRUE);
31 MuonSim.Run($NEVENTS);
35 echo "Removing Digits files ..."
37 mv MUON.Digits*.root MUON.Digits/
38 mv galice.root MUON.Digits/
40 echo "Running reconstruction ..."
42 aliroot -b >& testReco.out << EOF
43 AliCDBManager::Instance()->SetRun($RUN);
44 gRandom->SetSeed($SEED);
45 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
46 AliTracker::SetFieldMap(field, kFALSE);
47 AliReconstruction MuonRec("galice.root");
48 MuonRec.SetInput("$FULLPATH/raw.root");
49 MuonRec.SetRunVertexFinder(kFALSE);
50 MuonRec.SetRunLocalReconstruction("MUON");
51 MuonRec.SetRunTracking("MUON");
52 MuonRec.SetFillESD("MUON");
53 MuonRec.SetLoadAlignData("MUON");
54 MuonRec.SetNumberOfEventsPerFile($NEVENTS);
55 // Uncoment following line to run reconstruction with the orginal tracking method
56 // instead of the kalman one (default)
57 //MuonRec.SetOption("MUON","Original");
58 // Use the following to change clustering method
59 //MuonRec.SetOption("MUON","MLEM"); // new scheme AZs clustering
60 //MuonRec.SetOption("MUON","SIMPLEFIT"); // new scheme simple fitting
61 //MuonRec.SetOption("MUON","COG"); // new scheme basic center-of-gravity only
62 // Use the following to disconnect the status map creation (only for debug!)
63 // as this speeds up startup a bit...
64 //MuonRec.SetOption("MUON","NOSTATUSMAP");
65 // Use the following to write to disk the digits (from raw data)
66 //MuonRec.SetOption("MUON","SAVEDIGITS");
71 if [ ! -e MUON.Digits.root ]; then
72 echo "Moving Digits files back ..."
73 mv MUON.Digits/MUON.Digits.root .
75 mv MUON.Digits/galice.root ./galice_sim.root
77 echo "Running Trigger efficiency ..."
78 aliroot -b >& testTriggerResults.out << EOF
79 .L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
80 MUONTriggerEfficiency("galice_sim.root", "galice.root", 1);
84 echo "Running efficiency ..."
86 aliroot -b >& testResults.out << EOF
87 .L $ALICE_ROOT/MUON/MUONefficiency.C+
88 // no argument assumes Upsilon but MUONefficiency(443) works on Jpsi
89 MUONefficiency("galice_sim.root");
93 echo "Running check ..."
95 aliroot -b >& testCheck.out << EOF
96 gSystem->Load("libMUONevaluation");
97 .L $ALICE_ROOT/MUON/MUONCheck.C+
98 MUONCheck(0, 9, "galice_sim.root", "galice.root", "AliESDs.root");
102 echo "Running dumps for selected event (5) ..."
105 AliMUONSimData simData("galice_sim.root");
106 simData.DumpKine(5); > dump.kine
107 simData.DumpHits(5); > dump.hits
108 simData.DumpDigits(5); > dump.digits
109 simData.DumpSDigits(5); > dump.sdigits
111 AliMUONRecData recData("galice.root");
112 recData.DumpRecPoints(5); > dump.recpoints
113 recData.DumpTracks(5); > dump.tracks
114 recData.DumpRecTrigger(5); > dump.rectrigger
119 echo "... see results in test_out"