AliPhysics  64f4410 (64f4410)
ConfigVertexingHF_pp_LambdaC.C
Go to the documentation of this file.
2 
3  printf("Call to AliAnalysisVertexingHF parameters setting :\n");
4  vHF = new AliAnalysisVertexingHF();
5 
6  //--- switch-off candidates finding (default: all on)
7  //vHF->SetD0toKpiOff();
8  //vHF->SetJPSItoEleOff();
9  //vHF->Set3ProngOff();
10  vHF->SetLikeSignOn(); // like-sign pairs and triplets
11  vHF->SetLikeSign3prongOff();
12  //vHF->Set4ProngOff();
13  //vHF->SetDstarOff();
14  vHF->SetFindVertexForDstar(kFALSE);
15  //--- secondary vertex with KF?
16  //vHF->SetSecVtxWithKF();
17  //vHF->SetCascadesOff();
18  vHF->SetFindVertexForCascades(kFALSE);
19  vHF->SetV0TypeForCascadeVertex(AliRDHFCuts::kAllV0s);
20 
21  //--- set cuts for single-track selection
22  // displaced tracks
23  AliESDtrackCuts *esdTrackCuts = new AliESDtrackCuts("AliESDtrackCuts","default");
24  esdTrackCuts->SetRequireTPCRefit(kTRUE);
25  esdTrackCuts->SetMinNClustersTPC(50);
26  esdTrackCuts->SetRequireITSRefit(kTRUE);
27  //esdTrackCuts->SetMinNClustersITS(4);
28  esdTrackCuts->SetClusterRequirementITS(AliESDtrackCuts::kSPD,
29  AliESDtrackCuts::kAny);
30  esdTrackCuts->SetMinDCAToVertexXY(0.);
31  esdTrackCuts->SetPtRange(0.3,1.e10);
32  esdTrackCuts->SetEtaRange(-0.9,+0.9);
33  AliAnalysisFilter *trkFilter = new AliAnalysisFilter("trackFilter");
34  trkFilter->AddCuts(esdTrackCuts);
35  vHF->SetTrackFilter(trkFilter);
36  // D* soft pion tracks
37  AliESDtrackCuts *esdTrackCutsSoftPi = new AliESDtrackCuts("AliESDtrackCuts","default");
38  esdTrackCutsSoftPi->SetRequireITSRefit(kTRUE);
39  esdTrackCutsSoftPi->SetMinNClustersITS(2);
40  esdTrackCutsSoftPi->SetEtaRange(-0.9,+0.9);
41  AliAnalysisFilter *trkFilterSoftPi = new AliAnalysisFilter("trackFilterSoftPi");
42  trkFilterSoftPi->AddCuts(esdTrackCutsSoftPi);
43  vHF->SetTrackFilterSoftPi(trkFilterSoftPi);
44  //--- set cuts for candidates selection
45  AliRDHFCutsD0toKpi *cutsD0toKpi = new AliRDHFCutsD0toKpi("CutsD0toKpi");
46  cutsD0toKpi->SetUsePhysicsSelection(kFALSE);
47  cutsD0toKpi->SetMaxVtxZ(1.e6);
48  cutsD0toKpi->SetTriggerClass("");
49  Float_t cutsArrayD0toKpi[11]={0.3,999999.,1.1,0.,0.,999999.,999999.,999999.,0.,-1,0.};
50  cutsD0toKpi->SetCuts(11,cutsArrayD0toKpi);
51  cutsD0toKpi->AddTrackCuts(esdTrackCuts);
52  vHF->SetCutsD0toKpi(cutsD0toKpi);
53  AliRDHFCutsJpsitoee *cutsJpsitoee = new AliRDHFCutsJpsitoee("CutsJpsitoee");
54  Float_t cutsArrayJpsitoee[9]={0.350,100000.,1.1,0.,0.,100000.,100000.,100000000.,-1.1};
55  cutsJpsitoee->SetCuts(9,cutsArrayJpsitoee);
56  cutsJpsitoee->AddTrackCuts(esdTrackCuts);
57  vHF->SetCutsJpsitoee(cutsJpsitoee);
58  AliRDHFCutsDplustoKpipi *cutsDplustoKpipi = new AliRDHFCutsDplustoKpipi("CutsDplustoKpipi");
59  Float_t cutsArrayDplustoKpipi[14]={0.2,0.3,0.3,0.,0.,0.01,0.06,0.02,0.,0.7,0.,10000000000.,0.,-1.};
60  cutsDplustoKpipi->SetCuts(14,cutsArrayDplustoKpipi);
61  cutsDplustoKpipi->AddTrackCuts(esdTrackCuts);
62  vHF->SetCutsDplustoKpipi(cutsDplustoKpipi);
63  AliRDHFCutsDstoKKpi *cutsDstoKKpi = new AliRDHFCutsDstoKKpi("CutsDstoKKpi");
64  Float_t cutsArrayDstoKKpi[20]={0.35,0.3,0.3,0.,0.,0.005,0.06,0.,0.,0.7,0.,1000.,0.1,0.1,-1.,1.,0.,0.,0.,-1.};
65  cutsDstoKKpi->SetCuts(20,cutsArrayDstoKKpi);
66  cutsDstoKKpi->AddTrackCuts(esdTrackCuts);
67  vHF->SetCutsDstoKKpi(cutsDstoKKpi);
68  AliRDHFCutsLctopKpi *cutsLctopKpi = new AliRDHFCutsLctopKpi("CutsLctopKpi");
69  //Float_t cutsArrayLctopKpi[12]={0.2,0.4,0.4,0.,0.,0.01,0.06,0.02,0.,0.85,0.,10000000000.};
70  Float_t cutsArrayLctopKpi[13]={0.18,0.3,0.3,0.,0.,0.,0.06,0.,0.,-1.,0.,0.05,0.3};
71  cutsLctopKpi->SetCuts(13,cutsArrayLctopKpi);
72  cutsLctopKpi->AddTrackCuts(esdTrackCuts);
73  vHF->SetCutsLctopKpi(cutsLctopKpi);
74  AliRDHFCutsD0toKpipipi *cutsD0toKpipipi = new AliRDHFCutsD0toKpipipi("CutsD0toKpipipi");
75  Float_t cutsArrayD0toKpipipi[9]={0.2,0.04,0.00,0.01,0.02,0.8,0.,0.1,0.};
76  cutsD0toKpipipi->SetCuts(9,cutsArrayD0toKpipipi);
77  cutsD0toKpipipi->AddTrackCuts(esdTrackCuts);
78  vHF->SetCutsD0toKpipipi(cutsD0toKpipipi);
79  AliRDHFCutsDStartoKpipi *cutsDStartoKpipi = new AliRDHFCutsDStartoKpipi("CutsDStartoKpipi");
80  Float_t cutsArrayDStartoKpipi[16]={0.3,999999.,1.1,0.,0.,999999.,999999.,999999.,0.,0.3, 0.1, 0.05, 100000000000.0, 0.5,-1.,0.}; // first 9 for D0 from D*, next 5 for D*, last 2 for D0 again
81  cutsDStartoKpipi->SetCuts(16,cutsArrayDStartoKpipi);
82  cutsDStartoKpipi->AddTrackCuts(esdTrackCuts);
83  cutsDStartoKpipi->AddTrackCutsSoftPi(esdTrackCutsSoftPi);
84  vHF->SetCutsDStartoKpipi(cutsDStartoKpipi);
85  AliRDHFCutsLctoV0 *cutsLctoV0 = new AliRDHFCutsLctoV0("CutsLctoV0");
86  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};
87  cutsLctoV0->SetCuts(21,cutsArrayLctoV0);
88  cutsLctoV0->AddTrackCuts(esdTrackCuts);
89  AliESDtrackCuts *esdV0daughterTrackCuts = new AliESDtrackCuts("AliESDtrackCutsForV0D","default cuts for V0 daughters");
90  esdV0daughterTrackCuts->SetRequireTPCRefit(kTRUE);
91  esdV0daughterTrackCuts->SetMinNClustersTPC(30);
92  esdV0daughterTrackCuts->SetRequireITSRefit(kFALSE);
93  esdV0daughterTrackCuts->SetMinDCAToVertexXY(0.);
94  esdV0daughterTrackCuts->SetPtRange(0.05,1.e10);
95  esdV0daughterTrackCuts->SetEtaRange(-1.1,+1.1);
96  esdV0daughterTrackCuts->SetAcceptKinkDaughters(kTRUE);
97  esdV0daughterTrackCuts->SetRequireSigmaToVertex(kFALSE);
98  cutsLctoV0->AddTrackCutsV0daughters(esdV0daughterTrackCuts);
99  vHF->SetCutsLctoV0(cutsLctoV0);
100  //
101  //--- set this if you want to reconstruct primary vertex candidate by
102  // candidate using other tracks in the event (for pp, broad
103  // interaction region)
104  //vHF->SetRecoPrimVtxSkippingTrks();
105  //--- OR set this if you want to remove the candidate daughters from
106  // the primary vertex, without recostructing it from scratch
107  //vHF->SetRmTrksFromPrimVtx();
108 
109  //--- check the settings
110  vHF->PrintStatus();
111  //--- verbose
112  // AliLog::SetClassDebugLevel("AliAnalysisVertexingHF",2);
113 
114 
115  return vHF;
116 }
117 
118 
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.
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)
void AddTrackCuts(const AliESDtrackCuts *cuts)
Definition: AliRDHFCuts.h:207
void SetTriggerClass(TString trclass0, TString trclass1="")
Definition: AliRDHFCuts.h:197
AliAnalysisVertexingHF * ConfigVertexingHF()