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();
39 GlobalError seedPositionErr =
seed.impactPointState().cartesianError().position();
51 float distanceFromPV = (dist.
points().second -
pv).
mag();
54 tt->impactPointState().globalDirection().x(),
tt->impactPointState().globalDirection().y(), 0.);
56 seed.impactPointState().globalDirection().x(),
seed.impactPointState().globalDirection().y(), 0.);
59 float dotprodTrack = (dist.
points().first -
pv).
unit().
dot(
tt->impactPointState().globalDirection().unit());
60 float dotprodSeed = (dist.
points().second -
pv).
unit().
dot(
seed.impactPointState().globalDirection().unit());
62 float w = distanceFromPV * distanceFromPV / (pvDistance *
distance);
78 std::cout <<
tt->trackBaseRef().key() <<
" : " << (selected ?
"+" :
" ") <<
" " <<
m.significance() <<
" < " 84 "timeSig: " << timeSig << std::endl;
96 GlobalPoint(seedingPoint.
x() / sumWeights, seedingPoint.
y() / sumWeights, seedingPoint.
z() / sumWeights);
97 return std::pair<std::vector<reco::TransientTrack>,
GlobalPoint>(
result, seedingPoint);
double clusterMaxSignificance
Global3DPoint GlobalPoint
GlobalPoint crossingPoint() const override
constexpr bool isFinite(T x)
bool calculate(const TrajectoryStateOnSurface &sta, const TrajectoryStateOnSurface &stb) override
double maxTimeSignificance
Abs< T >::type abs(const T &t)
std::pair< GlobalPoint, GlobalPoint > points() const override
double clusterMaxDistance
Basic3DVector unit() const
double clusterMinAngleCosine
Measurement1D distance(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
auto const & tracks
cannot be loose
float distance() const override
T dot(const Basic3DVector &rh) const
Scalar product, or "dot" product, with a vector of same type.
primaryVertex
hltOfflineBeamSpot for HLTMON
Power< A, B >::type pow(const A &a, const B &b)
def cp(fromDir, toDir, listOfFiles, overwrite=False, smallList=False)