LCFIVertex  0.7.2
Public Member Functions | List of all members
vertex_lcfi::Vertex Class Reference

Vertex. More...

#include <vertex.h>

Public Member Functions

 Vertex ()
 Default Constuctor.
 
 Vertex (Event *Event, const std::vector< Track * > &Tracks, const Vector3 &Position, const SymMatrix3x3 &PosError, bool IsPrimary, double Chi2, double Probability, std::map< Track *, double > ChiTrack)
 Full Constructor. More...
 
 Vertex (Event *Event, const std::vector< Track * > &Tracks, const Vector3 &Position, const SymMatrix3x3 &PosError, bool IsPrimary, double Chi2, double Probability)
 Almost Full Constructor. More...
 
 Vertex (ZVTOP::CandidateVertex *CandidateVertex, Event *Event)
 Construct from Candidate Vertex. More...
 
Eventevent () const
 Event. More...
 
const std::vector< Track * > & tracks () const
 Get Tracks. More...
 
bool isPrimary () const
 Is this vertex primary. More...
 
bool & isPrimary ()
 Is this vertex primary. More...
 
void addTrack (Track *AddTrack)
 Add Track. More...
 
bool removeTrack (Track *RTrack)
 Remove Track. More...
 
bool hasTrack (Track *HTrack) const
 Does vertex contain this Track? More...
 
double charge () const
 Charge. More...
 
Vector3 momentum () const
 Momentum. More...
 
const Vector3position () const
 Position. More...
 
const SymMatrix3x3positionError () const
 Position. More...
 
double chi2 () const
 Chi Squared. More...
 
std::map< Track *, double > chi2OfTracks () const
 Chi Squared Of Tracks. More...
 
double probability () const
 Probability. More...
 
double radius (Projection Proj) const
 Radius. More...
 
double radiusError (Projection Proj) const
 Radius Error. More...
 
double distanceToVertex (Vertex *FarVertex, Projection Proj) const
 Distance to another vertex. More...
 
double distanceToVertexError (Vertex *FarVertex, Projection Proj) const
 Error of distance to another vertex. More...
 
 Vertex ()
 Default Constuctor.
 
 Vertex (Event *Event, const std::vector< Track * > &Tracks, const Vector3 &Position, const SymMatrix3x3 &PosError, bool IsPrimary, double Chi2, double Probability, std::map< Track *, double > ChiTrack)
 Full Constructor. More...
 
 Vertex (Event *Event, const std::vector< Track * > &Tracks, const Vector3 &Position, const SymMatrix3x3 &PosError, bool IsPrimary, double Chi2, double Probability)
 Almost Full Constructor. More...
 
 Vertex (ZVTOP::CandidateVertex *CandidateVertex, Event *Event)
 Construct from Candidate Vertex. More...
 
Eventevent () const
 Event. More...
 
const std::vector< Track * > & tracks () const
 Get Tracks. More...
 
bool isPrimary () const
 Is this vertex primary. More...
 
bool & isPrimary ()
 Is this vertex primary. More...
 
void addTrack (Track *AddTrack)
 Add Track. More...
 
bool removeTrack (Track *RTrack)
 Remove Track. More...
 
bool hasTrack (Track *HTrack) const
 Does vertex contain this Track? More...
 
double charge () const
 Charge. More...
 
Vector3 momentum () const
 Momentum. More...
 
const Vector3position () const
 Position. More...
 
const SymMatrix3x3positionError () const
 Position. More...
 
double chi2 () const
 Chi Squared. More...
 
std::map< Track *, double > chi2OfTracks () const
 Chi Squared Of Tracks. More...
 
double probability () const
 Probability. More...
 
double radius (Projection Proj) const
 Radius. More...
 
double radiusError (Projection Proj) const
 Radius Error. More...
 
double distanceToVertex (Vertex *FarVertex, Projection Proj) const
 Distance to another vertex. More...
 
double distanceToVertexError (Vertex *FarVertex, Projection Proj) const
 Error of distance to another vertex. More...
 

Detailed Description

Vertex.

Description

