#include <RecoPixelVertexing/PixelVertexFinding/interface/DivisiveVertexFinder.h>
Public Member Functions | |
DivisiveVertexFinder (double zOffset=5.0, int ntrkMin=5, bool useError=true, double zSeparation=0.05, bool wtAverage=true, int verbosity=0) | |
bool | findVertexes (const reco::TrackRefVector &trks, reco::VertexCollection &vertexes) |
Run the divisive algorithm and return a vector of vertexes for the input track collection. More... | |
bool | findVertexesAlt (const reco::TrackRefVector &trks, reco::VertexCollection &vertexes, const math::XYZPoint &bs) |
~DivisiveVertexFinder () | |
Private Attributes | |
pixeltemp::DivisiveClusterizer1D < reco::Track > | divmeth_ |
We use Wolfgang's templated class that implements the actual divisive method. More... | |
int | ntrkMin_ |
bool | useError_ |
int | verbose_ |
bool | wtAverage_ |
double | zOffset_ |
Cuts on vertex formation and other options. More... | |
double | zSeparation_ |
Description: Fits a primary vertex in 1D (z) using the "divisive method"
Implementation: This class was ported from ORCA by me (Aaron). It was originally written by ... Find the PV candidates with a simple divisive method. Divide the luminosity region in several regions according to the track distance and for each of them make a PVCluster. Iteratively discard tracks and recover them in a new PVCluster. Return a sorted vector<Vertex> (aka VertexCollection) with the z coordinate of PV candidates
ntkmin | Minimum number of tracks required to form a cluster. |
useError | physical distances or weighted distances. |
zsep | Maximum distance between two adjacent tracks that belong to the same initial cluster. |
wei | Compute the cluster "center" with an unweighted or a weighted average of the tracks. Weighted means weighted with the error of the data point. |
Definition at line 34 of file DivisiveVertexFinder.h.
DivisiveVertexFinder::DivisiveVertexFinder | ( | double | zOffset = 5.0 , |
int | ntrkMin = 5 , |
||
bool | useError = true , |
||
double | zSeparation = 0.05 , |
||
bool | wtAverage = true , |
||
int | verbosity = 0 |
||
) |
Definition at line 13 of file DivisiveVertexFinder.cc.
DivisiveVertexFinder::~DivisiveVertexFinder | ( | ) |
Definition at line 24 of file DivisiveVertexFinder.cc.
bool DivisiveVertexFinder::findVertexes | ( | const reco::TrackRefVector & | trks, |
reco::VertexCollection & | vertexes | ||
) |
Run the divisive algorithm and return a vector of vertexes for the input track collection.
Definition at line 26 of file DivisiveVertexFinder.cc.
References PVPositionBuilder::average(), Measurement1D::error(), i, edm::detail::isnan(), pos, edm::RefVector< C, T, F >::size(), v, Measurement1D::value(), PVPositionBuilder::wtAverage(), and wtAverage_.
Referenced by PixelVertexProducer::produce().
bool DivisiveVertexFinder::findVertexesAlt | ( | const reco::TrackRefVector & | trks, |
reco::VertexCollection & | vertexes, | ||
const math::XYZPoint & | bs | ||
) |
Definition at line 51 of file DivisiveVertexFinder.cc.
References divmeth_, i, recoMuon::in, edm::detail::isnan(), dbtoconf::out, pixeltemp::DivisiveClusterizer1D< T >::setBeamSpot(), edm::RefVector< C, T, F >::size(), python.multivaluedict::sort(), mathSSE::sqrt(), groupFilesInBlocks::temp, v, and verbose_.
Referenced by PixelVertexProducer::produce().
|
private |
We use Wolfgang's templated class that implements the actual divisive method.
Definition at line 52 of file DivisiveVertexFinder.h.
Referenced by findVertexesAlt().
|
private |
Definition at line 48 of file DivisiveVertexFinder.h.
|
private |
Definition at line 49 of file DivisiveVertexFinder.h.
|
private |
Definition at line 56 of file DivisiveVertexFinder.h.
Referenced by findVertexesAlt().
|
private |
Definition at line 49 of file DivisiveVertexFinder.h.
Referenced by findVertexes().
|
private |
Cuts on vertex formation and other options.
Definition at line 47 of file DivisiveVertexFinder.h.
|
private |
Definition at line 47 of file DivisiveVertexFinder.h.