]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AlirootRun_MUONtest.sh
- Adding option for ownership of sector
[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.SetMakeTrigger("MUON");
27 MuonSim.SetWriteRawData("MUON");
28 MuonSim.Run($NEVENTS);
29 .q
30 EOF
31
32 echo "Running reconstruction  ..."
33
34 aliroot -b >& testReco.out << EOF
35 gRandom->SetSeed($SEED);
36 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
37 AliTracker::SetFieldMap(field, kFALSE);
38 AliReconstruction MuonRec("galice.root");
39 MuonRec.SetInput("$FULLPATH/");
40 MuonRec.SetRunTracking("");
41 MuonRec.SetRunVertexFinder(kFALSE);
42 MuonRec.SetRunLocalReconstruction("MUON");
43 MuonRec.SetFillESD("MUON");
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");
48 MuonRec.Run();
49 .q
50 EOF
51
52 echo "Running Trigger efficiency  ..."
53 aliroot -b >& testTriggerResults.out << EOF
54 .L $ALICE_ROOT/MUON/MUONTriggerEfficiency.C+
55 MUONTriggerEfficiency();
56 .q
57 EOF
58
59 echo "Running efficiency  ..."
60
61 aliroot -b >& testResults.out << EOF
62 .L $ALICE_ROOT/MUON/MUONefficiency.C+
63 // no argument assumes Upsilon but MUONefficiency(443) works on Jpsi
64 MUONefficiency();
65 .q
66 EOF
67
68 if [ "$NEVENTS" -le 20 ]; then
69
70 echo "Running dumps ..."
71
72 aliroot -b << EOF
73 .L $ALICE_ROOT/MUON/MUONCheck.C+
74 MUONdigits(); > check.digits
75 MUONrecpoints(); > check.recpoints
76 MUONrectracks(); > check.rectracks
77 MUONrectrigger(); > check.rectrigger
78 .q
79 EOF
80
81 fi
82
83 echo "Finished"  
84 echo "... see results in test_out"
85
86 cd $CURDIR