ROOT logo
AliRoot » PWGLF » RESONANCES » AliRsnDaughter

class AliRsnDaughter: public TObject

Function Members (Methods)

public:
AliRsnDaughter()
AliRsnDaughter(const AliRsnDaughter& copy)
virtual~AliRsnDaughter()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
Char_tChargeC() const
Short_tChargeS() const
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
voidFillP(Double_t mass)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
static AliRsnDaughter::ESpeciesFromAliPID(EPARTYPE species)
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
Int_tGetID()
Int_tGetLabel() const
Int_tGetMother()
Int_tGetMotherPDG() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
AliRsnEvent*GetOwnerEvent()
Int_tGetPDG()
Int_tGetPDGAbs()
AliVParticle*GetRef()
AliVParticle*GetRefMC()
Int_tGetRsnID() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
Bool_tIsAOD()
Bool_tIsCharged() const
static Bool_tIsCharged(AliRsnDaughter::ESpecies species)
virtual Bool_tTObject::IsEqual(const TObject* obj) const
Bool_tIsESD()
virtual Bool_tTObject::IsFolder() const
Bool_tIsNeg() const
Bool_tIsNeutral() const
Bool_tIsOK() const
Bool_tTObject::IsOnHeap() const
Bool_tIsPos() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
static Bool_tMatch(AliVParticle* p, TClass* ref)
Bool_tMatchRef(TClass* ref)
Bool_tMatchRefMC(TClass* ref)
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
AliRsnDaughter&operator=(const AliRsnDaughter& copy)
TLorentzVector&P(Bool_t mc)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
TLorentzVector&Prec()
virtual voidPrint(Option_t* o = "") const
TLorentzVector&Psim()
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
AliAODcascade*Ref2AODcascade()
AliAODMCParticle*Ref2AODMCparticle()
AliAODTrack*Ref2AODtrack()
AliAODv0*Ref2AODv0()
AliESDcascade*Ref2ESDcascade()
AliESDtrack*Ref2ESDtrack()
AliESDv0*Ref2ESDv0()
AliMCParticle*Ref2MCparticle()
AliVTrack*Ref2Vtrack()
AliAODMCParticle*RefMC2AOD()
AliMCParticle*RefMC2ESD()
AliRsnDaughter::ERefTypeRefType()
static AliRsnDaughter::ERefTypeRefType(AliRsnDaughter::ESpecies species)
voidReset()
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidSetBad()
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetGood()
voidSetLabel(Int_t label)
voidSetMotherPDG(Int_t value)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetOK(Bool_t ok)
voidSetOwnerEvent(AliRsnEvent* e)
voidSetRef(AliVParticle* p)
voidSetRefMC(AliVParticle* p)
voidSetRsnID(Int_t id)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
static Double_tSpeciesMass(AliRsnDaughter::ESpecies species)
static const char*SpeciesName(AliRsnDaughter::ESpecies species)
static Int_tSpeciesPDG(AliRsnDaughter::ESpecies species)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
static EPARTYPEToAliPID(AliRsnDaughter::ESpecies species)
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

