#include <KinematicVertex.h>
Public Member Functions | |
float | chiSquared () const |
KinematicTree * | correspondingTree () const |
float | degreesOfFreedom () const |
GlobalError | error () const |
KinematicVertex () | |
KinematicVertex (const VertexState state, float totalChiSq, float degreesOfFr) | |
KinematicVertex (const VertexState state, const ReferenceCountingPointer< KinematicVertex > prVertex, float totalChiSq, float degreesOfFr) | |
KinematicVertex (const CachingVertex< 6 > &vertex) | |
operator reco::Vertex () | |
bool | operator< (const KinematicVertex &other) const |
bool | operator== (const KinematicVertex &other) const |
bool | operator== (const ReferenceCountingPointer< KinematicVertex > other) const |
GlobalPoint | position () const |
ReferenceCountingPointer < KinematicVertex > | vertexBeforeConstraint () const |
bool | vertexIsValid () const |
VertexState | vertexState () const |
~KinematicVertex () override | |
Private Member Functions | |
void | setTreePointer (KinematicTree *tr) const |
Private Attributes | |
ReferenceCountingPointer < KinematicVertex > | pVertex |
float | theChiSquared |
float | theNDF |
VertexState | theState |
KinematicTree * | tree |
bool | vl |
Friends | |
class | KinematicTree |
Class representing a Decay Vertex Caches a vertex position, covariance matrix, chi squared and number of degrees of freedom. Class is usually created by KinematicParticleVertexFitter
Kirill Prokofiev, December 2002
Definition at line 20 of file KinematicVertex.h.
KinematicVertex::KinematicVertex | ( | ) |
Empty default constructor for invalid vertices
Definition at line 8 of file KinematicVertex.cc.
References vl.
KinematicVertex::KinematicVertex | ( | const VertexState | state, |
float | totalChiSq, | ||
float | degreesOfFr | ||
) |
Constructor with vertex state, chi2 and ndf. Previous state of the vertex pointer is set to 0.
Definition at line 10 of file KinematicVertex.cc.
References pVertex, tree, and vl.
KinematicVertex::KinematicVertex | ( | const VertexState | state, |
const ReferenceCountingPointer< KinematicVertex > | prVertex, | ||
float | totalChiSq, | ||
float | degreesOfFr | ||
) |
Constructor with previous (before constraint) state of the vertex
Definition at line 32 of file KinematicVertex.cc.
KinematicVertex::KinematicVertex | ( | const CachingVertex< 6 > & | vertex | ) |
Direct transformation from caching vertex
Definition at line 21 of file KinematicVertex.cc.
References CachingVertex< N >::degreesOfFreedom(), CachingVertex< N >::error(), CachingVertex< N >::position(), pVertex, theChiSquared, theNDF, theState, CachingVertex< N >::totalChiSquared(), tree, and vl.
|
override |
Definition at line 73 of file KinematicVertex.cc.
float KinematicVertex::chiSquared | ( | ) | const |
KinematicTree * KinematicVertex::correspondingTree | ( | ) | const |
Returns the pointer to the kinematic tree (if any) current vertex belongs to returned in case of not any tree build yet
Definition at line 83 of file KinematicVertex.cc.
References tree.
float KinematicVertex::degreesOfFreedom | ( | ) | const |
GlobalError KinematicVertex::error | ( | ) | const |
Definition at line 77 of file KinematicVertex.cc.
References VertexState::error(), and theState.
Referenced by operator==().
KinematicVertex::operator reco::Vertex | ( | ) |
Definition at line 91 of file KinematicVertex.cc.
References reco::TransientTrack::basicTransientTrack(), mps_fire::i, TransientTrackKinematicParticle::initialTransientTrack(), edm::Ref< C, T, F >::isNonnull(), reco::TrackTransientTrack::persistentTrackRef(), reco::GsfTransientTrack::persistentTrackRef(), KinematicParticle::refittedTransientTrack(), reco::TransientTrack::track(), and MainPageGenerator::tree.
bool KinematicVertex::operator< | ( | const KinematicVertex & | other | ) | const |
comparison by adress operator Has NO physical meaning To be used inside the graph only
Definition at line 64 of file KinematicVertex.cc.
bool KinematicVertex::operator== | ( | const KinematicVertex & | other | ) | const |
Comparison by contents operator is true if position AND covariance match
Definition at line 41 of file KinematicVertex.cc.
References error(), GlobalErrorBase< T, ErrorWeightType >::matrix(), position(), vertexIsValid(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
bool KinematicVertex::operator== | ( | const ReferenceCountingPointer< KinematicVertex > | other | ) | const |
Definition at line 57 of file KinematicVertex.cc.
GlobalPoint KinematicVertex::position | ( | ) | const |
Definition at line 75 of file KinematicVertex.cc.
References VertexState::position(), and theState.
Referenced by operator==().
|
private |
ReferenceCountingPointer< KinematicVertex > KinematicVertex::vertexBeforeConstraint | ( | ) | const |
Previous (before constraint) state of the vertex
Definition at line 87 of file KinematicVertex.cc.
References pVertex.
bool KinematicVertex::vertexIsValid | ( | ) | const |
Access methods Checking the validity of the vertex Example: production vertex for the first decayed particle or decay vertices of final state particles can be invalid since we don't know them.
Definition at line 71 of file KinematicVertex.cc.
References vl.
Referenced by operator==().
VertexState KinematicVertex::vertexState | ( | ) | const |
|
friend |
Definition at line 22 of file KinematicVertex.h.
|
mutableprivate |
Definition at line 118 of file KinematicVertex.h.
Referenced by KinematicVertex(), and vertexBeforeConstraint().
|
private |
Definition at line 116 of file KinematicVertex.h.
Referenced by chiSquared(), and KinematicVertex().
|
private |
Definition at line 117 of file KinematicVertex.h.
Referenced by degreesOfFreedom(), and KinematicVertex().
|
private |
Definition at line 113 of file KinematicVertex.h.
Referenced by error(), KinematicVertex(), position(), and vertexState().
|
mutableprivate |
Definition at line 110 of file KinematicVertex.h.
Referenced by svgfig.SVG::__str__(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::beginLoop(), correspondingTree(), MetTreeProducer.MetTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::fillTree(), KinematicVertex(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::process(), MetTreeProducer.MetTreeProducer::process(), python.cmstools.EventTree::SetAlias(), and setTreePointer().
|
mutableprivate |
Definition at line 111 of file KinematicVertex.h.
Referenced by KinematicVertex(), and vertexIsValid().