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 gGeoManager->Export("geometry.root");
24 .L $ALICE_ROOT/MUON/MUONCheckMisAligner.C+
25 MUONCheckMisAligner(0., 0.03, 0., 0.03, 0., 0.03, "FullMisAlignCDB");
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/Align/Data","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 AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG);
50 AliTracker::SetFieldMap(field, kFALSE);
51 AliReconstruction MuonRec("galice.root");
52 MuonRec.SetInput("$FULLPATH/");
53 MuonRec.SetRunTracking("MUON");
54 MuonRec.SetRunVertexFinder(kFALSE);
55 MuonRec.SetRunLocalReconstruction("MUON");
56 MuonRec.SetFillESD("MUON");
57 MuonRec.SetLoadAlignData("MUON")
62 echo "Running alignment ..."
64 aliroot -b >& testAlign.out << EOF
65 .L $ALICE_ROOT/MUON/MUONAlignment.C+
71 echo "... see results in test_align"