public:
enum ERefType { kTrack
kV0
kCascade
kNoType
};
enum ESpecies { kElectron
kMuon
kPion
kKaon
kProton
kKaon0
kLambda
kXi
kOmega
kUnknown
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
private:
Int_tfLabelindex of MC particle
Int_tfMotherPDGPDG code of mother (makes sense only if fRefMC is defined)
Bool_tfOKinternal utility flag which is kFALSE when this object should not be used
AliRsnEvent*fOwnerEventpointer to owner event
TLorentzVectorfPrec4-momentum for rec
TLorentzVectorfPsim4-momentum for MC
AliVParticle*fRefreference to reconstructed object
AliVParticle*fRefMCreference to corresponding MC particle
Int_tfRsnIDinternal ID for monitoring purposes

Class Charts

Inheritance Chart:
TObject
AliRsnDaughter

Function documentation

AliRsnDaughter(const AliRsnDaughter& copy)
 Copy constructor.
 Pointers are NOT duplicated, since they don't come from a 'new'
 statement, but from just referencing something in the data source.

AliRsnDaughter & operator=(const AliRsnDaughter& copy)
 Assignment operator.
 Pointers are NOT duplicated, since they don't come from a 'new'
 statement, but from just referencing something in the data source.

void Reset()
 Reset this track to meaningless values and to a 'bad' status.
 After this has been done, this object should not be used
 for analysis unless initialized properly.

Int_t GetPDG()
 Return the PDG code of the particle from MC ref (if any).
 If argument is kTRUE, returns its absolute value.

Int_t GetID()
 Return reference index, using the "GetID" method
 of the possible source object.
 When this method is unsuccessful (e.g.: V0s), return the label.

Int_t GetMother()
 Return index of the first mother of the MC reference, if any.
 Otherwise, returns -1 (the same as for primary tracks)

void Print(Option_t* o = "") const
 Override of TObject::Print()

const char * SpeciesName(AliRsnDaughter::ESpecies species)
 Return a string with the short name of the particle

Int_t SpeciesPDG(AliRsnDaughter::ESpecies species)
 Return the PDG code of a particle species (abs value)

Double_t SpeciesMass(AliRsnDaughter::ESpecies species)
 Return the mass of a particle species

EPARTYPE ToAliPID(AliRsnDaughter::ESpecies species)
 Convert an enum element from this object
 into the enumeration of AliPID.
 If no match are cound 'kUnknown' is returned.

Bool_t IsESD()
Bool_t IsAOD()
void FillP(Double_t mass)
AliRsnDaughter()
{ }
virtual ~AliRsnDaughter()
{ /*empty, since pointers must not be deleted*/ }
Bool_t IsOK() const
 basic getters
{return fOK;}
Int_t GetLabel() const
{return fLabel;}
Int_t GetMotherPDG() const
{return fMotherPDG;}
Int_t GetRsnID() const
{return fRsnID;}
AliVParticle * GetRef()
{return fRef;}
AliVParticle * GetRefMC()
{return fRefMC;}
AliRsnEvent * GetOwnerEvent()
{return fOwnerEvent;}
TLorentzVector & P(Bool_t mc)
{return (mc ? fPsim : fPrec);}
TLorentzVector & Prec()
{return fPrec;}
TLorentzVector & Psim()
{return fPsim;}
Int_t GetPDGAbs()
{return TMath::Abs(GetPDG());}
void SetOK(Bool_t ok)
{fOK = ok;}
void SetBad()
{fOK = kFALSE;}
void SetGood()
{fOK = kTRUE;}
void SetLabel(Int_t label)
{fLabel = label;}
void SetMotherPDG(Int_t value)
{fMotherPDG = value;}
void SetRsnID(Int_t id)
{fRsnID = id;}
void SetRef(AliVParticle* p)
{fRef = p;}
void SetRefMC(AliVParticle* p)
{fRefMC = p;}
void SetOwnerEvent(AliRsnEvent* e)
Bool_t IsPos() const
 getters related to charge
{if (fRef) return (fRef->Charge() > 0); return kFALSE;}
Bool_t IsNeg() const
{if (fRef) return (fRef->Charge() < 0); return kFALSE;}
Bool_t IsCharged() const
{if (fRef) return (IsPos() || IsNeg()); return kFALSE;}
Bool_t IsNeutral() const
{if (fRef) return (!IsCharged()); return kFALSE;}
Short_t ChargeS() const
{if (IsPos()) return 1 ; else if (IsNeg()) return -1 ; else return 0 ;}
Char_t ChargeC() const
{if (IsPos()) return '+'; else if (IsNeg()) return '-'; else return '0';}
Bool_t Match(AliVParticle* p, TClass* ref)
 getters which automatically convert refs into allowed types
{if (p) return (p->InheritsFrom(ref)); return kFALSE;}
Bool_t MatchRef(TClass* ref)
{return Match(fRef, ref);}
Bool_t MatchRefMC(TClass* ref)
{return Match(fRefMC, ref);}
AliVTrack * Ref2Vtrack()
{if (Match(fRef, AliVTrack ::Class())) return static_cast<AliVTrack *> (fRef); return 0x0;}
AliESDtrack * Ref2ESDtrack()
{if (Match(fRef, AliESDtrack ::Class())) return static_cast<AliESDtrack *> (fRef); return 0x0;}
AliAODTrack * Ref2AODtrack()
{if (Match(fRef, AliAODTrack ::Class())) return static_cast<AliAODTrack *> (fRef); return 0x0;}
AliMCParticle * Ref2MCparticle()
{if (Match(fRef, AliMCParticle::Class())) return static_cast<AliMCParticle *> (fRef); return 0x0;}
AliAODMCParticle * Ref2AODMCparticle()
{if (Match(fRef, AliMCParticle::Class())) return static_cast<AliAODMCParticle *>(fRef); return 0x0;}
AliESDv0 * Ref2ESDv0()
{if (Match(fRef, AliESDv0 ::Class())) return static_cast<AliESDv0 *>(fRef); return 0x0;}
AliAODv0 * Ref2AODv0()
{if (Match(fRef, AliAODv0 ::Class())) return static_cast<AliAODv0 *>(fRef); return 0x0;}
AliESDcascade * Ref2ESDcascade()
{if (Match(fRef, AliESDcascade::Class())) return static_cast<AliESDcascade *>(fRef); return 0x0;}
AliAODcascade * Ref2AODcascade()
{if (Match(fRef, AliAODcascade::Class())) return static_cast<AliAODcascade *>(fRef); return 0x0;}
AliMCParticle * RefMC2ESD()
{if (Match(fRefMC, AliMCParticle ::Class())) return static_cast<AliMCParticle *> (fRef) ; return 0x0;}
AliAODMCParticle * RefMC2AOD()
{if (Match(fRefMC, AliAODMCParticle::Class())) return static_cast<AliAODMCParticle *>(fRefMC); return 0x0;}
Bool_t IsCharged(AliRsnDaughter::ESpecies species)
{return (species <= kProton);}
ESpecies FromAliPID(EPARTYPE species)