fixed the tainted variables
[u/mrichter/AliRoot.git] / ITS / MakeITSRecoParam_2010.C
CommitLineData
b373143f 1void 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);
46 recoParamArray->AddLast(itsRecoParam);
47 }
48 {
49 AliITSRecoParam * itsRecoParam = AliITSRecoParam::GetLowFluxParam();
50 itsRecoParam->SetClusterErrorsParam(2);
51
52 // find independently ITS SA tracks
53 itsRecoParam->SetSAUseAllClusters();
54 itsRecoParam->SetOuterStartLayerSA(2);
55
56 itsRecoParam->SetAllowProlongationWithEmptyRoad(kTRUE);
57
58 // larger seach windows for SA (in case of large misalignments)
59 itsRecoParam->SetFactorSAWindowSizes(2);
60
61 // Misalignment syst errors decided at ITS meeting 25.03.2010
09660eee 62 // Errors in Z reduced on 11.10.2010 for SPD and SDD
50f91c8b 63 // additional error due to misal (B off)
64 itsRecoParam->SetClusterMisalErrorY(0.0010,0.0010,0.0300,0.0300,0.0020,0.0020); // [cm]
09660eee 65 itsRecoParam->SetClusterMisalErrorZ(0.0050,0.0050,0.0050,0.0050,0.1000,0.1000); // [cm]
50f91c8b 66 // additional error due to misal (B on)
b373143f 67 itsRecoParam->SetClusterMisalErrorYBOn(0.0010,0.0030,0.0500,0.0500,0.0020,0.0020); // [cm]
09660eee 68 itsRecoParam->SetClusterMisalErrorZBOn(0.0050,0.0050,0.0050,0.0050,0.1000,0.1000); // [cm]
50f91c8b 69 //----
70
71 // SDD configuration
b373143f 72 itsRecoParam->SetUseSDDCorrectionMaps(kTRUE); // changed 30.04.2010
50f91c8b 73 itsRecoParam->SetUseSDDClusterSizeSelection(kTRUE);
74 itsRecoParam->SetMinClusterChargeSDD(30.);
c4619c66 75 itsRecoParam->SetUseUnfoldingInClusterFinderSDD(kFALSE);
50f91c8b 76
77 // Plane Efficiency evaluation with tracklets Method
78 itsRecoParam->SetIPlanePlaneEff(-1);
79 itsRecoParam->SetComputePlaneEff(kTRUE,kFALSE);
80 itsRecoParam->SetUseTrackletsPlaneEff(kTRUE);
81 itsRecoParam->SetTrackleterPhiWindowL2(0.07);
82 itsRecoParam->SetTrackleterZetaWindowL2(0.4);
83 itsRecoParam->SetTrackleterPhiWindowL1(0.10);
84 itsRecoParam->SetTrackleterZetaWindowL1(0.6);
85 itsRecoParam->SetUpdateOncePerEventPlaneEff(kTRUE);
86 itsRecoParam->SetMinContVtxPlaneEff(3);
87 // itsRecoParam->SetOptTrackletsPlaneEff(kTRUE); // activate it for MC (very important) !
88 // Removal of tracklets reconstructed in the SPD overlaps
89 itsRecoParam->SetTrackleterRemoveClustersFromOverlaps(kTRUE);
90
5b7f4963 91 // V0 finder (A. Marin)
92 itsRecoParam->GetESDV0Params()->SetMaxPidProbPionForb(0.9);
93
50f91c8b 94 //******************************************************************
95
96 itsRecoParam->SetEventSpecie(AliRecoParam::kLowMult);
97 recoParamArray->AddLast(itsRecoParam);
98 }
99 {
100 AliITSRecoParam * itsRecoParam = AliITSRecoParam::GetHighFluxParam();
101 itsRecoParam->SetClusterErrorsParam(2);
333d86cb 102 itsRecoParam->SetImproveWithVertex(kTRUE);
103 // Misalignment syst errors decided at ITS meeting 25.03.2010
104 // additional error due to misal (B off)
105 itsRecoParam->SetClusterMisalErrorY(0.0010,0.0010,0.0300,0.0300,0.0020,0.0020); // [cm]
b5a6fb7f 106 itsRecoParam->SetClusterMisalErrorZ(0.0100,0.0100,0.0100,0.0100,0.0500,0.0500); // [cm]
333d86cb 107 // additional error due to misal (B on)
108 itsRecoParam->SetClusterMisalErrorYBOn(0.0010,0.0030,0.0500,0.0500,0.0020,0.0020); // [cm]
b5a6fb7f 109 itsRecoParam->SetClusterMisalErrorZBOn(0.0100,0.0100,0.0100,0.0100,0.0500,0.0500); // [cm]
333d86cb 110 //----
326555aa 111
112
113 // tracklets
114 itsRecoParam->SetTrackleterPhiWindowL2(0.07);
115 itsRecoParam->SetTrackleterZetaWindowL2(0.4);
116 itsRecoParam->SetTrackleterPhiWindowL1(0.10);
117 itsRecoParam->SetTrackleterZetaWindowL1(0.6);
118 // Removal of tracklets reconstructed in the SPD overlaps
119 itsRecoParam->SetTrackleterRemoveClustersFromOverlaps(kTRUE);
120
50f91c8b 121 itsRecoParam->SetEventSpecie(AliRecoParam::kHighMult);
122 recoParamArray->AddLast(itsRecoParam);
123 }
124
125 // Set the default
126 Bool_t defaultIsSet = kFALSE;
127 for(Int_t i =0; i < recoParamArray->GetEntriesFast(); i++) {
128 AliDetectorRecoParam *param = (AliDetectorRecoParam *)recoParamArray->UncheckedAt(i);
129 if (!param) continue;
130 if (default & param->GetEventSpecie()) {
131 param->SetAsDefault();
132 defaultIsSet = kTRUE;
133 }
134 }
135
136 if (!defaultIsSet) {
137 Error(macroname,"The default reconstruction parameters are not set! Exiting...");
138 return;
139 }
140
141 // save in CDB storage
142 AliCDBMetaData *md= new AliCDBMetaData();
143 md->SetResponsible("Andrea Dainese");
144 md->SetComment("Reconstruction parameters ITS.");
145 md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
146 md->SetBeamPeriod(0);
147 AliCDBId id("ITS/Calib/RecoParam",0,AliCDBRunRange::Infinity());
148 cdb->GetDefaultStorage()->Put(recoParamArray,id, md);
149
150 return;
151}
152
153