Block of elements. More...
#include <PFDisplacedVertexSeed.h>
Classes | |
struct | Compare |
Public Types | |
typedef std::set < reco::TrackBaseRef > ::iterator | IEset |
-----— Useful Types -----— /// More... | |
Public Member Functions | |
void | addElement (TrackBaseRef) |
Add a track Reference to the current Seed. More... | |
void | Dump (std::ostream &out=std::cout) const |
cout function More... | |
const std::set< TrackBaseRef, Compare > & | elements () const |
bool | isEmpty () const |
Check if it is a new Seed. More... | |
void | mergeWith (const PFDisplacedVertexSeed &displacedVertex) |
Merge two Seeds if their seed Points are close enough. More... | |
const double | nTracks () const |
PFDisplacedVertexSeed () | |
Default constructor. More... | |
const GlobalPoint & | seedPoint () const |
const double | totalWeight () const |
void | updateSeedPoint (const GlobalPoint &dcaPoint, const TrackBaseRef, const TrackBaseRef, double weight=1) |
Private Attributes | |
std::set< TrackBaseRef, Compare > | elements_ |
---—— MEMBERS ----—— /// More... | |
GlobalPoint | seedPoint_ |
Seed point which indicated the approximative position of the vertex. More... | |
float | totalWeight_ |
Friends | |
std::ostream & | operator<< (std::ostream &out, const PFDisplacedVertexSeed &co) |
Block of elements.
A DisplacedVertexSeed is an intermediate format, usually not persistent, used by PFDisplacedVertexFinder to keep the information for vertex fit. This format is produced after parsing of PFDisplacedVertexCandidate which by construction may contain many seeds. This format contains:
Definition at line 28 of file PFDisplacedVertexSeed.h.
typedef std::set< reco::TrackBaseRef >::iterator reco::PFDisplacedVertexSeed::IEset |
-----— Useful Types -----— ///
Definition at line 34 of file PFDisplacedVertexSeed.h.
PFDisplacedVertexSeed::PFDisplacedVertexSeed | ( | ) |
Default constructor.
Definition at line 10 of file PFDisplacedVertexSeed.cc.
void PFDisplacedVertexSeed::addElement | ( | TrackBaseRef | ) |
Add a track Reference to the current Seed.
Definition at line 16 of file PFDisplacedVertexSeed.cc.
References elements_.
Referenced by mergeWith(), and updateSeedPoint().
void PFDisplacedVertexSeed::Dump | ( | std::ostream & | out = std::cout | ) | const |
cout function
Definition at line 71 of file PFDisplacedVertexSeed.cc.
References elements_, Pi, seedPoint(), and mathSSE::sqrt().
Referenced by PFDisplacedVertexFinder::fitVertexFromSeed().
|
inline |
Definition at line 64 of file PFDisplacedVertexSeed.h.
References elements_.
Referenced by PFDisplacedVertexFinder::fitVertexFromSeed(), and mergeWith().
|
inline |
Check if it is a new Seed.
Definition at line 61 of file PFDisplacedVertexSeed.h.
References elements_.
Referenced by updateSeedPoint().
void PFDisplacedVertexSeed::mergeWith | ( | const PFDisplacedVertexSeed & | displacedVertex | ) |
Merge two Seeds if their seed Points are close enough.
Definition at line 46 of file PFDisplacedVertexSeed.cc.
References addElement(), elements(), P, seedPoint(), seedPoint_, totalWeight(), totalWeight_, histoStyle::weight, Basic3DVector< T >::x(), Basic3DVector< T >::y(), and Basic3DVector< T >::z().
|
inline |
Definition at line 67 of file PFDisplacedVertexSeed.h.
References elements_.
|
inline |
Definition at line 70 of file PFDisplacedVertexSeed.h.
References seedPoint_.
Referenced by Dump(), PFDisplacedVertexFinder::fitVertexFromSeed(), PFDisplacedVertexFinder::isCloseTo(), and mergeWith().
|
inline |
Definition at line 73 of file PFDisplacedVertexSeed.h.
References totalWeight_.
Referenced by mergeWith().
void PFDisplacedVertexSeed::updateSeedPoint | ( | const GlobalPoint & | dcaPoint, |
const TrackBaseRef | , | ||
const TrackBaseRef | , | ||
double | weight = 1 |
||
) |
Add a track Ref to the Seed and recalculate the seedPoint with a new dcaPoint A weight different from 1 may be assign to the new DCA point
Definition at line 21 of file PFDisplacedVertexSeed.cc.
References addElement(), isEmpty(), P, seedPoint_, totalWeight_, histoStyle::weight, Basic3DVector< T >::x(), Basic3DVector< T >::y(), and Basic3DVector< T >::z().
|
friend |
|
private |
---—— MEMBERS ----—— ///
Set of tracks refs associated to the seed
Definition at line 87 of file PFDisplacedVertexSeed.h.
Referenced by addElement(), Dump(), elements(), isEmpty(), and nTracks().
|
private |
Seed point which indicated the approximative position of the vertex.
Definition at line 89 of file PFDisplacedVertexSeed.h.
Referenced by mergeWith(), seedPoint(), and updateSeedPoint().
|
private |
Total weight of the points used to calculate the seed point. Necessary for UpdateSeed Point function
Definition at line 92 of file PFDisplacedVertexSeed.h.
Referenced by mergeWith(), totalWeight(), and updateSeedPoint().