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