]>
Commit | Line | Data |
---|---|---|
fa701981 | 1 | #!/bin/sh |
2 | # $Id$ | |
3 | ||
4 | CURDIR=`pwd` | |
5 | OUTDIR=test_out | |
6 | ||
7 | rm -fr $OUTDIR | |
8 | mkdir $OUTDIR | |
7430be1c | 9 | cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR |
fa701981 | 10 | cd $OUTDIR |
11 | ||
7430be1c | 12 | FULLPATH="$CURDIR/$OUTDIR" |
e40c984d | 13 | NEVENTS=100 |
b7368825 | 14 | SEED=1234567 |
15 | ||
fa701981 | 16 | echo "Running simulation ..." |
17 | ||
7430be1c | 18 | aliroot -b >& testSim.out << EOF |
f6d516e9 | 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"); | |
b7368825 | 24 | gRandom->SetSeed($SEED); |
7430be1c | 25 | AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C"); |
10c8d1ce | 26 | MuonSim.SetMakeTrigger("MUON"); |
7430be1c | 27 | MuonSim.SetWriteRawData("MUON"); |
5c6f99c2 | 28 | MuonSim.Run($NEVENTS); |
fa701981 | 29 | .q |
30 | EOF | |
31 | ||
32 | echo "Running reconstruction ..." | |
33 | ||
34 | aliroot -b >& testReco.out << EOF | |
7430be1c | 35 | gRandom->SetSeed($SEED); |
bd0cb923 | 36 | AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG); |
b6675e8f | 37 | AliTracker::SetFieldMap(field, kFALSE); |
5c6f99c2 | 38 | AliReconstruction MuonRec("galice.root"); |
7430be1c | 39 | MuonRec.SetInput("$FULLPATH/"); |
5c6f99c2 | 40 | MuonRec.SetRunTracking(""); |
41 | MuonRec.SetRunVertexFinder(kFALSE); | |
42 | MuonRec.SetRunLocalReconstruction("MUON"); | |
43 | MuonRec.SetFillESD("MUON"); | |
de2cd600 | 44 | MuonRec.SetLoadAlignData("MUON"); |
45 | // Uncoment following line to run reconstruction with the orginal tracking method | |
46 | // instead of the kalman one (default) | |
47 | // MuonRec.SetOption("MUON","Original"); | |
5c31bbf9 | 48 | // Use the following to change clustering method |
49 | //MuonRec.SetOption("MUON","MLEM"); // new scheme AZ's clustering | |
50 | //MuonRec.SetOption("MUON","SIMPLEFIT"); // new scheme simple fitting | |
51 | //MuonRec.SetOption("MUON","COG"); // new scheme basic center-of-gravity only | |
7430be1c | 52 | MuonRec.Run(); |
fa701981 | 53 | .q |
54 | EOF | |
55 | ||
858e5b75 | 56 | echo "Running Trigger efficiency ..." |
858e5b75 | 57 | aliroot -b >& testTriggerResults.out << EOF |
5c6f99c2 | 58 | .L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+ |
858e5b75 | 59 | MUONTriggerEfficiency(); |
60 | .q | |
61 | EOF | |
62 | ||
72a7d831 | 63 | echo "Running efficiency ..." |
fa701981 | 64 | |
65 | aliroot -b >& testResults.out << EOF | |
5c6f99c2 | 66 | .L $ALICE_ROOT/MUON/MUONefficiency.C+ |
72a7d831 | 67 | // no argument assumes Upsilon but MUONefficiency(443) works on Jpsi |
68 | MUONefficiency(); | |
fa701981 | 69 | .q |
70 | EOF | |
71 | ||
7430be1c | 72 | if [ "$NEVENTS" -le 20 ]; then |
73 | ||
5c6f99c2 | 74 | echo "Running dumps ..." |
75 | ||
63b722de | 76 | aliroot -b << EOF |
5c6f99c2 | 77 | .L $ALICE_ROOT/MUON/MUONCheck.C+ |
7430be1c | 78 | MUONdigits(); > check.digits |
79 | MUONrecpoints(); > check.recpoints | |
80 | MUONrectracks(); > check.rectracks | |
81 | MUONrectrigger(); > check.rectrigger | |
5c6f99c2 | 82 | .q |
7430be1c | 83 | EOF |
858e5b75 | 84 | |
7430be1c | 85 | fi |
858e5b75 | 86 | |
fa701981 | 87 | echo "Finished" |
88 | echo "... see results in test_out" | |
89 | ||
90 | cd $CURDIR |