AliPhysics  aaf9c62 (aaf9c62)
AddTaskCFVertexingHF3Prong.C
Go to the documentation of this file.
1 //DEFINITION OF A FEW CONSTANTS
2 const Double_t ymin = -1.2 ;
3 const Double_t ymax = 1.2 ;
4 const Double_t cosmin = -0.7;
5 const Double_t cosmax = 1.05;
6 const Double_t cTmin = 0; // micron
7 const Double_t cTmax = 500; // micron
8 const Double_t phimin = 0.0;
9 const Int_t mintrackrefsTPC = 2 ;
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;
18 const Double_t zvtxmin = -15;
19 const Double_t zvtxmax = 15;
21 
22 const Float_t centmin_0_10 = 0.;
23 const Float_t centmax_0_10 = 10.;
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.;
28 const Float_t centmax = 100.;
29 const Float_t fakemin = -0.5;
30 const Float_t fakemax = 2.5.;
31 const Float_t cosminXY = 0.95;
32 const Float_t cosmaxXY = 1.0;
36 const Float_t multmax_0_20 = 20;
42 const Float_t multmax_80_100 = 100;
45 
46 
47 
48 //----------------------------------------------------
49 
50 AliCFTaskVertexingHF *AddTaskCFVertexingHF3Prong(TString suffixName="", const char* cutFile = "./DplustoKpipiCuts.root", Int_t configuration = AliCFTaskVertexingHF::kCheetah, Bool_t isKeepDfromB=kFALSE, Bool_t isKeepDfromBOnly=kFALSE, Int_t pdgCode = 411, Char_t isSign = 2, Bool_t useWeight=kFALSE, TString multFile="", Bool_t useNchWeight=kFALSE, Bool_t useNtrkWeight=kFALSE, TString estimatorFilename="", Int_t multiplicityEstimator = AliCFTaskVertexingHF::kNtrk10, Bool_t isPPbData = kFALSE, Double_t refMult=9.26, Bool_t isFineNtrkBin=kFALSE, TString multweighthistoname = "hNtrUnCorrEvWithCandWeight")
51 //AliCFContainer *AddTaskCFVertexingHF3Prong(const char* cutFile = "./DplustoKpipiCuts.root", Int_t configuration = AliCFTaskVertexingHF::kSnail, Bool_t isKeepDfromB=kFALSE, Bool_t isKeepDfromBOnly=kFALSE, Int_t pdgCode = 411, Char_t isSign = 2)
52 {
53  printf("Addig CF task using cuts from file %s\n",cutFile);
54  if (configuration == AliCFTaskVertexingHF::kSnail){
55  printf("The configuration is set to be SLOW --> all the variables will be used to fill the CF\n");
56  }
57  else if (configuration == AliCFTaskVertexingHF::kCheetah){
58  printf("The configuration is set to be FAST --> using only pt, y, ct, phi, zvtx, centrality, fake, multiplicity to fill the CF\n");
59  }
60  else if (configuration == AliCFTaskVertexingHF::kFalcon){
61  printf("The configuration is set to be FAST --> using only pt, y, centrality, multiplicity to fill the CF\n");
62  }
63  else if (configuration == AliCFTaskVertexingHF::kESE){
64  printf("The configuration is set to be for ESE analysis --> using pt, y, centrality, multiplicity, local multiplicity and q2 to fill the CF\n");
65  }
66  else{
67  printf("The configuration is not defined! returning\n");
68  return;
69  }
70 
71  gSystem->Sleep(2000);
72 
73  // isSign = 0 --> D+ only
74  // isSign = 1 --> D- only
75  // isSign = 2 --> both
76 
77  TString expected;
78  if (isSign == 0 && pdgCode < 0){
79  AliError(Form("Error setting PDG code (%d) and sign (0 --> particle (%d) only): they are not compatible, returning",pdgCode));
80  return 0x0;
81  }
82  else if (isSign == 1 && pdgCode > 0){
83  AliError(Form("Error setting PDG code (%d) and sign (1 --> antiparticle (%d) only): they are not compatible, returning",pdgCode));
84  return 0x0;
85  }
86  else if (isSign > 2 || isSign < 0){
87  AliError(Form("Sign not valid (%d, possible values are 0, 1, 2), returning"));
88  return 0x0;
89  }
90 
91  TFile* fileCuts = TFile::Open(cutFile);
92  if(!fileCuts || (fileCuts && !fileCuts->IsOpen())){
93  AliFatal(" Cut file not found");
94  return 0x0;
95  }
96  AliRDHFCutsDplustoKpipi *cutsDplustoKpipi = (AliRDHFCutsDplustoKpipi*)fileCuts->Get("AnalysisCuts");
97  TH1F *hMult=0x0;
98  if(multFile.EqualTo("") ) {
99  printf("Will not be corrected with weights \n");
100  }else{
101  TFile *fileMult = TFile::Open(multFile.Data());
102  if(isPPbData && multweighthistoname=="") {
103  hMult = (TH1F*)fileMult->Get("hNtrUnCorrEvWithCandWeight");
104  }
105  else if(!isPPbData && multweighthistoname==""){
106  hMult=(TH1F*)fileMult->Get("hGenPrimaryParticlesInelGt0");
107  }
108  else {
109  hMult=(TH1F*)fileMult->Get(multweighthistoname.Data());
110  }
111  }
112 
113  // check that the fKeepD0fromB flag is set to true when the fKeepD0fromBOnly flag is true
114  // for now the binning is the same than for all D's
115  if(isKeepDfromBOnly) isKeepDfromB = true;
116 
117  /*
118  Double_t ptmin_0_4;
119  Double_t ptmax_0_4;
120  Double_t ptmin_4_8;
121  Double_t ptmax_4_8;
122  Double_t ptmin_8_10;
123  Double_t ptmax_8_10;
124 
125  if(!isKeepDfromB){
126  ptmin_0_4 = 0.0 ;
127  ptmax_0_4 = 4.0 ;
128  ptmin_4_8 = 4.0 ;
129  ptmax_4_8 = 8.0 ;
130  ptmin_8_10 = 8.0 ;
131  ptmax_8_10 = 10.0 ;
132  } else{
133  ptmin_0_4 = 0.0 ;
134  ptmax_0_4 = 3.0 ;
135  ptmin_4_8 = 3.0 ;
136  ptmax_4_8 = 5.0 ;
137  ptmin_8_10 = 5.0 ;
138  ptmax_8_10 = 10.0 ;
139  }
140  */
141 
142  //CONTAINER DEFINITION
143  Info("AliCFTaskVertexingHF","SETUP CONTAINER");
144 
145  const Double_t phimax = 2*TMath::Pi();
146 
147  //Setting up the container grid...
148  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
149 // const Int_t nbinpt_0_4 = 8 ; //bins in pt from 0 to 4 GeV
150 // const Int_t nbinpt_4_8 = 4 ; //bins in pt from 4 to 8 GeV
151 // const Int_t nbinpt_8_10 = 1 ; //bins in pt from 8 to 10 GeV
152 
153 /*
154  Int_t nbinpt_0_4;
155  Int_t nbinpt_4_8;
156  Int_t nbinpt_8_10;
157  if (!isKeepDfromB){
158  nbinpt_0_4 = 8 ; //bins in pt from 0 to 4 GeV
159  nbinpt_4_8 = 4 ; //bins in pt from 4 to 8 GeV
160  nbinpt_8_10 = 1 ; //bins in pt from 8 to 10 GeV
161  }else{
162  nbinpt_0_4 = 3 ; //bins in pt from 0 to 3 GeV
163  nbinpt_4_8 = 1 ; //bins in pt from 3 to 5 GeV
164  nbinpt_8_10 = 1 ; //bins in pt from 5 to 10 GeV
165  }
166 */
167  const Int_t nbinpt = cutsDplustoKpipi->GetNPtBins(); // bins in pT
168  printf("pT: nbin (from cuts file) = %d\n",nbinpt);
169  const Int_t nbiny = 24 ; //bins in y
170  const Int_t nbinphi = 18 ; //bins in phi
171  const Int_t nbincT = 2 ; //bins in cT
172  const Int_t nbinpointing = 35 ; //bins in cosPointingAngle
173  const Int_t nbinpTpi_0_4 = 8 ; //bins in ptPi from 0 to 4 GeV
174  const Int_t nbinpTpi_4_8 = 4 ; //bins in ptPi from 4 to 8 GeV
175  const Int_t nbinpTpi_8_10 = 1 ; //bins in ptPi from 8 to 10 GeV
176  const Int_t nbinpTk_0_4 = 8 ; //bins in ptKa from 0 to 4 GeV
177  const Int_t nbinpTk_4_8 = 4 ; //bins in ptKa from 4 to 8 GeV
178  const Int_t nbinpTk_8_10 = 1 ; //bins in ptKa from 8 to 10 GeV
179  const Int_t nbinpTpi2_0_4 = 8 ; //bins in ptpi2 from 0 to 4 GeV
180  const Int_t nbinpTpi2_4_8 = 4 ; //bins in ptpi2 from 4 to 8 GeV
181  const Int_t nbinpTpi2_8_10 = 1 ; //bins in ptpi2 from 8 to 10 GeV
182  const Int_t nbinzvtx = 30 ; //bins in z vertex
183  const Int_t nbincent = 18; //bins in centrality
184  const Int_t nbincent_0_10 = 4; //bins in centrality between 0 and 10
185  const Int_t nbincent_10_60 = 10; //bins in centrality between 10 and 60
186  const Int_t nbincent_60_100 = 4; //bins in centrality between 60 and 100
187  const Int_t nbinfake = 3; //bins in fake
188  const Int_t nbinpointingXY = 50; //bins in cosPointingAngleXY
189  const Int_t nbinnormDecayLXY = 20; //bins in NormDecayLengthXY
190  const Int_t nbinmult = 49; //bins in multiplicity (total number)
191  const Int_t nbinmult_0_20 = 20; //bins in multiplicity between 0 and 20
192  const Int_t nbinmult_20_50 = 15; //bins in multiplicity between 20 and 50
193  const Int_t nbinmult_50_80 = 10; //bins in multiplicity between 50 and 80
194  const Int_t nbinmult_80_100 = 4; //bins in multiplicity between 80 and 100
195  const Int_t nbinmult_100_400 = 3; //bins in multiplicity between 100 and 400
196  if(isPPbData) nbinmult += nbinmult_100_400;
197 
198  // Fine Ntrk bining setting
199  Double_t *binLimmultFine;
200  Int_t nbinmultTmp=nbinmult;
201  if(isFineNtrkBin){
202  Int_t nbinLimmultFine=100;
203  if(isPPbData) nbinLimmultFine = 200;
204  const UInt_t nbinMultFine = nbinLimmultFine;
205  binLimmultFine = new Double_t[nbinMultFine+1];
206  for (Int_t ibin0 = 0 ; ibin0<nbinMultFine+1; ibin0++){
207  binLimmultFine[ibin0] = ibin0;
208  }
209  nbinmultTmp=nbinLimmultFine;
210  }
211  const Int_t nbinmultTot=nbinmultTmp;
212 
213 
214  //the sensitive variables, their indices
215  const UInt_t ipT = 0;
216  const UInt_t iy = 1;
217  const UInt_t iphi = 2;
218  const UInt_t icT = 3;
219  const UInt_t ipointing = 4;
220  const UInt_t ipTpi = 5;
221  const UInt_t ipTk = 6;
222  const UInt_t ipTpi2 = 7;
223  const UInt_t izvtx = 8;
224  const UInt_t icent = 9;
225  const UInt_t ifake = 10;
226  const UInt_t ipointingXY = 11;
227  const UInt_t inormDecayLXY = 12;
228  const UInt_t imult = 13;
229 
230  const Int_t nvarTot = 14 ; //number of variables on the grid:pt, y, cosThetaStar, pTpi, pTk, cT, dca, d0pi, d0K, d0xd0, cosPointingAngle, phi, zvtx, centrality, fake, cosPointingAngleXY, normDecayLengthXY, multiplicity
231 
232  //arrays for the number of bins in each dimension
233  Int_t iBin[nvarTot];
234  //iBin[ipT]=nbinpt_0_4+nbinpt_4_8+nbinpt_8_10;
235  iBin[ipT]=nbinpt;
236  iBin[iy]=nbiny;
237  iBin[iphi]=nbinphi;
238  // iBin[icT]=nbincT_0_4+nbincT_4_8+nbincT_8_10;
239  //iBin[4]=nbinpointing_0_4+nbinpointing_4_8+nbinpointing_8_10;
240  iBin[icT]=nbincT;
241  iBin[ipointing]=nbinpointing;
242  iBin[ipTpi]=nbinpt;
243  iBin[ipTk]=nbinpt;
244  iBin[ipTpi2]=nbinpt;
245  iBin[izvtx]=nbinzvtx;
246  iBin[icent]=nbincent;
247  iBin[ifake]=nbinfake;
248  iBin[ipointingXY]=nbinpointingXY;
249  iBin[inormDecayLXY]=nbinnormDecayLXY;
250  iBin[imult]=nbinmultTot;
251 
252  //arrays for lower bounds :
253  Double_t *binLimpT=new Double_t[iBin[ipT]+1];
254  Double_t *binLimy=new Double_t[iBin[iy]+1];
255  Double_t *binLimphi=new Double_t[iBin[iphi]+1];
256  Double_t *binLimcT=new Double_t[iBin[icT]+1];
257  Double_t *binLimpointing=new Double_t[iBin[ipointing]+1];
258  Double_t *binLimpTpi=new Double_t[iBin[ipTpi]+1];
259  Double_t *binLimpTk=new Double_t[iBin[ipTk]+1];
260  Double_t *binLimpTpi2=new Double_t[iBin[ipTpi2]+1];
261  Double_t *binLimzvtx=new Double_t[iBin[izvtx]+1];
262  Double_t *binLimcent=new Double_t[iBin[icent]+1];
263  Double_t *binLimfake=new Double_t[iBin[ifake]+1];
264  Double_t *binLimpointingXY=new Double_t[iBin[ipointingXY]+1];
265  Double_t *binLimnormDecayLXY=new Double_t[iBin[inormDecayLXY]+1];
266  Double_t *binLimmult=new Double_t[iBin[imult]+1];
267 
268  // checking limits
269  /*
270  if (ptmax_0_4 != ptmin_4_8) {
271  Error("AliCFHeavyFlavourTaskMultiVarMultiStep","max lim 1st range != min lim 2nd range, please check!");
272  }
273  if (ptmax_4_8 != ptmin_8_10) {
274  Error("AliCFHeavyFlavourTaskMultiVarMultiStep","max lim 2nd range != min lim 3rd range, please check!");
275  }
276  */
277  // values for bin lower bounds
278  // pt
279  Float_t* floatbinLimpT = cutsDplustoKpipi->GetPtBinLimits();
280  for (Int_t ibinpT = 0 ; ibinpT<iBin[ipT]+1; ibinpT++){
281  binLimpT[ibinpT] = (Double_t)floatbinLimpT[ibinpT];
282  binLimpTpi[ibinpT] = (Double_t)floatbinLimpT[ibinpT];
283  binLimpTk[ibinpT] = (Double_t)floatbinLimpT[ibinpT];
284  binLimpTpi2[ibinpT] = (Double_t)floatbinLimpT[ibinpT];
285  }
286  for(Int_t i=0; i<=nbinpt; i++) printf("binLimpT[%d]=%f\n",i,binLimpT[i]);
287 
288  /*
289  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 ;
290  if (binLimpT[nbinpt_0_4] != ptmin_4_8) {
291  Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for pt - 1st range - differs from expected!\n");
292  }
293  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 ;
294  if (binLimpT[nbinpt_0_4+nbinpt_4_8] != ptmin_8_10) {
295  Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for pt - 2nd range - differs from expected!\n");
296  }
297  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 ;
298  */
299 
300  // y
301  for(Int_t i=0; i<=nbiny; i++) binLimy[i]=(Double_t)ymin + (ymax-ymin) /nbiny*(Double_t)i ;
302 
303  // Phi
304  for(Int_t i=0; i<=nbinphi; i++) binLimphi[i]=(Double_t)phimin + (phimax-phimin) /nbinphi*(Double_t)i ;
305 
306  // cT
307  for(Int_t i=0; i<=nbincT; i++) binLimcT[i]=(Double_t)cTmin + (cTmax-cTmin) /nbincT*(Double_t)i ;
308 
309  // cosPointingAngle
310  for(Int_t i=0; i<=nbinpointing; i++) binLimpointing[i]=(Double_t)cosmin + (cosmax-cosmin) /nbinpointing*(Double_t)i ;
311 
312  /*
313  // ptPi
314  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 ;
315  if (binLimcT[nbincT_0_4] != ptmin_4_8) {
316  Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for ptPi - 1st range - differs from expected!");
317  }
318  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 ;
319  if (binLimcT[nbincT_0_4+nbincT_4_8] != ptmin_8_10) {
320  Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for ptPi - 2nd range - differs from expected!\n");
321  }
322  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 ;
323 
324  // ptKa
325  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 ;
326  if (binLimpointing[nbinpointing_0_4] != ptmin_4_8) {
327  Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for ptKa - 1st range - differs from expected!");
328  }
329  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 ;
330  if (binLimpointing[nbinpointing_0_4+nbinpointing_4_8] != ptmin_8_10) {
331  Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for ptKa - 2nd range - differs from expected!\n");
332  }
333  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 ;
334  */
335 
336  // z Primary Vertex
337  for(Int_t i=0; i<=nbinzvtx; i++) {
338  binLimzvtx[i]=(Double_t)zvtxmin + (zvtxmax-zvtxmin) /nbinzvtx*(Double_t)i ;
339  }
340 
341  // centrality
342 
343  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 ;
344  if (binLimcent[nbincent_0_10] != centmin_10_60) {
345  Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for cent - 1st range - differs from expected!\n");
346  }
347  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 ;
348  if (binLimcent[nbincent_0_10+nbincent_10_60] != centmin_60_100) {
349  Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for cent - 2st range - differs from expected!\n");
350  }
351  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 ;
352 
353  // fake
354  for(Int_t i=0; i<=nbinfake; i++) {
355  binLimfake[i]=(Double_t)fakemin + (fakemax-fakemin)/nbinfake * (Double_t)i;
356  }
357 
358  // cosPointingAngleXY
359  for(Int_t i=0; i<=nbinpointingXY; i++) binLimpointingXY[i]=(Double_t)cosminXY + (cosmaxXY-cosminXY) /nbinpointingXY*(Double_t)i ;
360 
361  // normDecayLXY
362  for(Int_t i=0; i<=nbinnormDecayLXY; i++) binLimnormDecayLXY[i]=(Double_t)normDecLXYmin + (normDecLXYmax-normDecLXYmin) /nbinnormDecayLXY*(Double_t)i ;
363 
364  // multiplicity
365  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 ;
366  if (binLimmult[nbinmult_0_20] != multmin_20_50) {
367  Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for mult - 1st range - differs from expected!\n");
368  }
369  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 ;
370  if (binLimmult[nbinmult_0_20+nbinmult_20_50] != multmin_50_80) {
371  Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for mult - 2nd range - differs from expected!\n");
372  }
373  for(Int_t i=0; i<=nbinmult_50_80; i++) binLimmult[i+nbinmult_0_20+nbinmult_20_50]=(Double_t)multmin_50_80 + (multmax_50_80-multmin_50_80)/nbinmult_50_80*(Double_t)i ;
374  if (binLimmult[nbinmult_0_20+nbinmult_20_50+nbinmult_50_80] != multmin_80_100) {
375  Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for mult - 3rd range - differs from expected!\n");
376  }
377  for(Int_t i=0; i<=nbinmult_80_100; i++) binLimmult[i+nbinmult_0_20+nbinmult_20_50+nbinmult_50_80]=(Double_t)multmin_80_100 + (multmax_80_100-multmin_80_100)/nbinmult_80_100*(Double_t)i ;
378  if (binLimmult[nbinmult_0_20+nbinmult_20_50+nbinmult_50_80+nbinmult_80_100] != multmin_100_400) {
379  Error("AliCFHeavyFlavourTaskMultiVarMultiStep","Calculated bin lim for mult - 4th range - differs from expected!\n");
380  }
381  if(isPPbData){
382  for (Int_t i = 0; i<=nbinmult_100_400; i++) binLimmult[i+nbinmult_0_20+nbinmult_20_50+nbinmult_50_80+nbinmult_80_100]= (Double_t)multmin_100_400 + (multmax_100_400-multmin_100_400)/nbinmult_100_400*(Double_t)i ;
383  }
384 
385  //one "container" for MC
386  TString nameContainer="";
387  if(!isKeepDfromB) {
388  nameContainer="CFHFcontainer_DplustoKpipi_Prompt";
389 
390  }
391  else if(isKeepDfromBOnly){
392  nameContainer="CFHFcontainer_DplustoKpipi_FromB";
393 
394  }
395  else {
396  nameContainer="CFHFcontainer_DplustoKpipi_All";
397  }
398  nameContainer += suffixName.Data();
399 
400 
401  AliCFContainer* container;
402  if (configuration == AliCFTaskVertexingHF::kSnail){
403  container = new AliCFContainer(nameContainer,"container for tracks",nstep,nvarTot,iBin);
404  //setting the bin limits
405  printf("pt\n");
406  container -> SetBinLimits(ipT,binLimpT);
407  printf("y\n");
408  container -> SetBinLimits(iy,binLimy);
409  printf("Phi\n");
410  container -> SetBinLimits(iphi,binLimphi);
411  printf("cT\n");
412  container -> SetBinLimits(icT,binLimcT);
413  printf("pointing angle\n");
414  container -> SetBinLimits(ipointing,binLimpointing);
415  printf("ptpi\n");
416  container -> SetBinLimits(ipTpi,binLimpTpi);
417  printf("ptK\n");
418  container -> SetBinLimits(ipTk,binLimpTk);
419  printf("ptpi2\n");
420  container -> SetBinLimits(ipTpi2,binLimpTpi2);
421  printf("zvtx \n");
422  container -> SetBinLimits(izvtx,binLimzvtx);
423  printf("cent\n");
424  container -> SetBinLimits(icent,binLimcent);
425  printf("fake\n");
426  container -> SetBinLimits(ifake,binLimfake);
427  printf("pointingXY\n");
428  container -> SetBinLimits(ipointingXY,binLimpointingXY);
429  printf("normDecayLXY\n");
430  container -> SetBinLimits(inormDecayLXY,binLimnormDecayLXY);
431  printf("multiplicity\n");
432  if(isFineNtrkBin) container -> SetBinLimits(imult,binLimmultFine);
433  else container -> SetBinLimits(imult,binLimmult);
434 
435  container -> SetVarTitle(ipT,"pt");
436  container -> SetVarTitle(iy,"y");
437  container -> SetVarTitle(iphi, "phi");
438  container -> SetVarTitle(icT, "ct");
439  container -> SetVarTitle(ipointing, "pointing");
440  container -> SetVarTitle(ipTpi, "ptpi");
441  container -> SetVarTitle(ipTk, "ptK");
442  container -> SetVarTitle(ipTpi2, "ptpi2");
443  container -> SetVarTitle(izvtx, "zvtx");
444  container -> SetVarTitle(icent, "centrality");
445  container -> SetVarTitle(ifake, "fake");
446  container -> SetVarTitle(ipointingXY, "piointingXY");
447  container -> SetVarTitle(inormDecayLXY, "normDecayLXY");
448  container -> SetVarTitle(imult, "multiplicity");
449  }
450  else if (configuration == AliCFTaskVertexingHF::kCheetah){
451  //arrays for the number of bins in each dimension
452  const Int_t nvar = 8;
453 
454  const UInt_t ipTFast = 0;
455  const UInt_t iyFast = 1;
456  const UInt_t icTFast = 2;
457  const UInt_t iphiFast = 3;
458  const UInt_t izvtxFast = 4;
459  const UInt_t icentFast = 5;
460  const UInt_t ifakeFast = 6;
461  const UInt_t imultFast = 7;
462 
463  Int_t iBinFast[nvar];
464  iBinFast[ipTFast] = iBin[ipT];
465  iBinFast[iyFast] = iBin[iy];
466  iBinFast[icTFast] = iBin[icT];
467  iBinFast[iphiFast] = iBin[iphi];
468  iBinFast[izvtxFast] = iBin[izvtx];
469  iBinFast[icentFast] = iBin[icent];
470  iBinFast[ifakeFast] = iBin[ifake];
471  iBinFast[imultFast] = iBin[imult];
472 
473  container = new AliCFContainer(nameContainer,"container for tracks",nstep,nvar,iBinFast);
474  printf("pt\n");
475  container -> SetBinLimits(ipTFast,binLimpT);
476  printf("y\n");
477  container -> SetBinLimits(iyFast,binLimy);
478  printf("ct\n");
479  container -> SetBinLimits(icTFast,binLimcT);
480  printf("phi\n");
481  container -> SetBinLimits(iphiFast,binLimphi);
482  printf("zvtx\n");
483  container -> SetBinLimits(izvtxFast,binLimzvtx);
484  printf("centrality\n");
485  container -> SetBinLimits(icentFast,binLimcent);
486  printf("fake\n");
487  container -> SetBinLimits(ifakeFast,binLimfake);
488  printf("multiplicity\n");
489  if(isFineNtrkBin) container -> SetBinLimits(imultFast,binLimmultFine);
490  else container -> SetBinLimits(imultFast,binLimmult);
491 
492  container -> SetVarTitle(ipTFast,"pt");
493  container -> SetVarTitle(iyFast,"y");
494  container -> SetVarTitle(icTFast, "ct");
495  container -> SetVarTitle(iphiFast, "phi");
496  container -> SetVarTitle(izvtxFast, "zvtx");
497  container -> SetVarTitle(icentFast, "centrality");
498  container -> SetVarTitle(ifakeFast, "fake");
499  container -> SetVarTitle(imultFast, "multiplicity");
500  }
501  else if (configuration == AliCFTaskVertexingHF::kFalcon){
502  //arrays for the number of bins in each dimension
503  const Int_t nvar = 4;
504 
505  const UInt_t ipTSuperFast = 0;
506  const UInt_t iySuperFast = 1;
507  const UInt_t icentSuperFast = 2;
508  const UInt_t imultSuperFast = 3;
509 
510  Int_t iBinSuperFast[nvar];
511  iBinSuperFast[ipTSuperFast] = iBin[ipT];
512  iBinSuperFast[iySuperFast] = iBin[iy];
513  iBinSuperFast[icentSuperFast] = iBin[icent];
514  iBinSuperFast[imultSuperFast] = iBin[imult];
515 
516  container = new AliCFContainer(nameContainer,"container for tracks",nstep,nvar,iBinSuperFast);
517  printf("pt\n");
518  container -> SetBinLimits(ipTSuperFast,binLimpT);
519  printf("y\n");
520  container -> SetBinLimits(iySuperFast,binLimy);
521  printf("centrality\n");
522  container -> SetBinLimits(icentSuperFast,binLimcent);
523  printf("multiplicity\n");
524  if(isFineNtrkBin) container -> SetBinLimits(imultSuperFast,binLimmultFine);
525  else container -> SetBinLimits(imultSuperFast,binLimmult);
526 
527  container -> SetVarTitle(ipTSuperFast,"pt");
528  container -> SetVarTitle(iySuperFast,"y");
529  container -> SetVarTitle(icentSuperFast, "centrality");
530  container -> SetVarTitle(imultSuperFast, "multiplicity");
531  }
532  else if (configuration == AliCFTaskVertexingHF::kESE){
533  //arrays for the number of bins in each dimension
534  const Int_t nvar = 6;
535 
536  const UInt_t ipTESE = 0;
537  const UInt_t iyESE = 1;
538  const UInt_t icentESE = 2;
539  const UInt_t imultESE = 3;
540  const UInt_t ilocalmultESE = 4;
541  const UInt_t iq2ESE = 5;
542 
543  const Int_t iBinESE[nvar] = {iBin[ipT],iBin[iy],100,50,50,100};
544 
545  Double_t binLimcentESE[iBinESE[icentESE]+1];
546  for(Int_t iCent=0; iCent<iBinESE[icentESE]+1; iCent++) {
547  binLimcentESE[iCent] = iCent;
548  }
549  Double_t binLimmultESE[iBinESE[imultESE]+1];
550  for(Int_t iMult=0; iMult<iBinESE[imultESE]+1; iMult++) {
551  binLimmultESE[iMult] = -0.5+iMult*5000./iBinESE[imultESE];
552  }
553  Double_t binLimlocalmultESE[iBinESE[ilocalmultESE]+1];
554  for(Int_t iLocalMult=0; iLocalMult<iBinESE[ilocalmultESE]+1; iLocalMult++) {
555  binLimlocalmultESE[iLocalMult] = -0.5+iLocalMult*200./iBinESE[ilocalmultESE];
556  }
557  Double_t binLimq2ESE[iBinESE[iq2ESE]+1];
558  for(Int_t iq2=0; iq2<iBinESE[iq2ESE]+1; iq2++) {
559  binLimq2ESE[iq2] = iq2*5./iBinESE[iq2ESE];
560  }
561 
562  container = new AliCFContainer(nameContainer,"container for tracks",nstep,nvar,iBinESE);
563  printf("pt\n");
564  container -> SetBinLimits(ipTESE,binLimpT);
565  printf("y\n");
566  container -> SetBinLimits(iyESE,binLimy);
567  printf("centrality\n");
568  container -> SetBinLimits(icentESE,binLimcentESE);
569  printf("multiplicity\n");
570  container -> SetBinLimits(imultESE,binLimmultESE);
571  printf("local multiplicity\n");
572  container -> SetBinLimits(ilocalmultESE,binLimlocalmultESE);
573  printf("q2\n");
574  container -> SetBinLimits(iq2ESE,binLimq2ESE);
575 
576  container -> SetVarTitle(ipTESE,"pt");
577  container -> SetVarTitle(iyESE,"y");
578  container -> SetVarTitle(icentESE, "centrality");
579  container -> SetVarTitle(imultESE, "multiplicity");
580  container -> SetVarTitle(ilocalmultESE, "local multiplicity");
581  container -> SetVarTitle(iq2ESE, "q2");
582  }
583 
584  //return container;
585 
586  container -> SetStepTitle(0, "MCLimAcc");
587  container -> SetStepTitle(1, "MC");
588  container -> SetStepTitle(2, "MCAcc");
589  container -> SetStepTitle(3, "RecoVertex");
590  container -> SetStepTitle(4, "RecoRefit");
591  container -> SetStepTitle(5, "Reco");
592  container -> SetStepTitle(6, "RecoAcc");
593  container -> SetStepTitle(7, "RecoITSCluster");
594  container -> SetStepTitle(8, "RecoCuts");
595  container -> SetStepTitle(9, "RecoPID");
596 
597 
598  //CREATE THE CUTS -----------------------------------------------
599 
600  // Gen-Level kinematic cuts
601  AliCFTrackKineCuts *mcKineCuts = new AliCFTrackKineCuts("mcKineCuts","MC-level kinematic cuts");
602 
603  //Particle-Level cuts:
604  AliCFParticleGenCuts* mcGenCuts = new AliCFParticleGenCuts("mcGenCuts","MC particle generation cuts");
605  Bool_t useAbsolute = kTRUE;
606  if (isSign != 2){
607  useAbsolute = kFALSE;
608  }
609  mcGenCuts->SetRequirePdgCode(pdgCode, useAbsolute); // kTRUE set in order to include antiparticle
610  mcGenCuts->SetAODMC(1); //special flag for reading MC in AOD tree (important)
611 
612  // Acceptance cuts:
613  AliCFAcceptanceCuts* accCuts = new AliCFAcceptanceCuts("accCuts", "Acceptance cuts");
614  AliCFTrackKineCuts *kineAccCuts = new AliCFTrackKineCuts("kineAccCuts","Kine-Acceptance cuts");
615  kineAccCuts->SetPtRange(ptmin,ptmax);
616  kineAccCuts->SetEtaRange(etamin,etamax);
617 
618  // Rec-Level kinematic cuts
619  AliCFTrackKineCuts *recKineCuts = new AliCFTrackKineCuts("recKineCuts","rec-level kine cuts");
620 
621  AliCFTrackQualityCuts *recQualityCuts = new AliCFTrackQualityCuts("recQualityCuts","rec-level quality cuts");
622 
623  AliCFTrackIsPrimaryCuts *recIsPrimaryCuts = new AliCFTrackIsPrimaryCuts("recIsPrimaryCuts","rec-level isPrimary cuts");
624 
625  printf("CREATE MC KINE CUTS\n");
626  TObjArray* mcList = new TObjArray(0) ;
627  mcList->AddLast(mcKineCuts);
628  mcList->AddLast(mcGenCuts);
629 
630  printf("CREATE ACCEPTANCE CUTS\n");
631  TObjArray* accList = new TObjArray(0) ;
632  accList->AddLast(kineAccCuts);
633 
634  printf("CREATE RECONSTRUCTION CUTS\n");
635  TObjArray* recList = new TObjArray(0) ; // not used!!
636  recList->AddLast(recKineCuts);
637  recList->AddLast(recQualityCuts);
638  recList->AddLast(recIsPrimaryCuts);
639 
640  TObjArray* emptyList = new TObjArray(0);
641 
642  //CREATE THE INTERFACE TO CORRECTION FRAMEWORK USED IN THE TASK
643  printf("CREATE INTERFACE AND CUTS\n");
644  AliCFManager* man = new AliCFManager() ;
645  man->SetParticleContainer(container);
646  man->SetParticleCutsList(0 , mcList); // MC, Limited Acceptance
647  man->SetParticleCutsList(1 , mcList); // MC
648  man->SetParticleCutsList(2 , accList); // Acceptance
649  man->SetParticleCutsList(3 , emptyList); // Vertex
650  man->SetParticleCutsList(4 , emptyList); // Refit
651  man->SetParticleCutsList(5 , emptyList); // AOD
652  man->SetParticleCutsList(6 , emptyList); // AOD in Acceptance
653  man->SetParticleCutsList(7 , emptyList); // AOD with required n. of ITS clusters
654  man->SetParticleCutsList(8 , emptyList); // AOD Reco (PPR cuts implemented in Task)
655  man->SetParticleCutsList(9 , emptyList); // AOD Reco PID
656 
657  // Get the pointer to the existing analysis manager via the static access method.
658  //==============================================================================
659  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
660  if (!mgr) {
661  ::Error("AddTaskCompareHF", "No analysis manager to connect to.");
662  return NULL;
663  }
664  //CREATE THE TASK
665  printf("CREATE TASK\n");
666 
667  // create the task
668  AliCFTaskVertexingHF *task = new AliCFTaskVertexingHF("AliCFTaskVertexingHF",cutsDplustoKpipi);
669  task->SetConfiguration(configuration);
670  task->SetFillFromGenerated(kFALSE);
671  task->SetDecayChannel(31);
672  task->SetUseWeight(useWeight);
673  task->SetCFManager(man); //here is set the CF manager
674  task->SetSign(isSign);
675  task->SetCentralitySelection(kFALSE);
676  task->SetFakeSelection(0);
677  task->SetRejectCandidateIfNotFromQuark(kTRUE); // put to false if you want to keep HIJING D0!!
678  task->SetUseMCVertex(kFALSE); // put to true if you want to do studies on pp
679  task->SetUseNchWeight(useNchWeight); //correction with mult weight
680  if(useNchWeight || useNtrkWeight){
681  if(hMult) task->SetMCNchHisto(hMult);
682  else{
683  AliFatal("Histogram for multiplicity weights not found");
684  return 0x0;
685  }
686  task->SetUseNchWeight(kTRUE);
687  if(useNtrkWeight) task->SetUseNchTrackletsWeight();
688  }
689  if(isPPbData) {
690  task->SetIsPPbData(kTRUE);
691  }
692  if (isKeepDfromB && !isKeepDfromBOnly) task->SetDselection(2);
693  if (isKeepDfromB && isKeepDfromBOnly) task->SetDselection(1);
694 
695  TF1* funcWeight = 0x0;
696  if (task->GetUseWeight()) {
697  funcWeight = (TF1*)fileCuts->Get("funcWeight");
698  if (funcWeight == 0x0){
699  Printf("FONLL Weights will be used");
700  }
701  else {
702  task->SetWeightFunction(funcWeight);
703  Printf("User-defined Weights will be used. The function being:");
704  task->GetWeightFunction()->Print();
705  }
706  }
707 
708  task->SetMultiplicityEstimator(multiplicityEstimator);
709  if(estimatorFilename.EqualTo("") ) {
710  printf("Estimator file not provided, multiplicity corrected histograms will not be filled\n");
711  task->SetUseZvtxCorrectedNtrkEstimator(kFALSE);
712  } else{
713  TFile* fileEstimator=TFile::Open(estimatorFilename.Data());
714  if(!fileEstimator) {
715  AliFatal("File with multiplicity estimator not found");
716  return;
717  }
719  task->SetReferenceMultiplcity(refMult);
720 
721  if (isPPbData) { //load multiplicity estimators for pPb
722  const Char_t* periodNames[2] = {"LHC13b", "LHC13c"};
723  TProfile *multEstimatorAvg[2];
724  for (Int_t ip=0; ip < 2; ip++) {
725  multEstimatorAvg[ip] = (TProfile*)(fileEstimator->Get(Form("SPDmult10_%s",periodNames[ip]))->Clone(Form("SPDmult10_%s_clone",periodNames[ip])));
726  if (!multEstimatorAvg[ip]) {
727  AliFatal(Form("Multiplicity estimator for %s not found! Please check your estimator file",periodNames[ip]));
728  return;
729  }
730  }
731  task->SetMultiplVsZProfileLHC13b(multEstimatorAvg[0]);
732  task->SetMultiplVsZProfileLHC13c(multEstimatorAvg[1]);
733 
734  } else { //load multiplicity estimators for pp
735  const Char_t* periodNames[4] = {"LHC10b", "LHC10c", "LHC10d", "LHC10e"};
736  TProfile* multEstimatorAvg[4];
737 
738  for(Int_t ip=0; ip<4; ip++) {
739  multEstimatorAvg[ip] = (TProfile*)(fileEstimator->Get(Form("SPDmult10_%s",periodNames[ip]))->Clone(Form("SPDmult10_%s_clone",periodNames[ip])));
740  if (!multEstimatorAvg[ip]) {
741  AliFatal(Form("Multiplicity estimator for %s not found! Please check your estimator file",periodNames[ip]));
742  return;
743  }
744  }
745  task->SetMultiplVsZProfileLHC10b(multEstimatorAvg[0]);
746  task->SetMultiplVsZProfileLHC10c(multEstimatorAvg[1]);
747  task->SetMultiplVsZProfileLHC10d(multEstimatorAvg[2]);
748  task->SetMultiplVsZProfileLHC10e(multEstimatorAvg[3]);
749  }
750  }
751 
752  Printf("***************** CONTAINER SETTINGS *****************");
753  Printf("decay channel = %d",(Int_t)task->GetDecayChannel());
754  Printf("FillFromGenerated = %d",(Int_t)task->GetFillFromGenerated());
755  Printf("Dselection = %d",(Int_t)task->GetDselection());
756  Printf("Sign = %d",(Int_t)task->GetSign());
757  Printf("Centrality selection = %d",(Int_t)task->GetCentralitySelection());
758  Printf("Fake selection = %d",(Int_t)task->GetFakeSelection());
759  Printf("RejectCandidateIfNotFromQuark selection = %d",(Int_t)task->GetRejectCandidateIfNotFromQuark());
760  Printf("UseMCVertex selection = %d",(Int_t)task->GetUseMCVertex());
761  Printf("***************END CONTAINER SETTINGS *****************\n");
762 
763  //-----------------------------------------------------------//
764  // create correlation matrix for unfolding - only eta-pt //
765  //-----------------------------------------------------------//
766 
767  Bool_t AcceptanceUnf = kTRUE; // unfold at acceptance level, otherwise PPR
768 
769  Int_t thnDim[4];
770 
771  //first half : reconstructed
772  //second half : MC
773 
774  thnDim[0] = iBin[ipT];
775  thnDim[2] = iBin[ipT];
776  thnDim[1] = iBin[iy];
777  thnDim[3] = iBin[iy];
778 
779  TString nameCorr="";
780  if(!isKeepDfromB) {
781  nameCorr="CFHFcorr_DplustoKpipi_Prompt";
782  }
783  else if(isKeepDfromBOnly){
784  nameCorr="CFHFcorr_DplustoKpipi_FromB";
785  }
786  else {
787  nameCorr="CFHFcorr_DplustoKpipi_All";
788  }
789  nameCorr += suffixName.Data();
790 
791 
792  THnSparseD* correlation = new THnSparseD(nameCorr,"THnSparse with correlations",4,thnDim);
793  Double_t** binEdges = new Double_t[2];
794 
795  // set bin limits
796 
797  binEdges[0]= binLimpT;
798  binEdges[1]= binLimy;
799 
800  correlation->SetBinEdges(0,binEdges[0]);
801  correlation->SetBinEdges(2,binEdges[0]);
802 
803  correlation->SetBinEdges(1,binEdges[1]);
804  correlation->SetBinEdges(3,binEdges[1]);
805 
806  correlation->Sumw2();
807 
808  // correlation matrix ready
809  //------------------------------------------------//
810 
811  task->SetCorrelationMatrix(correlation); // correlation matrix for unfolding
812 
813  // Create and connect containers for input/output
814 
815  // ------ input data ------
816  AliAnalysisDataContainer *cinput0 = mgr->GetCommonInputContainer();
817 
818  // ----- output data -----
819 
820  TString outputfile = AliAnalysisManager::GetCommonFileName();
821  TString output1name="", output2name="", output3name="", output4name="", output5name="";
822  output2name=nameContainer;
823  output3name=nameCorr;
824  output5name= "coutProfDp";
825  if(!isKeepDfromB) {
826  outputfile += ":PWG3_D2H_CFtaskDplustoKpipi_Prompt";
827  output1name="CFHFhist_DplustoKpipi_Prompt";
828  output3name+="_Prompt";
829  output4name= "Cuts_DplustoKpipi_Prompt";
830  output5name+="_Prompt";
831  }
832  else if(isKeepDfromBOnly){
833  outputfile += ":PWG3_D2H_CFtaskDplustoKpipi_FromB";
834  output1name="CFHFhist_DplustoKpipi_FromB";
835  output3name+="_FromB";
836  output4name= "Cuts_DplustoKpipi_FromB";
837  output5name+="_FromB";
838  }
839  else{
840  outputfile += ":PWG3_D2H_CFtaskDplustoKpipi_All";
841  output1name="CFHFhist_DplustoKpipi_All";
842  output3name+="_All";
843  output4name= "Cuts_DplustoKpipi_All";
844  output5name+="_All";
845  }
846  outputfile += suffixName.Data();
847  output1name += suffixName.Data();
848  output4name += suffixName.Data();
849  output5name += suffixName.Data();
850 
851  //now comes user's output objects :
852  // output TH1I for event counting
853  AliAnalysisDataContainer *coutput1 = mgr->CreateContainer(output1name, TH1I::Class(),AliAnalysisManager::kOutputContainer,outputfile.Data());
854  // output Correction Framework Container (for acceptance & efficiency calculations)
855  AliAnalysisDataContainer *coutput2 = mgr->CreateContainer(output2name, AliCFContainer::Class(),AliAnalysisManager::kOutputContainer,outputfile.Data());
856  // Unfolding - correlation matrix
857  AliAnalysisDataContainer *coutput3 = mgr->CreateContainer(output3name, THnSparseD::Class(),AliAnalysisManager::kOutputContainer,outputfile.Data());
858  AliAnalysisDataContainer *coutput4 = mgr->CreateContainer(output4name, AliRDHFCuts::Class(),AliAnalysisManager::kOutputContainer, outputfile.Data());
859  // estimators list
860  AliAnalysisDataContainer *coutput5 = mgr->CreateContainer(output5name, TList::Class(),AliAnalysisManager::kOutputContainer, outputfile.Data());
861 
862  mgr->AddTask(task);
863 
864  mgr->ConnectInput(task,0,mgr->GetCommonInputContainer());
865  mgr->ConnectOutput(task,1,coutput1);
866  mgr->ConnectOutput(task,2,coutput2);
867  mgr->ConnectOutput(task,3,coutput3);
868  mgr->ConnectOutput(task,4,coutput4);
869  mgr->ConnectOutput(task,5,coutput5);
870 
871  return task;
872 }
const Float_t multmax_100_400
void SetWeightFunction(TF1 *func)
void SetRejectCandidateIfNotFromQuark(Bool_t opt)
double Double_t
Definition: External.C:58
void SetMultiplVsZProfileLHC10e(TProfile *hprof)
void SetCFManager(AliCFManager *io)
CORRECTION FRAMEWORK RELATED FUNCTIONS.
const Float_t multmin_0_20
const Double_t cTmin
const Float_t multmax_80_100
void SetDecayChannel(Int_t decayChannel)
TSystem * gSystem
char Char_t
Definition: External.C:18
const Float_t multmax_0_20
const Double_t phimin
const Float_t centmin_60_100
void SetFillFromGenerated(Bool_t flag)
get corr manager
void SetUseNchTrackletsWeight(Bool_t useWeight=kTRUE)
void SetUseMCVertex(Bool_t opt)
super fast configuration, only (pt,y,centrality)
const Double_t cosmin
const Float_t centmax
const Double_t cTmax
const Float_t centmin_0_10
const Float_t normDecLXYmin
const Int_t minITSClusters
const Float_t centmin_10_60
const Float_t centmax_10_60
const Float_t fakemax
Class for cuts on AOD reconstructed D+->Kpipi.
const Float_t cosmaxXY
int Int_t
Definition: External.C:63
unsigned int UInt_t
Definition: External.C:33
const Double_t ptmax
const Float_t cosminXY
float Float_t
Definition: External.C:68
const Double_t ymin
void SetIsPPbData(Bool_t flag)
const Float_t multmax_20_50
void SetCentralitySelection(Bool_t centSelec=kTRUE)
const Float_t multmax_50_80
const Double_t ptmin
const Double_t etamax
const Float_t normDecLXYmax
const Double_t cosmax
void SetReferenceMultiplcity(Double_t rmu)
void SetUseWeight(Bool_t useWeight)
const Int_t minclustersTPC
void SetUseZvtxCorrectedNtrkEstimator(Bool_t flag)
const Int_t charge
AliCFTaskVertexingHF * AddTaskCFVertexingHF3Prong(TString suffixName="", const char *cutFile="./DplustoKpipiCuts.root", Int_t configuration=AliCFTaskVertexingHF::kCheetah, Bool_t isKeepDfromB=kFALSE, Bool_t isKeepDfromBOnly=kFALSE, Int_t pdgCode=411, Char_t isSign=2, Bool_t useWeight=kFALSE, TString multFile="", Bool_t useNchWeight=kFALSE, Bool_t useNtrkWeight=kFALSE, TString estimatorFilename="", Int_t multiplicityEstimator=AliCFTaskVertexingHF::kNtrk10, Bool_t isPPbData=kFALSE, Double_t refMult=9.26, Bool_t isFineNtrkBin=kFALSE, TString multweighthistoname="hNtrUnCorrEvWithCandWeight")
const Float_t multmin_100_400
Bool_t useWeight
Definition: anaTree.C:25
const Int_t mintrackrefsITS
const Double_t zvtxmin
void SetConfiguration(Int_t configuration)
void SetDselection(UShort_t originDselection)
Float_t * GetPtBinLimits() const
Definition: AliRDHFCuts.h:248
const Double_t zvtxmax
TF1 * GetWeightFunction() const
void SetUseNchWeight(Bool_t useWeight)
void SetCorrelationMatrix(THnSparse *h)
UNFOLDING.
const Double_t ymax
void SetMultiplVsZProfileLHC10b(TProfile *hprof)
void SetMultiplVsZProfileLHC10d(TProfile *hprof)
const Float_t multmin_50_80
Int_t GetNPtBins() const
Definition: AliRDHFCuts.h:249
void SetSign(Char_t isSign)
const Float_t centmax_0_10
Bool_t GetUseWeight() const
bool Bool_t
Definition: External.C:53
const Float_t multmin_80_100
const Double_t etamin
void SetMultiplicityEstimator(Int_t value)
slow configuration, all variables
const Float_t fakemin
void SetMultiplVsZProfileLHC13b(TProfile *hprof)
Bool_t GetFillFromGenerated() const
void SetMultiplVsZProfileLHC13c(TProfile *hprof)
const Float_t multmin_20_50
const Float_t centmax_60_100
const Int_t mintrackrefsTPC
void SetFakeSelection(Int_t fakeSel=0)
fast configuration, only a subset of variables
void SetMultiplVsZProfileLHC10c(TProfile *hprof)