AliPhysics  63e47e1 (63e47e1)
ConfigVertexingHF_Pb_AllCent_NoLS_PIDLc.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::kAllV0s);
23 
24 
25  //set PID
26  vHF->SetUseKaonPIDfor3Prong(kFALSE);
27  vHF->SetUseProtonAndPionPIDforLambdaC();
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% mot 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|>75 micron for pt<2GeV, no cut above 2
68  esdTrackCuts->SetMinDCAToVertexXYPtDep("0.0050*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% mot 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|>75 micron for pt<2GeV, no cut above 2
86  esdTrackCuts->SetMinDCAToVertexXYPtDep("0.0075*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(3);
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  //--- set cuts for candidates selection
107  Int_t nptbins=2; Float_t ptlimits[2]={0.,1000000.};
108  AliRDHFCutsD0toKpi *cutsD0toKpi = new AliRDHFCutsD0toKpi("CutsD0toKpi");
109  cutsD0toKpi->SetStandardCutsPbPb2010();
110  cutsD0toKpi->SetMinPtCandidate(0.);
111  cutsD0toKpi->SetUsePID(kFALSE);
112  cutsD0toKpi->SetUseSpecialCuts(kFALSE);
113  cutsD0toKpi->SetUsePhysicsSelection(kFALSE);
114  cutsD0toKpi->SetMaxCentrality(80.);
115  cutsD0toKpi->SetMaxVtxZ(1.e6);
116  cutsD0toKpi->SetTriggerClass("");
117  Float_t cutsArrayD0toKpi[11]={0.4,999999.,1.1,0.,0.,999999.,999999.,0.,0.5,-1,0.};
118  cutsD0toKpi->SetPtBins(nptbins,ptlimits);
119  cutsD0toKpi->SetCuts(11,cutsArrayD0toKpi);
120  cutsD0toKpi->AddTrackCuts(esdTrackCuts);
121  vHF->SetCutsD0toKpi(cutsD0toKpi);
122  AliRDHFCutsJpsitoee *cutsJpsitoee = new AliRDHFCutsJpsitoee("CutsJpsitoee");
123  Float_t cutsArrayJpsitoee[9]={0.350,100000.,1.1,0.,0.,100000.,100000.,100000000.,-1.1};
124  cutsJpsitoee->SetCuts(9,cutsArrayJpsitoee);
125  cutsJpsitoee->AddTrackCuts(esdTrackCuts);
126  vHF->SetCutsJpsitoee(cutsJpsitoee);
127  AliRDHFCutsDplustoKpipi *cutsDplustoKpipi = new AliRDHFCutsDplustoKpipi("CutsDplustoKpipi");
128  cutsDplustoKpipi->SetStandardCutsPbPb2010();
129  cutsDplustoKpipi->SetUsePID(kFALSE);
130  Float_t cutsArrayDplustoKpipi[14]={0.25,0.3,0.3,0.,0.,0.01,0.05,0.05,0.,0.88,0.,10000000000.,0.,-1.};
131  cutsDplustoKpipi->SetPtBins(nptbins,ptlimits);
132  cutsDplustoKpipi->SetCuts(14,cutsArrayDplustoKpipi);
133  cutsDplustoKpipi->AddTrackCuts(esdTrackCuts);
134  cutsDplustoKpipi->SetMinPtCandidate(2.);
135  vHF->SetCutsDplustoKpipi(cutsDplustoKpipi);
136  AliRDHFCutsDstoKKpi *cutsDstoKKpi = new AliRDHFCutsDstoKKpi("CutsDstoKKpi");
137  cutsDstoKKpi->SetStandardCutsPbPb2010();
138  cutsDstoKKpi->SetUsePID(kFALSE);
139  Float_t cutsArrayDstoKKpi[20]={0.35,0.3,0.3,0.,0.,0.005,0.06,0.,0.,0.9,0.,100000.,0.035,0.0001,-1.,1.,0.,0.,0.,-1.};
140  cutsDstoKKpi->SetPtBins(nptbins,ptlimits);
141  cutsDstoKKpi->SetCuts(20,cutsArrayDstoKKpi);
142  cutsDstoKKpi->AddTrackCuts(esdTrackCuts);
143  cutsDstoKKpi->SetMinPtCandidate(2.);
144  vHF->SetCutsDstoKKpi(cutsDstoKKpi);
145  AliRDHFCutsLctopKpi *cutsLctopKpi = new AliRDHFCutsLctopKpi("CutsLctopKpi");
146  cutsLctopKpi->SetStandardCutsPbPb2010();
147  cutsLctopKpi->SetUsePID(kFALSE);
148  Float_t cutsArrayLctopKpi[13]={0.13,0.5,0.5,0.,0.,0.,0.06,0.,0.,0.,0.,0.05,0.5};
149  cutsLctopKpi->SetPtBins(nptbins,ptlimits);
150  cutsLctopKpi->SetCuts(13,cutsArrayLctopKpi);
151  cutsLctopKpi->AddTrackCuts(esdTrackCuts);
152  cutsLctopKpi->SetMinPtCandidate(4.);
153  vHF->SetCutsLctopKpi(cutsLctopKpi);
154  AliRDHFCutsD0toKpipipi *cutsD0toKpipipi = new AliRDHFCutsD0toKpipipi("CutsD0toKpipipi");
155  Float_t cutsArrayD0toKpipipi[9]={0.2,0.04,0.00,0.01,0.02,0.8,0.,0.1,0.};
156  cutsD0toKpipipi->SetCuts(9,cutsArrayD0toKpipipi);
157  cutsD0toKpipipi->AddTrackCuts(esdTrackCuts);
158  vHF->SetCutsD0toKpipipi(cutsD0toKpipipi);
159 
160 
161  // D* pt dependent cuts ------------------------------------------
162 
163  AliRDHFCutsDStartoKpipi *cutsDStartoKpipi = new AliRDHFCutsDStartoKpipi("CutsDStartoKpipi");
164  cutsDStartoKpipi->SetUsePID(kFALSE);
165  const Int_t nvars=16;
166  const Int_t nptbins=2;
167 
168  Float_t* ptbins;
169  ptbins=new Float_t[nptbins+1];
170  ptbins[0]=0.;
171  ptbins[1]=5.;
172  ptbins[2]=999.;
173 
174  cutsDStartoKpipi->SetPtBins(nptbins+1,ptbins);
175 
176  Float_t** rdcutsvalmine;
177  rdcutsvalmine=new Float_t*[nvars];
178  for(Int_t iv=0;iv<nvars;iv++){
179  rdcutsvalmine[iv]=new Float_t[nptbins];
180  }
181  //0-5
182  rdcutsvalmine[0][0]=0.10; //D0 inv mass window
183  rdcutsvalmine[1][0]=0.06; // dca
184  rdcutsvalmine[2][0]=0.9; // thetastar
185  rdcutsvalmine[3][0]=0.5; // pt Pion
186  rdcutsvalmine[4][0]=0.5; // Pt Kaon
187  rdcutsvalmine[5][0]=0.1; // d0K
188  rdcutsvalmine[6][0]=0.1; // d0Pi
189  rdcutsvalmine[7][0]=0.0001; // d0xd0
190  rdcutsvalmine[8][0]=0.9; // costhetapoint
191  rdcutsvalmine[9][0]=0.15; // Dstar inv mass window
192  rdcutsvalmine[10][0]=0.03; // half width of (M_Kpipi-M_D0)
193  rdcutsvalmine[11][0]=0.1; // Pt min of Pi soft
194  rdcutsvalmine[12][0]=100.; // Pt max of pi soft
195  rdcutsvalmine[13][0]=9999.; // theta
196  rdcutsvalmine[14][0]=0.95; // |cosThetaPointXY|
197  rdcutsvalmine[15][0]=2.; // NormDecayLenghtXY
198  //5-999
199  rdcutsvalmine[0][1]=0.10; //D0 inv mass window
200  rdcutsvalmine[1][1]=0.06; // dca
201  rdcutsvalmine[2][1]=0.9; // thetastar
202  rdcutsvalmine[3][1]=0.5; // pt Pion
203  rdcutsvalmine[4][1]=0.5; // Pt Kaon
204  rdcutsvalmine[5][1]=0.1; // d0K
205  rdcutsvalmine[6][1]=0.1; // d0Pi
206  rdcutsvalmine[7][1]=0.0001; // d0xd0
207  rdcutsvalmine[8][1]=0.7; // costhetapoint
208  rdcutsvalmine[9][1]=0.15; // Dstar inv mass window
209  rdcutsvalmine[10][1]=0.03; // half width of (M_Kpipi-M_D0)
210  rdcutsvalmine[11][1]=0.1; // Pt min of Pi soft
211  rdcutsvalmine[12][1]=100.; // Pt max of pi soft
212  rdcutsvalmine[13][1]=9999.; // theta
213  rdcutsvalmine[14][1]=0.8; // |cosThetaPointXY|
214  rdcutsvalmine[15][1]=0.; // NormDecayLenghtXY
215 
216  cutsDStartoKpipi->SetCuts(nvars,nptbins,rdcutsvalmine);
217 
218  cutsDStartoKpipi->AddTrackCuts(esdTrackCuts);
219  cutsDStartoKpipi->AddTrackCutsSoftPi(esdTrackCutsSoftPi);
220  cutsDStartoKpipi->SetMinPtCandidate(1.);
221  vHF->SetCutsDStartoKpipi(cutsDStartoKpipi);
222 
223  //--------------------------------------------------------
224 
225  AliRDHFCutsLctoV0 *cutsLctoV0 = new AliRDHFCutsLctoV0("CutsLctoV0");
226  Float_t cutsArrayLctoV0[21]={1.0,1.0,0.05,0.05,0.0,0.0,0.0,1000.,1000.,0.99,3.,1000.,0.,0.,0.,0.,9999.,-9999.,-9999.,-9999.,0.0};
227  cutsLctoV0->SetCuts(21,cutsArrayLctoV0);
228  cutsLctoV0->AddTrackCuts(esdTrackCuts);
229 
230  AliESDtrackCuts *esdV0daughterTrackCuts = new AliESDtrackCuts("AliESDtrackCutsForV0D","default cuts for V0 daughters");
231  esdV0daughterTrackCuts->SetRequireTPCRefit(kTRUE);
232  esdV0daughterTrackCuts->SetMinNClustersTPC(30);
233  esdV0daughterTrackCuts->SetRequireITSRefit(kFALSE);
234  esdV0daughterTrackCuts->SetMinDCAToVertexXY(0.);
235  esdV0daughterTrackCuts->SetPtRange(0.05,1.e10);
236  esdV0daughterTrackCuts->SetEtaRange(-1.1,+1.1);
237  esdV0daughterTrackCuts->SetAcceptKinkDaughters(kTRUE);
238  esdV0daughterTrackCuts->SetRequireSigmaToVertex(kFALSE);
239  cutsLctoV0->AddTrackCutsV0daughters(esdV0daughterTrackCuts);
240  vHF->SetCutsLctoV0(cutsLctoV0);
241  //
242  //--- set this if you want to reconstruct primary vertex candidate by
243  // candidate using other tracks in the event (for pp, broad
244  // interaction region)
245  //vHF->SetRecoPrimVtxSkippingTrks();
246  //--- OR set this if you want to remove the candidate daughters from
247  // the primary vertex, without recostructing it from scratch
248  //vHF->SetRmTrksFromPrimVtx();
249 
250  //--- check the settings
251  vHF->PrintStatus();
252  //--- verbose
253  // AliLog::SetClassDebugLevel("AliAnalysisVertexingHF",2);
254 
255 
256  return vHF;
257 }
258 
259 
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
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 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)
AliAnalysisVertexingHF * ConfigVertexingHF()
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