]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AlirootRun_MUONtestAlign.sh
removing unneeded include
[u/mrichter/AliRoot.git] / MUON / AlirootRun_MUONtestAlign.sh
1 #!/bin/sh
2 # $Id$
3 #
4 # By J. Castillo
5
6
7 CURDIR=`pwd`
8 OUTDIR=test_align
9
10 rm -fr $OUTDIR
11 mkdir $OUTDIR
12 cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR
13 cd $OUTDIR
14
15 FULLPATH="$CURDIR/$OUTDIR"
16 NEVENTS=1000
17 SEED=1234567
18
19 echo "Generating misalignment ..."
20
21 aliroot -b >& testMisalign.out << EOF
22 gAlice->Init("$ALICE_ROOT/MUON/Config.C");
23 .x $ALICE_ROOT/MUON/MUONCheckMisAligner.C(0., 0.03, 0., 0.03, 0., 0.03, "FullMisAlignCDB");
24 .q
25 EOF
26
27 cp -r $ALICE_ROOT/MUON/Calib FullMisAlignCDB/MUON/
28
29 echo "Running simulation  ..."
30
31 aliroot -b  >& testSim.out << EOF 
32 // Uncoment following lines to run simulation with local residual mis-alignment
33 // (generated via MUONGenerateGeometryData.C macro)
34 AliCDBManager* man = AliCDBManager::Instance();
35 man->SetDefaultStorage("local://$ALICE_ROOT");
36 man->SetSpecificStorage("MUON","local://FullMisAlignCDB");
37 gRandom->SetSeed($SEED);
38 AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
39 MuonSim.SetMakeTrigger("MUON");
40 MuonSim.SetWriteRawData("MUON");
41 MuonSim.Run($NEVENTS);
42 .q
43 EOF
44
45 echo "Running reconstruction  ..."
46
47 aliroot -b >& testReco.out << EOF
48 gRandom->SetSeed($SEED);
49 AliReconstruction MuonRec("galice.root");
50 MuonRec.SetInput("$FULLPATH/");
51 MuonRec.SetRunTracking("");
52 MuonRec.SetRunVertexFinder(kFALSE);
53 MuonRec.SetRunLocalReconstruction("MUON");
54 MuonRec.SetFillESD("MUON");
55 MuonRec.SetLoadAlignData("MUON")
56 MuonRec.Run();
57 .q
58 EOF
59
60 echo "Running alignment ..."
61
62 aliroot -b >& testAlign.out << EOF
63 .x $ALICE_ROOT/MUON/MUONAlignment.C
64 .q
65 EOF
66
67 echo "Finished"  
68 echo "... see results in test_align"
69
70 cd $CURDIR