12 const Surface& referenceSurface)
13 : theComponents(prtsComp), ftsAvailable(
false), refSurface(&referenceSurface), surf(
true) {}
33 double maxWeight = -1.;
34 RTSvector::const_iterator maxIt;
36 if ((**it).weight() > maxWeight) {
37 maxWeight = (**it).weight();
57 throw VertexException(
"MultiRefittedTS::freeTrajectoryState(): Don't know how to do that yet...");
65 throw VertexException(
"MultiRefittedTS::freeTrajectoryState(): Don't know how to do that yet...");
73 throw VertexException(
"MultiRefittedTS::freeTrajectoryState(): Don't know how to do that yet...");
82 throw VertexException(
"MultiRefittedTS::freeTrajectoryState(): Don't know how to do that yet...");
89 cout <<
"Asking for weight of empty MultiRefittedTS, returning zero!" << endl;
101 "MultiRefittedTS::stateWithNewWeight(): Can not reweight multi-state with total weight < DBL_MIN");
109 reWeightedRTSC.push_back((**it).stateWithNewWeight((**it).weight() *
factor));
122 vector<TrajectoryStateOnSurface> tsosComponents;
125 tsosComponents.push_back((**it).trajectoryStateOnSurface(surface));
132 vector<TrajectoryStateOnSurface> tsosComponents;
135 tsosComponents.push_back((**it).trajectoryStateOnSurface(surface, propagator));
MultiRefittedTS(const std::vector< RefCountedRefittedTrackState > &prtsComp, const Surface &referenceSurface)
ROOT::Math::SVector< double, N-2 > AlgebraicVectorM
ROOT::Math::SMatrix< double, N, N, ROOT::Math::MatRepSym< double, N > > AlgebraicSymMatrixNN
double weight() const override
void computeFreeTrajectoryState() const
ReferenceCountingPointer< RefittedTrackState< 5 > > RefCountedRefittedTrackState
std::vector< RefCountedRefittedTrackState > RTSvector
AlgebraicVectorN parameters() const override
FreeTrajectoryState freeTrajectoryState() const override
TrajectoryStateOnSurface trajectoryStateOnSurface(const Surface &surface) const override
const GlobalPoint refPosition
const SurfaceType & surface() const
reco::TransientTrack transientTrack() const override
FreeTrajectoryState const * freeTrajectoryState(bool withErrors=true) const
ReferenceCountingPointer< RefittedTrackState< 5 > > stateWithNewWeight(const double newWeight) const override
bool totalWeightAvailable
reco::TransientTrack build(const FreeTrajectoryState &fts) const
AlgebraicVectorM momentumVector() const override
GlobalPoint position() const override
ROOT::Math::SVector< double, N > AlgebraicVectorN
AlgebraicSymMatrixNN covariance() const override
ConstReferenceCountingPointer< Surface > refSurface