Added LHC10h run list for flow analysis (Giacomo)
[u/mrichter/AliRoot.git] / PWG3 / vertexingHF / ConfigVertexingHF.C
1 AliAnalysisVertexingHF* ConfigVertexingHF() {
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->Set4ProngOff();
12   //vHF->SetDstarOff();
13   vHF->SetFindVertexForDstar(kFALSE);
14   //--- secondary vertex with KF?
15   //vHF->SetSecVtxWithKF();
16   //  vHF->SetCascadesOff();
17   vHF->SetFindVertexForCascades(kFALSE);
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(70);
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->SetMinNClustersITS(2);
37   esdTrackCutsSoftPi->SetEtaRange(-0.8,+0.8);
38   AliAnalysisFilter *trkFilterSoftPi = new AliAnalysisFilter("trackFilterSoftPi");
39   trkFilterSoftPi->AddCuts(esdTrackCutsSoftPi);
40   vHF->SetTrackFilterSoftPi(trkFilterSoftPi);
41   //--- set cuts for candidates selection
42   AliRDHFCutsD0toKpi *cutsD0toKpi = new AliRDHFCutsD0toKpi("CutsD0toKpi");
43   cutsD0toKpi->SetMaxVtxZ(1.e6);
44   cutsD0toKpi->SetTriggerClass("");
45   Float_t cutsArrayD0toKpi[11]={0.3,999999.,1.1,0.,0.,999999.,999999.,999999.,0.,-1,0.};
46   cutsD0toKpi->SetCuts(11,cutsArrayD0toKpi);
47   cutsD0toKpi->AddTrackCuts(esdTrackCuts);
48   vHF->SetCutsD0toKpi(cutsD0toKpi);
49   AliRDHFCutsJpsitoee *cutsJpsitoee = new AliRDHFCutsJpsitoee("CutsJpsitoee");
50   Float_t cutsArrayJpsitoee[9]={0.350,100000.,1.1,0.,0.,100000.,100000.,100000000.,-1.1};
51   cutsJpsitoee->SetCuts(9,cutsArrayJpsitoee);
52   cutsJpsitoee->AddTrackCuts(esdTrackCuts);
53   vHF->SetCutsJpsitoee(cutsJpsitoee);
54   AliRDHFCutsDplustoKpipi *cutsDplustoKpipi = new AliRDHFCutsDplustoKpipi("CutsDplustoKpipi");
55   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.};
56   cutsDplustoKpipi->SetCuts(14,cutsArrayDplustoKpipi);
57   cutsDplustoKpipi->AddTrackCuts(esdTrackCuts);
58   vHF->SetCutsDplustoKpipi(cutsDplustoKpipi);
59   AliRDHFCutsDstoKKpi *cutsDstoKKpi = new AliRDHFCutsDstoKKpi("CutsDstoKKpi");
60   Float_t cutsArrayDstoKKpi[16]={0.35,0.3,0.3,0.,0.,0.005,0.06,0.,0.,0.7,0.,1000.,0.1,0.1,-1.,1.};
61   cutsDstoKKpi->SetCuts(16,cutsArrayDstoKKpi);
62   cutsDstoKKpi->AddTrackCuts(esdTrackCuts);
63   vHF->SetCutsDstoKKpi(cutsDstoKKpi);
64   AliRDHFCutsLctopKpi *cutsLctopKpi = new AliRDHFCutsLctopKpi("CutsLctopKpi");
65   //Float_t cutsArrayLctopKpi[12]={0.2,0.4,0.4,0.,0.,0.01,0.06,0.02,0.,0.85,0.,10000000000.};
66   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};
67   cutsLctopKpi->SetCuts(13,cutsArrayLctopKpi);
68   cutsLctopKpi->AddTrackCuts(esdTrackCuts);
69   vHF->SetCutsLctopKpi(cutsLctopKpi);
70   AliRDHFCutsD0toKpipipi *cutsD0toKpipipi = new AliRDHFCutsD0toKpipipi("CutsD0toKpipipi");
71   Float_t cutsArrayD0toKpipipi[9]={0.2,0.04,0.00,0.01,0.02,0.8,0.,0.1,0.};
72   cutsD0toKpipipi->SetCuts(9,cutsArrayD0toKpipipi);
73   cutsD0toKpipipi->AddTrackCuts(esdTrackCuts);
74   vHF->SetCutsD0toKpipipi(cutsD0toKpipipi);
75   AliRDHFCutsDStartoKpipi *cutsDStartoKpipi = new AliRDHFCutsDStartoKpipi("CutsDStartoKpipi");
76   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
77   cutsDStartoKpipi->SetCuts(16,cutsArrayDStartoKpipi);
78   cutsDStartoKpipi->AddTrackCuts(esdTrackCuts);
79   cutsDStartoKpipi->AddTrackCutsSoftPi(esdTrackCutsSoftPi);
80   vHF->SetCutsDStartoKpipi(cutsDStartoKpipi);
81   AliRDHFCutsLctoV0 *cutsLctoV0 = new AliRDHFCutsLctoV0("CutsLctoV0");
82   Float_t cutsArrayLctoV0[9]={4.0,4.0,2.0,2.0,0.0,0.0,0.0,1000.,1000.};
83   cutsLctoV0->SetCuts(9,cutsArrayLctoV0);
84   cutsLctoV0->AddTrackCuts(esdTrackCuts);
85   vHF->SetCutsLctoV0(cutsLctoV0);
86   // 
87   //--- set this if you want to reconstruct primary vertex candidate by
88   //    candidate using other tracks in the event (for pp, broad 
89   //    interaction region)
90   //vHF->SetRecoPrimVtxSkippingTrks();
91   //--- OR set this if you want to remove the candidate daughters from 
92   //    the primary vertex, without recostructing it from scratch
93   //vHF->SetRmTrksFromPrimVtx();
94
95   //--- check the settings
96   vHF->PrintStatus();
97   //--- verbose
98   //  AliLog::SetClassDebugLevel("AliAnalysisVertexingHF",2);
99
100  
101   return vHF;
102 }
103
104