AliPhysics  vAN-20150924 (e816f45)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
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->SetMinNClustersITS(2);
39  esdTrackCutsSoftPi->SetEtaRange(-0.9,+0.9);
40  AliAnalysisFilter *trkFilterSoftPi = new AliAnalysisFilter("trackFilterSoftPi");
41  trkFilterSoftPi->AddCuts(esdTrackCutsSoftPi);
42  vHF->SetTrackFilterSoftPi(trkFilterSoftPi);
43  //--- set cuts for candidates selection
44  AliRDHFCutsD0toKpi *cutsD0toKpi = new AliRDHFCutsD0toKpi("CutsD0toKpi");
45  cutsD0toKpi->SetUsePhysicsSelection(kFALSE);
46  cutsD0toKpi->SetMaxVtxZ(1.e6);
47  cutsD0toKpi->SetTriggerClass("");
48  Float_t cutsArrayD0toKpi[11]={0.3,999999.,1.1,0.,0.,999999.,999999.,999999.,0.,-1,0.};
49  cutsD0toKpi->SetCuts(11,cutsArrayD0toKpi);
50  cutsD0toKpi->AddTrackCuts(esdTrackCuts);
51  vHF->SetCutsD0toKpi(cutsD0toKpi);
52  AliRDHFCutsJpsitoee *cutsJpsitoee = new AliRDHFCutsJpsitoee("CutsJpsitoee");
53  Float_t cutsArrayJpsitoee[9]={0.350,100000.,1.1,0.,0.,100000.,100000.,100000000.,-1.1};
54  cutsJpsitoee->SetCuts(9,cutsArrayJpsitoee);
55  cutsJpsitoee->AddTrackCuts(esdTrackCuts);
56  vHF->SetCutsJpsitoee(cutsJpsitoee);
57  AliRDHFCutsDplustoKpipi *cutsDplustoKpipi = new AliRDHFCutsDplustoKpipi("CutsDplustoKpipi");
58  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.};
59  cutsDplustoKpipi->SetCuts(14,cutsArrayDplustoKpipi);
60  cutsDplustoKpipi->AddTrackCuts(esdTrackCuts);
61  vHF->SetCutsDplustoKpipi(cutsDplustoKpipi);
62  AliRDHFCutsDstoKKpi *cutsDstoKKpi = new AliRDHFCutsDstoKKpi("CutsDstoKKpi");
63  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.};
64  cutsDstoKKpi->SetCuts(20,cutsArrayDstoKKpi);
65  cutsDstoKKpi->AddTrackCuts(esdTrackCuts);
66  vHF->SetCutsDstoKKpi(cutsDstoKKpi);
67  AliRDHFCutsLctopKpi *cutsLctopKpi = new AliRDHFCutsLctopKpi("CutsLctopKpi");
68  //Float_t cutsArrayLctopKpi[12]={0.2,0.4,0.4,0.,0.,0.01,0.06,0.02,0.,0.85,0.,10000000000.};
69  Float_t cutsArrayLctopKpi[13]={0.18,0.3,0.3,0.,0.,0.,0.06,0.,0.,-1.,0.,0.05,0.3};
70  cutsLctopKpi->SetCuts(13,cutsArrayLctopKpi);
71  cutsLctopKpi->AddTrackCuts(esdTrackCuts);
72  vHF->SetCutsLctopKpi(cutsLctopKpi);
73  AliRDHFCutsD0toKpipipi *cutsD0toKpipipi = new AliRDHFCutsD0toKpipipi("CutsD0toKpipipi");
74  Float_t cutsArrayD0toKpipipi[9]={0.2,0.04,0.00,0.01,0.02,0.8,0.,0.1,0.};
75  cutsD0toKpipipi->SetCuts(9,cutsArrayD0toKpipipi);
76  cutsD0toKpipipi->AddTrackCuts(esdTrackCuts);
77  vHF->SetCutsD0toKpipipi(cutsD0toKpipipi);
78  AliRDHFCutsDStartoKpipi *cutsDStartoKpipi = new AliRDHFCutsDStartoKpipi("CutsDStartoKpipi");
79  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
80  cutsDStartoKpipi->SetCuts(16,cutsArrayDStartoKpipi);
81  cutsDStartoKpipi->AddTrackCuts(esdTrackCuts);
82  cutsDStartoKpipi->AddTrackCutsSoftPi(esdTrackCutsSoftPi);
83  vHF->SetCutsDStartoKpipi(cutsDStartoKpipi);
84  AliRDHFCutsLctoV0 *cutsLctoV0 = new AliRDHFCutsLctoV0("CutsLctoV0");
85  Float_t cutsArrayLctoV0[17]={1.0,1.0,0.05,0.05,0.0,0.0,0.0,1000.,1000.,0.99,3.,1000.,0.,0.,0.,0.,0.0};
86  cutsLctoV0->SetCuts(17,cutsArrayLctoV0);
87  cutsLctoV0->AddTrackCuts(esdTrackCuts);
88  AliESDtrackCuts *esdV0daughterTrackCuts = new AliESDtrackCuts("AliESDtrackCutsForV0D","default cuts for V0 daughters");
89  esdV0daughterTrackCuts->SetRequireTPCRefit(kTRUE);
90  esdV0daughterTrackCuts->SetMinNClustersTPC(30);
91  esdV0daughterTrackCuts->SetRequireITSRefit(kFALSE);
92  esdV0daughterTrackCuts->SetMinDCAToVertexXY(0.);
93  esdV0daughterTrackCuts->SetPtRange(0.05,1.e10);
94  esdV0daughterTrackCuts->SetEtaRange(-1.1,+1.1);
95  esdV0daughterTrackCuts->SetAcceptKinkDaughters(kTRUE);
96  esdV0daughterTrackCuts->SetRequireSigmaToVertex(kFALSE);
97  cutsLctoV0->AddTrackCutsV0daughters(esdV0daughterTrackCuts);
98  vHF->SetCutsLctoV0(cutsLctoV0);
99  //
100  //--- set this if you want to reconstruct primary vertex candidate by
101  // candidate using other tracks in the event (for pp, broad
102  // interaction region)
103  //vHF->SetRecoPrimVtxSkippingTrks();
104  //--- OR set this if you want to remove the candidate daughters from
105  // the primary vertex, without recostructing it from scratch
106  //vHF->SetRmTrksFromPrimVtx();
107 
108  //--- check the settings
109  vHF->PrintStatus();
110  //--- verbose
111  // AliLog::SetClassDebugLevel("AliAnalysisVertexingHF",2);
112 
113 
114  return vHF;
115 }
116 
117 
void SetMaxVtxZ(Float_t z=1e6)
Definition: AliRDHFCuts.h:60
void SetUsePhysicsSelection(Bool_t use=kTRUE)
Definition: AliRDHFCuts.h:325
Class for cuts on AOD reconstructed D+->Kpipi.
void SetCuts(Int_t nVars, Int_t nPtBins, Float_t **cutsRD)
void AddTrackCutsV0daughters(AliESDtrackCuts *v0daug)
void AddTrackCutsSoftPi(const AliESDtrackCuts *cuts)
void AddTrackCuts(const AliESDtrackCuts *cuts)
Definition: AliRDHFCuts.h:202
void SetTriggerClass(TString trclass0, TString trclass1="")
Definition: AliRDHFCuts.h:192
AliAnalysisVertexingHF * ConfigVertexingHF()