9 PFDisplacedVertexSeed::PFDisplacedVertexSeed() : seedPoint_(
GlobalPoint(0, 0, 0)), totalWeight_(0) {}
56 for (
auto const&
e : displacedVertex.
elements()) {
67 out <<
"\t--- DisplacedVertexSeed --- " << endl;
68 out <<
"\tnumber of elements: " <<
elements_.size() << endl;
71 <<
"\t Seed Point z = " <<
seedPoint().z() << endl;
79 float innermost_radius =
sqrt(
Pi.x() *
Pi.x() +
Pi.y() *
Pi.y() +
Pi.z() *
Pi.z());
80 float outermost_radius =
sqrt(Po.x() * Po.x() + Po.y() * Po.y() + Po.z() * Po.z());
81 float innermost_rho =
sqrt(
Pi.x() *
Pi.x() +
Pi.y() *
Pi.y());
82 float outermost_rho =
sqrt(Po.x() * Po.x() + Po.y() * Po.y());
86 out <<
"ie = " << ie.key() <<
" pt = " <<
pt <<
" innermost hit radius = " << innermost_radius
87 <<
" rho = " << innermost_rho <<
" outermost hit radius = " << outermost_radius <<
" rho = " << outermost_rho
90 out <<
"ie = " << ie.key() <<
" pt = " 93 <<
" out hit pos x = " << Po.x() <<
" y = " << Po.y() <<
" z = " << Po.z() << endl;
T x() const
Cartesian x coordinate.
bool isEmpty() const
Check if it is a new Seed.
const GlobalPoint & seedPoint() const
void addElement(TrackBaseRef)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void mergeWith(const PFDisplacedVertexSeed &displacedVertex)
Merge two Seeds if their seed Points are close enough.
const double totalWeight() const
T y() const
Cartesian y coordinate.
void Dump(std::ostream &out=std::cout) const
cout function
const std::vector< TrackBaseRef > & elements() const
GlobalPoint seedPoint_
Seed point which indicated the approximative position of the vertex.
T z() const
Cartesian z coordinate.
XYZPointD XYZPoint
point in space with cartesian internal representation
std::pair< OmniClusterRef, TrackingParticleRef > P
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalPoint
point in global coordinate system
void reserveElements(size_t)
Reserve space for elements.
std::vector< TrackBaseRef > elements_
---—— MEMBERS ----—— ///
void updateSeedPoint(const GlobalPoint &dcaPoint, const TrackBaseRef, const TrackBaseRef, double weight=1)