|
|
Go to the documentation of this file.
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;
const GlobalPoint & seedPoint() const
void Dump(std::ostream &out=std::cout) const
cout function
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void addElement(TrackBaseRef)
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.
const std::vector< TrackBaseRef > & elements() const
XYZPointD XYZPoint
point in space with cartesian internal representation
GlobalPoint seedPoint_
Seed point which indicated the approximative position of the vertex.
std::vector< TrackBaseRef > elements_
------— MEMBERS -------— ///
T x() const
Cartesian x coordinate.
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalPoint
point in global coordinate system
std::pair< OmniClusterRef, TrackingParticleRef > P
void updateSeedPoint(const GlobalPoint &dcaPoint, const TrackBaseRef, const TrackBaseRef, double weight=1)
T z() const
Cartesian z coordinate.
bool isEmpty() const
Check if it is a new Seed.
void reserveElements(size_t)
Reserve space for elements.