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;
70 out <<
"\t Seed Point x = " <<
seedPoint().x() <<
"\t Seed Point y = " <<
seedPoint().y()
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 y() const
Cartesian y coordinate.
T x() const
Cartesian x coordinate.
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.
void Dump(std::ostream &out=std::cout) const
cout function
T z() const
Cartesian z coordinate.
GlobalPoint seedPoint_
Seed point which indicated the approximative position of the vertex.
const GlobalPoint & seedPoint() const
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
bool isEmpty() const
Check if it is a new Seed.
void reserveElements(size_t)
Reserve space for elements.
const double totalWeight() const
std::vector< TrackBaseRef > elements_
---—— MEMBERS ----—— ///
const std::vector< TrackBaseRef > & elements() const
void updateSeedPoint(const GlobalPoint &dcaPoint, const TrackBaseRef, const TrackBaseRef, double weight=1)