Author
Ben Jeffery (b.jef.nosp@m.fery.nosp@m.1@phy.nosp@m.sics.nosp@m..ox.a.nosp@m.c.uk)

Definition at line 28 of file include/vertex_lcfi/inc/vertex.h.

Constructor & Destructor Documentation

vertex_lcfi::Vertex::Vertex ( Event Event,
const std::vector< Track * > &  Tracks,
const Vector3 Position,
const SymMatrix3x3 PosError,
bool  IsPrimary,
double  Chi2,
double  Probability,
std::map< Track *, double >  ChiTrack 
)

Full Constructor.

Parameters
EventPointer to vertices Event
TracksVector of pointers to tracks that form the vertex
PositionVector3 of the vertices positon
PosErrorSymMatrix3x3 of the vertices error
ChiTrackmap of doubles with Track* key holding the chi squared contribution of every track to the vertex

Definition at line 11 of file vertex.cpp.

vertex_lcfi::Vertex::Vertex ( Event Event,
const std::vector< Track * > &  Tracks,
const Vector3 Position,
const SymMatrix3x3 PosError,
bool  IsPrimary,
double  Chi2,
double  Probability 
)

Almost Full Constructor.

Parameters
EventPointer to vertices Event
TracksVector of pointers to tracks that form the vertex
PositionVector3 of the vertices positon
PosErrorSymMatrix3x3 of the vertices error

Definition at line 15 of file vertex.cpp.

vertex_lcfi::Vertex::Vertex ( ZVTOP::CandidateVertex CandidateVertex,
Event Event 
)
vertex_lcfi::Vertex::Vertex ( Event Event,
const std::vector< Track * > &  Tracks,
const Vector3 Position,
const SymMatrix3x3 PosError,
bool  IsPrimary,
double  Chi2,
double  Probability,
std::map< Track *, double >  ChiTrack 
)

Full Constructor.

Parameters
EventPointer to vertices Event
TracksVector of pointers to tracks that form the vertex
PositionVector3 of the vertices positon
PosErrorSymMatrix3x3 of the vertices error
ChiTrackmap of doubles with Track* key holding the chi squared contribution of every track to the vertex
vertex_lcfi::Vertex::Vertex ( Event Event,
const std::vector< Track * > &  Tracks,
const Vector3 Position,
const SymMatrix3x3 PosError,
bool  IsPrimary,
double  Chi2,
double  Probability 
)

Almost Full Constructor.

Parameters
EventPointer to vertices Event
TracksVector of pointers to tracks that form the vertex
PositionVector3 of the vertices positon
PosErrorSymMatrix3x3 of the vertices error
vertex_lcfi::Vertex::Vertex ( ZVTOP::CandidateVertex CandidateVertex,
Event Event 
)

Construct from Candidate Vertex.

Parameters
CandidateVertexVertex to copy from
EventEvent to which the Vertex belongs

Member Function Documentation

void vertex_lcfi::Vertex::addTrack ( Track AddTrack)
inline

Add Track.

Add a track to the vertex. Does not affect fit. Will not be added if duplicate

Parameters
AddTrackPointer to track to add to vertex

Definition at line 89 of file include/vertex_lcfi/inc/vertex.h.

void vertex_lcfi::Vertex::addTrack ( Track AddTrack)
inline

Add Track.

Add a track to the vertex. Does not affect fit. Will not be added if duplicate

Parameters
AddTrackPointer to track to add to vertex

Definition at line 89 of file vertex_lcfi/inc/vertex.h.

double vertex_lcfi::Vertex::charge ( ) const

Charge.

Sum charge of tracks in the vertex

Returns
Track charge sum

Definition at line 70 of file vertex.cpp.

double vertex_lcfi::Vertex::charge ( ) const

Charge.

Sum charge of tracks in the vertex

Returns
Track charge sum
double vertex_lcfi::Vertex::chi2 ( ) const
inline

Chi Squared.

Returns
Double of the vertices chi^2

Definition at line 138 of file include/vertex_lcfi/inc/vertex.h.

double vertex_lcfi::Vertex::chi2 ( ) const
inline

Chi Squared.

Returns
Double of the vertices chi^2

