]>
Commit | Line | Data |
---|---|---|
fa701981 | 1 | #!/bin/sh |
2 | # $Id$ | |
3bc0b4a4 | 3 | # with galice.root, galice_sim.root |
fa701981 | 4 | |
5 | CURDIR=`pwd` | |
6 | OUTDIR=test_out | |
7 | ||
8 | rm -fr $OUTDIR | |
9 | mkdir $OUTDIR | |
7430be1c | 10 | cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR |
fa701981 | 11 | cd $OUTDIR |
12 | ||
3c465f70 | 13 | RUN=0 |
7430be1c | 14 | FULLPATH="$CURDIR/$OUTDIR" |
e40c984d | 15 | NEVENTS=100 |
b7368825 | 16 | SEED=1234567 |
17 | ||
fa701981 | 18 | echo "Running simulation ..." |
19 | ||
7430be1c | 20 | aliroot -b >& testSim.out << EOF |
f6d516e9 | 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"); | |
0d24599f | 25 | // man->SetSpecificStorage("MUON/Align/Data","local://$ALICE_ROOT/MUON/ResMisAlignCDB"); |
b7368825 | 26 | gRandom->SetSeed($SEED); |
3c465f70 | 27 | AliCDBManager::Instance()->SetRun($RUN); |
7430be1c | 28 | AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C"); |
10c8d1ce | 29 | MuonSim.SetMakeTrigger("MUON"); |
3bc0b4a4 | 30 | // MuonSim.SetWriteRawData("MUON","raw.root"); |
7430be1c | 31 | MuonSim.SetWriteRawData("MUON"); |
5c6f99c2 | 32 | MuonSim.Run($NEVENTS); |
fa701981 | 33 | .q |
34 | EOF | |
35 | ||
7aef07e5 | 36 | echo "Removing Digits files ..." |
37 | mkdir MUON.Digits | |
38 | mv MUON.Digits*.root MUON.Digits/ | |
3bc0b4a4 | 39 | mv galice.root MUON.Digits/ |
7aef07e5 | 40 | |
fa701981 | 41 | echo "Running reconstruction ..." |
42 | ||
43 | aliroot -b >& testReco.out << EOF | |
3c465f70 | 44 | AliCDBManager::Instance()->SetRun($RUN); |
7430be1c | 45 | gRandom->SetSeed($SEED); |
bd0cb923 | 46 | AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG); |
b6675e8f | 47 | AliTracker::SetFieldMap(field, kFALSE); |
5c6f99c2 | 48 | AliReconstruction MuonRec("galice.root"); |
7430be1c | 49 | MuonRec.SetInput("$FULLPATH/"); |
5c6f99c2 | 50 | MuonRec.SetRunVertexFinder(kFALSE); |
51 | MuonRec.SetRunLocalReconstruction("MUON"); | |
196471e9 | 52 | MuonRec.SetRunTracking("MUON"); |
5c6f99c2 | 53 | MuonRec.SetFillESD("MUON"); |
de2cd600 | 54 | MuonRec.SetLoadAlignData("MUON"); |
3bc0b4a4 | 55 | MuonRec.SetNumberOfEventsPerFile($NEVENTS); |
de2cd600 | 56 | // Uncoment following line to run reconstruction with the orginal tracking method |
57 | // instead of the kalman one (default) | |
8dc57946 | 58 | //MuonRec.SetOption("MUON","Original"); |
5c31bbf9 | 59 | // Use the following to change clustering method |
ee103e97 | 60 | //MuonRec.SetOption("MUON","MLEM"); // new scheme AZs clustering |
5c31bbf9 | 61 | //MuonRec.SetOption("MUON","SIMPLEFIT"); // new scheme simple fitting |
62 | //MuonRec.SetOption("MUON","COG"); // new scheme basic center-of-gravity only | |
ee103e97 | 63 | // Use the following to disconnect the status map creation (only for debug!) |
64 | // as this speeds up startup a bit... | |
65 | //MuonRec.SetOption("MUON","NOSTATUSMAP"); | |
7771752e | 66 | // Use the following to write to disk the digits (from raw data) |
67 | //MuonRec.SetOption("MUON","SAVEDIGITS"); | |
7430be1c | 68 | MuonRec.Run(); |
fa701981 | 69 | .q |
70 | EOF | |
71 | ||
7771752e | 72 | if [ ! -e MUON.Digits.root ]; then |
73 | echo "Moving Digits files back ..." | |
74 | mv MUON.Digits/MUON.Digits.root . | |
75 | fi | |
3bc0b4a4 | 76 | mv MUON.Digits/galice.root ./galice_sim.root |
8dc57946 | 77 | |
858e5b75 | 78 | echo "Running Trigger efficiency ..." |
858e5b75 | 79 | aliroot -b >& testTriggerResults.out << EOF |
5c6f99c2 | 80 | .L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+ |
3bc0b4a4 | 81 | MUONTriggerEfficiency("galice_sim.root", "galice.root", 1); |
858e5b75 | 82 | .q |
83 | EOF | |
84 | ||
72a7d831 | 85 | echo "Running efficiency ..." |
fa701981 | 86 | |
87 | aliroot -b >& testResults.out << EOF | |
5c6f99c2 | 88 | .L $ALICE_ROOT/MUON/MUONefficiency.C+ |
72a7d831 | 89 | // no argument assumes Upsilon but MUONefficiency(443) works on Jpsi |
3bc0b4a4 | 90 | MUONefficiency("galice_sim.root"); |
fa701981 | 91 | .q |
92 | EOF | |
93 | ||
8dc57946 | 94 | echo "Running check ..." |
5c6f99c2 | 95 | |
8dc57946 | 96 | aliroot -b >& testCheck.out << EOF |
97 | gSystem->Load("libMUONevaluation"); | |
5c6f99c2 | 98 | .L $ALICE_ROOT/MUON/MUONCheck.C+ |
3bc0b4a4 | 99 | MUONCheck(0, 9, "galice_sim.root", "galice.root", "AliESDs.root"); |
5c6f99c2 | 100 | .q |
7430be1c | 101 | EOF |
858e5b75 | 102 | |
8dc57946 | 103 | echo "Running dumps for selected event (5) ..." |
104 | ||
3bc0b4a4 | 105 | aliroot -b << EOF |
106 | AliMUONSimData simData("galice_sim.root"); | |
107 | simData.DumpKine(5); > dump.kine | |
108 | simData.DumpHits(5); > dump.hits | |
109 | simData.DumpDigits(5); > dump.digits | |
110 | simData.DumpSDigits(5); > dump.sdigits | |
111 | ||
112 | AliMUONRecData recData("galice.root"); | |
113 | recData.DumpRecPoints(5); > dump.recpoints | |
135fcffc | 114 | recData.DumpTracks(5); > dump.tracks |
3bc0b4a4 | 115 | recData.DumpRecTrigger(5); > dump.rectrigger |
8dc57946 | 116 | .q |
117 | EOF | |
858e5b75 | 118 | |
fa701981 | 119 | echo "Finished" |
120 | echo "... see results in test_out" | |
121 | ||
122 | cd $CURDIR |