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