Block of elements. More...
#include <PFDisplacedVertexSeed.h>
Public Member Functions | |
void | addElement (TrackBaseRef) |
void | Dump (std::ostream &out=std::cout) const |
cout function More... | |
const std::vector< TrackBaseRef > & | 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... | |
void | reserveElements (size_t) |
Reserve space for elements. More... | |
const GlobalPoint & | seedPoint () const |
const double | totalWeight () const |
void | updateSeedPoint (const GlobalPoint &dcaPoint, const TrackBaseRef, const TrackBaseRef, double weight=1) |
Private Attributes | |
std::vector< TrackBaseRef > | 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 25 of file PFDisplacedVertexSeed.h.
PFDisplacedVertexSeed::PFDisplacedVertexSeed | ( | ) |
void PFDisplacedVertexSeed::addElement | ( | TrackBaseRef | element | ) |
Add a track Reference to the current Seed If the track reference is already in the collection, it is ignored
Definition at line 11 of file PFDisplacedVertexSeed.cc.
References elements_, spr::find(), and eostools::move().
Referenced by updateSeedPoint().
void PFDisplacedVertexSeed::Dump | ( | std::ostream & | out = std::cout | ) | const |
cout function
Definition at line 63 of file PFDisplacedVertexSeed.cc.
References elements_, MillePedeFileConverter_cfg::out, Pi, DiDispStaMuonMonitor_cfi::pt, seedPoint(), and mathSSE::sqrt().
Referenced by PFDisplacedVertexFinder::fitVertexFromSeed().
|
inline |
Definition at line 48 of file PFDisplacedVertexSeed.h.
References elements_.
Referenced by PFDisplacedVertexFinder::fitVertexFromSeed(), and mergeWith().
|
inline |
Check if it is a new Seed.
Definition at line 45 of file PFDisplacedVertexSeed.h.
References elements_.
Referenced by plotting.Plot::clone(), and updateSeedPoint().
void PFDisplacedVertexSeed::mergeWith | ( | const PFDisplacedVertexSeed & | displacedVertex | ) |
Merge two Seeds if their seed Points are close enough.
Definition at line 41 of file PFDisplacedVertexSeed.cc.
References MillePedeFileConverter_cfg::e, elements(), elements_, spr::find(), reserveElements(), seedPoint(), seedPoint_, totalWeight(), totalWeight_, mps_merge::weight, Basic3DVector< T >::x(), Basic3DVector< T >::y(), and Basic3DVector< T >::z().
|
inline |
void PFDisplacedVertexSeed::reserveElements | ( | size_t | newSize | ) |
Reserve space for elements.
Definition at line 17 of file PFDisplacedVertexSeed.cc.
References elements_.
Referenced by mergeWith(), and updateSeedPoint().
|
inline |
Definition at line 53 of file PFDisplacedVertexSeed.h.
References seedPoint_.
Referenced by Dump(), PFDisplacedVertexFinder::fitVertexFromSeed(), PFDisplacedVertexFinder::isCloseTo(), and mergeWith().
|
inline |
Definition at line 56 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 19 of file PFDisplacedVertexSeed.cc.
References addElement(), elements_, isEmpty(), diffTwoXMLs::r1, diffTwoXMLs::r2, reserveElements(), seedPoint_, totalWeight_, mps_merge::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 67 of file PFDisplacedVertexSeed.h.
Referenced by addElement(), Dump(), elements(), isEmpty(), mergeWith(), nTracks(), reserveElements(), and updateSeedPoint().
|
private |
Seed point which indicated the approximative position of the vertex.
Definition at line 69 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 72 of file PFDisplacedVertexSeed.h.
Referenced by mergeWith(), totalWeight(), and updateSeedPoint().