Definition at line 138 of file vertex_lcfi/inc/vertex.h.

std::map<Track*,double> vertex_lcfi::Vertex::chi2OfTracks ( ) const
inline

Chi Squared Of Tracks.

Returns
map of doubles with Track* key of each tracks chi^2 contribution

Definition at line 144 of file include/vertex_lcfi/inc/vertex.h.

std::map<Track*,double> vertex_lcfi::Vertex::chi2OfTracks ( ) const
inline

Chi Squared Of Tracks.

Returns
map of doubles with Track* key of each tracks chi^2 contribution

Definition at line 144 of file vertex_lcfi/inc/vertex.h.

double vertex_lcfi::Vertex::distanceToVertex ( Vertex FarVertex,
Projection  Proj 
) const

Distance to another vertex.

Distance from the vertex postion to the other vertices position

Parameters
FarVertexPointer to the other vertex
ProjSpecifies projection of the distance to be taken
Returns
Distance from the vertex postion to the other vertices position

Definition at line 90 of file vertex.cpp.

References position().

Referenced by vertex_lcfi::VertexDecaySignificance::calculateFor().

double vertex_lcfi::Vertex::distanceToVertex ( Vertex FarVertex,
Projection  Proj 
) const

Distance to another vertex.

Distance from the vertex postion to the other vertices position

Parameters
FarVertexPointer to the other vertex
ProjSpecifies projection of the distance to be taken
Returns
Distance from the vertex postion to the other vertices position
double vertex_lcfi::Vertex::distanceToVertexError ( Vertex FarVertex,
Projection  Proj 
) const

Error of distance to another vertex.

Error of the distance from the vertex postion to the other vertices position, taking into account the uncertainty in both vertices

Parameters
FarVertexPointer to the other Vertex
ProjSpecifies projection of radius to be taken
Returns
Error of distance from the vertex to the Eevent's interaction point

Definition at line 95 of file vertex.cpp.

References position(), and positionError().

double vertex_lcfi::Vertex::distanceToVertexError ( Vertex FarVertex,
Projection  Proj 
) const

Error of distance to another vertex.

Error of the distance from the vertex postion to the other vertices position, taking into account the uncertainty in both vertices

Parameters
FarVertexPointer to the other Vertex
ProjSpecifies projection of radius to be taken
Returns
Error of distance from the vertex to the Eevent's interaction point
Event* vertex_lcfi::Vertex::event ( ) const
inline

Event.

Returns
Pointer to the vertices event

Definition at line 65 of file include/vertex_lcfi/inc/vertex.h.

Referenced by radius().

Event* vertex_lcfi::Vertex::event ( ) const
inline

Event.

Returns
Pointer to the vertices event

Definition at line 65 of file vertex_lcfi/inc/vertex.h.

bool vertex_lcfi::Vertex::hasTrack ( Track HTrack) const

Does vertex contain this Track?

Parameters
HTrackPointer to track to check vertex for
Returns
1 if Track found 0 if not
bool vertex_lcfi::Vertex::hasTrack ( Track HTrack) const

Does vertex contain this Track?

Parameters
HTrackPointer to track to check vertex for
Returns
1 if Track found 0 if not

Definition at line 49 of file vertex.cpp.

bool vertex_lcfi::Vertex::isPrimary ( ) const
inline

Is this vertex primary.

Returns
bool flag

Definition at line 77 of file vertex_lcfi/inc/vertex.h.

bool vertex_lcfi::Vertex::isPrimary ( ) const
inline

Is this vertex primary.

Returns
bool flag

Definition at line 77 of file include/vertex_lcfi/inc/vertex.h.

Referenced by vertex_lcfi::PerEventIPFitter::calculateFor().

bool& vertex_lcfi::Vertex::isPrimary ( )
inline

Is this vertex primary.

Returns
bool flag

Definition at line 82 of file include/vertex_lcfi/inc/vertex.h.

bool& vertex_lcfi::Vertex::isPrimary ( )
inline

Is this vertex primary.

Returns
bool flag

Definition at line 82 of file vertex_lcfi/inc/vertex.h.

