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

Decay Chain. More...

#include <decaychain.h>

Public Member Functions

 DecayChain ()
 Default Constructor.
 
 DecayChain (const DecayChain &OldDecayChain)
 Copy Constructor.
 
 DecayChain (Jet *MyJet, const std::vector< Track * > &Tracks, const std::vector< Vertex * > &Vertices)
 Full Constructor. More...
 
Jetjet () const
 Owner Jet. More...
 
const std::vector< Track * > & allTracks () const
 All tracks contained in DecayChain. More...
 
const std::vector< Track * > & attachedTracks () const
 Attached tracks contained in DecayChain. More...
 
const std::vector< Vertex * > & vertices () const
 Vertices contained in DecayChain. More...
 
double charge () const
 Charge sum of all tracks in the DecayChain. More...
 
const util::Vector3momentum () const
 Perigee momentum sum of all tracks in the DecayChain. More...
 
void addTrack (Track *Track)
 Add Track. More...
 
bool removeTrack (Track *Track)
 Remove Track. More...
 
bool hasTrack (Track *Track) const
 Does the DecayChain have this Track? More...
 
void addVertex (Vertex *Vertex)
 Add Vertex. More...
 
bool removeVertex (Vertex *Vertex)
 Remove Vertex. More...
 
bool hasVertex (Vertex *Vertex) const
 Does the DecayChain have this Vertex? More...
 
 DecayChain ()
 Default Constructor.
 
 DecayChain (const DecayChain &OldDecayChain)
 Copy Constructor.
 
 DecayChain (Jet *MyJet, const std::vector< Track * > &Tracks, const std::vector< Vertex * > &Vertices)
 Full Constructor. More...
 
Jetjet () const
 Owner Jet. More...
 
const std::vector< Track * > & allTracks () const
 All tracks contained in DecayChain. More...
 
const std::vector< Track * > & attachedTracks () const
 Attached tracks contained in DecayChain. More...
 
const std::vector< Vertex * > & vertices () const
 Vertices contained in DecayChain. More...
 
double charge () const
 Charge sum of all tracks in the DecayChain. More...
 
const util::Vector3momentum () const
 Perigee momentum sum of all tracks in the DecayChain. More...
 
void addTrack (Track *Track)
 Add Track. More...
 
bool removeTrack (Track *Track)
 Remove Track. More...
 
bool hasTrack (Track *Track) const
 Does the DecayChain have this Track? More...
 
void addVertex (Vertex *Vertex)
 Add Vertex. More...
 
bool removeVertex (Vertex *Vertex)
 Remove Vertex. More...
 
bool hasVertex (Vertex *Vertex) const
 Does the DecayChain have this Vertex? More...
 

Detailed Description

Decay Chain.

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 19 of file include/vertex_lcfi/inc/decaychain.h.

Constructor & Destructor Documentation

vertex_lcfi::DecayChain::DecayChain ( Jet MyJet,
const std::vector< Track * > &  Tracks,
const std::vector< Vertex * > &  Vertices 
)

Full Constructor.

Parameters
TracksA vector of pointers to tracks that are attahced to the decay chain
VerticesA vector of pointers to vertices that are contained in the decay chain

Definition at line 43 of file decaychain.cpp.

vertex_lcfi::DecayChain::DecayChain ( Jet MyJet,
const std::vector< Track * > &  Tracks,
const std::vector< Vertex * > &  Vertices 
)

Full Constructor.

Parameters
TracksA vector of pointers to tracks that are attahced to the decay chain
VerticesA vector of pointers to vertices that are contained in the decay chain

Member Function Documentation

void vertex_lcfi::DecayChain::addTrack ( Track Track)

Add Track.

Add a track to the DecayChain as an attached track

Parameters
TrackPointer to the track to be added

Definition at line 133 of file decaychain.cpp.

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

void vertex_lcfi::DecayChain::addTrack ( Track Track)

Add Track.

Add a track to the DecayChain as an attached track

Parameters
TrackPointer to the track to be added
void vertex_lcfi::DecayChain::addVertex ( Vertex Vertex)

Add Vertex.

Add a Vertex to the DecayChain

Parameters
VertexPointer to the Vertex to be added

Definition at line 180 of file decaychain.cpp.

void vertex_lcfi::DecayChain::addVertex ( Vertex Vertex)

Add Vertex.

Add a Vertex to the DecayChain

Parameters
VertexPointer to the Vertex to be added
const std::vector< Track * > & vertex_lcfi::DecayChain::allTracks ( ) const

All tracks contained in DecayChain.

Returns all tracks contained in both attached tracks and in vertices, in order of increasing d0

Returns
A vector of pointers to all tracks in the decay chain

Definition at line 52 of file decaychain.cpp.

Referenced by vertex_lcfi::VertexCharge::calculateFor(), vertex_lcfi::VertexMomentum::calculateFor(), vertex_lcfi::SecVertexProb::calculateFor(), vertex_lcfi::VertexMass::calculateFor(), charge(), and momentum().

const std::vector<Track*>& vertex_lcfi::DecayChain::allTracks ( ) const

All tracks contained in DecayChain.

Returns all tracks contained in both attached tracks and in vertices, in order of increasing d0

Returns
A vector of pointers to all tracks in the decay chain
const std::vector< Track * > & vertex_lcfi::DecayChain::attachedTracks ( ) const

