10 PFDisplacedVertexSeed::PFDisplacedVertexSeed() :
70 for(
auto const&
e: displacedVertex.
elements()) {
81 out<<
"\t--- DisplacedVertexSeed --- "<<endl;
82 out<<
"\tnumber of elements: "<<
elements_.size()<<endl;
84 out<<
"\t Seed Point x = " <<
seedPoint().x()
86 <<
"\t Seed Point z = " <<
seedPoint().z() << endl;
95 float innermost_radius =
sqrt(
Pi.x()*
Pi.x() +
Pi.y()*
Pi.y() +
Pi.z()*
Pi.z());
96 float outermost_radius =
sqrt(Po.x()*Po.x() + Po.y()*Po.y() + Po.z()*Po.z());
97 float innermost_rho =
sqrt(
Pi.x()*
Pi.x() +
Pi.y()*
Pi.y());
98 float outermost_rho =
sqrt(Po.x()*Po.x() + Po.y()*Po.y());
100 double pt = ie->pt();
103 out<<
"ie = " << ie.key() <<
" pt = " << pt
104 <<
" innermost hit radius = " << innermost_radius <<
" rho = " << innermost_rho
105 <<
" outermost hit radius = " << outermost_radius <<
" rho = " << outermost_rho
108 out<<
"ie = " << ie.key() <<
" pt = " << pt
110 <<
" out hit pos x = " << Po.x() <<
" y = " << Po.y() <<
" z = " << Po.z()
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
const std::vector< TrackBaseRef > & elements() const
std::vector< TrackBaseRef > elements_
---—— MEMBERS ----—— ///
void updateSeedPoint(const GlobalPoint &dcaPoint, const TrackBaseRef, const TrackBaseRef, double weight=1)