Vector3 vertex_lcfi::Vertex::momentum ( ) const

Momentum.

Average perigee momentum of the tracks in the vertex

Returns
Vector3 of Average momentum

Definition at line 59 of file vertex.cpp.

Vector3 vertex_lcfi::Vertex::momentum ( ) const

Momentum.

Average perigee momentum of the tracks in the vertex

Returns
Vector3 of Average momentum
const Vector3& vertex_lcfi::Vertex::position ( ) const
inline
const Vector3& vertex_lcfi::Vertex::position ( ) const
inline

Position.

Returns
Vector3 of vertex position

Definition at line 124 of file vertex_lcfi/inc/vertex.h.

const SymMatrix3x3& vertex_lcfi::Vertex::positionError ( ) const
inline

Position.

Returns
SymMatrix3x3 of the error of vertex position

Definition at line 131 of file vertex_lcfi/inc/vertex.h.

const SymMatrix3x3& vertex_lcfi::Vertex::positionError ( ) const
inline

Position.

Returns
SymMatrix3x3 of the error of vertex position

Definition at line 131 of file include/vertex_lcfi/inc/vertex.h.

Referenced by distanceToVertexError(), vertex_lcfi::Event::interactionPointError(), and vertex_lcfi::VertexMass::Ptcalc().

double vertex_lcfi::Vertex::probability ( ) const
inline

Probability.

Returns
Double of the vertices probability

Definition at line 150 of file vertex_lcfi/inc/vertex.h.

double vertex_lcfi::Vertex::probability ( ) const
inline

Probability.

Returns
Double of the vertices probability

Definition at line 150 of file include/vertex_lcfi/inc/vertex.h.

double vertex_lcfi::Vertex::radius ( Projection  Proj) const

Radius.

Distance from the vertex postion to the event's interaction point

Parameters
ProjSpecifies projection of radius to be taken
Returns
Distance from the vertex to the event's interaction point
double vertex_lcfi::Vertex::radius ( Projection  Proj) const

Radius.

Distance from the vertex postion to the event's interaction point

Parameters
ProjSpecifies projection of radius to be taken
Returns
Distance from the vertex to the event's interaction point

Definition at line 80 of file vertex.cpp.

References event(), and position().

double vertex_lcfi::Vertex::radiusError ( Projection  Proj) const

Radius Error.

Error of the distance from the vertex postion to the event's interaction point, taking into account the uncertainty in both the vertex and interaction point

Parameters
ProjSpecifies projection of radius to be taken
Returns
Error of distance from the vertex to the event's interaction point
double vertex_lcfi::Vertex::radiusError ( Projection  Proj) const

Radius Error.

Error of the distance from the vertex postion to the event's interaction point, taking into account the uncertainty in both the vertex and interaction point

Parameters
ProjSpecifies projection of radius to be taken
Returns
Error of distance from the vertex to the event's interaction point
bool vertex_lcfi::Vertex::removeTrack ( Track RTrack)

Remove Track.

Remove a track from the vertex. Does not affect fit. Does nothing if track is not in vertex

Parameters
RTrackPointer to track to remove from vertex
Returns
1 if Track removed 0 if not found
bool vertex_lcfi::Vertex::removeTrack ( Track RTrack)

Remove Track.

Remove a track from the vertex. Does not affect fit. Does nothing if track is not in vertex

Parameters
RTrackPointer to track to remove from vertex
Returns
1 if Track removed 0 if not found

Definition at line 37 of file vertex.cpp.

References position().

Referenced by vertex_lcfi::ZVKIN::calculateFor().

const std::vector<Track*>& vertex_lcfi::Vertex::tracks ( ) const
inline

Get Tracks.

Returns
Vector of pointers to Tracks in the vertex (can be empty)

Definition at line 71 of file include/vertex_lcfi/inc/vertex.h.

const std::vector<Track*>& vertex_lcfi::Vertex::tracks ( ) const
inline

Get Tracks.

Returns
Vector of pointers to Tracks in the vertex (can be empty)

Definition at line 71 of file vertex_lcfi/inc/vertex.h.


The documentation for this class was generated from the following files: