#ifndef ALIAODRECODECAYHF_H #define ALIAODRECODECAYHF_H /* Copyright(c) 1998-2006, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ //*********************************************************** // Class AliAODRecoDecayHF // base class for AOD reconstructed heavy-flavour decays // Author: A.Dainese, andrea.dainese@lnl.infn.it //*********************************************************** #include "AliAODRecoDecay.h" class AliAODRecoDecayHF : public AliAODRecoDecay { public: AliAODRecoDecayHF(); AliAODRecoDecayHF(AliAODVertex *vtx2,Int_t nprongs,Short_t charge, Double_t *px,Double_t *py,Double_t *pz, Double_t *d0,Double_t *d0err); AliAODRecoDecayHF(AliAODVertex *vtx2,Int_t nprongs,Short_t charge, Double_t *d0,Double_t *d0err); virtual ~AliAODRecoDecayHF(); AliAODRecoDecayHF(const AliAODRecoDecayHF& source); AliAODRecoDecayHF& operator=(const AliAODRecoDecayHF& source); // primary vertex void SetOwnPrimaryVtx(AliAODVertex *vtx2) {fOwnPrimaryVtx = vtx2;} void CheckOwnPrimaryVtx() const {if(!fOwnPrimaryVtx) printf("fOwnPrimaryVtx not set"); return;} AliAODVertex* GetOwnPrimaryVtx() const {return fOwnPrimaryVtx;} void GetOwnPrimaryVtx(Double_t vtx[3]) const {CheckOwnPrimaryVtx();fOwnPrimaryVtx->GetPosition(vtx);} // kinematics & topology Double_t DecayLength() const {CheckOwnPrimaryVtx();return AliAODRecoDecay::DecayLength(fOwnPrimaryVtx);} Double_t DecayLengthError() const {CheckOwnPrimaryVtx();return AliAODRecoDecay::DecayLengthError(fOwnPrimaryVtx);} Double_t NormalizedDecayLength() const {CheckOwnPrimaryVtx();return AliAODRecoDecay::NormalizedDecayLength(fOwnPrimaryVtx);} Double_t DecayLengthXY() const {CheckOwnPrimaryVtx();return AliAODRecoDecay::DecayLengthXY(fOwnPrimaryVtx);} Double_t DecayLengthXYError() const {CheckOwnPrimaryVtx();return AliAODRecoDecay::DecayLengthXYError(fOwnPrimaryVtx);} Double_t NormalizedDecayLengthXY() const {CheckOwnPrimaryVtx();return AliAODRecoDecay::NormalizedDecayLengthXY(fOwnPrimaryVtx);} Double_t Ct(UInt_t pdg) const {CheckOwnPrimaryVtx();return AliAODRecoDecay::Ct(pdg,fOwnPrimaryVtx);} Double_t CosPointingAngle() const {CheckOwnPrimaryVtx();return AliAODRecoDecay::CosPointingAngle(fOwnPrimaryVtx);} Double_t CosPointingAngleXY() const {CheckOwnPrimaryVtx();return AliAODRecoDecay::CosPointingAngleXY(fOwnPrimaryVtx);} Double_t ImpParXY() const {CheckOwnPrimaryVtx();return AliAODRecoDecay::ImpParXY(fOwnPrimaryVtx);} Double_t QtProngFlightLine(Int_t ip) const {CheckOwnPrimaryVtx();return AliAODRecoDecay::QtProngFlightLine(ip,fOwnPrimaryVtx);} Double_t QlProngFlightLine(Int_t ip) const {CheckOwnPrimaryVtx();return AliAODRecoDecay::QlProngFlightLine(ip,fOwnPrimaryVtx);} // prongs Double_t Getd0errProng(Int_t ip) const {return fd0err[ip];} Double_t Normalizedd0Prong(Int_t ip) const {return Getd0Prong(ip)/Getd0errProng(ip);} protected: AliAODVertex *fOwnPrimaryVtx; // primary vertex for this candidate Double_t *fd0err; //[fNProngs] error on prongs rphi impact param [cm] ClassDef(AliAODRecoDecayHF,1) // base class for AOD reconstructed // heavy-flavour decays }; #endif