/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice * **************************************************************************/ //------------------------------------------------------------------------- // Class AliRsnDaughter // // A simple object which describes a reconstructed track // with some references to its related generated particle // and some facilities which could help in composing its // 4-momentum, for resonance study. // // author: A. Pulvirenti (email: alberto.pulvirenti@ct.infn.it) //------------------------------------------------------------------------- #ifndef ALIRSNDAUGHTER_H #define ALIRSNDAUGHTER_H #include "AliPID.h" #include #include #include class AliESDtrack; class AliRsnDaughter : public TObject { public: AliRsnDaughter(); AliRsnDaughter(const AliRsnDaughter ©); virtual ~AliRsnDaughter() { } Bool_t Adopt(TParticle* particle); Bool_t Adopt(const AliESDtrack* track, Bool_t checkRefit = kTRUE); TVector3 Get3Momentum() const {TVector3 v(fP[0],fP[1],fP[2]); return v;} TLorentzVector Get4Momentum() const {TLorentzVector v(fP[0],fP[1],fP[2],GetEnergy()); return v;} Double_t GetEnergy() const {return TMath::Sqrt(fMass*fMass + GetP2());} UShort_t GetIndex() const {return fIndex;} Int_t GetLabel() const {return fLabel;} Double_t GetMass() const {return fMass;} Int_t GetMother() const {return fMother;} Short_t GetMotherPDG() const {return fMotherPDG;} UShort_t GetPDG() const {return fPDG;} Double_t GetPIDweight(Int_t i) const {return ( (i>=0&&i