]>
Commit | Line | Data |
---|---|---|
1c44b663 | 1 | //DEFINITION OF A FEW CONSTANTS |
ec5288c3 | 2 | const Double_t ymin = -1.2 ; |
3 | const Double_t ymax = 1.2 ; | |
c606965d | 4 | const Double_t cosmin = -1.05; |
1c44b663 | 5 | const Double_t cosmax = 1.05; |
6 | const Double_t cTmin = 0; // micron | |
7 | const Double_t cTmax = 500; // micron | |
1c44b663 | 8 | const Double_t phimin = 0.0; |
1c44b663 | 9 | const Int_t mintrackrefsTPC = 2 ; |
10 | const Int_t mintrackrefsITS = 3 ; | |
11 | const Int_t charge = 1 ; | |
12 | const Int_t minclustersTPC = 50 ; | |
13 | // cuts | |
14 | const Double_t ptmin = 0.1; | |
15 | const Double_t ptmax = 9999.; | |
16 | const Double_t etamin = -0.9; | |
17 | const Double_t etamax = 0.9; | |
ec5288c3 | 18 | const Double_t zvtxmin = -15; |
19 | const Double_t zvtxmax = 15; | |
1c44b663 | 20 | const Int_t minITSClusters = 5; |
21 | ||
ec5288c3 | 22 | const Float_t centmin_0_10 = 0.; |
23 | const Float_t centmax_0_10 = 10.; | |
ad02b758 | 24 | const Float_t centmin_10_60 = 10.; |
25 | const Float_t centmax_10_60 = 60.; | |
26 | const Float_t centmin_60_100 = 60.; | |
27 | const Float_t centmax_60_100 = 100.; | |
c606965d | 28 | const Float_t centmin = 0.; |
1c44b663 | 29 | const Float_t centmax = 100.; |
30 | const Float_t fakemin = -0.5; | |
31 | const Float_t fakemax = 2.5.; | |
1c44b663 | 32 | const Double_t distTwoPartmin=0; |
33 | const Double_t distTwoPartmax=600; | |
1c44b663 | 34 | const Double_t dispVtxmin = 0; |
35 | const Double_t dispVtxmax = 600; | |
1c44b663 | 36 | const Double_t sumd02min = 0.; |
37 | const Double_t sumd02max = 50000.; | |
c606965d | 38 | const Float_t cosminXY = -1.0; |
ec5288c3 | 39 | const Float_t cosmaxXY = 1.0; |
40 | const Float_t normDecLXYmin = 0; | |
41 | const Float_t normDecLXYmax = 20; | |
42 | const Float_t multmin_0_20 = 0; | |
43 | const Float_t multmax_0_20 = 20; | |
44 | const Float_t multmin_20_50 = 20; | |
45 | const Float_t multmax_20_50 = 50; | |
46 | const Float_t multmin_50_102 = 50; | |
47 | const Float_t multmax_50_102 = 102; | |
48 | ||
1c44b663 | 49 | |
50 | //---------------------------------------------------- | |
51 | ||
ec5288c3 | 52 | //AliCFTaskVertexingHF *AddTaskCFVertexingHF3ProngLc(const char* cutFile = "./cuts4LctopKpi.root", Int_t configuration = AliCFTaskVertexingHF::kSnail, Bool_t isKeepDfromB=kFALSE, Bool_t isKeepDfromBOnly=kFALSE, Int_t pdgCode = 4122, Char_t isSign = 2) |
e714e0d3 | 53 | AliCFTaskVertexingHF *AddTaskCFVertexingHF3ProngLc(const char* cutFile = "./cuts4LctopKpi.root", Int_t configuration = AliCFTaskVertexingHF::kSnail, Bool_t isKeepDfromB=kFALSE, Bool_t isKeepDfromBOnly=kFALSE, Int_t pdgCode = 4122, Char_t isSign = 2,UInt_t decayLc=AliCFTaskVertexingHF::kDelta,TString coutName="Delta") |
1c44b663 | 54 | { |
55 | printf("Addig CF task using cuts from file %s\n",cutFile); | |
ec5288c3 | 56 | if (configuration == AliCFTaskVertexingHF::kSnail){ |
57 | printf("The configuration is set to be SLOW --> all the variables will be used to fill the CF\n"); | |
58 | } | |
59 | else if (configuration == AliCFTaskVertexingHF::kCheetah){ | |
60 | printf("The configuration is set to be FAST --> using only pt, y, ct, phi, zvtx, centrality, fake, multiplicity to fill the CF\n"); | |
61 | } | |
62 | else{ | |
63 | printf("The configuration is not defined! returning\n"); | |
64 | return; | |
65 | } | |
66 | ||
67 | gSystem->Sleep(2000); | |
68 | ||
1c44b663 | 69 | // isSign = 0 --> D0 only |
70 | // isSign = 1 --> D0bar only | |
71 | // isSign = 2 --> D0 + D0bar | |
72 | ||
73 | TString expected; | |
74 | if (isSign == 0 && pdgCode < 0){ | |
75 | AliError(Form("Error setting PDG code (%d) and sign (0 --> particle (%d) only): they are not compatible, returning",pdgCode)); | |
76 | return 0x0; | |
77 | } | |
78 | else if (isSign == 1 && pdgCode > 0){ | |
79 | AliError(Form("Error setting PDG code (%d) and sign (1 --> antiparticle (%d) only): they are not compatible, returning",pdgCode)); | |
80 | return 0x0; | |
81 | } | |
82 | else if (isSign > 2 || isSign < 0){ | |
83 | AliError(Form("Sign not valid (%d, possible values are 0, 1, 2), returning")); | |
84 | return 0x0; | |
85 | } | |
ec5288c3 | 86 | |
01e9725a | 87 | TFile* fileCuts = TFile::Open(cutFile); |
e693cb03 | 88 | if(!fileCuts || (fileCuts && !fileCuts->IsOpen())){ |
89 | AliError("Wrong cut file"); | |
90 | return 0x0; | |
91 | } | |
92 | ||
c606965d | 93 | AliRDHFCutsLctopKpi *cutsLctopKpi = (AliRDHFCutsLctopKpi*)fileCuts->Get("LctopKpiAnalysisCuts"); |
1c44b663 | 94 | |
95 | // check that the fKeepD0fromB flag is set to true when the fKeepD0fromBOnly flag is true | |
96 | // for now the binning is the same than for all D's | |
97 | if(isKeepDfromBOnly) isKeepDfromB = true; | |
98 | ||
1c44b663 | 99 | /* |
100 | Double_t ptmin_0_4; | |
101 | Double_t ptmax_0_4; | |
102 | Double_t ptmin_4_8; | |
103 | Double_t ptmax_4_8; | |
104 | Double_t ptmin_8_10; | |
105 | Double_t ptmax_8_10; | |
106 | ||
107 | if(!isKeepDfromB){ | |
108 | ptmin_0_4 = 0.0 ; | |
109 | ptmax_0_4 = 4.0 ; | |
110 | ptmin_4_8 = 4.0 ; | |
111 | ptmax_4_8 = 8.0 ; | |
112 | ptmin_8_10 = 8.0 ; | |
113 | ptmax_8_10 = 10.0 ; | |
114 | } else{ | |
115 | ptmin_0_4 = 0.0 ; | |
116 | ptmax_0_4 = 3.0 ; | |
117 | ptmin_4_8 = 3.0 ; | |
118 | ptmax_4_8 = 5.0 ; | |
119 | ptmin_8_10 = 5.0 ; | |
120 | ptmax_8_10 = 10.0 ; | |
121 | } | |
122 | */ | |
123 | ||
124 | //CONTAINER DEFINITION | |
125 | Info("AliCFTaskVertexingHF","SETUP CONTAINER"); | |
1c44b663 | 126 | |
127 | const Double_t phimax = 2*TMath::Pi(); | |
128 | ||
129 | //Setting up the container grid... | |
130 | UInt_t nstep = 10; //number of selection steps: MC with limited acceptance, MC, Acceptance, Vertex, Refit, Reco (no cuts), RecoAcceptance, RecoITSClusters (RecoAcceptance included), RecoPPR (RecoAcceptance+RecoITSCluster included), RecoPID | |
ec5288c3 | 131 | // const Int_t nbinpt_0_4 = 8 ; //bins in pt from 0 to 4 GeV |
132 | // const Int_t nbinpt_4_8 = 4 ; //bins in pt from 4 to 8 GeV | |
133 | // const Int_t nbinpt_8_10 = 1 ; //bins in pt from 8 to 10 GeV | |
1c44b663 | 134 | |
135 | /* | |
ec5288c3 | 136 | Int_t nbinpt_0_4; |
137 | Int_t nbinpt_4_8; | |
138 | Int_t nbinpt_8_10; | |
1c44b663 | 139 | if (!isKeepDfromB){ |
ec5288c3 | 140 | nbinpt_0_4 = 8 ; //bins in pt from 0 to 4 GeV |
141 | nbinpt_4_8 = 4 ; //bins in pt from 4 to 8 GeV | |
142 | nbinpt_8_10 = 1 ; //bins in pt from 8 to 10 GeV | |
1c44b663 | 143 | }else{ |
ec5288c3 | 144 | nbinpt_0_4 = 3 ; //bins in pt from 0 to 3 GeV |
145 | nbinpt_4_8 = 1 ; //bins in pt from 3 to 5 GeV | |
146 | nbinpt_8_10 = 1 ; //bins in pt from 5 to 10 GeV | |
1c44b663 | 147 | } |
148 | */ | |
ec5288c3 | 149 | const Int_t nbinpt = cutsLctopKpi->GetNPtBins(); // bins in pT |
150 | printf("pT: nbin (from cuts file) = %d\n",nbinpt); | |
151 | const Int_t nbiny = 24 ; //bins in y | |
152 | const Int_t nbinphi = 18 ; //bins in phi | |
153 | const Int_t nbincT = 25 ; //bins in cT | |
154 | const Int_t nbinpointing = 350 ; //bins in cosPointingAngle | |
155 | const Int_t nbinpTpi_0_4 = 8 ; //bins in ptPi from 0 to 4 GeV | |
156 | const Int_t nbinpTpi_4_8 = 4 ; //bins in ptPi from 4 to 8 GeV | |
157 | const Int_t nbinpTpi_8_10 = 1 ; //bins in ptPi from 8 to 10 GeV | |
158 | const Int_t nbinpTk_0_4 = 8 ; //bins in ptKa from 0 to 4 GeV | |
159 | const Int_t nbinpTk_4_8 = 4 ; //bins in ptKa from 4 to 8 GeV | |
160 | const Int_t nbinpTk_8_10 = 1 ; //bins in ptKa from 8 to 10 GeV | |
161 | const Int_t nbinpTpi2_0_4 = 8 ; //bins in ptpi2 from 0 to 4 GeV | |
162 | const Int_t nbinpTpi2_4_8 = 4 ; //bins in ptpi2 from 4 to 8 GeV | |
163 | const Int_t nbinpTpi2_8_10 = 1 ; //bins in ptpi2 from 8 to 10 GeV | |
164 | const Int_t nbinzvtx = 30 ; //bins in z vertex | |
ad02b758 | 165 | const Int_t nbincent = 18; //bins in centrality |
166 | const Int_t nbincent_0_10 = 4; //bins in centrality between 0 and 10 | |
167 | const Int_t nbincent_10_60 = 10; //bins in centrality between 10 and 60 | |
168 | const Int_t nbincent_60_100 = 4; //bins in centrality between 60 and 100 | |
ec5288c3 | 169 | const Int_t nbinfake = 3; //bins in fake |
170 | const Int_t nbindist12 = 10; //bins dist12 | |
171 | const Int_t nbindist23 = 10; //bins dist23 | |
172 | const Int_t nbinsigmaVtx = 10; //bin sigmaVtx | |
173 | const Int_t nbinsumd02 = 10; //bin sumD0^2 | |
174 | const Int_t nbinpointingXY = 50; //bins in cosPointingAngleXY | |
175 | const Int_t nbinnormDecayLXY = 20; //bins in NormDecayLengthXY | |
176 | const Int_t nbinmult = 48; //bins in multiplicity (total number) | |
177 | const Int_t nbinmult_0_20 = 20; //bins in multiplicity between 0 and 20 | |
178 | const Int_t nbinmult_20_50 = 15; //bins in multiplicity between 20 and 50 | |
179 | const Int_t nbinmult_50_102 = 13; //bins in multiplicity between 50 and 102 | |
180 | ||
181 | //the sensitive variables, their indices | |
182 | const UInt_t ipT = 0; | |
183 | const UInt_t iy = 1; | |
184 | const UInt_t iphi = 2; | |
185 | const UInt_t icT = 3; | |
186 | const UInt_t ipointing = 4; | |
187 | const UInt_t ipTpi = 5; | |
188 | const UInt_t ipTk = 6; | |
189 | const UInt_t ipTpi2 = 7; | |
190 | const UInt_t izvtx = 8; | |
191 | const UInt_t icent = 9; | |
192 | const UInt_t ifake = 10; | |
193 | const UInt_t idist12 = 11; | |
194 | const UInt_t idist23 = 12; | |
195 | const UInt_t isigmaVtx = 13; | |
196 | const UInt_t isumd02 = 14; | |
197 | const UInt_t ipointingXY = 15; | |
198 | const UInt_t inormDecayLXY = 16; | |
199 | const UInt_t imult = 17; | |
200 | ||
201 | const Int_t nvarTot = 18 ; //number of variables on the grid:pt, y, cosThetaStar, pTpi, pTk, cT, dca, d0pi, d0K, d0xd0, cosPointingAngle, phi, zvtx, centrality, fake, cosPointingAngleXY, normDecayLengthXY, multiplicity | |
1c44b663 | 202 | |
203 | //arrays for the number of bins in each dimension | |
ec5288c3 | 204 | Int_t iBin[nvarTot]; |
205 | //iBin[ipT]=nbinpt_0_4+nbinpt_4_8+nbinpt_8_10; | |
206 | iBin[ipT]=nbinpt; | |
207 | iBin[iy]=nbiny; | |
208 | iBin[iphi]=nbinphi; | |
209 | // iBin[icT]=nbincT_0_4+nbincT_4_8+nbincT_8_10; | |
210 | //iBin[4]=nbinpointing_0_4+nbinpointing_4_8+nbinpointing_8_10; | |
211 | iBin[icT]=nbincT; | |
212 | iBin[ipointing]=nbinpointing; | |
213 | iBin[ipTpi]=nbinpt; | |
214 | iBin[ipTk]=nbinpt; | |
215 | iBin[ipTpi2]=nbinpt; | |
216 | iBin[izvtx]=nbinzvtx; | |
217 | iBin[icent]=nbincent; | |
218 | iBin[ifake]=nbinfake; | |
219 | iBin[idist12]=nbindist12; | |
220 | iBin[idist23]=nbindist23; | |
221 | iBin[isigmaVtx]=nbinsigmaVtx; | |
222 | iBin[isumd02]=nbinsumd02; | |
223 | iBin[ipointingXY]=nbinpointingXY; | |
224 | iBin[inormDecayLXY]=nbinnormDecayLXY; | |
225 | iBin[imult]=nbinmult; | |
226 | ||
1c44b663 | 227 | //arrays for lower bounds : |
ec5288c3 | 228 | Double_t *binLimpT=new Double_t[iBin[ipT]+1]; |
229 | Double_t *binLimy=new Double_t[iBin[iy]+1]; | |
230 | Double_t *binLimphi=new Double_t[iBin[iphi]+1]; | |
231 | Double_t *binLimcT=new Double_t[iBin[icT]+1]; | |
232 | Double_t *binLimpointing=new Double_t[iBin[ipointing]+1]; | |
233 | Double_t *binLimpTpi=new Double_t[iBin[ipTpi]+1]; | |
234 | Double_t *binLimpTk=new Double_t[iBin[ipTk]+1]; | |
235 | Double_t *binLimpTpi2=new Double_t[iBin[ipTpi2]+1]; | |
236 | Double_t *binLimzvtx=new Double_t[iBin[izvtx]+1]; | |
237 | Double_t *binLimcent=new Double_t[iBin[icent]+1]; | |
238 | Double_t *binLimfake=new Double_t[iBin[ifake]+1]; | |
239 | Double_t *binLimdist12=new Double_t[iBin[idist12]+1]; | |
240 | Double_t *binLimdist23=new Double_t[iBin[idist23]+1]; | |
241 | Double_t *binLimsigmaVtx=new Double_t[iBin[isigmaVtx]+1]; | |
242 | Double_t *binLimsumd02=new Double_t[iBin[isumd02]+1]; | |
243 | Double_t *binLimpointingXY=new Double_t[iBin[ipointingXY]+1]; | |
244 | Double_t *binLimnormDecayLXY=new Double_t[iBin[inormDecayLXY]+1]; | |
245 | Double_t *binLimmult=new Double_t[iBin[imult]+1]; | |
1c44b663 | 246 | |
247 | // checking limits | |
248 | /* | |
ec5288c3 | 249 | if (ptmax_0_4 != ptmin_4_8) { |
250 | Error("AliCFHeavyFlavourTaskMultiVarMultiStep","max lim 1st range != min lim 2nd range, please check!"); | |
251 | } | |
252 | if (ptmax_4_8 != ptmin_8_10) { | |
253 | Error("AliCFHeavyFlavourTaskMultiVarMultiStep","max lim 2nd range != min lim 3rd range, please check!"); | |
254 | } | |
1c44b663 | 255 | */ |
256 | // values for bin lower bounds | |
257 | // pt | |
ec5288c3 | 258 | Float_t* floatbinLimpT = cutsLctopKpi->GetPtBinLimits(); |
259 | for (Int_t ibinpT = 0 ; ibinpT<iBin[ipT]+1; ibinpT++){ | |
260 | binLimpT[ibinpT] = (Double_t)floatbinLimpT[ibinpT]; | |
261 | binLimpTpi[ibinpT] = (Double_t)floatbinLimpT[ibinpT]; | |
262 | binLimpTk[ibinpT] = (Double_t)floatbinLimpT[ibinpT]; | |
263 | binLimpTpi2[ibinpT] = (Double_t)floatbinLimpT[ibinpT]; | |
1c44b663 | 264 | } |
ec5288c3 | 265 | for(Int_t i=0; i<=nbinpt; i++) printf("binLimpT[%d]=%f\n",i,binLimpT[i]); |
266 | ||
1c44b663 | 267 | /* |
ec5288c3 | 268 | for(Int_t i=0; i<=nbinpt_0_4; i++) binLimpT[i]=(Double_t)ptmin_0_4 + (ptmax_0_4-ptmin_0_4)/nbinpt_0_4*(Double_t)i ; |
269 | if (binLimpT[nbinpt_0_4] != ptmin_4_8) { | |
270 | Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for pt - 1st range - differs from expected!\n"); | |
271 | } | |
272 | for(Int_t i=0; i<=nbinpt_4_8; i++) binLimpT[i+nbinpt_0_4]=(Double_t)ptmin_4_8 + (ptmax_4_8-ptmin_4_8)/nbinpt_4_8*(Double_t)i ; | |
273 | if (binLimpT[nbinpt_0_4+nbinpt_4_8] != ptmin_8_10) { | |
274 | Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for pt - 2nd range - differs from expected!\n"); | |
275 | } | |
276 | for(Int_t i=0; i<=nbinpt_8_10; i++) binLimpT[i+nbinpt_0_4+nbinpt_4_8]=(Double_t)ptmin_8_10 + (ptmax_8_10-ptmin_8_10)/nbinpt_8_10*(Double_t)i ; | |
1c44b663 | 277 | */ |
ec5288c3 | 278 | |
1c44b663 | 279 | // y |
ec5288c3 | 280 | for(Int_t i=0; i<=nbiny; i++) binLimy[i]=(Double_t)ymin + (ymax-ymin) /nbiny*(Double_t)i ; |
281 | ||
1c44b663 | 282 | // Phi |
ec5288c3 | 283 | for(Int_t i=0; i<=nbinphi; i++) binLimphi[i]=(Double_t)phimin + (phimax-phimin) /nbinphi*(Double_t)i ; |
284 | ||
1c44b663 | 285 | // cT |
ec5288c3 | 286 | for(Int_t i=0; i<=nbincT; i++) binLimcT[i]=(Double_t)cTmin + (cTmax-cTmin) /nbincT*(Double_t)i ; |
287 | ||
1c44b663 | 288 | // cosPointingAngle |
ec5288c3 | 289 | for(Int_t i=0; i<=nbinpointing; i++) binLimpointing[i]=(Double_t)cosmin + (cosmax-cosmin) /nbinpointing*(Double_t)i ; |
1c44b663 | 290 | |
291 | /* | |
292 | // ptPi | |
ec5288c3 | 293 | for(Int_t i=0; i<=nbincT_0_4; i++) binLimcT[i]=(Double_t)ptmin_0_4 + (ptmax_0_4-ptmin_0_4)/nbincT_0_4*(Double_t)i ; |
294 | if (binLimcT[nbincT_0_4] != ptmin_4_8) { | |
295 | Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for ptPi - 1st range - differs from expected!"); | |
1c44b663 | 296 | } |
ec5288c3 | 297 | for(Int_t i=0; i<=nbincT_4_8; i++) binLimcT[i+nbincT_0_4]=(Double_t)ptmin_4_8 + (ptmax_4_8-ptmin_4_8)/nbincT_4_8*(Double_t)i ; |
298 | if (binLimcT[nbincT_0_4+nbincT_4_8] != ptmin_8_10) { | |
299 | Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for ptPi - 2nd range - differs from expected!\n"); | |
1c44b663 | 300 | } |
ec5288c3 | 301 | for(Int_t i=0; i<=nbincT_8_10; i++) binLimcT[i+nbincT_0_4+nbincT_4_8]=(Double_t)ptmin_8_10 + (ptmax_8_10-ptmin_8_10)/nbincT_8_10*(Double_t)i ; |
302 | ||
1c44b663 | 303 | // ptKa |
ec5288c3 | 304 | for(Int_t i=0; i<=nbinpointing_0_4; i++) binLimpointing[i]=(Double_t)ptmin_0_4 + (ptmax_0_4-ptmin_0_4)/nbinpointing_0_4*(Double_t)i ; |
305 | if (binLimpointing[nbinpointing_0_4] != ptmin_4_8) { | |
306 | Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for ptKa - 1st range - differs from expected!"); | |
1c44b663 | 307 | } |
ec5288c3 | 308 | for(Int_t i=0; i<=nbinpointing_4_8; i++) binLimpointing[i+nbinpointing_0_4]=(Double_t)ptmin_4_8 + (ptmax_4_8-ptmin_4_8)/nbinpointing_4_8*(Double_t)i ; |
309 | if (binLimpointing[nbinpointing_0_4+nbinpointing_4_8] != ptmin_8_10) { | |
310 | Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for ptKa - 2nd range - differs from expected!\n"); | |
1c44b663 | 311 | } |
ec5288c3 | 312 | for(Int_t i=0; i<=nbinpointing_8_10; i++) binLimpointing[i+nbinpointing_0_4+nbinpointing_4_8]=(Double_t)ptmin_8_10 + (ptmax_8_10-ptmin_8_10)/nbinpointing_8_10*(Double_t)i ; |
1c44b663 | 313 | */ |
ec5288c3 | 314 | |
1c44b663 | 315 | // z Primary Vertex |
ec5288c3 | 316 | for(Int_t i=0; i<=nbinzvtx; i++) { |
317 | binLimzvtx[i]=(Double_t)zvtxmin + (zvtxmax-zvtxmin) /nbinzvtx*(Double_t)i ; | |
1c44b663 | 318 | } |
ec5288c3 | 319 | |
320 | // centrality | |
321 | for(Int_t i=0; i<=nbincent_0_10; i++) binLimcent[i]=(Double_t)centmin_0_10 + (centmax_0_10-centmin_0_10)/nbincent_0_10*(Double_t)i ; | |
ad02b758 | 322 | if (binLimcent[nbincent_0_10] != centmin_10_60) { |
ec5288c3 | 323 | Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for cent - 1st range - differs from expected!\n"); |
1c44b663 | 324 | } |
ad02b758 | 325 | for(Int_t i=0; i<=nbincent_10_60; i++) binLimcent[i+nbincent_0_10]=(Double_t)centmin_10_60 + (centmax_10_60-centmin_10_60)/nbincent_10_60*(Double_t)i ; |
326 | if (binLimcent[nbincent_0_10+nbincent_10_60] != centmin_60_100) { | |
327 | Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for cent - 2st range - differs from expected!\n"); | |
328 | } | |
329 | for(Int_t i=0; i<=nbincent_60_100; i++) binLimcent[i+nbincent_10_60]=(Double_t)centmin_60_100 + (centmax_60_100-centmin_60_100)/nbincent_60_100*(Double_t)i ; | |
1c44b663 | 330 | |
ec5288c3 | 331 | // fake |
332 | for(Int_t i=0; i<=nbinfake; i++) { | |
333 | binLimfake[i]=(Double_t)fakemin + (fakemax-fakemin)/nbinfake * (Double_t)i; | |
1c44b663 | 334 | } |
335 | ||
ec5288c3 | 336 | //dist12 |
337 | for(Int_t i=0; i<=nbindist12; i++) { | |
338 | binLimdist12[i]=(Double_t)distTwoPartmin + (distTwoPartmax-distTwoPartmin)/nbindist12 * (Double_t)i; | |
339 | } | |
340 | ||
341 | //dist23 | |
342 | for(Int_t i=0; i<=nbindist23; i++) { | |
343 | binLimdist23[i]=(Double_t)distTwoPartmin + (distTwoPartmax-distTwoPartmin)/nbindist23 * (Double_t)i; | |
344 | } | |
345 | ||
346 | //dispersion Vtx | |
347 | for(Int_t i=0; i<=nbinsigmaVtx; i++) { | |
348 | binLimsigmaVtx[i]=(Double_t)dispVtxmin + (dispVtxmax-dispVtxmin)/nbinsigmaVtx * (Double_t)i; | |
1c44b663 | 349 | } |
350 | ||
ec5288c3 | 351 | //sumd0^2 |
352 | for(Int_t i=0; i<=nbinsumd02; i++) { | |
353 | binLimsumd02[i]=(Double_t)sumd02min + (sumd02max-sumd02min)/nbinsumd02 * (Double_t)i; | |
1c44b663 | 354 | } |
355 | ||
ec5288c3 | 356 | // cosPointingAngleXY |
357 | for(Int_t i=0; i<=nbinpointingXY; i++) binLimpointingXY[i]=(Double_t)cosminXY + (cosmaxXY-cosminXY) /nbinpointingXY*(Double_t)i ; | |
358 | ||
359 | // normDecayLXY | |
360 | for(Int_t i=0; i<=nbinnormDecayLXY; i++) binLimnormDecayLXY[i]=(Double_t)normDecLXYmin + (normDecLXYmax-normDecLXYmin) /nbinnormDecayLXY*(Double_t)i ; | |
1c44b663 | 361 | |
ec5288c3 | 362 | // multiplicity |
363 | for(Int_t i=0; i<=nbinmult_0_20; i++) binLimmult[i]=(Double_t)multmin_0_20 + (multmax_0_20-multmin_0_20)/nbinmult_0_20*(Double_t)i ; | |
364 | if (binLimmult[nbinmult_0_20] != multmin_20_50) { | |
365 | Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for mult - 1st range - differs from expected!\n"); | |
366 | } | |
367 | for(Int_t i=0; i<=nbinmult_20_50; i++) binLimmult[i+nbinmult_0_20]=(Double_t)multmin_20_50 + (multmax_20_50-multmin_20_50)/nbinmult_20_50*(Double_t)i ; | |
368 | if (binLimmult[nbinmult_0_20+nbinmult_20_50] != multmin_50_102) { | |
369 | Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for mult - 2nd range - differs from expected!\n"); | |
370 | } | |
371 | for(Int_t i=0; i<=nbinmult_50_102; i++) binLimmult[i+nbinmult_0_20+nbinmult_20_50]=(Double_t)multmin_50_102 + (multmax_50_102-multmin_50_102)/nbinmult_50_102*(Double_t)i ; | |
372 | ||
1c44b663 | 373 | //one "container" for MC |
374 | TString nameContainer=""; | |
375 | if(!isKeepDfromB) { | |
ec5288c3 | 376 | nameContainer="CFHFccontainer0_3Prong_CommonFramework"; |
1c44b663 | 377 | } |
378 | else if(isKeepDfromBOnly){ | |
ec5288c3 | 379 | nameContainer="CFHFccontainer0DfromB_3Prong_CommonFramework"; |
1c44b663 | 380 | } |
381 | else { | |
ec5288c3 | 382 | nameContainer="CFHFccontainer0allD_3Prong_CommonFramework"; |
383 | } | |
bcbeecf2 | 384 | nameContainer+=coutName.Data(); |
1c44b663 | 385 | |
ec5288c3 | 386 | AliCFContainer* container; |
387 | if (configuration == AliCFTaskVertexingHF::kSnail){ | |
388 | container = new AliCFContainer(nameContainer,"container for tracks",nstep,nvarTot,iBin); | |
389 | //setting the bin limits | |
390 | printf("pt\n"); | |
391 | container -> SetBinLimits(ipT,binLimpT); | |
392 | printf("y\n"); | |
393 | container -> SetBinLimits(iy,binLimy); | |
394 | printf("Phi\n"); | |
395 | container -> SetBinLimits(iphi,binLimphi); | |
396 | printf("cT\n"); | |
397 | container -> SetBinLimits(icT,binLimcT); | |
398 | printf("pointing angle\n"); | |
399 | container -> SetBinLimits(ipointing,binLimpointing); | |
400 | printf("ptpi\n"); | |
401 | container -> SetBinLimits(ipTpi,binLimpTpi); | |
402 | printf("ptK\n"); | |
403 | container -> SetBinLimits(ipTk,binLimpTk); | |
404 | printf("ptpi2\n"); | |
405 | container -> SetBinLimits(ipTpi2,binLimpTpi2); | |
406 | printf("zvtx \n"); | |
407 | container -> SetBinLimits(izvtx,binLimzvtx); | |
408 | printf("cent\n"); | |
409 | container -> SetBinLimits(icent,binLimcent); | |
410 | printf("fake\n"); | |
411 | container -> SetBinLimits(ifake,binLimfake); | |
412 | printf("dist12\n"); | |
413 | container -> SetBinLimits(idist12,binLimdist12); | |
414 | printf("dist23\n"); | |
415 | container -> SetBinLimits(idist23,binLimdist23); | |
416 | printf("dispVtx\n"); | |
417 | container -> SetBinLimits(isigmaVtx,binLimsigmaVtx); | |
418 | printf("sumd0^2\n"); | |
419 | container -> SetBinLimits(isumd02,binLimsumd02); | |
420 | printf("pointingXY\n"); | |
421 | container -> SetBinLimits(ipointingXY,binLimpointingXY); | |
422 | printf("normDecayLXY\n"); | |
423 | container -> SetBinLimits(inormDecayLXY,binLimnormDecayLXY); | |
424 | printf("multiplicity\n"); | |
425 | container -> SetBinLimits(imult,binLimmult); | |
426 | ||
427 | container -> SetVarTitle(ipT,"pt"); | |
428 | container -> SetVarTitle(iy,"y"); | |
429 | container -> SetVarTitle(iphi, "phi"); | |
430 | container -> SetVarTitle(icT, "ct"); | |
431 | container -> SetVarTitle(ipointing, "pionting"); | |
432 | container -> SetVarTitle(ipTpi, "ptpi"); | |
433 | container -> SetVarTitle(ipTk, "ptK"); | |
434 | container -> SetVarTitle(ipTpi2, "ptpi2"); | |
435 | container -> SetVarTitle(izvtx, "zvtx"); | |
436 | container -> SetVarTitle(icent, "centrality"); | |
437 | container -> SetVarTitle(ifake, "fake"); | |
438 | container -> SetVarTitle(idist12, "dist12toVtx"); | |
439 | container -> SetVarTitle(idist23, "dist23toVtx"); | |
440 | container -> SetVarTitle(isigmaVtx, "dispertionToSecVtx"); | |
441 | container -> SetVarTitle(isumd02, "sumd0^2"); | |
442 | container -> SetVarTitle(ipointingXY, "piointingXY"); | |
443 | container -> SetVarTitle(inormDecayLXY, "normDecayLXY"); | |
444 | container -> SetVarTitle(imult, "multiplicity"); | |
445 | } | |
446 | else if (configuration == AliCFTaskVertexingHF::kCheetah){ | |
447 | //arrays for the number of bins in each dimension | |
448 | const Int_t nvar = 8; | |
449 | ||
450 | const UInt_t ipTFast = 0; | |
451 | const UInt_t iyFast = 1; | |
452 | const UInt_t icTFast = 2; | |
453 | const UInt_t iphiFast = 3; | |
454 | const UInt_t izvtxFast = 4; | |
455 | const UInt_t icentFast = 5; | |
456 | const UInt_t ifakeFast = 6; | |
457 | const UInt_t imultFast = 7; | |
458 | ||
459 | Int_t iBinFast[nvar]; | |
460 | iBinFast[ipTFast] = iBin[ipT]; | |
461 | iBinFast[iyFast] = iBin[iy]; | |
462 | iBinFast[icTFast] = iBin[icT]; | |
463 | iBinFast[iphiFast] = iBin[iphi]; | |
464 | iBinFast[izvtxFast] = iBin[izvtx]; | |
465 | iBinFast[icentFast] = iBin[icent]; | |
466 | iBinFast[ifakeFast] = iBin[ifake]; | |
467 | iBinFast[imultFast] = iBin[imult]; | |
468 | ||
469 | container = new AliCFContainer(nameContainer,"container for tracks",nstep,nvar,iBinFast); | |
470 | printf("pt\n"); | |
471 | container -> SetBinLimits(ipTFast,binLimpT); | |
472 | printf("y\n"); | |
473 | container -> SetBinLimits(iyFast,binLimy); | |
474 | printf("ct\n"); | |
475 | container -> SetBinLimits(icTFast,binLimcT); | |
476 | printf("phi\n"); | |
477 | container -> SetBinLimits(iphiFast,binLimphi); | |
478 | printf("zvtx\n"); | |
479 | container -> SetBinLimits(izvtxFast,binLimzvtx); | |
480 | printf("centrality\n"); | |
481 | container -> SetBinLimits(icentFast,binLimcent); | |
482 | printf("fake\n"); | |
483 | container -> SetBinLimits(ifakeFast,binLimfake); | |
484 | printf("multiplicity\n"); | |
485 | container -> SetBinLimits(imultFast,binLimmult); | |
486 | ||
487 | container -> SetVarTitle(ipTFast,"pt"); | |
488 | container -> SetVarTitle(iyFast,"y"); | |
489 | container -> SetVarTitle(icTFast, "ct"); | |
490 | container -> SetVarTitle(iphiFast, "phi"); | |
491 | container -> SetVarTitle(izvtxFast, "zvtx"); | |
492 | container -> SetVarTitle(icentFast, "centrality"); | |
493 | container -> SetVarTitle(ifakeFast, "fake"); | |
494 | container -> SetVarTitle(imultFast, "multiplicity"); | |
495 | } | |
496 | ||
c606965d | 497 | //return container; |
ec5288c3 | 498 | |
1c44b663 | 499 | container -> SetStepTitle(0, "MCLimAcc"); |
500 | container -> SetStepTitle(1, "MC"); | |
501 | container -> SetStepTitle(2, "MCAcc"); | |
502 | container -> SetStepTitle(3, "RecoVertex"); | |
503 | container -> SetStepTitle(4, "RecoRefit"); | |
504 | container -> SetStepTitle(5, "Reco"); | |
505 | container -> SetStepTitle(6, "RecoAcc"); | |
506 | container -> SetStepTitle(7, "RecoITSCluster"); | |
507 | container -> SetStepTitle(8, "RecoCuts"); | |
508 | container -> SetStepTitle(9, "RecoPID"); | |
509 | ||
1c44b663 | 510 | |
511 | //CREATE THE CUTS ----------------------------------------------- | |
512 | ||
513 | // Gen-Level kinematic cuts | |
514 | AliCFTrackKineCuts *mcKineCuts = new AliCFTrackKineCuts("mcKineCuts","MC-level kinematic cuts"); | |
515 | ||
516 | //Particle-Level cuts: | |
517 | AliCFParticleGenCuts* mcGenCuts = new AliCFParticleGenCuts("mcGenCuts","MC particle generation cuts"); | |
518 | Bool_t useAbsolute = kTRUE; | |
519 | if (isSign != 2){ | |
520 | useAbsolute = kFALSE; | |
521 | } | |
522 | mcGenCuts->SetRequirePdgCode(pdgCode, useAbsolute); // kTRUE set in order to include antiparticle | |
523 | mcGenCuts->SetAODMC(1); //special flag for reading MC in AOD tree (important) | |
524 | ||
525 | // Acceptance cuts: | |
526 | AliCFAcceptanceCuts* accCuts = new AliCFAcceptanceCuts("accCuts", "Acceptance cuts"); | |
527 | AliCFTrackKineCuts *kineAccCuts = new AliCFTrackKineCuts("kineAccCuts","Kine-Acceptance cuts"); | |
528 | kineAccCuts->SetPtRange(ptmin,ptmax); | |
529 | kineAccCuts->SetEtaRange(etamin,etamax); | |
530 | ||
531 | // Rec-Level kinematic cuts | |
532 | AliCFTrackKineCuts *recKineCuts = new AliCFTrackKineCuts("recKineCuts","rec-level kine cuts"); | |
533 | ||
534 | AliCFTrackQualityCuts *recQualityCuts = new AliCFTrackQualityCuts("recQualityCuts","rec-level quality cuts"); | |
535 | ||
536 | AliCFTrackIsPrimaryCuts *recIsPrimaryCuts = new AliCFTrackIsPrimaryCuts("recIsPrimaryCuts","rec-level isPrimary cuts"); | |
537 | ||
538 | printf("CREATE MC KINE CUTS\n"); | |
539 | TObjArray* mcList = new TObjArray(0) ; | |
540 | mcList->AddLast(mcKineCuts); | |
541 | mcList->AddLast(mcGenCuts); | |
542 | ||
543 | printf("CREATE ACCEPTANCE CUTS\n"); | |
544 | TObjArray* accList = new TObjArray(0) ; | |
545 | accList->AddLast(kineAccCuts); | |
546 | ||
547 | printf("CREATE RECONSTRUCTION CUTS\n"); | |
548 | TObjArray* recList = new TObjArray(0) ; // not used!! | |
549 | recList->AddLast(recKineCuts); | |
550 | recList->AddLast(recQualityCuts); | |
551 | recList->AddLast(recIsPrimaryCuts); | |
552 | ||
553 | TObjArray* emptyList = new TObjArray(0); | |
554 | ||
555 | //CREATE THE INTERFACE TO CORRECTION FRAMEWORK USED IN THE TASK | |
556 | printf("CREATE INTERFACE AND CUTS\n"); | |
557 | AliCFManager* man = new AliCFManager() ; | |
558 | man->SetParticleContainer(container); | |
559 | man->SetParticleCutsList(0 , mcList); // MC, Limited Acceptance | |
560 | man->SetParticleCutsList(1 , mcList); // MC | |
561 | man->SetParticleCutsList(2 , accList); // Acceptance | |
562 | man->SetParticleCutsList(3 , emptyList); // Vertex | |
563 | man->SetParticleCutsList(4 , emptyList); // Refit | |
564 | man->SetParticleCutsList(5 , emptyList); // AOD | |
565 | man->SetParticleCutsList(6 , emptyList); // AOD in Acceptance | |
566 | man->SetParticleCutsList(7 , emptyList); // AOD with required n. of ITS clusters | |
567 | man->SetParticleCutsList(8 , emptyList); // AOD Reco (PPR cuts implemented in Task) | |
568 | man->SetParticleCutsList(9 , emptyList); // AOD Reco PID | |
569 | ||
570 | // Get the pointer to the existing analysis manager via the static access method. | |
571 | //============================================================================== | |
572 | AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager(); | |
573 | if (!mgr) { | |
574 | ::Error("AddTaskCompareHF", "No analysis manager to connect to."); | |
575 | return NULL; | |
576 | } | |
577 | //CREATE THE TASK | |
578 | printf("CREATE TASK\n"); | |
579 | ||
580 | // create the task | |
581 | AliCFTaskVertexingHF *task = new AliCFTaskVertexingHF("AliCFTaskVertexingHF",cutsLctopKpi); | |
582 | task->SetFillFromGenerated(kFALSE); | |
583 | task->SetDecayChannel(32); | |
584 | task->SetUseWeight(kFALSE); | |
585 | task->SetCFManager(man); //here is set the CF manager | |
586 | task->SetSign(isSign); | |
ec5288c3 | 587 | task->SetCentralitySelection(kFALSE); |
588 | task->SetFakeSelection(0); | |
1c44b663 | 589 | task->SetRejectCandidateIfNotFromQuark(kTRUE); // put to false if you want to keep HIJING D0!! |
590 | task->SetUseMCVertex(kFALSE); // put to true if you want to do studies on pp | |
c606965d | 591 | task->SetResonantDecay(decayLc); |
1c44b663 | 592 | if (isKeepDfromB && !isKeepDfromBOnly) task->SetDselection(2); |
593 | if (isKeepDfromB && isKeepDfromBOnly) task->SetDselection(1); | |
594 | ||
5b37c6e5 | 595 | TF1* funcWeight = 0x0; |
596 | if (task->GetUseWeight()) { | |
597 | funcWeight = (TF1*)cutFile->Get("funcWeight"); | |
598 | if (funcWeight == 0x0){ | |
599 | Printf("FONLL Weights will be used"); | |
600 | } | |
601 | else { | |
602 | task->SetWeightFunction(funcWeight); | |
603 | Printf("User-defined Weights will be used. The function being:"); | |
604 | task->GetWeightFunction()->Print(); | |
605 | } | |
606 | } | |
607 | ||
1c44b663 | 608 | Printf("***************** CONTAINER SETTINGS *****************"); |
609 | Printf("decay channel = %d",(Int_t)task->GetDecayChannel()); | |
610 | Printf("FillFromGenerated = %d",(Int_t)task->GetFillFromGenerated()); | |
611 | Printf("Dselection = %d",(Int_t)task->GetDselection()); | |
612 | Printf("UseWeight = %d",(Int_t)task->GetUseWeight()); | |
5b37c6e5 | 613 | if (task->GetUseWeight()) { |
614 | funcWeight = (TF1*)cutFile->Get("funcWeight"); | |
615 | if (funcWeight == 0x0){ | |
616 | Printf("FONLL Weights will be used"); | |
617 | } | |
618 | else { | |
619 | task->SetWeightFunction(funcWeight); | |
620 | Printf("User-defined Weights will be used. The function being:"); | |
621 | task->GetWeightFunction()->Print(); | |
622 | } | |
623 | } | |
1c44b663 | 624 | Printf("Sign = %d",(Int_t)task->GetSign()); |
625 | Printf("Centrality selection = %d",(Int_t)task->GetCentralitySelection()); | |
626 | Printf("Fake selection = %d",(Int_t)task->GetFakeSelection()); | |
627 | Printf("RejectCandidateIfNotFromQuark selection = %d",(Int_t)task->GetRejectCandidateIfNotFromQuark()); | |
628 | Printf("UseMCVertex selection = %d",(Int_t)task->GetUseMCVertex()); | |
629 | Printf("***************END CONTAINER SETTINGS *****************\n"); | |
ec5288c3 | 630 | |
1c44b663 | 631 | //-----------------------------------------------------------// |
632 | // create correlation matrix for unfolding - only eta-pt // | |
633 | //-----------------------------------------------------------// | |
634 | ||
635 | Bool_t AcceptanceUnf = kTRUE; // unfold at acceptance level, otherwise PPR | |
636 | ||
637 | Int_t thnDim[4]; | |
638 | ||
639 | //first half : reconstructed | |
640 | //second half : MC | |
641 | ||
ec5288c3 | 642 | thnDim[0] = iBin[ipT]; |
643 | thnDim[2] = iBin[ipT]; | |
644 | thnDim[1] = iBin[iy]; | |
645 | thnDim[3] = iBin[iy]; | |
1c44b663 | 646 | |
647 | TString nameCorr=""; | |
648 | if(!isKeepDfromB) { | |
649 | nameCorr="CFHFcorr0_3Prong_CommonFramework"; | |
650 | } | |
651 | else if(isKeepDfromBOnly){ | |
652 | nameCorr= "CFHFcorr0KeepDfromBOnly_3Prong_CommonFramework"; | |
653 | } | |
654 | else { | |
655 | nameCorr="CFHFcorr0allD_3Prong_CommonFramework"; | |
656 | } | |
bcbeecf2 | 657 | nameCorr+=coutName.Data(); |
1c44b663 | 658 | THnSparseD* correlation = new THnSparseD(nameCorr,"THnSparse with correlations",4,thnDim); |
659 | Double_t** binEdges = new Double_t[2]; | |
660 | ||
661 | // set bin limits | |
662 | ||
ec5288c3 | 663 | binEdges[0]= binLimpT; |
664 | binEdges[1]= binLimy; | |
1c44b663 | 665 | |
666 | correlation->SetBinEdges(0,binEdges[0]); | |
667 | correlation->SetBinEdges(2,binEdges[0]); | |
668 | ||
669 | correlation->SetBinEdges(1,binEdges[1]); | |
670 | correlation->SetBinEdges(3,binEdges[1]); | |
671 | ||
672 | correlation->Sumw2(); | |
673 | ||
674 | // correlation matrix ready | |
675 | //------------------------------------------------// | |
676 | ||
677 | task->SetCorrelationMatrix(correlation); // correlation matrix for unfolding | |
678 | ||
679 | // Create and connect containers for input/output | |
680 | ||
681 | // ------ input data ------ | |
682 | AliAnalysisDataContainer *cinput0 = mgr->GetCommonInputContainer(); | |
683 | ||
684 | // ----- output data ----- | |
685 | ||
686 | TString outputfile = AliAnalysisManager::GetCommonFileName(); | |
f26726ed | 687 | TString output1name="", output2name="", output3name="", output4name="", output5name=""; |
1c44b663 | 688 | output2name=nameContainer; |
689 | output3name=nameCorr; | |
f26726ed | 690 | output5name= "coutProfLc"; |
1c44b663 | 691 | if(!isKeepDfromB) { |
692 | outputfile += ":PWG3_D2H_CFtaskLctopKpi_CommonFramework"; | |
fc1c9a9a | 693 | outputfile+=coutName.Data(); |
1c44b663 | 694 | output1name="CFHFchist0_3Prong_CommonFramework"; |
fc1c9a9a | 695 | output1name+=coutName.Data(); |
f26726ed | 696 | output5name+="_cOnly"; |
1c44b663 | 697 | } |
698 | else if(isKeepDfromBOnly){ | |
699 | outputfile += ":PWG3_D2H_CFtaskLctopKpiKeepDfromBOnly_CommonFramework"; | |
fc1c9a9a | 700 | outputfile+=coutName.Data(); |
1c44b663 | 701 | output1name="CFHFchist0DfromB_3Prong_CommonFramework"; |
fc1c9a9a | 702 | output1name+=coutName.Data(); |
f26726ed | 703 | output5name+="_bOnly"; |
1c44b663 | 704 | } |
705 | else{ | |
706 | outputfile += ":PWG3_D2H_CFtaskLctopKpiKeepDfromB_CommonFramework"; | |
fc1c9a9a | 707 | outputfile+=coutName.Data(); |
1c44b663 | 708 | output1name="CFHFchist0allD_3Prong_CommonFramework"; |
fc1c9a9a | 709 | output1name+=coutName.Data(); |
f26726ed | 710 | output5name+="_All"; |
1c44b663 | 711 | } |
712 | ||
713 | output4name= "Cuts_3Prong_CommonFramework"; | |
bcbeecf2 | 714 | output4name+=coutName.Data(); |
f26726ed | 715 | output5name+=coutName.Data(); |
1c44b663 | 716 | |
717 | //now comes user's output objects : | |
718 | // output TH1I for event counting | |
719 | AliAnalysisDataContainer *coutput1 = mgr->CreateContainer(output1name, TH1I::Class(),AliAnalysisManager::kOutputContainer,outputfile.Data()); | |
720 | // output Correction Framework Container (for acceptance & efficiency calculations) | |
721 | AliAnalysisDataContainer *coutput2 = mgr->CreateContainer(output2name, AliCFContainer::Class(),AliAnalysisManager::kOutputContainer,outputfile.Data()); | |
722 | // Unfolding - correlation matrix | |
723 | AliAnalysisDataContainer *coutput3 = mgr->CreateContainer(output3name, THnSparseD::Class(),AliAnalysisManager::kOutputContainer,outputfile.Data()); | |
724 | AliAnalysisDataContainer *coutput4 = mgr->CreateContainer(output4name, AliRDHFCuts::Class(),AliAnalysisManager::kOutputContainer, outputfile.Data()); | |
f26726ed | 725 | // estimators list |
726 | AliAnalysisDataContainer *coutput5 = mgr->CreateContainer(output5name, TList::Class(),AliAnalysisManager::kOutputContainer, outputfile.Data()); | |
1c44b663 | 727 | |
728 | mgr->AddTask(task); | |
729 | ||
730 | mgr->ConnectInput(task,0,mgr->GetCommonInputContainer()); | |
731 | mgr->ConnectOutput(task,1,coutput1); | |
732 | mgr->ConnectOutput(task,2,coutput2); | |
733 | mgr->ConnectOutput(task,3,coutput3); | |
734 | mgr->ConnectOutput(task,4,coutput4); | |
f26726ed | 735 | mgr->ConnectOutput(task,5,coutput5); |
1c44b663 | 736 | |
737 | return task; | |
ec5288c3 | 738 | } |
1c44b663 | 739 |