12 cp $ALICE_ROOT/MUON/.rootrc $ALICE_ROOT/MUON/rootlogon.C $OUTDIR
15 FULLPATH="$CURDIR/$OUTDIR"
19 echo "Generating misalignment ..."
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");
27 cp -r $ALICE_ROOT/MUON/Calib FullMisAlignCDB/MUON/
29 echo "Running simulation ..."
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);
45 echo "Running reconstruction ..."
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")
60 echo "Running alignment ..."
62 aliroot -b >& testAlign.out << EOF
63 .x $ALICE_ROOT/MUON/MUONAlignment.C
68 echo "... see results in test_align"