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 AliMpCDB::LoadMpSegmentation2();
23 TString configFileName = "$ALICE_ROOT/MUON/Config.C";
24 gROOT->LoadMacro(configFileName.Data());
25 gInterpreter->ProcessLine(gAlice->GetConfigFunction());
26 gAlice->GetMCApp()->Init();
27 gGeoManager->Export("geometry.root");
28 .L $ALICE_ROOT/MUON/MUONCheckMisAligner.C+
29 MUONCheckMisAligner(0., 0.03, 0., 0.03, 0., 0.03, "FullMisAlignCDB");
33 echo "Running simulation ..."
35 aliroot -b >& testSim.out << EOF
36 // Uncoment following lines to run simulation with local full mis-alignment
37 // (generated via MUONGenerateGeometryData.C macro)
38 AliCDBManager* man = AliCDBManager::Instance();
39 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
40 man->SetSpecificStorage("MUON/Align/Data","local://FullMisAlignCDB");
41 AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C");
42 MuonSim.SetSeed($SEED);
43 MuonSim.SetMakeTrigger("MUON");
44 MuonSim.SetWriteRawData("MUON","raw.root",kTRUE);
45 MuonSim.SetMakeDigits("MUON");
46 MuonSim.SetMakeSDigits("MUON");
47 MuonSim.SetMakeDigitsFromHits("");
48 MuonSim.Run($NEVENTS);
52 echo "Moving generated files to $SIMDIR"
54 mv *QA*.root *.log $SIMDIR
55 mv MUON*.root Kinematics*.root galice.root TrackRefs*.root $SIMDIR
57 echo "Running reconstruction ..."
59 aliroot -b >& testReco.out << EOF
60 // Uncoment following lines to run reconstruction with local full mis-alignment
61 // (generated via MUONGenerateGeometryData.C macro)
62 //AliCDBManager* man = AliCDBManager::Instance();
63 //man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
64 //man->SetSpecificStorage("MUON/Align/Data","local://$ALICE_ROOT/OCDB/MUON/FullMisAlignCDB");
65 gRandom->SetSeed($SEED);
66 AliReconstruction MuonRec("galice.root");
67 MuonRec.SetInput("$FULLPATH/raw.root");
68 MuonRec.SetRunVertexFinder(kFALSE);
69 MuonRec.SetRunLocalReconstruction("MUON");
70 MuonRec.SetRunTracking("MUON");
71 MuonRec.SetFillESD("");
72 MuonRec.SetLoadAlignData("MUON")
73 MuonRec.SetNumberOfEventsPerFile(1000);
74 AliMUONRecoParam *muonRecoParam = AliMUONRecoParam::GetLowFluxParam();
75 // muonRecoParam->SaveFullClusterInESD(kTRUE,100.);
76 muonRecoParam->CombineClusterTrackReco(kFALSE);
77 //muonRecoParam->SetClusteringMode("PEAKFIT");
78 //muonRecoParam->SetClusteringMode("PEAKCOG");
79 muonRecoParam->Print("FULL");
81 AliRecoParam::Instance()->RegisterRecoParam(muonRecoParam);
86 echo "Running alignment ..."
88 aliroot -b >& testAlign.out << EOF
89 .L $ALICE_ROOT/MUON/MUONAlignment.C+
90 AliMpCDB::LoadMpSegmentation2();
96 echo "... see results in " $OUTDIR