Attached tracks contained in DecayChain.

Returns attached tracks, in order of increasing d0

Returns
A vector of pointers to attached tracks in the decay chain

Definition at line 75 of file decaychain.cpp.

const std::vector<Track*>& vertex_lcfi::DecayChain::attachedTracks ( ) const

Attached tracks contained in DecayChain.

Returns attached tracks, in order of increasing d0

Returns
A vector of pointers to attached tracks in the decay chain
double vertex_lcfi::DecayChain::charge ( ) const

Charge sum of all tracks in the DecayChain.

Sums charge of all tracks in vertices and attached

Returns
double of sum charge
double vertex_lcfi::DecayChain::charge ( ) const

Charge sum of all tracks in the DecayChain.

Sums charge of all tracks in vertices and attached

Returns
double of sum charge

Definition at line 85 of file decaychain.cpp.

References allTracks().

bool vertex_lcfi::DecayChain::hasTrack ( Track Track) const

Does the DecayChain have this Track?

Does this DecayChain have a perticular track?

Parameters
TrackPointer to track to be checked
Returns
1 if track was found, 0 if not found

Definition at line 164 of file decaychain.cpp.

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

bool vertex_lcfi::DecayChain::hasTrack ( Track Track) const

Does the DecayChain have this Track?

Does this DecayChain have a perticular track?

Parameters
TrackPointer to track to be checked
Returns
1 if track was found, 0 if not found
bool vertex_lcfi::DecayChain::hasVertex ( Vertex Vertex) const

Does the DecayChain have this Vertex?

Does this DecayChain have a perticular Vertex?

Parameters
VertexPointer to Vertex to be checked
Returns
1 if Vertex was found, 0 if not found

Definition at line 201 of file decaychain.cpp.

bool vertex_lcfi::DecayChain::hasVertex ( Vertex Vertex) const

Does the DecayChain have this Vertex?

Does this DecayChain have a perticular Vertex?

Parameters
VertexPointer to Vertex to be checked
Returns
1 if Vertex was found, 0 if not found
Jet* vertex_lcfi::DecayChain::jet ( ) const
inline

Owner Jet.

Returns a pointer to the Jet that contains this decay chain

Returns
A vector of pointers to all tracks in the decay chain

Definition at line 43 of file vertex_lcfi/inc/decaychain.h.

Jet* vertex_lcfi::DecayChain::jet ( ) const
inline

Owner Jet.

Returns a pointer to the Jet that contains this decay chain

Returns
A vector of pointers to all tracks in the decay chain

Definition at line 43 of file include/vertex_lcfi/inc/decaychain.h.

Referenced by vertex_lcfi::VertexDecaySignificance::calculateFor(), and vertex_lcfi::TrackAttach::calculateFor().

const util::Vector3& vertex_lcfi::DecayChain::momentum ( ) const

Perigee momentum sum of all tracks in the DecayChain.

Sums momentum of all tracks in vertices and attached tracks

Returns
Vector3 of momentum
const Vector3 & vertex_lcfi::DecayChain::momentum ( ) const

Perigee momentum sum of all tracks in the DecayChain.

Sums momentum of all tracks in vertices and attached tracks

Returns
Vector3 of momentum

Definition at line 109 of file decaychain.cpp.

References allTracks().

bool vertex_lcfi::DecayChain::removeTrack ( Track Track)

Remove Track.

Remove a track from the DecayChain, track will be removed from both attached tracks and vertices

Parameters
TrackPointer to track to be removed
Returns
1 if track was found and removed, 0 if not found
bool vertex_lcfi::DecayChain::removeTrack ( Track Track)

Remove Track.

Remove a track from the DecayChain, track will be removed from both attached tracks and vertices

Parameters
TrackPointer to track to be removed
Returns
1 if track was found and removed, 0 if not found

Definition at line 140 of file decaychain.cpp.

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

bool vertex_lcfi::DecayChain::removeVertex ( Vertex Vertex)

Remove Vertex.

Remove a Vertex from the DecayChain

Parameters
VertexPointer to Vertex to be removed
Returns
1 if Vertex was found and removed, 0 if not found
bool vertex_lcfi::DecayChain::removeVertex ( Vertex Vertex)

Remove Vertex.

Remove a Vertex from the DecayChain

Parameters
VertexPointer to Vertex to be removed
Returns
1 if Vertex was found and removed, 0 if not found

Definition at line 187 of file decaychain.cpp.

const std::vector< Vertex * > & vertex_lcfi::DecayChain::vertices ( ) const

Vertices contained in DecayChain.

Returns vertices, in order of increasing rphi radius from the origin

Returns
A vector of pointers to vertices in the decay chain

Definition at line 80 of file decaychain.cpp.

Referenced by vertex_lcfi::VertexMultiplicity::calculateFor(), vertex_lcfi::VertexDecaySignificance::calculateFor(), vertex_lcfi::TrackAttach::calculateFor(), and vertex_lcfi::VertexMass::calculateFor().

const std::vector<Vertex*>& vertex_lcfi::DecayChain::vertices ( ) const

Vertices contained in DecayChain.

Returns vertices, in order of increasing rphi radius from the origin

Returns
A vector of pointers to vertices in the decay chain

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