25 std::vector<reco::TransientTrack>
result;
30 float pvDistance = ipSeed.second.value();
31 for (std::vector<reco::TransientTrack>::const_iterator
tt =
tracks.begin();
tt !=
tracks.end(); ++
tt) {
37 GlobalError ttPointErr =
tt->impactPointState().cartesianError().position();
51 float distanceFromPV = (dist.
points().second -
pv).
mag();
54 tt->impactPointState().globalDirection().x(),
tt->impactPointState().globalDirection().y(), 0.);
59 float dotprodTrack = (dist.
points().first -
pv).
unit().
dot(
tt->impactPointState().globalDirection().unit());
62 float w = distanceFromPV * distanceFromPV / (pvDistance *
distance);
82 <<
" crossingtoPV: " << distanceFromPV <<
" dis*scal " << distance *
distanceRatio <<
" < " 84 "timeSig: " << timeSig << std::endl;
87 result.push_back(*
tt);
89 GlobalPoint(
cp.x() * w + seedingPoint.
x(),
cp.
y() * w + seedingPoint.
y(),
cp.z() * w + seedingPoint.
z());
96 GlobalPoint(seedingPoint.
x() / sumWeights, seedingPoint.
y() / sumWeights, seedingPoint.
z() / sumWeights);
97 return std::pair<std::vector<reco::TransientTrack>,
GlobalPoint>(
result, seedingPoint);
double clusterMaxSignificance
std::pair< GlobalPoint, GlobalPoint > points() const override
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Global3DPoint GlobalPoint
const CartesianTrajectoryError cartesianError() const
double covariance(int i, int j) const
(i, j)-th element of error matrix, i, j = 0, ... 2
constexpr bool isFinite(T x)
const Point & position() const
position
bool calculate(const TrajectoryStateOnSurface &sta, const TrajectoryStateOnSurface &stb) override
Measurement1D distance(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override
double maxTimeSignificance
Abs< T >::type abs(const T &t)
double clusterMaxDistance
GlobalPoint crossingPoint() const override
double clusterMinAngleCosine
float y() const
Same as rapidity().
Vector3DBase unit() const
double significance() const
float distance() const override
const GlobalError position() const
Position error submatrix.
double dtErrorExt() const
TrajectoryStateOnSurface impactPointState() const
Power< A, B >::type pow(const A &a, const B &b)
GlobalVector globalDirection() const
Basic3DVector unit() const
T dot(const Basic3DVector &rh) const
Scalar product, or "dot" product, with a vector of same type.