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