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