AliPhysics  5acc205 (5acc205)
AliAODRecoDecayHF2Prong.h
Go to the documentation of this file.
1 #ifndef ALIAODRECODECAYHF2PRONG_H
2 #define ALIAODRECODECAYHF2PRONG_H
3 /* Copyright(c) 1998-2006, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 /* $Id$ */
7 
8 //***********************************************************
13 //***********************************************************
14 
15 #include "AliAODRecoDecay.h"
16 #include "AliAODRecoDecayHF.h"
17 
19 
20  public:
21 
23  AliAODRecoDecayHF2Prong(AliAODVertex *vtx2,
24  Double_t *px,Double_t *py,Double_t *pz,
25  Double_t *d0,Double_t *d0err,Float_t dca);
26  AliAODRecoDecayHF2Prong(AliAODVertex *vtx2,
27  Double_t *d0,Double_t *d0err,Float_t dca);
30 
32 
33  Double_t Prodd0d0() const {return AliAODRecoDecay::Prodd0d0(0,1);}
34 
35  // D0->Kpi
36  Double_t ED0() const {return E(421);}
37  Double_t YD0() const {return Y(421);}
38 
39  Double_t CtD0() const {return Ct(421);}
40  Double_t CtD0(Double_t point[3]) const {return AliAODRecoDecay::Ct(421,point);}
41  Double_t CtD0(AliAODVertex *vtx1) const {return AliAODRecoDecay::Ct(421,vtx1);}
42 
43  Double_t CosThetaStarD0() const {return CosThetaStar(1,421,211,321);}
44  Double_t CosThetaStarD0bar() const {return CosThetaStar(0,421,321,211);}
45  void CosThetaStarD0(Double_t &ctsD0,Double_t &ctsD0bar) const
46  {ctsD0=CosThetaStarD0();ctsD0bar=CosThetaStarD0bar();return;}
47 
48  Double_t InvMassD0() const {UInt_t pdg[2]={211,321};return InvMass(2,pdg);}
49  Double_t InvMassD0bar() const {UInt_t pdg[2]={321,211};return InvMass(2,pdg);}
50  void InvMassD0(Double_t &mD0,Double_t &mD0bar) const
51  {mD0=InvMassD0();mD0bar=InvMassD0bar();return;}
52 
53  Bool_t SelectD0(const Double_t* cuts,Int_t &okD0,Int_t &okD0bar) const;
54 
55  // Jpsi (from B) -> ee
56  Double_t EJPSI() const {return E(443);}
57  Double_t YJPSI() const {return Y(443);}
58 
59  Double_t CtJPSI() const {return Ct(443);}
60  Double_t CtJPSI(Double_t point[3]) const {return AliAODRecoDecay::Ct(443,point);}
61  Double_t CtJPSI(AliAODVertex *vtx1) const {return AliAODRecoDecay::Ct(443,vtx1);}
62 
63  Double_t CosThetaStarJPSI() const {return CosThetaStar(1,443,11,11);}
64 
65  Double_t InvMassJPSIee() const {UInt_t pdg[2]={11,11};return InvMass(2,pdg);}
66 
67  Bool_t SelectBtoJPSI(const Double_t* cuts,Int_t &okB) const;
68 
69  Int_t MatchToMCB2Prong(Int_t pdgabs,Int_t pdgabs2prong, Int_t *pdgDg, Int_t *pdgDg2prong, TClonesArray *mcArray) const;
70  Int_t MatchToMCB3Prong(Int_t pdgabs,Int_t pdgabs3prong, Int_t *pdgBDg,Int_t *pdgDg3prong, TClonesArray *mcArray) const;
71 
72  private:
73 
75  ClassDef(AliAODRecoDecayHF2Prong,2);
76 };
79 
80 #endif
Int_t pdg
double Double_t
Definition: External.C:58
Double_t Ct(UInt_t pdg) const
Int_t MatchToMCB2Prong(Int_t pdgabs, Int_t pdgabs2prong, Int_t *pdgDg, Int_t *pdgDg2prong, TClonesArray *mcArray) const
void InvMass(Int_t icalo, TString particle, TString fileName)
void CosThetaStarD0(Double_t &ctsD0, Double_t &ctsD0bar) const
angle of K
Double_t CtJPSI(Double_t point[3]) const
Double_t CosThetaStarJPSI() const
void InvMassD0(Double_t &mD0, Double_t &mD0bar) const
int Int_t
Definition: External.C:63
unsigned int UInt_t
Definition: External.C:33
Double_t CosThetaStarD0bar() const
angle of K
float Float_t
Definition: External.C:68
Double_t CtJPSI(AliAODVertex *vtx1) const
Bool_t SelectD0(const Double_t *cuts, Int_t &okD0, Int_t &okD0bar) const
AliAODRecoDecayHF2Prong & operator=(const AliAODRecoDecayHF2Prong &source)
Double_t CtD0(AliAODVertex *vtx1) const
Double_t InvMassJPSIee() const
angle of e-
bool Bool_t
Definition: External.C:53
Double_t CtD0(Double_t point[3]) const
Bool_t SelectBtoJPSI(const Double_t *cuts, Int_t &okB) const
Int_t MatchToMCB3Prong(Int_t pdgabs, Int_t pdgabs3prong, Int_t *pdgBDg, Int_t *pdgDg3prong, TClonesArray *mcArray) const