9 cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR
12 FULLPATH="$CURDIR/$OUTDIR"
16 echo "Running simulation ..."
18 aliroot -b >& testSim.out << EOF
19 // Uncoment following lines to run simulation with local residual mis-alignment
20 // (generated via MUONGenerateGeometryData.C macro)
21 // AliCDBManager* man = AliCDBManager::Instance();
22 // man->SetDefaultStorage("local://$ALICE_ROOT");
23 // man->SetSpecificStorage("MUON","local://$ALICE_ROOT/MUON/ResMisAlignCDB");
24 gRandom->SetSeed($SEED);
25 AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
26 MuonSim.SetMakeTrigger("MUON");
27 MuonSim.SetWriteRawData("MUON");
28 MuonSim.Run($NEVENTS);
32 echo "Removing Digits files ..."
34 mv MUON.Digits*.root MUON.Digits/
36 echo "Running reconstruction ..."
38 aliroot -b >& testReco.out << EOF
39 gRandom->SetSeed($SEED);
40 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
41 AliTracker::SetFieldMap(field, kFALSE);
42 AliReconstruction MuonRec("galice.root");
43 MuonRec.SetInput("$FULLPATH/");
44 MuonRec.SetRunVertexFinder(kFALSE);
45 MuonRec.SetRunLocalReconstruction("MUON");
46 MuonRec.SetRunTracking("MUON");
47 MuonRec.SetFillESD("MUON");
48 MuonRec.SetLoadAlignData("MUON");
49 // Uncoment following line to run reconstruction with the orginal tracking method
50 // instead of the kalman one (default)
51 //MuonRec.SetOption("MUON","Original");
52 // Use the following to change clustering method
53 //MuonRec.SetOption("MUON","MLEM"); // new scheme AZs clustering
54 //MuonRec.SetOption("MUON","SIMPLEFIT"); // new scheme simple fitting
55 //MuonRec.SetOption("MUON","COG"); // new scheme basic center-of-gravity only
56 // Use the following to disconnect the status map creation (only for debug!)
57 // as this speeds up startup a bit...
58 //MuonRec.SetOption("MUON","NOSTATUSMAP");
63 echo "Moving Digits files back ..."
64 mv MUON.Digits/MUON.Digits.root .
66 echo "Running Trigger efficiency ..."
67 aliroot -b >& testTriggerResults.out << EOF
68 .L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
69 MUONTriggerEfficiency("galice.root",1);
73 echo "Running efficiency ..."
75 aliroot -b >& testResults.out << EOF
76 .L $ALICE_ROOT/MUON/MUONefficiency.C+
77 // no argument assumes Upsilon but MUONefficiency(443) works on Jpsi
82 echo "Running check ..."
84 aliroot -b >& testCheck.out << EOF
85 gSystem->Load("libMUONevaluation");
86 .L $ALICE_ROOT/MUON/MUONCheck.C+
91 echo "Running dumps for selected event (5) ..."
94 AliMUONData data("galice.root");
95 data.DumpKine(5); > dump.kine
96 data.DumpHits(5); > dump.hits
97 data.DumpDigits(5); > dump.digits
98 data.DumpSDigits(5); > dump.sdigits
99 data.DumpRecPoints(5); > dump.recpoints
100 data.DumpRecTrigger(5); > dump.rectrigger
105 echo "... see results in test_out"