#include <GhostTrack.h>
Public Member Functions | |
double | chi2 () const |
GhostTrack (const GhostTrackPrediction &prior, const GhostTrackPrediction &prediction, const std::vector< GhostTrackState > &states, double ndof, double chi2) | |
GhostTrack (const GhostTrackPrediction &prior, const GhostTrackPrediction &prediction, const std::vector< TransientTrack > &tracks, double ndof, double chi2, const std::vector< float > &weights=std::vector< float >(), const GlobalPoint &origin=GlobalPoint(), bool withOrigin=false) | |
GhostTrack (const Track &ghostTrack, const std::vector< TransientTrack > &tracks, const std::vector< float > &weights=std::vector< float >(), const GhostTrackPrediction &prior=GhostTrackPrediction(), const GlobalPoint &origin=GlobalPoint(), bool withOrigin=false) | |
double | ndof () const |
operator Track () const | |
const GhostTrackPrediction & | prediction () const |
const GhostTrackPrediction & | prior () const |
const std::vector < GhostTrackState > & | states () const |
Private Member Functions | |
void | initStates (const std::vector< TransientTrack > &tracks, const std::vector< float > &weights, double offset) |
Private Attributes | |
double | chi2_ |
double | ndof_ |
GhostTrackPrediction | prediction_ |
GhostTrackPrediction | prior_ |
std::vector< GhostTrackState > | states_ |
Definition at line 16 of file GhostTrack.h.
reco::GhostTrack::GhostTrack | ( | const GhostTrackPrediction & | prior, |
const GhostTrackPrediction & | prediction, | ||
const std::vector< GhostTrackState > & | states, | ||
double | ndof, | ||
double | chi2 | ||
) | [inline] |
Definition at line 18 of file GhostTrack.h.
: prediction_(prediction), prior_(prior), states_(states), ndof_(ndof), chi2_(chi2) {}
GhostTrack::GhostTrack | ( | const GhostTrackPrediction & | prior, |
const GhostTrackPrediction & | prediction, | ||
const std::vector< TransientTrack > & | tracks, | ||
double | ndof, | ||
double | chi2, | ||
const std::vector< float > & | weights = std::vector<float>() , |
||
const GlobalPoint & | origin = GlobalPoint() , |
||
bool | withOrigin = false |
||
) |
Definition at line 29 of file GhostTrack.cc.
References initStates(), reco::GhostTrackPrediction::lambda(), and prediction_.
: prediction_(prediction), prior_(prior), ndof_(ndof), chi2_(chi2) { initStates(tracks, weights, withOrigin ? prediction_.lambda(origin) : 0.); }
GhostTrack::GhostTrack | ( | const Track & | ghostTrack, |
const std::vector< TransientTrack > & | tracks, | ||
const std::vector< float > & | weights = std::vector<float>() , |
||
const GhostTrackPrediction & | prior = GhostTrackPrediction() , |
||
const GlobalPoint & | origin = GlobalPoint() , |
||
bool | withOrigin = false |
||
) |
Definition at line 43 of file GhostTrack.cc.
References initStates(), reco::GhostTrackPrediction::lambda(), and prediction_.
: prediction_(ghostTrack), prior_(prior), ndof_(ghostTrack.ndof()), chi2_(ghostTrack.chi2()) { initStates(tracks, weights, withOrigin ? prediction_.lambda(origin) : 0.); }
double reco::GhostTrack::chi2 | ( | void | ) | const [inline] |
void GhostTrack::initStates | ( | const std::vector< TransientTrack > & | tracks, |
const std::vector< float > & | weights, | ||
double | offset | ||
) | [private] |
Definition at line 14 of file GhostTrack.cc.
References reco::GhostTrackState::linearize(), prediction_, reco::GhostTrackState::setWeight(), evf::utils::state, states_, and histoStyle::weight.
Referenced by GhostTrack().
{ std::vector<float>::const_iterator weight = weights.begin(); for(std::vector<TransientTrack>::const_iterator iter = tracks.begin(); iter != tracks.end(); ++iter) { GhostTrackState state(*iter); state.linearize(prediction_, true, offset); if (weight != weights.end()) state.setWeight(*weight++); states_.push_back(state); } }
double reco::GhostTrack::ndof | ( | ) | const [inline] |
reco::GhostTrack::operator Track | ( | ) | const [inline] |
Definition at line 48 of file GhostTrack.h.
References chi2_, ndof_, prediction_, and reco::GhostTrackPrediction::track().
{ return prediction_.track(ndof_, chi2_); }
const GhostTrackPrediction& reco::GhostTrack::prediction | ( | ) | const [inline] |
Definition at line 41 of file GhostTrack.h.
References prediction_.
Referenced by reco::GhostTrackVertexFinder::vertices().
{ return prediction_; }
const GhostTrackPrediction& reco::GhostTrack::prior | ( | ) | const [inline] |
const std::vector<GhostTrackState>& reco::GhostTrack::states | ( | ) | const [inline] |
double reco::GhostTrack::chi2_ [private] |
Definition at line 58 of file GhostTrack.h.
Referenced by chi2(), and operator Track().
double reco::GhostTrack::ndof_ [private] |
Definition at line 57 of file GhostTrack.h.
Referenced by ndof(), and operator Track().
Definition at line 54 of file GhostTrack.h.
Referenced by GhostTrack(), initStates(), operator Track(), and prediction().
GhostTrackPrediction reco::GhostTrack::prior_ [private] |
Definition at line 55 of file GhostTrack.h.
Referenced by prior().
std::vector<GhostTrackState> reco::GhostTrack::states_ [private] |
Definition at line 56 of file GhostTrack.h.
Referenced by initStates(), and states().