#include <TrackKinematics.h>
Public Member Functions | |
void | add (const reco::Track &track, double weight=1.0) |
void | add (const reco::CandidatePtr &track) |
void | add (const reco::TrackRef &track, double weight=1.0) |
unsigned int | numberOfTracks () const |
TrackKinematics | operator+ (const TrackKinematics &other) |
TrackKinematics & | operator+= (const TrackKinematics &other) |
double | sumOfWeights () const |
TrackKinematics () | |
TrackKinematics (const std::vector< reco::Track > &tracks) | |
TrackKinematics (const reco::TrackRefVector &tracks) | |
TrackKinematics (const std::vector< reco::CandidatePtr > &tracks) | |
TrackKinematics (const reco::CandidatePtrVector &tracks) | |
TrackKinematics (const reco::Vertex &vertex) | |
TrackKinematics (const reco::VertexCompositePtrCandidate &vertex) | |
const math::XYZTLorentzVector & | vectorSum () const |
const math::XYZTLorentzVector & | weightedVectorSum () const |
~TrackKinematics () | |
Private Attributes | |
unsigned int | n |
math::XYZTLorentzVector | sum |
double | sumWeights |
math::XYZTLorentzVector | weightedSum |
Definition at line 16 of file TrackKinematics.h.
TrackKinematics::TrackKinematics | ( | ) |
Definition at line 16 of file TrackKinematics.cc.
TrackKinematics::TrackKinematics | ( | const std::vector< reco::Track > & | tracks | ) |
Definition at line 21 of file TrackKinematics.cc.
References add().
TrackKinematics::TrackKinematics | ( | const reco::TrackRefVector & | tracks | ) |
Definition at line 29 of file TrackKinematics.cc.
References add(), edm::RefVector< C, T, F >::begin(), and edm::RefVector< C, T, F >::end().
TrackKinematics::TrackKinematics | ( | const std::vector< reco::CandidatePtr > & | tracks | ) |
Definition at line 37 of file TrackKinematics.cc.
References add().
TrackKinematics::TrackKinematics | ( | const reco::CandidatePtrVector & | tracks | ) |
Definition at line 45 of file TrackKinematics.cc.
References add(), edm::PtrVector< T >::begin(), and edm::PtrVector< T >::end().
TrackKinematics::TrackKinematics | ( | const reco::Vertex & | vertex | ) |
Definition at line 53 of file TrackKinematics.cc.
References add(), reco::Vertex::hasRefittedTracks(), reco::Vertex::refittedTrack(), reco::Vertex::tracks_begin(), reco::Vertex::tracks_end(), and reco::Vertex::trackWeight().
|
inline |
Definition at line 24 of file TrackKinematics.h.
|
inline |
Definition at line 28 of file TrackKinematics.h.
void TrackKinematics::add | ( | const reco::Track & | track, |
double | weight = 1.0 |
||
) |
Definition at line 77 of file TrackKinematics.cc.
References n, reco::ParticleMasses::piPlus, reco::TrackBase::px(), reco::TrackBase::py(), reco::TrackBase::pz(), sum, sumWeights, puppiForMET_cff::weight, and weightedSum.
Referenced by add(), CandidateBoostedDoubleSecondaryVertexComputer::discriminator(), CombinedSVComputer::fillCommonVariables(), counter.Counter::register(), GhostTrackComputer::threshTrack(), and TrackKinematics().
void TrackKinematics::add | ( | const reco::CandidatePtr & | track | ) |
Definition at line 92 of file TrackKinematics.cc.
References n, sum, sumWeights, puppiForMET_cff::weight, and weightedSum.
Referenced by counter.Counter::register().
|
inline |
Definition at line 34 of file TrackKinematics.h.
References add(), and puppiForMET_cff::weight.
Referenced by counter.Counter::register().
|
inline |
Definition at line 41 of file TrackKinematics.h.
References n.
Referenced by CombinedSVComputer::fillCommonVariables().
|
inline |
TrackKinematics & TrackKinematics::operator+= | ( | const TrackKinematics & | other | ) |
Definition at line 67 of file TrackKinematics.cc.
References n, sum, sumWeights, and weightedSum.
|
inline |
|
inline |
Definition at line 44 of file TrackKinematics.h.
References sum.
Referenced by CandidateBoostedDoubleSecondaryVertexComputer::discriminator(), TemplatedSimpleSecondaryVertexComputer< IPTI, VTX >::discriminator(), CombinedSVComputer::fillCommonVariables(), reco::VertexFilter::operator()(), and GhostTrackComputer::threshTrack().
|
inline |
Definition at line 46 of file TrackKinematics.h.
References weightedSum.
Referenced by CandidateBoostedDoubleSecondaryVertexComputer::discriminator(), CombinedSVComputer::fillCommonVariables(), and reco::VertexFilter::operator()().
|
private |
Definition at line 50 of file TrackKinematics.h.
Referenced by add(), numberOfTracks(), and operator+=().
|
private |
Definition at line 52 of file TrackKinematics.h.
Referenced by add(), operator+=(), and vectorSum().
|
private |
Definition at line 51 of file TrackKinematics.h.
Referenced by add(), operator+=(), and sumOfWeights().
|
private |
Definition at line 53 of file TrackKinematics.h.
Referenced by add(), operator+=(), and weightedVectorSum().