]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AlirootRun_MUONtest.sh
Decode new trigger board names
[u/mrichter/AliRoot.git] / MUON / AlirootRun_MUONtest.sh
1 #!/bin/sh
2 # $Id$
3
4 CURDIR=`pwd`
5 OUTDIR=test_out
6
7 rm -fr $OUTDIR
8 mkdir $OUTDIR
9 cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR
10 cd $OUTDIR
11
12 FULLPATH="$CURDIR/$OUTDIR"
13 NEVENTS=100
14 SEED=1234567
15
16 echo "Running simulation  ..."
17
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.SetWriteRawData("MUON");
27 MuonSim.Run($NEVENTS);
28 .q
29 EOF
30
31 echo "Running reconstruction  ..."
32
33 aliroot -b >& testReco.out << EOF
34 gRandom->SetSeed($SEED);
35 AliReconstruction MuonRec("galice.root");
36 MuonRec.SetInput("$FULLPATH/");
37 MuonRec.SetRunTracking("");
38 MuonRec.SetRunVertexFinder(kFALSE);
39 MuonRec.SetRunLocalReconstruction("MUON");
40 MuonRec.SetFillESD("MUON");
41 MuonRec.Run();
42 .q
43 EOF
44
45 echo "Running Trigger efficiency  ..."
46 aliroot -b >& testTriggerResults.out << EOF
47 .L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
48 MUONTriggerEfficiency();
49 .q
50 EOF
51
52 echo "Running efficiency  ..."
53
54 aliroot -b >& testResults.out << EOF
55 .L $ALICE_ROOT/MUON/MUONefficiency.C+
56 // no argument assumes Upsilon but MUONefficiency(443) works on Jpsi
57 MUONefficiency();
58 .q
59 EOF
60
61 if [ "$NEVENTS" -le 20 ]; then
62
63 echo "Running dumps ..."
64
65 aliroot -b << EOF
66 .L $ALICE_ROOT/MUON/MUONCheck.C+
67 MUONdigits(); > check.digits
68 MUONrecpoints(); > check.recpoints
69 MUONrectracks(); > check.rectracks
70 MUONrectrigger(); > check.rectrigger
71 .q
72 EOF
73
74 fi
75
76 echo "Finished"  
77 echo "... see results in test_out"
78
79 cd $CURDIR