]>
Commit | Line | Data |
---|---|---|
c4cdf105 | 1 | #ifndef ALIANALYSISVERTEXINGHF_H |
2 | #define ALIANALYSISVERTEXINGHF_H | |
6a213b59 | 3 | /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | //------------------------------------------------------------------------- | |
7 | // Class AliAnalysisVertexingHF | |
8 | // Reconstruction of heavy-flavour decay candidates | |
9 | // | |
2ff20727 | 10 | // Origin: E.Bruna, G.E.Bruno, A.Dainese, F.Prino, R.Romita, X.M.Zhang |
a25935a9 | 11 | // Contact: andrea.dainese@pd.infn.it |
6a213b59 | 12 | //------------------------------------------------------------------------- |
13 | ||
14 | #include <TNamed.h> | |
6a213b59 | 15 | |
a9b75906 | 16 | class TList; |
c4cdf105 | 17 | class AliESDVertex; |
18 | class AliAODRecoDecayHF; | |
19 | class AliAODRecoDecayHF2Prong; | |
20 | class AliAODRecoDecayHF3Prong; | |
21 | class AliAODRecoDecayHF4Prong; | |
22 | class AliAODRecoCascadeHF; | |
23 | class AliAnalysisFilter; | |
f3014dc3 | 24 | class AliRDHFCutsD0toKpi; |
e3d40058 | 25 | class AliRDHFCutsJpsitoee; |
26 | class AliRDHFCutsDplustoKpipi; | |
27 | class AliRDHFCutsDstoKKpi; | |
28 | class AliRDHFCutsLctopKpi; | |
a07ad8e0 | 29 | class AliRDHFCutsLctoV0; |
e3d40058 | 30 | class AliRDHFCutsD0toKpipipi; |
da6fefc3 | 31 | class AliRDHFCutsDStartoKpipi; |
dcb444c9 | 32 | class AliESDtrack; |
33 | class AliVEvent; | |
34 | class AliAODVertex; | |
a07ad8e0 | 35 | class AliESDv0; |
36 | class AliAODv0; | |
dcb444c9 | 37 | |
6a213b59 | 38 | //----------------------------------------------------------------------------- |
39 | class AliAnalysisVertexingHF : public TNamed { | |
40 | public: | |
41 | // | |
42 | AliAnalysisVertexingHF(); | |
13977a79 | 43 | AliAnalysisVertexingHF(const AliAnalysisVertexingHF& source); |
44 | AliAnalysisVertexingHF& operator=(const AliAnalysisVertexingHF& source); | |
6a213b59 | 45 | virtual ~AliAnalysisVertexingHF(); |
46 | ||
dcb444c9 | 47 | void FindCandidates(AliVEvent *event, |
48 | TClonesArray *aodVerticesHFTClArr, | |
49 | TClonesArray *aodD0toKpiTClArr, | |
50 | TClonesArray *aodJPSItoEleTClArr, | |
51 | TClonesArray *aodCharm3ProngTClArr, | |
2ff20727 | 52 | TClonesArray *aodCharm4ProngTClArr, |
dc963de9 | 53 | TClonesArray *aodDstarTClArr, |
a07ad8e0 | 54 | TClonesArray *aodCascadesTClArr, |
423fb9ae | 55 | TClonesArray *aodLikeSign2ProngTClArr, |
56 | TClonesArray *aodLikeSign3ProngTClArr); | |
dcb444c9 | 57 | |
a9b75906 | 58 | TList* FillListOfCuts(); |
6a213b59 | 59 | void PrintStatus() const; |
b82f6d67 | 60 | void SetSecVtxWithKF() { fSecVtxWithKF=kTRUE; } |
6a213b59 | 61 | void SetD0toKpiOn() { fD0toKpi=kTRUE; } |
62 | void SetD0toKpiOff() { fD0toKpi=kFALSE; } | |
63 | void SetJPSItoEleOn() { fJPSItoEle=kTRUE; } | |
64 | void SetJPSItoEleOff() { fJPSItoEle=kFALSE; } | |
65 | void Set3ProngOn() { f3Prong=kTRUE; } | |
66 | void Set3ProngOff() { f3Prong=kFALSE; } | |
67 | void Set4ProngOn() { f4Prong=kTRUE; } | |
68 | void Set4ProngOff() { f4Prong=kFALSE; } | |
2ff20727 | 69 | void SetDstarOn() { fDstar=kTRUE; } |
70 | void SetDstarOff() { fDstar=kFALSE; } | |
a07ad8e0 | 71 | void SetCascadesOn() { fCascades=kTRUE; } |
72 | void SetCascadesOff() { fCascades=kFALSE; } | |
dc963de9 | 73 | void SetLikeSignOn() { fLikeSign=kTRUE; } |
74 | void SetLikeSignOff() { fLikeSign=kFALSE; } | |
a25935a9 | 75 | void SetMixEventOn() { fMixEvent=kTRUE; } |
76 | void SetMixEventOff() { fMixEvent=kFALSE; } | |
77 | void SetInputAOD() { fInputAOD=kTRUE; } | |
c4cdf105 | 78 | Bool_t GetD0toKpi() const { return fD0toKpi; } |
79 | Bool_t GetJPSItoEle() const { return fJPSItoEle; } | |
80 | Bool_t Get3Prong() const { return f3Prong; } | |
81 | Bool_t Get4Prong() const { return f4Prong; } | |
82 | Bool_t GetDstar() const { return fDstar; } | |
a07ad8e0 | 83 | Bool_t GetCascades() const { return fCascades; } |
c4cdf105 | 84 | Bool_t GetLikeSign() const { return fLikeSign; } |
85 | Bool_t GetMixEvent() const { return fMixEvent; } | |
86 | Bool_t GetInputAOD() const { return fInputAOD; } | |
87 | Bool_t GetRecoPrimVtxSkippingTrks() const {return fRecoPrimVtxSkippingTrks;} | |
88 | Bool_t GetRmTrksFromPrimVtx() const {return fRmTrksFromPrimVtx;} | |
eee95e18 | 89 | void SetFindVertexForDstar(Bool_t vtx=kTRUE) { fFindVertexForDstar=vtx; } |
a07ad8e0 | 90 | void SetFindVertexForCascades(Bool_t vtx=kTRUE) { fFindVertexForCascades=vtx; } |
6a213b59 | 91 | void SetRecoPrimVtxSkippingTrks() |
92 | { fRecoPrimVtxSkippingTrks=kTRUE; fRmTrksFromPrimVtx=kFALSE;} | |
a25935a9 | 93 | void UnsetRecoPrimVtxSkippingTrks() |
94 | { fRecoPrimVtxSkippingTrks=kFALSE; fRmTrksFromPrimVtx=kFALSE;} | |
6a213b59 | 95 | void SetRmTrksFromPrimVtx() |
96 | {fRmTrksFromPrimVtx=kTRUE; fRecoPrimVtxSkippingTrks=kFALSE; } | |
f8fa4595 | 97 | void SetTrackFilter(AliAnalysisFilter* trackF) { fTrackFilter = trackF; } |
2ff20727 | 98 | void SetTrackFilterSoftPi(AliAnalysisFilter* trackF) { fTrackFilterSoftPi = trackF; } |
dc963de9 | 99 | AliAnalysisFilter* GetTrackFilter() const { return fTrackFilter; } |
100 | AliAnalysisFilter* GetTrackFilterSoftPi() const { return fTrackFilterSoftPi; } | |
f3014dc3 | 101 | void SetCutsD0toKpi(AliRDHFCutsD0toKpi* cuts) { fCutsD0toKpi = cuts; } |
102 | AliRDHFCutsD0toKpi* GetCutsD0toKpi() const { return fCutsD0toKpi; } | |
e3d40058 | 103 | void SetCutsJpsitoee(AliRDHFCutsJpsitoee* cuts) { fCutsJpsitoee = cuts; } |
104 | AliRDHFCutsJpsitoee* GetCutsJpsitoee() const { return fCutsJpsitoee; } | |
105 | void SetCutsDplustoKpipi(AliRDHFCutsDplustoKpipi* cuts) { fCutsDplustoKpipi = cuts; } | |
106 | AliRDHFCutsDplustoKpipi* GetCutsDplustoKpipi() const { return fCutsDplustoKpipi; } | |
107 | void SetCutsDstoKKpi(AliRDHFCutsDstoKKpi* cuts) { fCutsDstoKKpi = cuts; } | |
108 | AliRDHFCutsDstoKKpi* GetCutsDstoKKpi() const { return fCutsDstoKKpi; } | |
109 | void SetCutsLctopKpi(AliRDHFCutsLctopKpi* cuts) { fCutsLctopKpi = cuts; } | |
110 | AliRDHFCutsLctopKpi* GetCutsLctopKpi() const { return fCutsLctopKpi; } | |
a07ad8e0 | 111 | void SetCutsLctoV0(AliRDHFCutsLctoV0* cuts) { fCutsLctoV0 = cuts; } |
112 | AliRDHFCutsLctoV0* GetCutsLctoV0() const { return fCutsLctoV0; } | |
e3d40058 | 113 | void SetCutsD0toKpipipi(AliRDHFCutsD0toKpipipi* cuts) { fCutsD0toKpipipi = cuts; } |
114 | AliRDHFCutsD0toKpipipi* GetCutsD0toKpipipi() const { return fCutsD0toKpipipi; } | |
da6fefc3 | 115 | void SetCutsDStartoKpipi(AliRDHFCutsDStartoKpipi* cuts) { fCutsDStartoKpipi = cuts; } |
116 | AliRDHFCutsDStartoKpipi* GetCutsDStartoKpipi() const { return fCutsDStartoKpipi; } | |
117 | ||
6a213b59 | 118 | void SetD0toKpiCuts(Double_t cut0=1000.,Double_t cut1=100000., |
119 | Double_t cut2=1.1,Double_t cut3=0.,Double_t cut4=0., | |
120 | Double_t cut5=100000.,Double_t cut6=100000., | |
121 | Double_t cut7=100000000.,Double_t cut8=-1.1); | |
122 | void SetD0toKpiCuts(const Double_t cuts[9]); | |
2ff20727 | 123 | void SetD0fromDstarCuts(Double_t cut0=1000.,Double_t cut1=100000., |
124 | Double_t cut2=1.1,Double_t cut3=0.,Double_t cut4=0., | |
125 | Double_t cut5=100000.,Double_t cut6=100000., | |
126 | Double_t cut7=100000000.,Double_t cut8=-1.1); | |
127 | void SetD0fromDstarCuts(const Double_t cuts[9]); | |
6a213b59 | 128 | void SetBtoJPSICuts(Double_t cut0=1000.,Double_t cut1=100000., |
129 | Double_t cut2=1.1,Double_t cut3=0.,Double_t cut4=0., | |
130 | Double_t cut5=100000.,Double_t cut6=100000., | |
131 | Double_t cut7=100000000.,Double_t cut8=-1.1); | |
132 | void SetBtoJPSICuts(const Double_t cuts[9]); | |
133 | void SetDplusCuts(Double_t cut0=1000.,Double_t cut1=0., | |
134 | Double_t cut2=0.,Double_t cut3=0.,Double_t cut4=0., | |
135 | Double_t cut5=0.,Double_t cut6=10000000000., | |
136 | Double_t cut7=0.,Double_t cut8=0., | |
137 | Double_t cut9=-1.1,Double_t cut10=0., | |
81679460 | 138 | Double_t cut11=10000000000.); |
6a213b59 | 139 | void SetDplusCuts(const Double_t cuts[12]); |
6ea608bf | 140 | void SetDsCuts(Double_t cut0=1000.,Double_t cut1=0., |
f7c170b4 | 141 | Double_t cut2=0.,Double_t cut3=0.,Double_t cut4=0., |
142 | Double_t cut5=0.,Double_t cut6=10000000000., | |
143 | Double_t cut7=0.,Double_t cut8=0., | |
144 | Double_t cut9=-1.1,Double_t cut10=0., | |
145 | Double_t cut11=10000000000., Double_t cut12=1000., | |
146 | Double_t cut13=1000.); | |
147 | void SetDsCuts(const Double_t cuts[14]); | |
6ea608bf | 148 | void SetLcCuts(Double_t cut0=1000.,Double_t cut1=0., |
149 | Double_t cut2=0.,Double_t cut3=0.,Double_t cut4=0., | |
150 | Double_t cut5=0.,Double_t cut6=10000000000., | |
151 | Double_t cut7=0.,Double_t cut8=0., | |
152 | Double_t cut9=-1.1,Double_t cut10=0., | |
81679460 | 153 | Double_t cut11=10000000000.); |
6ea608bf | 154 | void SetLcCuts(const Double_t cuts[12]); |
a07ad8e0 | 155 | void SetLctoV0Cuts(Double_t cut0=1000.,Double_t cut1=1000., |
156 | Double_t cut2=1000., Double_t cut3=1000., | |
157 | Double_t cut4=0., Double_t cut5=0.,Double_t cut6=0., | |
158 | Double_t cut7=0.,Double_t cut8=0.); | |
159 | void SetLctoV0Cuts(const Double_t cuts[9]); | |
2ff20727 | 160 | void SetDstarCuts(Double_t cut0=1000., Double_t cut1=1000., |
161 | Double_t cut2=-1., Double_t cut3=1000., | |
162 | Double_t cut4=1.6); | |
163 | void SetDstarCuts(const Double_t cuts[5]); | |
721c0b8f | 164 | void SetD0to4ProngsCuts(Double_t cut0=1000.,Double_t cut1=100000., |
165 | Double_t cut2=0.,Double_t cut3=0.,Double_t cut4=0., | |
166 | Double_t cut5=-1.1,Double_t cut6=0., | |
167 | Double_t cut7=0.,Double_t cut8=0.); | |
168 | void SetD0to4ProngsCuts(const Double_t cuts[9]); | |
dc963de9 | 169 | const Double_t *GetD0toKpiCuts() const {return fD0toKpiCuts;} |
170 | const Double_t *GetD0fromDstarCuts() const {return fD0fromDstarCuts;} | |
171 | const Double_t *GetBtoJPSICuts() const {return fBtoJPSICuts;} | |
172 | const Double_t *GetDplusCuts() const {return fDplusCuts;} | |
173 | const Double_t *GetDsCuts() const {return fDsCuts;} | |
174 | const Double_t *GetLcCuts() const {return fLcCuts;} | |
a07ad8e0 | 175 | const Double_t *GetLctoV0Cuts() const {return fLctoV0Cuts;} |
dc963de9 | 176 | const Double_t *GetDstarCuts() const {return fDstarCuts;} |
721c0b8f | 177 | const Double_t *GetD0to4ProngsCuts() const {return fD0to4ProngsCuts;} |
6ea608bf | 178 | |
6a213b59 | 179 | // |
180 | private: | |
181 | // | |
2ff20727 | 182 | enum { kBitDispl = 0, kBitSoftPi = 1 }; |
183 | ||
dcb444c9 | 184 | Bool_t fInputAOD; // input from AOD (kTRUE) or ESD (kFALSE) |
c8ab4e4f | 185 | Int_t fAODMapSize; // size of fAODMap |
186 | Int_t *fAODMap; //[fAODMapSize] map between index and ID for AOD tracks | |
dcb444c9 | 187 | |
b82f6d67 | 188 | Double_t fBzkG; // z componenent of field in kG |
189 | ||
190 | Bool_t fSecVtxWithKF; // if kTRUE use KF vertexer, else AliVertexerTracks | |
191 | ||
6a213b59 | 192 | Bool_t fRecoPrimVtxSkippingTrks; // flag for primary vertex reco on the fly |
193 | // for each candidate, w/o its daughters | |
194 | Bool_t fRmTrksFromPrimVtx; // flag for fast removal of daughters from | |
195 | // the primary vertex | |
196 | ||
197 | AliESDVertex *fV1; // primary vertex | |
198 | ||
6a213b59 | 199 | // flag to enable candidates production |
2ff20727 | 200 | Bool_t fD0toKpi; // D0->Kpi |
201 | Bool_t fJPSItoEle; // Jpsi->ee | |
202 | Bool_t f3Prong; // D+,Ds,Lc | |
203 | Bool_t f4Prong; // D0->Kpipipi | |
204 | Bool_t fDstar; // D*->D0pi | |
a07ad8e0 | 205 | Bool_t fCascades; // cascades, Lc --> v0+track |
dc963de9 | 206 | Bool_t fLikeSign; // Like-sign pairs |
a25935a9 | 207 | Bool_t fMixEvent; // event mixing |
6a213b59 | 208 | |
209 | // single-track cuts | |
2ff20727 | 210 | AliAnalysisFilter *fTrackFilter; // Track Filter for displaced vertices |
211 | AliAnalysisFilter *fTrackFilterSoftPi; // Track Filter for D* soft pion | |
6a213b59 | 212 | // candidates cuts |
f3014dc3 | 213 | AliRDHFCutsD0toKpi *fCutsD0toKpi; // D0->Kpi cuts |
e3d40058 | 214 | AliRDHFCutsJpsitoee *fCutsJpsitoee; // J/psi->ee cuts |
215 | AliRDHFCutsDplustoKpipi *fCutsDplustoKpipi; // D+->Kpipi cuts | |
216 | AliRDHFCutsDstoKKpi *fCutsDstoKKpi; // Ds->KKpi cuts | |
217 | AliRDHFCutsLctopKpi *fCutsLctopKpi; // Lc->pKpi cuts | |
a07ad8e0 | 218 | AliRDHFCutsLctoV0 *fCutsLctoV0; // Lc --> v0 + bachelor cuts |
e3d40058 | 219 | AliRDHFCutsD0toKpipipi *fCutsD0toKpipipi; // D0->Kpipipi cuts |
da6fefc3 | 220 | AliRDHFCutsDStartoKpipi *fCutsDStartoKpipi; // Dstar->D0pi cuts |
f3014dc3 | 221 | |
6a213b59 | 222 | Double_t fD0toKpiCuts[9]; // cuts on D0->Kpi candidates |
223 | // (to be passed to AliAODRecoDecayHF2Prong::SelectD0()) | |
224 | // 0 = inv. mass half width [GeV] | |
225 | // 1 = dca [cm] | |
226 | // 2 = cosThetaStar | |
227 | // 3 = pTK [GeV/c] | |
228 | // 4 = pTPi [GeV/c] | |
229 | // 5 = d0K [cm] upper limit! | |
230 | // 6 = d0Pi [cm] upper limit! | |
231 | // 7 = d0d0 [cm^2] | |
232 | // 8 = cosThetaPoint | |
2ff20727 | 233 | Double_t fD0fromDstarCuts[9]; // cuts on D0->Kpi candidates from D* |
234 | // (to be passed to AliAODRecoCascadeHF::SelectDstar()) | |
235 | // 0 = inv. mass half width [GeV] | |
236 | // 1 = dca [cm] | |
237 | // 2 = cosThetaStar | |
238 | // 3 = pTK [GeV/c] | |
239 | // 4 = pTPi [GeV/c] | |
240 | // 5 = d0K [cm] upper limit! | |
241 | // 6 = d0Pi [cm] upper limit! | |
242 | // 7 = d0d0 [cm^2] | |
243 | // 8 = cosThetaPoint | |
6a213b59 | 244 | Double_t fBtoJPSICuts[9]; // cuts on JPSI candidates |
245 | // (to be passed to AliAODRecoDecayHF2Prong::SelectBtoJPSI()) | |
246 | // 0 = inv. mass half width [GeV] | |
247 | // 1 = dca [cm] | |
248 | // 2 = cosThetaStar (negative electron) | |
249 | // 3 = pTP [GeV/c] | |
250 | // 4 = pTN [GeV/c] | |
251 | // 5 = d0O [cm] upper limit! | |
252 | // 6 = d0N [cm] upper limit! | |
253 | // 7 = d0d0 [cm^2] | |
254 | // 8 = cosThetaPoint | |
255 | Double_t fDplusCuts[12]; // cuts on Dplus candidates | |
6ea608bf | 256 | // (to be passed to AliAODRecoDecayHF3Prong::SelectDplus()) |
6a213b59 | 257 | // 0 = inv. mass half width [GeV] |
258 | // 1 = pTK [GeV/c] | |
259 | // 2 = pTPi [GeV/c] | |
260 | // 3 = d0K [cm] lower limit! | |
261 | // 4 = d0Pi [cm] lower limit! | |
262 | // 5 = dist12 (cm) | |
263 | // 6 = sigmavert (cm) | |
264 | // 7 = dist prim-sec (cm) | |
265 | // 8 = pM=Max{pT1,pT2,pT3} (GeV/c) | |
266 | // 9 = cosThetaPoint | |
267 | // 10 = Sum d0^2 (cm^2) | |
268 | // 11 = dca cut (cm) | |
f7c170b4 | 269 | Double_t fDsCuts[14]; // cuts on Ds candidates |
6ea608bf | 270 | // (to be passed to AliAODRecoDecayHF3Prong::SelectDs()) |
271 | // 0 = inv. mass half width [GeV] | |
272 | // 1 = pTK [GeV/c] | |
273 | // 2 = pTPi [GeV/c] | |
274 | // 3 = d0K [cm] lower limit! | |
275 | // 4 = d0Pi [cm] lower limit! | |
276 | // 5 = dist12 (cm) | |
277 | // 6 = sigmavert (cm) | |
278 | // 7 = dist prim-sec (cm) | |
279 | // 8 = pM=Max{pT1,pT2,pT3} (GeV/c) | |
280 | // 9 = cosThetaPoint | |
281 | // 10 = Sum d0^2 (cm^2) | |
282 | // 11 = dca cut (cm) | |
f7c170b4 | 283 | // 12 = inv. mass cut around phi |
284 | // 13 = inv. mass cut around phi K0* [GeV] | |
81679460 | 285 | Double_t fLcCuts[12]; // cuts on Lambdac candidates |
6ea608bf | 286 | // (to be passed to AliAODRecoDecayHF3Prong::SelectLc()) |
287 | // 0 = inv. mass half width [GeV] | |
288 | // 1 = pTP [GeV/c] | |
289 | // 2 = pTPi abd pTK [GeV/c] | |
290 | // 3 = d0P [cm] lower limit! | |
291 | // 4 = d0Pi and d0K [cm] lower limit! | |
292 | // 5 = dist12 (cm) | |
293 | // 6 = sigmavert (cm) | |
294 | // 7 = dist prim-sec (cm) | |
295 | // 8 = pM=Max{pT1,pT2,pT3} (GeV/c) | |
296 | // 9 = cosThetaPoint | |
297 | // 10 = Sum d0^2 (cm^2) | |
298 | // 11 = dca cut (cm) | |
a07ad8e0 | 299 | |
300 | Double_t fLctoV0Cuts[9]; // cuts on Lambdac candidates to V0+bachelor | |
301 | // (to be passed to AliAODRecoDecayHF3Prong::SelectLctoV0()) | |
302 | // 0 = inv. mass half width in K0s hypothesis [GeV] | |
303 | // 1 = inv. mass half width in Lambda hypothesis [GeV] | |
304 | // 2 = inv. mass V0 in K0s hypothesis half width [GeV] | |
305 | // 3 = inv. mass V0 in Lambda hypothesis half width [GeV] | |
306 | // 4 = pT min Bachelor track [GeV/c] | |
307 | // 5 = pT min V0-Positive track [GeV/c] | |
308 | // 6 = pT min V0-Negative track [GeV/c] | |
309 | // 7 = dca cut on the V0 (cm) | |
310 | // 8 = dca cut on the cascade (cm) | |
311 | ||
2ff20727 | 312 | Double_t fDstarCuts[5]; // cuts on D* candidates |
313 | // (to be passed to AliAODRecoCascadeHF::SelectDstar()) | |
314 | // 0 = inv. mass half width of D* [GeV] | |
315 | // 1 = half width of (M_Kpipi-M_Kpi) [GeV] | |
316 | // 2 = PtMin of pi_s [GeV/c] | |
317 | // 3 = PtMax of pi_s [GeV/c] | |
318 | // 4 = theta, angle between the track of pi_s and D0 decay plane [rad] | |
319 | ||
721c0b8f | 320 | Double_t fD0to4ProngsCuts[9]; // cuts on D0->K3pi candidates |
321 | // (to be passed to AliAODRecoDecayHF4Prong::SelectD0()) | |
322 | // 0 = inv. mass half width of D0 [GeV] | |
323 | // 1 = DCA between opposite sign tracks | |
324 | // 2 = Distance between primary and two tracks vertex fDist12toPrim | |
325 | // 3 = Distance between primary and three tracks vertex fDist3toPrim | |
326 | // 4 = Distance between primary and two tracks vertex fDist4toPrim | |
327 | // 5 = Cosinus of the pointing angle | |
328 | // 6 = Transverse momentum of the D0 candidate | |
329 | // 7 = Mass Pi+Pi- = mass of the rho0 | |
330 | // 8 = PID cut (one K in the quadruplet) | |
331 | ||
a9b75906 | 332 | TList *fListOfCuts; // pointer to list of cuts for output file |
eee95e18 | 333 | Bool_t fFindVertexForDstar; // reconstruct a secondary vertex or assume it's from the primary vertex |
a07ad8e0 | 334 | Bool_t fFindVertexForCascades; // reconstruct a secondary vertex or assume it's from the primary vertex |
6a213b59 | 335 | // |
a9b75906 | 336 | void AddRefs(AliAODVertex *v,AliAODRecoDecayHF *rd,const AliVEvent *event, |
337 | const TObjArray *trkArray) const; | |
c4cdf105 | 338 | void AddDaughterRefs(AliAODVertex *v,const AliVEvent *event, |
339 | const TObjArray *trkArray) const; | |
dcb444c9 | 340 | AliAODRecoDecayHF2Prong* Make2Prong(TObjArray *twoTrackArray1,AliVEvent *event, |
341 | AliAODVertex *secVert,Double_t dcap1n1, | |
2ff20727 | 342 | Bool_t &okD0,Bool_t &okJPSI,Bool_t &okD0fromDstar) const; |
dcb444c9 | 343 | AliAODRecoDecayHF3Prong* Make3Prong(TObjArray *threeTrackArray,AliVEvent *event, |
344 | AliAODVertex *secVert, | |
345 | Double_t dispersion, | |
c4cdf105 | 346 | const AliAODVertex *vertexp1n1, |
347 | const AliAODVertex *vertexp2n1, | |
dcb444c9 | 348 | Double_t dcap1n1,Double_t dcap2n1,Double_t dcap1p2, |
349 | Bool_t &ok3Prong) const; | |
350 | AliAODRecoDecayHF4Prong* Make4Prong(TObjArray *fourTrackArray,AliVEvent *event, | |
721c0b8f | 351 | AliAODVertex *secVert, |
c4cdf105 | 352 | const AliAODVertex *vertexp1n1, |
353 | const AliAODVertex *vertexp1n1p2, | |
721c0b8f | 354 | Double_t dcap1n1,Double_t dcap1n2, |
355 | Double_t dcap2n1,Double_t dcap2n2, | |
356 | Bool_t &ok4Prong) const; | |
2ff20727 | 357 | AliAODRecoCascadeHF* MakeCascade(TObjArray *twoTrackArray,AliVEvent *event, |
358 | AliAODVertex *secVert, | |
359 | AliAODRecoDecayHF2Prong *rd2Prong, | |
360 | Double_t dca, | |
361 | Bool_t &okDstar) const; | |
a07ad8e0 | 362 | AliAODRecoCascadeHF* MakeCascade(TObjArray *twoTrackArray,AliVEvent *event, |
363 | AliAODVertex *secVert, | |
364 | AliAODv0 *v0, | |
365 | Double_t dca, | |
366 | Bool_t &okCascades) const; | |
dcb444c9 | 367 | |
c4cdf105 | 368 | AliAODVertex* PrimaryVertex(const TObjArray *trkArray=0x0,AliVEvent *event=0x0) const; |
dcfa35b3 | 369 | AliAODVertex* ReconstructSecondaryVertex(TObjArray *trkArray,Double_t &dispersion,Bool_t useTRefArray=kTRUE) const; |
6a213b59 | 370 | Bool_t SelectInvMass(Int_t decay,Int_t nprongs, |
371 | Double_t *px,Double_t *py,Double_t *pz) const; | |
c4cdf105 | 372 | void SelectTracksAndCopyVertex(const AliVEvent *event, |
2ff20727 | 373 | TObjArray &seleTrksArray,Int_t &nSeleTrks, |
a25935a9 | 374 | UChar_t *seleFlags,Int_t *evtNumber); |
2ff20727 | 375 | Bool_t SingleTrkCuts(AliESDtrack *trk,Bool_t &okDisplaced,Bool_t &okSoftPi) const; |
a07ad8e0 | 376 | |
377 | AliAODv0* TransformESDv0toAODv0(AliESDv0 *esdv0, | |
378 | TObjArray *twoTrackArrayV0); | |
379 | ||
6a213b59 | 380 | // |
da6fefc3 | 381 | ClassDef(AliAnalysisVertexingHF,18); // Reconstruction of HF decay candidates |
6a213b59 | 382 | }; |
383 | ||
384 | ||
385 | #endif | |
386 | ||
387 | ||
388 | ||
389 | ||
390 | ||
391 | ||
392 | ||
393 |