AliPhysics  63e47e1 (63e47e1)
ConfigVertexingHF_Pb_AllCent_NoLS_PIDLc_PtDepSel_LooseIP.C
Go to the documentation of this file.
2 
3  printf("Call to AliAnalysisVertexingHF parameters setting :\n");
4  vHF = new AliAnalysisVertexingHF();
5  //Set Reduce Size dAOD
6  vHF->SetMakeReducedRHF(kTRUE);
7 
8  //--- switch-off candidates finding (default: all on)
9  //vHF->SetD0toKpiOff();
10  vHF->SetJPSItoEleOff();
11  // vHF->Set3ProngOff();
12  vHF->SetLikeSignOff(); // like-sign pairs and triplets
13  vHF->SetLikeSign3prongOff();
14  vHF->Set4ProngOff();
15  // vHF->SetDstarOff();
16  vHF->SetFindVertexForDstar(kFALSE);
17  //--- secondary vertex with KF?
18  //vHF->SetSecVtxWithKF();
19  //vHF->SetCascadesOff();
20  vHF->SetFindVertexForCascades(kFALSE);
21  vHF->SetMassCutBeforeVertexing(kTRUE); // PbPb
22  vHF->SetV0TypeForCascadeVertex(AliRDHFCuts::kOnlyOfflineV0s);
23 
24  //set PID
25  vHF->SetUseKaonPIDfor3Prong(kFALSE);
26  vHF->SetUseProtonAndPionPIDforLambdaC();
27  vHF->SetUseProtonPIDforLambdaC2V0();
28  // vHF->SetnSigmaTOFforKaonSel(5., 5.);
29  // vHF->SetnSigmaTPCforKaonSel(5., 5.);
30  vHF->SetnSigmaTOFforProtonSel(40.,40.);
31  vHF->SetnSigmaTPCforProtonSel(5., 5.);
32  vHF->SetnSigmaTPCforPionSel(40., 40.);
33  vHF->SetnSigmaTOFforPionSel(40.,40.);
34  vHF->SetMaxMomForTPCPid(9999999999.);
35  vHF->SetUseTPCPID(kTRUE);
36  vHF->SetUseTOFPID(kFALSE);
37  // vHF->SetUseTPCPIDOnlyIfNoTOF(kTRUE);
38 
39 
40  //--- set cuts for single-track selection
41  // displaced tracks
42  AliESDtrackCuts *esdTrackCuts = new AliESDtrackCuts("AliESDtrackCuts","default");
43  esdTrackCuts->SetRequireTPCRefit(kTRUE);
44  esdTrackCuts->SetMinNClustersTPC(50);
45  esdTrackCuts->SetRequireITSRefit(kTRUE);
46  //esdTrackCuts->SetMinNClustersITS(4);
47  esdTrackCuts->SetClusterRequirementITS(AliESDtrackCuts::kSPD,
48  AliESDtrackCuts::kAny);
49  // |d0|>25 micron for pt<2GeV, no cut above 2
50  esdTrackCuts->SetMinDCAToVertexXYPtDep("0.0025*TMath::Max(0.,(1-TMath::Floor(TMath::Abs(pt)/2.)))");
51  esdTrackCuts->SetMaxDCAToVertexXY(1.);
52  esdTrackCuts->SetMaxDCAToVertexZ(1.);
53  esdTrackCuts->SetPtRange(0.4,1.e10);
54  esdTrackCuts->SetEtaRange(-0.8,+0.8);
55  AliAnalysisFilter *trkFilter = new AliAnalysisFilter("trackFilter");
56  trkFilter->AddCuts(esdTrackCuts);
57  vHF->SetTrackFilter(trkFilter);
58 
59  // displaced tracks for 20% most central events 2 prongs
60  AliESDtrackCuts *esdTrackCuts = new AliESDtrackCuts("AliESDtrackCuts","default");
61  esdTrackCuts->SetRequireTPCRefit(kTRUE);
62  esdTrackCuts->SetMinNClustersTPC(50);
63  esdTrackCuts->SetRequireITSRefit(kTRUE);
64  //esdTrackCuts->SetMinNClustersITS(4);
65  esdTrackCuts->SetClusterRequirementITS(AliESDtrackCuts::kSPD,
66  AliESDtrackCuts::kAny);
67  // |d0|>25 micron for pt<2GeV, no cut above 2
68  esdTrackCuts->SetMinDCAToVertexXYPtDep("0.0025*TMath::Max(0.,(1-TMath::Floor(TMath::Abs(pt)/2.)))");
69  esdTrackCuts->SetMaxDCAToVertexXY(1.);
70  esdTrackCuts->SetMaxDCAToVertexZ(1.);
71  esdTrackCuts->SetPtRange(0.5,1.e10);
72  esdTrackCuts->SetEtaRange(-0.8,+0.8);
73  AliAnalysisFilter *trkFilter = new AliAnalysisFilter("trackFilter");
74  trkFilter->AddCuts(esdTrackCuts);
75  vHF->SetTrackFilter2prongPbCentral(20.,trkFilter); // for centrality 0-20%
76 
77  // displaced tracks for 20% most central events 3 prongs
78  AliESDtrackCuts *esdTrackCuts = new AliESDtrackCuts("AliESDtrackCuts","default");
79  esdTrackCuts->SetRequireTPCRefit(kTRUE);
80  esdTrackCuts->SetMinNClustersTPC(50);
81  esdTrackCuts->SetRequireITSRefit(kTRUE);
82  //esdTrackCuts->SetMinNClustersITS(4);
83  esdTrackCuts->SetClusterRequirementITS(AliESDtrackCuts::kSPD,
84  AliESDtrackCuts::kAny);
85  // |d0|>60 micron for pt<2GeV, no cut above 2
86  esdTrackCuts->SetMinDCAToVertexXYPtDep("0.0060*TMath::Max(0.,(1-TMath::Floor(TMath::Abs(pt)/2.)))");
87  esdTrackCuts->SetMaxDCAToVertexXY(1.);
88  esdTrackCuts->SetMaxDCAToVertexZ(1.);
89  esdTrackCuts->SetPtRange(0.6,1.e10);
90  esdTrackCuts->SetEtaRange(-0.8,+0.8);
91  AliAnalysisFilter *trkFilter = new AliAnalysisFilter("trackFilter");
92  trkFilter->AddCuts(esdTrackCuts);
93  vHF->SetTrackFilter3prongPbCentral(20.,trkFilter); // for centrality 0-20%
94 
95  // D* soft pion tracks
96  AliESDtrackCuts *esdTrackCutsSoftPi = new AliESDtrackCuts("AliESDtrackCuts","default");
97  esdTrackCutsSoftPi->SetRequireITSRefit(kTRUE);
98  esdTrackCutsSoftPi->SetMinNClustersITS(2);
99  esdTrackCutsSoftPi->SetMaxDCAToVertexXY(1.);
100  esdTrackCutsSoftPi->SetMaxDCAToVertexZ(1.);
101  esdTrackCutsSoftPi->SetPtRange(0.1,1.e10);
102  esdTrackCutsSoftPi->SetEtaRange(-0.8,+0.8);
103  AliAnalysisFilter *trkFilterSoftPi = new AliAnalysisFilter("trackFilterSoftPi");
104  trkFilterSoftPi->AddCuts(esdTrackCutsSoftPi);
105  vHF->SetTrackFilterSoftPi(trkFilterSoftPi);
106 
107  // bachelor track cuts
108  AliESDtrackCuts *esdTrackCutsBach = new AliESDtrackCuts("AliESDtrackCuts","default");
109  esdTrackCutsBach->SetRequireTPCRefit(kTRUE);
110  esdTrackCutsBach->SetMinNClustersTPC(50);
111  esdTrackCutsBach->SetRequireITSRefit(kTRUE);
112  esdTrackCutsBach->SetClusterRequirementITS(AliESDtrackCuts::kSPD,
113  AliESDtrackCuts::kAny);
114  esdTrackCutsBach->SetMaxDCAToVertexXY(1.);
115  esdTrackCutsBach->SetMaxDCAToVertexZ(1.);
116  esdTrackCutsBach->SetPtRange(0.5,1.e10);
117  esdTrackCutsBach->SetEtaRange(-0.8,+0.8);
118  AliAnalysisFilter *trkFilterBach = new AliAnalysisFilter("trackFilterBachelor");
119  trkFilterBach->AddCuts(esdTrackCutsBach);
120  vHF->SetTrackFilterBachelor(trkFilterBach);
121 
122 
123  //--- set cuts for candidates selection
124  Int_t nptbins=2; Float_t ptlimits[2]={0.,1000000.};
125 
126  const Int_t nptbinsD0=2;
127  Float_t ptlimitsD0[nptbinsD0+1]={0.,5.,1000000.};
128  Float_t** cutsArrayD0toKpi;
129  cutsArrayD0toKpi=new Float_t*[11];
130  for(Int_t iv=0;iv<11;iv++){
131  cutsArrayD0toKpi[iv]=new Float_t[nptbinsD0];
132  }
133  //0-5
134  cutsArrayD0toKpi[0][0]=0.25; //D0 inv mass window
135  cutsArrayD0toKpi[1][0]=999999.;
136  cutsArrayD0toKpi[2][0]=1.1;
137  cutsArrayD0toKpi[3][0]=0.;
138  cutsArrayD0toKpi[4][0]=0.;
139  cutsArrayD0toKpi[5][0]=999999.;
140  cutsArrayD0toKpi[6][0]=999999.;
141  cutsArrayD0toKpi[7][0]=0.; // d0xd0
142  cutsArrayD0toKpi[8][0]=0.5;
143  cutsArrayD0toKpi[9][0]=-1.;
144  cutsArrayD0toKpi[10][0]=0.;
145  //5-inf
146  cutsArrayD0toKpi[0][1]=0.4; //D0 inv mass window
147  cutsArrayD0toKpi[1][1]=999999.;
148  cutsArrayD0toKpi[2][1]=1.1;
149  cutsArrayD0toKpi[3][1]=0.;
150  cutsArrayD0toKpi[4][1]=0.;
151  cutsArrayD0toKpi[5][1]=999999.;
152  cutsArrayD0toKpi[6][1]=999999.;
153  cutsArrayD0toKpi[7][1]=0.0001; // d0xd0
154  cutsArrayD0toKpi[8][1]=0.5;
155  cutsArrayD0toKpi[9][1]=-1.;
156  cutsArrayD0toKpi[10][1]=0.;
157 
158 
159  AliRDHFCutsD0toKpi *cutsD0toKpi = new AliRDHFCutsD0toKpi("CutsD0toKpi");
160  cutsD0toKpi->SetStandardCutsPbPb2010();
161  cutsD0toKpi->SetMinPtCandidate(0.);
162  cutsD0toKpi->SetUsePID(kFALSE);
163  cutsD0toKpi->SetUseTrackSelectionWithFilterBits(kFALSE);
164  cutsD0toKpi->SetUseSpecialCuts(kFALSE);
165  cutsD0toKpi->SetUsePhysicsSelection(kFALSE);
166  cutsD0toKpi->SetMaxCentrality(90.);
167  cutsD0toKpi->SetMaxVtxZ(1.e6);
168  cutsD0toKpi->SetTriggerClass("");
169  cutsD0toKpi->SetPtBins(nptbinsD0+1,ptlimitsD0);
170  cutsD0toKpi->SetCuts(11,nptbinsD0,cutsArrayD0toKpi);
171  cutsD0toKpi->AddTrackCuts(esdTrackCuts);
172  vHF->SetCutsD0toKpi(cutsD0toKpi);
173  AliRDHFCutsJpsitoee *cutsJpsitoee = new AliRDHFCutsJpsitoee("CutsJpsitoee");
174  Float_t cutsArrayJpsitoee[9]={0.350,100000.,1.1,0.,0.,100000.,100000.,100000000.,-1.1};
175  cutsJpsitoee->SetCuts(9,cutsArrayJpsitoee);
176  cutsJpsitoee->AddTrackCuts(esdTrackCuts);
177  vHF->SetCutsJpsitoee(cutsJpsitoee);
178  AliRDHFCutsDplustoKpipi *cutsDplustoKpipi = new AliRDHFCutsDplustoKpipi("CutsDplustoKpipi");
179  cutsDplustoKpipi->SetStandardCutsPbPb2010();
180  cutsDplustoKpipi->SetUseTrackSelectionWithFilterBits(kFALSE);
181  cutsDplustoKpipi->SetUsePID(kFALSE);
182  Float_t cutsArrayDplustoKpipi[14]={0.25,0.3,0.3,0.,0.,0.01,0.05,0.05,0.,0.88,0.,10000000000.,3.,0.};
183  cutsDplustoKpipi->SetPtBins(nptbins,ptlimits);
184  cutsDplustoKpipi->SetCuts(14,cutsArrayDplustoKpipi);
185  cutsDplustoKpipi->AddTrackCuts(esdTrackCuts);
186  cutsDplustoKpipi->SetMinPtCandidate(2.);
187  vHF->SetCutsDplustoKpipi(cutsDplustoKpipi);
188  AliRDHFCutsDstoKKpi *cutsDstoKKpi = new AliRDHFCutsDstoKKpi("CutsDstoKKpi");
189  cutsDstoKKpi->SetStandardCutsPbPb2010();
190  cutsDstoKKpi->SetUseTrackSelectionWithFilterBits(kFALSE);
191  cutsDstoKKpi->SetUsePID(kFALSE);
192  Float_t cutsArrayDstoKKpi[20]={0.3,0.3,0.3,0.,0.,0.,0.06,0.02,0.,0.9,0.,100000.,0.03,0.0001,-1.,1.,0.,0.,0.,-1.};
193  cutsDstoKKpi->SetPtBins(nptbins,ptlimits);
194  cutsDstoKKpi->SetCuts(20,cutsArrayDstoKKpi);
195  cutsDstoKKpi->AddTrackCuts(esdTrackCuts);
196  cutsDstoKKpi->SetMinPtCandidate(2.);
197  vHF->SetCutsDstoKKpi(cutsDstoKKpi);
198  AliRDHFCutsLctopKpi *cutsLctopKpi = new AliRDHFCutsLctopKpi("CutsLctopKpi");
199  cutsLctopKpi->SetStandardCutsPbPb2010();
200  cutsLctopKpi->SetUseTrackSelectionWithFilterBits(kFALSE);
201  cutsLctopKpi->SetUsePID(kFALSE);
202  Float_t cutsArrayLctopKpi[13]={0.13,0.5,0.5,0.,0.,0.,0.06,0.,0.,0.,0.,0.05,0.5};
203  cutsLctopKpi->SetPtBins(nptbins,ptlimits);
204  cutsLctopKpi->SetCuts(13,cutsArrayLctopKpi);
205  cutsLctopKpi->AddTrackCuts(esdTrackCuts);
206  cutsLctopKpi->SetMinPtCandidate(4.);
207  vHF->SetCutsLctopKpi(cutsLctopKpi);
208  AliRDHFCutsD0toKpipipi *cutsD0toKpipipi = new AliRDHFCutsD0toKpipipi("CutsD0toKpipipi");
209  Float_t cutsArrayD0toKpipipi[9]={0.2,0.04,0.00,0.01,0.02,0.8,0.,0.1,0.};
210  cutsD0toKpipipi->SetCuts(9,cutsArrayD0toKpipipi);
211  cutsD0toKpipipi->AddTrackCuts(esdTrackCuts);
212  vHF->SetCutsD0toKpipipi(cutsD0toKpipipi);
213 
214 
215  // D* pt dependent cuts ------------------------------------------
216 
217  AliRDHFCutsDStartoKpipi *cutsDStartoKpipi = new AliRDHFCutsDStartoKpipi("CutsDStartoKpipi");
218  cutsDStartoKpipi->SetUseTrackSelectionWithFilterBits(kFALSE);
219  cutsDStartoKpipi->SetUsePID(kFALSE);
220  const Int_t nvars=16;
221  const Int_t nptbinsDst=2;
222 
223  Float_t* ptbins;
224  ptbins=new Float_t[nptbinsDst+1];
225  ptbins[0]=0.;
226  ptbins[1]=5.;
227  ptbins[2]=999.;
228 
229  cutsDStartoKpipi->SetPtBins(nptbinsDst+1,ptbins);
230 
231  Float_t** rdcutsvalmine;
232  rdcutsvalmine=new Float_t*[nvars];
233  for(Int_t iv=0;iv<nvars;iv++){
234  rdcutsvalmine[iv]=new Float_t[nptbinsDst];
235  }
236 
237  //0-5
238  rdcutsvalmine[0][0]=0.095; //D0 inv mass window
239  rdcutsvalmine[1][0]=0.05; // dca
240  rdcutsvalmine[2][0]=0.9; // thetastar
241  rdcutsvalmine[3][0]=0.5; // pt Pion
242  rdcutsvalmine[4][0]=0.5; // Pt Kaon
243  rdcutsvalmine[5][0]=0.1; // d0K
244  rdcutsvalmine[6][0]=0.1; // d0Pi
245  rdcutsvalmine[7][0]=-0.00001; // d0xd0
246  rdcutsvalmine[8][0]=0.9; // costhetapoint
247  rdcutsvalmine[9][0]=0.3; // Dstar inv mass window
248  rdcutsvalmine[10][0]=0.03; // half width of (M_Kpipi-M_D0)
249  rdcutsvalmine[11][0]=0.1; // Pt min of Pi soft
250  rdcutsvalmine[12][0]=100.; // Pt max of pi soft
251  rdcutsvalmine[13][0]=9999.; // theta
252  rdcutsvalmine[14][0]=0.96; // |cosThetaPointXY|
253  rdcutsvalmine[15][0]=2.5; // NormDecayLenghtXY
254  //5-999
255  rdcutsvalmine[0][1]=0.12; //D0 inv mass window
256  rdcutsvalmine[1][1]=0.06; // dca
257  rdcutsvalmine[2][1]=0.9; // thetastar
258  rdcutsvalmine[3][1]=0.5; // pt Pion
259  rdcutsvalmine[4][1]=0.5; // Pt Kaon
260  rdcutsvalmine[5][1]=0.1; // d0K
261  rdcutsvalmine[6][1]=0.1; // d0Pi
262  rdcutsvalmine[7][1]=0.0001; // d0xd0
263  rdcutsvalmine[8][1]=0.7; // costhetapoint
264  rdcutsvalmine[9][1]=0.3; // Dstar inv mass window
265  rdcutsvalmine[10][1]=0.03; // half width of (M_Kpipi-M_D0)
266  rdcutsvalmine[11][1]=0.1; // Pt min of Pi soft
267  rdcutsvalmine[12][1]=100.; // Pt max of pi soft
268  rdcutsvalmine[13][1]=9999.; // theta
269  rdcutsvalmine[14][1]=0.8; // |cosThetaPointXY|
270  rdcutsvalmine[15][1]=0.; // NormDecayLenghtXY
271 
272  cutsDStartoKpipi->SetCuts(nvars,nptbinsDst,rdcutsvalmine);
273 
274  cutsDStartoKpipi->AddTrackCuts(esdTrackCuts);
275  cutsDStartoKpipi->AddTrackCutsSoftPi(esdTrackCutsSoftPi);
276  cutsDStartoKpipi->SetMinPtCandidate(1.);
277  vHF->SetCutsDStartoKpipi(cutsDStartoKpipi);
278 
279  //--------------------------------------------------------
280 
281  AliRDHFCutsLctoV0 *cutsLctoV0 = new AliRDHFCutsLctoV0("CutsLctoV0");
282  Float_t cutsArrayLctoV0[21]={0.2,0.,0.05,0.05,0.5,0.0,0.0,1000.,1000.,0.99,3.,1000.,0.,0.,0.,0.5,9999.,-9999.,-9999.,-9999.,1};
283  cutsLctoV0->SetUseTrackSelectionWithFilterBits(kFALSE);
284  cutsLctoV0->SetMinPtCandidate(4.);
285  cutsLctoV0->SetCuts(21,cutsArrayLctoV0);
286  cutsLctoV0->AddTrackCuts(esdTrackCuts);
287 
288  AliESDtrackCuts *esdV0daughterTrackCuts = new AliESDtrackCuts("AliESDtrackCutsForV0D","default cuts for V0 daughters");
289  esdV0daughterTrackCuts->SetRequireTPCRefit(kTRUE);
290  esdV0daughterTrackCuts->SetMinNClustersTPC(30);
291  esdV0daughterTrackCuts->SetRequireITSRefit(kFALSE);
292  esdV0daughterTrackCuts->SetMinDCAToVertexXY(0.);
293  esdV0daughterTrackCuts->SetPtRange(0.05,1.e10);
294  esdV0daughterTrackCuts->SetEtaRange(-1.1,+1.1);
295  esdV0daughterTrackCuts->SetAcceptKinkDaughters(kTRUE);
296  esdV0daughterTrackCuts->SetRequireSigmaToVertex(kFALSE);
297  cutsLctoV0->AddTrackCutsV0daughters(esdV0daughterTrackCuts);
298  vHF->SetCutsLctoV0(cutsLctoV0);
299  //
300  //--- set this if you want to reconstruct primary vertex candidate by
301  // candidate using other tracks in the event (for pp, broad
302  // interaction region)
303  //vHF->SetRecoPrimVtxSkippingTrks();
304  //--- OR set this if you want to remove the candidate daughters from
305  // the primary vertex, without recostructing it from scratch
306  //vHF->SetRmTrksFromPrimVtx();
307 
308  //--- check the settings
309  vHF->PrintStatus();
310  //--- verbose
311  // AliLog::SetClassDebugLevel("AliAnalysisVertexingHF",2);
312 
313 
314  return vHF;
315 }
316 
317 
virtual void SetStandardCutsPbPb2010()
Definition: AliRDHFCuts.h:47
void SetMaxVtxZ(Float_t z=1e6)
Definition: AliRDHFCuts.h:61
void SetUsePhysicsSelection(Bool_t use=kTRUE)
Definition: AliRDHFCuts.h:362
AliAnalysisVertexingHF * ConfigVertexingHF()
Class for cuts on AOD reconstructed D+->Kpipi.
int Int_t
Definition: External.C:63
void SetCuts(Int_t nVars, Int_t nPtBins, Float_t **cutsRD)
float Float_t
Definition: External.C:68
void AddTrackCutsV0daughters(AliESDtrackCuts *v0daug)
void AddTrackCutsSoftPi(const AliESDtrackCuts *cuts)
virtual void SetStandardCutsPbPb2010()
void SetUseTrackSelectionWithFilterBits(Bool_t flag=kTRUE)
Definition: AliRDHFCuts.h:212
void SetMaxCentrality(Float_t maxCentrality=100.)
Definition: AliRDHFCuts.h:52
void SetUsePID(Bool_t flag=kTRUE)
Definition: AliRDHFCuts.h:209
void SetUseSpecialCuts(Bool_t useSpecialCuts)
void SetPtBins(Int_t nPtBinLimits, Float_t *ptBinLimits)
void AddTrackCuts(const AliESDtrackCuts *cuts)
Definition: AliRDHFCuts.h:207
void SetMinPtCandidate(Double_t ptCand=-1.)
Definition: AliRDHFCuts.h:220
void SetTriggerClass(TString trclass0, TString trclass1="")
Definition: AliRDHFCuts.h:197
virtual void SetStandardCutsPbPb2010()
Int_t nptbins