]>
Commit | Line | Data |
---|---|---|
9228b8da | 1 | #!/bin/sh |
2 | # $Id$ | |
3 | # | |
4 | # By J. Castillo | |
5 | ||
9228b8da | 6 | CURDIR=`pwd` |
7 | OUTDIR=test_align | |
1ba08db3 | 8 | SIMDIR="generated" |
9228b8da | 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 | |
1ba08db3 | 22 | AliMpCDB::LoadMpSegmentation2(); |
a1a34380 | 23 | TString configFileName = "$ALICE_ROOT/MUON/Config.C"; |
24 | gROOT->LoadMacro(configFileName.Data()); | |
25 | gInterpreter->ProcessLine(gAlice->GetConfigFunction()); | |
26 | gAlice->GetMCApp()->Init(); | |
8962ab7c | 27 | gGeoManager->Export("geometry.root"); |
28 | .L $ALICE_ROOT/MUON/MUONCheckMisAligner.C+ | |
29 | MUONCheckMisAligner(0., 0.03, 0., 0.03, 0., 0.03, "FullMisAlignCDB"); | |
9228b8da | 30 | .q |
31 | EOF | |
32 | ||
9228b8da | 33 | echo "Running simulation ..." |
34 | ||
35 | aliroot -b >& testSim.out << EOF | |
1ba08db3 | 36 | // Uncoment following lines to run simulation with local full mis-alignment |
9228b8da | 37 | // (generated via MUONGenerateGeometryData.C macro) |
38 | AliCDBManager* man = AliCDBManager::Instance(); | |
162637e4 | 39 | man->SetDefaultStorage("local://$ALICE_ROOT/OCDB"); |
ce6c70e9 | 40 | man->SetSpecificStorage("MUON/Align/Data","local://FullMisAlignCDB"); |
9228b8da | 41 | AliSimulation MuonSim("$ALICE_ROOT/MUON/Config.C"); |
1ba08db3 | 42 | MuonSim.SetSeed($SEED); |
9228b8da | 43 | MuonSim.SetMakeTrigger("MUON"); |
1ba08db3 | 44 | MuonSim.SetWriteRawData("MUON","raw.root",kTRUE); |
45 | MuonSim.SetMakeDigits("MUON"); | |
46 | MuonSim.SetMakeSDigits("MUON"); | |
47 | MuonSim.SetMakeDigitsFromHits(""); | |
9228b8da | 48 | MuonSim.Run($NEVENTS); |
49 | .q | |
50 | EOF | |
51 | ||
1ba08db3 | 52 | echo "Moving generated files to $SIMDIR" |
53 | mkdir $SIMDIR | |
54 | mv *QA*.root *.log $SIMDIR | |
55 | mv MUON*.root Kinematics*.root galice.root TrackRefs*.root $SIMDIR | |
56 | ||
9228b8da | 57 | echo "Running reconstruction ..." |
58 | ||
59 | aliroot -b >& testReco.out << EOF | |
1ba08db3 | 60 | // Uncoment following lines to run reconstruction with local full mis-alignment |
61 | // (generated via MUONGenerateGeometryData.C macro) | |
62 | //AliCDBManager* man = AliCDBManager::Instance(); | |
162637e4 | 63 | //man->SetDefaultStorage("local://$ALICE_ROOT/OCDB"); |
64 | //man->SetSpecificStorage("MUON/Align/Data","local://$ALICE_ROOT/OCDB/MUON/FullMisAlignCDB"); | |
9228b8da | 65 | gRandom->SetSeed($SEED); |
ce6c70e9 | 66 | AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 1, 1., 10., AliMagFMaps::k5kG); |
67 | AliTracker::SetFieldMap(field, kFALSE); | |
9228b8da | 68 | AliReconstruction MuonRec("galice.root"); |
1ba08db3 | 69 | MuonRec.SetInput("$FULLPATH/raw.root"); |
9228b8da | 70 | MuonRec.SetRunVertexFinder(kFALSE); |
71 | MuonRec.SetRunLocalReconstruction("MUON"); | |
1ba08db3 | 72 | MuonRec.SetRunTracking("MUON"); |
73 | MuonRec.SetFillESD(""); | |
e6a01e20 | 74 | MuonRec.SetLoadAlignData("MUON") |
1ba08db3 | 75 | MuonRec.SetNumberOfEventsPerFile(1000); |
76 | AliMUONRecoParam *muonRecoParam = AliMUONRecoParam::GetLowFluxParam(); | |
77 | // muonRecoParam->SaveFullClusterInESD(kTRUE,100.); | |
78 | muonRecoParam->CombineClusterTrackReco(kFALSE); | |
79 | //muonRecoParam->SetClusteringMode("PEAKFIT"); | |
80 | //muonRecoParam->SetClusteringMode("PEAKCOG"); | |
81 | muonRecoParam->Print("FULL"); | |
82 | ||
83 | AliRecoParam::Instance()->RegisterRecoParam(muonRecoParam); | |
9228b8da | 84 | MuonRec.Run(); |
85 | .q | |
86 | EOF | |
87 | ||
88 | echo "Running alignment ..." | |
89 | ||
90 | aliroot -b >& testAlign.out << EOF | |
8962ab7c | 91 | .L $ALICE_ROOT/MUON/MUONAlignment.C+ |
1ba08db3 | 92 | AliMpCDB::LoadMpSegmentation2(); |
8962ab7c | 93 | MUONAlignment(); |
9228b8da | 94 | .q |
95 | EOF | |
96 | ||
97 | echo "Finished" | |
a1a34380 | 98 | echo "... see results in " $OUTDIR |
9228b8da | 99 | |
100 | cd $CURDIR |