![]() |
AliRoot Core
ee782a0 (ee782a0)
|
AOD vertex base class. More...
#include <AliAODVertex.h>
Public Types | |
enum | AODVtx_t { kPrimaryInvalid =-10, kUndef =-1, kPrimary, kKink, kV0, kCascade, kMulti, kMainSPD, kPileupSPD, kPileupTracks, kMainTPC, kPrimaryTPC } |
Public Member Functions | |
AliAODVertex () | |
AliAODVertex (const Double_t *position, const Double_t *covMatrix=0x0, Double_t chi2perNDF=-999., TObject *parent=0x0, Short_t id=-1, Char_t vtype=kUndef, Int_t nprong=0) | |
AliAODVertex (const Float_t *position, const Float_t *covMatrix=0x0, Double_t chi2perNDF=-999., TObject *parent=0x0, Short_t id=-1, Char_t vtype=kUndef, Int_t nprong=0) | |
AliAODVertex (const Double_t *position, Double_t chi2perNDF, Char_t vtype=kUndef, Int_t nprong=0) | |
AliAODVertex (const Float_t *position, Double_t chi2perNDF, Char_t vtype=kUndef, Int_t nprong=0) | |
virtual | ~AliAODVertex () |
AliAODVertex (const AliAODVertex &vtx) | |
AliAODVertex & | operator= (const AliAODVertex &vtx) |
virtual AliAODVertex * | CloneWithoutRefs () const |
void | SetX (Double_t x) |
void | SetY (Double_t y) |
void | SetZ (Double_t z) |
void | SetPosition (Double_t x, Double_t y, Double_t z) |
template<class T > | |
void | SetPosition (T *pos) |
void | SetChi2perNDF (Double_t chi2perNDF) |
void | SetParent (TObject *parent) |
Double_t | GetX () const |
Double_t | GetY () const |
Double_t | GetZ () const |
void | GetXYZ (Double_t position[3]) const |
template<class T > | |
void | GetPosition (T *pos) const |
template<class T > | |
void | SetCovMatrix (const T *covMatrix) |
template<class T > | |
Bool_t | GetCovMatrix (T *covMatrix) const |
void | GetCovarianceMatrix (Double_t covmatrix[6]) const |
void | RemoveCovMatrix () |
template<class T > | |
void | GetSigmaXYZ (T *sigma) const |
Double_t | GetChi2perNDF () const |
Double_t | GetChi2 () const |
Int_t | GetNDF () const |
Short_t | GetID () const |
void | SetID (Short_t id) |
Char_t | GetType () const |
void | SetType (AODVtx_t vtype) |
TObject * | GetParent () const |
Bool_t | HasParent (TObject *parent) const |
void | AddDaughter (TObject *daughter) |
void | RemoveDaughter (TObject *daughter) |
void | RemoveDaughters () |
TObject * | GetDaughter (Int_t i) |
Bool_t | HasDaughter (TObject *daughter) const |
Int_t | GetNDaughters () const |
Int_t | GetNContributors () const |
Int_t | CountRealContributors () const |
Int_t | GetNContributorsStored () const |
void | SetNContributors (Int_t nc) |
Double_t | RotatedCovMatrixXX (Double_t phi=0., Double_t theta=0.) const |
Double_t | RotatedCovMatrixXY (Double_t phi=0., Double_t theta=0.) const |
Double_t | RotatedCovMatrixYY (Double_t phi=0.) const |
Double_t | RotatedCovMatrixXZ (Double_t phi=0., Double_t theta=0.) const |
Double_t | RotatedCovMatrixYZ (Double_t phi=0., Double_t theta=0.) const |
Double_t | RotatedCovMatrixZZ (Double_t phi=0., Double_t theta=0.) const |
template<class T , class P > | |
void | PhiAndThetaToVertex (AliAODVertex *vtx, P &phi, T &theta) const |
Double_t | Distance2ToVertex (const AliAODVertex *vtx) const |
Double_t | DistanceToVertex (AliAODVertex *vtx) const |
Double_t | DistanceXY2ToVertex (const AliAODVertex *vtx) const |
Double_t | DistanceXYToVertex (AliAODVertex *vtx) const |
Double_t | Error2DistanceToVertex (AliAODVertex *vtx) const |
Double_t | ErrorDistanceToVertex (AliAODVertex *vtx) const |
Double_t | Error2DistanceXYToVertex (AliAODVertex *vtx) const |
Double_t | ErrorDistanceXYToVertex (AliAODVertex *vtx) const |
void | PrintIndices () const |
void | Print (Option_t *option="") const |
const char * | AsString () const |
void | SetBC (Int_t bc) |
Int_t | GetBC () const |
template<class T > | |
void | GetSigmaXYZ (T sigma[3]) const |
![]() | |
AliVVertex () | |
virtual | ~AliVVertex () |
AliVVertex (const AliVVertex &vVert) | |
AliVVertex & | operator= (const AliVVertex &vVert) |
virtual Bool_t | IsFromVertexer3D () const |
virtual Bool_t | IsFromVertexerZ () const |
virtual Bool_t | GetStatus () const |
virtual void | Clear (Option_t *option) |
Static Public Member Functions | |
static const char * | GetTypeName (AODVtx_t type) |
static Bool_t | GetUseCountVtxTrackContributors () |
static void | SetUseCountVtxTrackContributors (Bool_t v) |
Private Member Functions | |
void | MakeProngs () |
Private Attributes | |
Double32_t | fPosition [3] |
vertex position More... | |
Double32_t | fChi2perNDF |
chi2/NDF of vertex fit More... | |
Short_t | fID |
vertex ID; corresponds to the array index of the appropriate ESD container More... | |
Char_t | fBCID |
BC ID assigned to vertex. More... | |
Char_t | fType |
vertex type More... | |
Int_t | fNprong |
number of prongs More... | |
Int_t | fIprong |
! index of prong More... | |
Int_t | fNContributors |
Number of contributors for SPD vertex. More... | |
AliAODRedCov< 3 > * | fCovMatrix |
vertex covariance matrix; values of and below the diagonal More... | |
TRef | fParent |
reference to the parent particle More... | |
TRefArray | fDaughters |
TRef * | fProngs |
alternative daughters for n-prong vertex More... | |
Static Private Attributes | |
static Bool_t | fgUseCountVtxTrackContributors = kFALSE |
enforce old-style counting of VertexTracks contributors More... | |
AOD vertex base class.
Inheritance from AliVVertex: A. Dainese
Definition at line 23 of file AliAODVertex.h.
Enumerator | |
---|---|
kPrimaryInvalid | |
kUndef | |
kPrimary | |
kKink | |
kV0 | |
kCascade | |
kMulti | |
kMainSPD | |
kPileupSPD | |
kPileupTracks | |
kMainTPC | |
kPrimaryTPC |
Definition at line 27 of file AliAODVertex.h.
AliAODVertex::AliAODVertex | ( | ) |
Definition at line 26 of file AliAODVertex.cxx.
Referenced by CloneWithoutRefs().
AliAODVertex::AliAODVertex | ( | const Double_t * | position, |
const Double_t * | covMatrix = 0x0 , |
||
Double_t | chi2perNDF = -999. , |
||
TObject * | parent = 0x0 , |
||
Short_t | id = -1 , |
||
Char_t | vtype = kUndef , |
||
Int_t | nprong = 0 |
||
) |
AliAODVertex::AliAODVertex | ( | const Float_t * | position, |
const Float_t * | covMatrix = 0x0 , |
||
Double_t | chi2perNDF = -999. , |
||
TObject * | parent = 0x0 , |
||
Short_t | id = -1 , |
||
Char_t | vtype = kUndef , |
||
Int_t | nprong = 0 |
||
) |
AliAODVertex::AliAODVertex | ( | const Double_t * | position, |
Double_t | chi2perNDF, | ||
Char_t | vtype = kUndef , |
||
Int_t | nprong = 0 |
||
) |
AliAODVertex::AliAODVertex | ( | const Float_t * | position, |
Double_t | chi2perNDF, | ||
Char_t | vtype = kUndef , |
||
Int_t | nprong = 0 |
||
) |
|
virtual |
Destructor
Definition at line 150 of file AliAODVertex.cxx.
AliAODVertex::AliAODVertex | ( | const AliAODVertex & | vtx | ) |
Copy constructor.
Definition at line 159 of file AliAODVertex.cxx.
void AliAODVertex::AddDaughter | ( | TObject * | daughter | ) |
Add reference to daughter track
Definition at line 256 of file AliAODVertex.cxx.
Referenced by HasParent().
const char * AliAODVertex::AsString | ( | ) | const |
Make a string describing this object
Definition at line 590 of file AliAODVertex.cxx.
Referenced by ErrorDistanceXYToVertex().
|
virtual |
Special method to copy all but the refs
Definition at line 186 of file AliAODVertex.cxx.
Int_t AliAODVertex::CountRealContributors | ( | ) | const |
Definition at line 319 of file AliAODVertex.cxx.
Referenced by GetNContributors(), and RemoveDaughters().
Double_t AliAODVertex::Distance2ToVertex | ( | const AliAODVertex * | vtx | ) | const |
distance in 3D to another AliAODVertex
Definition at line 513 of file AliAODVertex.cxx.
Referenced by AliAODRecoDecay::DecayLength2(), DistanceToVertex(), and SetNContributors().
|
inline |
Definition at line 127 of file AliAODVertex.h.
Double_t AliAODVertex::DistanceXY2ToVertex | ( | const AliAODVertex * | vtx | ) | const |
distance in XY to another AliAODVertex
Definition at line 525 of file AliAODVertex.cxx.
Referenced by DistanceToVertex(), and DistanceXYToVertex().
|
inline |
Definition at line 130 of file AliAODVertex.h.
Referenced by AliAODRecoDecay::DecayLengthXY().
Double_t AliAODVertex::Error2DistanceToVertex | ( | AliAODVertex * | vtx | ) | const |
error on the distance in 3D to another AliAODVertex
Definition at line 536 of file AliAODVertex.cxx.
Referenced by AliAODRecoDecay::DecayLengthError2(), DistanceXYToVertex(), and ErrorDistanceToVertex().
Double_t AliAODVertex::Error2DistanceXYToVertex | ( | AliAODVertex * | vtx | ) | const |
error on the distance in XY to another AliAODVertex
Definition at line 551 of file AliAODVertex.cxx.
Referenced by ErrorDistanceToVertex(), and ErrorDistanceXYToVertex().
|
inline |
Definition at line 133 of file AliAODVertex.h.
|
inline |
Definition at line 136 of file AliAODVertex.h.
Referenced by AliAODRecoDecay::DecayLengthXYError().
|
inlinevirtual |
Reimplemented from AliVVertex.
Definition at line 149 of file AliAODVertex.h.
|
inlinevirtual |
Implements AliVVertex.
Definition at line 93 of file AliAODVertex.h.
Referenced by AliAODcascade::Chi2Xi().
|
inlinevirtual |
Implements AliVVertex.
Definition at line 92 of file AliAODVertex.h.
Referenced by AsString(), AliAODv0::Chi2V0(), and AliAODRecoDecay::GetReducedChi2().
|
inlinevirtual |
Implements AliVVertex.
Definition at line 86 of file AliAODVertex.h.
Referenced by AliAODTagCreator::FillEventTag(), and AliAODEvent::IsPileupFromSPD().
|
inline |
Definition at line 82 of file AliAODVertex.h.
Referenced by GetCovarianceMatrix(), AliAODRecoDecay::GetCovarianceXYZPxPyPz(), RotatedCovMatrixXX(), RotatedCovMatrixXY(), RotatedCovMatrixXZ(), RotatedCovMatrixYY(), RotatedCovMatrixYZ(), and RotatedCovMatrixZZ().
|
inline |
Definition at line 183 of file AliAODVertex.h.
Referenced by AliAODcascade::GetBachID(), AliAODv0::GetNegID(), AliAODv0::GetPosID(), and RemoveDaughters().
|
inline |
Definition at line 96 of file AliAODVertex.h.
|
virtual |
Returns the number of tracks used to fit this vertex.
Implements AliVVertex.
Definition at line 298 of file AliAODVertex.cxx.
Referenced by AsString(), GetNDF(), AliAODEvent::IsPileupFromSPD(), and RemoveDaughters().
|
inline |
Definition at line 113 of file AliAODVertex.h.
|
inline |
Definition at line 174 of file AliAODVertex.h.
Referenced by CountRealContributors(), AliAODRecoDecay::GetNDaughters(), and RemoveDaughters().
|
inlinevirtual |
|
inline |
Definition at line 102 of file AliAODVertex.h.
|
inline |
Definition at line 75 of file AliAODVertex.h.
Referenced by AliAODRecoDecay::CosPointingAngle(), AliAODRecoDecay::CosPointingAngleXY(), AliAODRecoDecay::Ct(), AliAODRecoDecay::GetSecondaryVtx(), AliAODRecoDecay::ImpParXY(), AliAODRecoDecay::QlProngFlightLine(), and AliAODRecoDecay::QtProngFlightLine().
void AliAODVertex::GetSigmaXYZ | ( | T * | sigma | ) | const |
Referenced by RemoveCovMatrix().
void AliAODVertex::GetSigmaXYZ | ( | T | sigma[3] | ) | const |
Definition at line 278 of file AliAODVertex.cxx.
|
inline |
Definition at line 99 of file AliAODVertex.h.
Referenced by AsString(), AliAODTagCreator::FillEventTag(), AliAODEvent::GetNumberOfPileupVerticesSPD(), AliAODEvent::GetNumberOfPileupVerticesTracks(), AliAODEvent::GetPileupVertexSPD(), AliAODEvent::GetPileupVertexTracks(), AliAODEvent::GetPrimaryVertexSPD(), AliAODEvent::GetPrimaryVertexTPC(), and AliAODEvent::IsPileupFromSPD().
|
static |
Return an ASCII version of type
Definition at line 622 of file AliAODVertex.cxx.
Referenced by AsString(), and ErrorDistanceXYToVertex().
|
inlinestatic |
Definition at line 145 of file AliAODVertex.h.
|
inlinevirtual |
Implements AliVVertex.
Definition at line 70 of file AliAODVertex.h.
Referenced by AsString(), AliAODcascade::DecayVertexXiX(), Distance2ToVertex(), DistanceXY2ToVertex(), AliAODTagCreator::FillEventTag(), AliAODRecoDecay::GetSecVtxX(), AliAODEvent::IsPileupFromSPD(), PhiAndThetaToVertex(), and AliAODTrack::Xv().
|
inlinevirtual |
Implements AliVVertex.
Definition at line 73 of file AliAODVertex.h.
|
inlinevirtual |
Implements AliVVertex.
Definition at line 71 of file AliAODVertex.h.
Referenced by AsString(), AliAODcascade::DecayVertexXiY(), Distance2ToVertex(), DistanceXY2ToVertex(), AliAODTagCreator::FillEventTag(), AliAODRecoDecay::GetSecVtxY(), AliAODEvent::IsPileupFromSPD(), PhiAndThetaToVertex(), and AliAODTrack::Yv().
|
inlinevirtual |
Implements AliVVertex.
Definition at line 72 of file AliAODVertex.h.
Referenced by AsString(), AliAODcascade::DecayVertexXiZ(), Distance2ToVertex(), AliAODTagCreator::FillEventTag(), AliAODRecoDecay::GetSecVtxZ(), AliAODEvent::IsPileupFromSPD(), PhiAndThetaToVertex(), and AliAODTrack::Zv().
Bool_t AliAODVertex::HasDaughter | ( | TObject * | daughter | ) | const |
Checks if the given daughter (particle) is part of this vertex.
Definition at line 332 of file AliAODVertex.cxx.
Referenced by RemoveDaughters().
|
inline |
Definition at line 103 of file AliAODVertex.h.
|
inlineprivate |
Definition at line 151 of file AliAODVertex.h.
Referenced by AliAODVertex(), operator=(), and RemoveDaughters().
AliAODVertex & AliAODVertex::operator= | ( | const AliAODVertex & | vtx | ) |
Assignment operator
Definition at line 216 of file AliAODVertex.cxx.
void AliAODVertex::PhiAndThetaToVertex | ( | AliAODVertex * | vtx, |
P & | phi, | ||
T & | theta | ||
) | const |
Definition at line 567 of file AliAODVertex.cxx.
Referenced by Error2DistanceToVertex(), Error2DistanceXYToVertex(), and SetNContributors().
|
virtual |
Print information of all data members
Implements AliVVertex.
Definition at line 659 of file AliAODVertex.cxx.
Referenced by ErrorDistanceXYToVertex().
|
virtual |
Print indices of particles originating form this vertex
Implements AliVVertex.
Definition at line 579 of file AliAODVertex.cxx.
Referenced by ErrorDistanceXYToVertex().
|
inline |
Definition at line 88 of file AliAODVertex.h.
Referenced by AliAODv0::ResetV0(), and AliAODcascade::ResetXi().
|
inline |
Definition at line 106 of file AliAODVertex.h.
|
inline |
Definition at line 107 of file AliAODVertex.h.
Referenced by AliAODv0::ResetV0(), and AliAODcascade::ResetXi().
Double_t AliAODVertex::RotatedCovMatrixXX | ( | Double_t | phi = 0. , |
Double_t | theta = 0. |
||
) | const |
XX term of covariance matrix after rotation by phi around z-axis and, then, by theta around new y-axis
Definition at line 352 of file AliAODVertex.cxx.
Referenced by Error2DistanceToVertex(), Error2DistanceXYToVertex(), and SetNContributors().
Double_t AliAODVertex::RotatedCovMatrixXY | ( | Double_t | phi = 0. , |
Double_t | theta = 0. |
||
) | const |
XY term of covariance matrix after rotation by phi around z-axis and, then, by theta around new y-axis
Definition at line 380 of file AliAODVertex.cxx.
Referenced by SetNContributors().
Double_t AliAODVertex::RotatedCovMatrixXZ | ( | Double_t | phi = 0. , |
Double_t | theta = 0. |
||
) | const |
XZ term of covariance matrix after rotation by phi around z-axis and, then, by theta around new y-axis
Definition at line 407 of file AliAODVertex.cxx.
Referenced by SetNContributors().
Double_t AliAODVertex::RotatedCovMatrixYY | ( | Double_t | phi = 0. | ) | const |
YY term of covariance matrix after rotation by phi around z-axis and, then, by theta around new y-axis
Definition at line 435 of file AliAODVertex.cxx.
Referenced by SetNContributors().
Double_t AliAODVertex::RotatedCovMatrixYZ | ( | Double_t | phi = 0. , |
Double_t | theta = 0. |
||
) | const |
YZ term of covariance matrix after rotation by phi around z-axis and, then, by theta around new y-axis
Definition at line 458 of file AliAODVertex.cxx.
Referenced by SetNContributors().
Double_t AliAODVertex::RotatedCovMatrixZZ | ( | Double_t | phi = 0. , |
Double_t | theta = 0. |
||
) | const |
ZZ term of covariance matrix after rotation by phi around z-axis and, then, by theta around new y-axis
Definition at line 485 of file AliAODVertex.cxx.
Referenced by SetNContributors().
|
inlinevirtual |
Reimplemented from AliVVertex.
Definition at line 148 of file AliAODVertex.h.
|
inline |
Definition at line 66 of file AliAODVertex.h.
Referenced by AliAODv0::ResetV0(), and AliAODcascade::ResetXi().
|
inline |
Definition at line 78 of file AliAODVertex.h.
|
inline |
Definition at line 97 of file AliAODVertex.h.
Referenced by AliAODv0::ResetV0(), and AliAODcascade::ResetXi().
|
inline |
Definition at line 115 of file AliAODVertex.h.
Referenced by CloneWithoutRefs().
|
inline |
Definition at line 68 of file AliAODVertex.h.
Referenced by AliAODv0::ResetV0(), and AliAODcascade::ResetXi().
|
inline |
Definition at line 62 of file AliAODVertex.h.
Referenced by AliAODv0::ResetV0(), and AliAODcascade::ResetXi().
|
inline |
Definition at line 63 of file AliAODVertex.h.
|
inline |
Definition at line 100 of file AliAODVertex.h.
Referenced by AliAODv0::ResetV0(), and AliAODcascade::ResetXi().
|
inlinestatic |
Definition at line 146 of file AliAODVertex.h.
|
inline |
Definition at line 59 of file AliAODVertex.h.
|
inline |
Definition at line 60 of file AliAODVertex.h.
|
inline |
Definition at line 61 of file AliAODVertex.h.
|
private |
BC ID assigned to vertex.
Definition at line 158 of file AliAODVertex.h.
Referenced by GetBC(), operator=(), and SetBC().
|
private |
chi2/NDF of vertex fit
Definition at line 156 of file AliAODVertex.h.
Referenced by CloneWithoutRefs(), GetChi2(), GetChi2perNDF(), operator=(), Print(), and SetChi2perNDF().
|
private |
vertex covariance matrix; values of and below the diagonal
Definition at line 163 of file AliAODVertex.h.
Referenced by AliAODVertex(), CloneWithoutRefs(), GetCovMatrix(), GetSigmaXYZ(), operator=(), RemoveCovMatrix(), RotatedCovMatrixXX(), RotatedCovMatrixXY(), RotatedCovMatrixXZ(), RotatedCovMatrixYY(), RotatedCovMatrixYZ(), RotatedCovMatrixZZ(), SetCovMatrix(), and ~AliAODVertex().
|
private |
references to the daughter particles
Definition at line 165 of file AliAODVertex.h.
Referenced by AddDaughter(), AsString(), CountRealContributors(), GetDaughter(), GetNDaughters(), HasDaughter(), operator=(), Print(), PrintIndices(), RemoveDaughter(), and RemoveDaughters().
|
staticprivate |
enforce old-style counting of VertexTracks contributors
Definition at line 169 of file AliAODVertex.h.
Referenced by GetNContributors(), GetUseCountVtxTrackContributors(), and SetUseCountVtxTrackContributors().
|
private |
vertex ID; corresponds to the array index of the appropriate ESD container
Definition at line 157 of file AliAODVertex.h.
Referenced by CloneWithoutRefs(), GetID(), operator=(), and SetID().
|
private |
! index of prong
Definition at line 161 of file AliAODVertex.h.
Referenced by AddDaughter(), MakeProngs(), operator=(), and RemoveDaughters().
|
private |
Number of contributors for SPD vertex.
Definition at line 162 of file AliAODVertex.h.
Referenced by CloneWithoutRefs(), GetNContributors(), GetNContributorsStored(), operator=(), and SetNContributors().
|
private |
number of prongs
Definition at line 160 of file AliAODVertex.h.
Referenced by AddDaughter(), AliAODVertex(), GetDaughter(), GetNDaughters(), HasDaughter(), MakeProngs(), operator=(), and ~AliAODVertex().
|
private |
reference to the parent particle
Definition at line 164 of file AliAODVertex.h.
Referenced by AsString(), GetParent(), HasParent(), operator=(), Print(), and SetParent().
|
private |
vertex position
Definition at line 155 of file AliAODVertex.h.
Referenced by AliAODVertex(), CloneWithoutRefs(), GetPosition(), GetX(), GetXYZ(), GetY(), GetZ(), operator=(), Print(), SetPosition(), SetX(), SetY(), and SetZ().
|
private |
alternative daughters for n-prong vertex
Definition at line 167 of file AliAODVertex.h.
Referenced by AddDaughter(), AliAODVertex(), GetDaughter(), GetNDaughters(), HasDaughter(), MakeProngs(), operator=(), RemoveDaughters(), and ~AliAODVertex().
|
private |
vertex type
Definition at line 159 of file AliAODVertex.h.
Referenced by CloneWithoutRefs(), GetNContributors(), GetType(), operator=(), Print(), and SetType().