15 const std::vector<float> &
weights,
17 std::vector<float>::const_iterator
weight = weights.begin();
18 for (std::vector<TransientTrack>::const_iterator iter = tracks.begin(); iter != tracks.end(); ++iter) {
21 if (weight != weights.end())
30 const std::vector<TransientTrack> &
tracks,
33 const std::vector<float> &
weights,
36 : prediction_(prediction), prior_(prior), ndof_(ndof), chi2_(chi2) {
41 const std::vector<TransientTrack> &
tracks,
42 const std::vector<float> &
weights,
46 : prediction_(ghostTrack), prior_(prior), ndof_(ghostTrack.
ndof()), chi2_(ghostTrack.
chi2()) {
double lambda(const GlobalPoint &point) const
void setWeight(double weight)
auto const & tracks
cannot be loose
void initStates(const std::vector< TransientTrack > &tracks, const std::vector< float > &weights, double offset)
std::vector< GhostTrackState > states_
GhostTrackPrediction prediction_
bool linearize(const GhostTrackPrediction &pred, bool initial=false, double lambda=0.)
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalPoint
point in global coordinate system
GhostTrack(const GhostTrackPrediction &prior, const GhostTrackPrediction &prediction, const std::vector< GhostTrackState > &states, double ndof, double chi2)