]>
Commit | Line | Data |
---|---|---|
b373143f | 1 | void MakeITSRecoParam_2010(AliRecoParam::EventSpecie_t default=AliRecoParam::kLowMult, const char* cdbURI="local://") { |
50f91c8b | 2 | //======================================================================== |
3 | // | |
4 | // Steering macro for ITS reconstruction parameters | |
5 | // | |
6 | // Author: A.Dainese | |
7 | // Contact: andrea.dainese@lnl.infn.it | |
8 | // | |
9 | //======================================================================== | |
10 | ||
11 | ||
12 | const char* macroname = "MakeITSRecoParam_2010.C"; | |
13 | ||
14 | // Activate CDB storage and load geometry from CDB | |
15 | AliCDBManager* cdb = AliCDBManager::Instance(); | |
16 | cdb->SetDefaultStorage(cdbURI); | |
17 | ||
18 | TObjArray *recoParamArray = new TObjArray(); | |
19 | ||
20 | { | |
21 | AliITSRecoParam * itsRecoParam = AliITSRecoParam::GetCosmicTestParam(); | |
22 | // find independently ITS SA tracks | |
23 | itsRecoParam->SetSAUseAllClusters(); | |
24 | itsRecoParam->SetMinNPointsSA(2); | |
25 | itsRecoParam->SetOuterStartLayerSA(AliITSgeomTGeo::GetNLayers()-2); | |
26 | ||
27 | // to maximize efficiency | |
28 | itsRecoParam->SetAllowProlongationWithEmptyRoad(); | |
29 | ||
30 | // larger seach windows for SA (in case of large misalignments) | |
31 | itsRecoParam->SetNLoopsSA(33); | |
32 | itsRecoParam->SetFactorSAWindowSizes(20); | |
33 | ||
34 | // additional error due to misal (B off) | |
35 | itsRecoParam->SetClusterMisalErrorY(1.0,1.0,1.0,1.0,1.0,1.0); // [cm] | |
36 | itsRecoParam->SetClusterMisalErrorZ(1.0,1.0,1.0,1.0,1.0,1.0); // [cm] | |
37 | // additional error due to misal (B on) | |
38 | itsRecoParam->SetClusterMisalErrorYBOn(0.0,0.0,0.1,0.1,0.1,0.1); // [cm] | |
39 | itsRecoParam->SetClusterMisalErrorZBOn(0.1,0.1,0.1,0.1,0.1,0.1); // [cm] | |
40 | ||
41 | itsRecoParam->SetClusterErrorsParam(2); | |
42 | itsRecoParam->SetFindV0s(kFALSE); | |
43 | itsRecoParam->SetAddVirtualClustersInDeadZone(kFALSE); | |
44 | itsRecoParam->SetUseAmplitudeInfo(kFALSE); | |
45 | itsRecoParam->SetEventSpecie(AliRecoParam::kCosmic); | |
8227519f | 46 | itsRecoParam->SetTitle("Cosmic"); |
50f91c8b | 47 | recoParamArray->AddLast(itsRecoParam); |
48 | } | |
49 | { | |
50 | AliITSRecoParam * itsRecoParam = AliITSRecoParam::GetLowFluxParam(); | |
51 | itsRecoParam->SetClusterErrorsParam(2); | |
52 | ||
53 | // find independently ITS SA tracks | |
54 | itsRecoParam->SetSAUseAllClusters(); | |
55 | itsRecoParam->SetOuterStartLayerSA(2); | |
56 | ||
57 | itsRecoParam->SetAllowProlongationWithEmptyRoad(kTRUE); | |
58 | ||
59 | // larger seach windows for SA (in case of large misalignments) | |
60 | itsRecoParam->SetFactorSAWindowSizes(2); | |
61 | ||
62 | // Misalignment syst errors decided at ITS meeting 25.03.2010 | |
09660eee | 63 | // Errors in Z reduced on 11.10.2010 for SPD and SDD |
50f91c8b | 64 | // additional error due to misal (B off) |
65 | itsRecoParam->SetClusterMisalErrorY(0.0010,0.0010,0.0300,0.0300,0.0020,0.0020); // [cm] | |
09660eee | 66 | itsRecoParam->SetClusterMisalErrorZ(0.0050,0.0050,0.0050,0.0050,0.1000,0.1000); // [cm] |
50f91c8b | 67 | // additional error due to misal (B on) |
b373143f | 68 | itsRecoParam->SetClusterMisalErrorYBOn(0.0010,0.0030,0.0500,0.0500,0.0020,0.0020); // [cm] |
09660eee | 69 | itsRecoParam->SetClusterMisalErrorZBOn(0.0050,0.0050,0.0050,0.0050,0.1000,0.1000); // [cm] |
50f91c8b | 70 | //---- |
71 | ||
72 | // SDD configuration | |
b373143f | 73 | itsRecoParam->SetUseSDDCorrectionMaps(kTRUE); // changed 30.04.2010 |
50f91c8b | 74 | itsRecoParam->SetUseSDDClusterSizeSelection(kTRUE); |
75 | itsRecoParam->SetMinClusterChargeSDD(30.); | |
c4619c66 | 76 | itsRecoParam->SetUseUnfoldingInClusterFinderSDD(kFALSE); |
50f91c8b | 77 | |
78 | // Plane Efficiency evaluation with tracklets Method | |
79 | itsRecoParam->SetIPlanePlaneEff(-1); | |
80 | itsRecoParam->SetComputePlaneEff(kTRUE,kFALSE); | |
81 | itsRecoParam->SetUseTrackletsPlaneEff(kTRUE); | |
82 | itsRecoParam->SetTrackleterPhiWindowL2(0.07); | |
83 | itsRecoParam->SetTrackleterZetaWindowL2(0.4); | |
84 | itsRecoParam->SetTrackleterPhiWindowL1(0.10); | |
85 | itsRecoParam->SetTrackleterZetaWindowL1(0.6); | |
86 | itsRecoParam->SetUpdateOncePerEventPlaneEff(kTRUE); | |
87 | itsRecoParam->SetMinContVtxPlaneEff(3); | |
88 | // itsRecoParam->SetOptTrackletsPlaneEff(kTRUE); // activate it for MC (very important) ! | |
89 | // Removal of tracklets reconstructed in the SPD overlaps | |
90 | itsRecoParam->SetTrackleterRemoveClustersFromOverlaps(kTRUE); | |
91 | ||
5b7f4963 | 92 | // V0 finder (A. Marin) |
93 | itsRecoParam->GetESDV0Params()->SetMaxPidProbPionForb(0.9); | |
94 | ||
50f91c8b | 95 | //****************************************************************** |
96 | ||
97 | itsRecoParam->SetEventSpecie(AliRecoParam::kLowMult); | |
8227519f | 98 | itsRecoParam->SetTitle("LowMult"); |
50f91c8b | 99 | recoParamArray->AddLast(itsRecoParam); |
100 | } | |
101 | { | |
102 | AliITSRecoParam * itsRecoParam = AliITSRecoParam::GetHighFluxParam(); | |
103 | itsRecoParam->SetClusterErrorsParam(2); | |
8227519f | 104 | |
105 | // find independently ITS SA tracks for nContrSPD<50 | |
106 | itsRecoParam->SetSAUseAllClusters(); | |
107 | itsRecoParam->SetMaxSPDcontrForSAToUseAllClusters(50); | |
108 | ||
333d86cb | 109 | itsRecoParam->SetImproveWithVertex(kTRUE); |
110 | // Misalignment syst errors decided at ITS meeting 25.03.2010 | |
111 | // additional error due to misal (B off) | |
112 | itsRecoParam->SetClusterMisalErrorY(0.0010,0.0010,0.0300,0.0300,0.0020,0.0020); // [cm] | |
b5a6fb7f | 113 | itsRecoParam->SetClusterMisalErrorZ(0.0100,0.0100,0.0100,0.0100,0.0500,0.0500); // [cm] |
333d86cb | 114 | // additional error due to misal (B on) |
115 | itsRecoParam->SetClusterMisalErrorYBOn(0.0010,0.0030,0.0500,0.0500,0.0020,0.0020); // [cm] | |
8227519f | 116 | itsRecoParam->SetClusterMisalErrorZBOn(0.0050,0.0050,0.0050,0.0050,0.1000,0.1000); // [cm] |
333d86cb | 117 | //---- |
326555aa | 118 | |
119 | ||
120 | // tracklets | |
121 | itsRecoParam->SetTrackleterPhiWindowL2(0.07); | |
122 | itsRecoParam->SetTrackleterZetaWindowL2(0.4); | |
123 | itsRecoParam->SetTrackleterPhiWindowL1(0.10); | |
124 | itsRecoParam->SetTrackleterZetaWindowL1(0.6); | |
125 | // Removal of tracklets reconstructed in the SPD overlaps | |
126 | itsRecoParam->SetTrackleterRemoveClustersFromOverlaps(kTRUE); | |
127 | ||
8227519f | 128 | // SDD configuration |
129 | itsRecoParam->SetUseSDDCorrectionMaps(kTRUE); | |
130 | itsRecoParam->SetUseSDDClusterSizeSelection(kTRUE); | |
131 | itsRecoParam->SetMinClusterChargeSDD(30.); | |
132 | itsRecoParam->SetUseUnfoldingInClusterFinderSDD(kFALSE); | |
133 | ||
50f91c8b | 134 | itsRecoParam->SetEventSpecie(AliRecoParam::kHighMult); |
8227519f | 135 | itsRecoParam->SetTitle("HighMult"); |
50f91c8b | 136 | recoParamArray->AddLast(itsRecoParam); |
137 | } | |
138 | ||
139 | // Set the default | |
140 | Bool_t defaultIsSet = kFALSE; | |
141 | for(Int_t i =0; i < recoParamArray->GetEntriesFast(); i++) { | |
142 | AliDetectorRecoParam *param = (AliDetectorRecoParam *)recoParamArray->UncheckedAt(i); | |
143 | if (!param) continue; | |
144 | if (default & param->GetEventSpecie()) { | |
145 | param->SetAsDefault(); | |
146 | defaultIsSet = kTRUE; | |
147 | } | |
148 | } | |
149 | ||
150 | if (!defaultIsSet) { | |
151 | Error(macroname,"The default reconstruction parameters are not set! Exiting..."); | |
152 | return; | |
153 | } | |
154 | ||
155 | // save in CDB storage | |
156 | AliCDBMetaData *md= new AliCDBMetaData(); | |
157 | md->SetResponsible("Andrea Dainese"); | |
158 | md->SetComment("Reconstruction parameters ITS."); | |
159 | md->SetAliRootVersion(gSystem->Getenv("ARVERSION")); | |
160 | md->SetBeamPeriod(0); | |
161 | AliCDBId id("ITS/Calib/RecoParam",0,AliCDBRunRange::Infinity()); | |
162 | cdb->GetDefaultStorage()->Put(recoParamArray,id, md); | |
163 | ||
164 | return; | |
165 | } | |
166 | ||
167 |