#include <RecoPixelVertexing/PixelVertexFinding/interface/DivisiveVertexFinder.h>
Public Member Functions | |
DivisiveVertexFinder (double track_pt_min, double track_pt_max, double track_chi2_max, double track_prob_min, 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_ |
PVClusterComparer * | pvComparer_ |
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 | track_pt_min, |
double | track_pt_max, | ||
double | track_chi2_max, | ||
double | track_prob_min, | ||
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.
References pvComparer_.
DivisiveVertexFinder::~DivisiveVertexFinder | ( | ) |
Definition at line 27 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 29 of file DivisiveVertexFinder.cc.
References PVPositionBuilder::average(), Measurement1D::error(), i, edm::isNotFinite(), edm::RefVector< C, T, F >::size(), findQualityFiles::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 54 of file DivisiveVertexFinder.cc.
References divmeth_, i, recoMuon::in, edm::isNotFinite(), dbtoconf::out, pvComparer_, pixeltemp::DivisiveClusterizer1D< T >::setBeamSpot(), edm::RefVector< C, T, F >::size(), python.multivaluedict::sort(), mathSSE::sqrt(), groupFilesInBlocks::temp, findQualityFiles::v, and verbose_.
Referenced by PixelVertexProducer::produce().
|
private |
We use Wolfgang's templated class that implements the actual divisive method.
Definition at line 53 of file DivisiveVertexFinder.h.
Referenced by findVertexesAlt().
|
private |
Definition at line 49 of file DivisiveVertexFinder.h.
|
private |
Definition at line 60 of file DivisiveVertexFinder.h.
Referenced by DivisiveVertexFinder(), and findVertexesAlt().
|
private |
Definition at line 50 of file DivisiveVertexFinder.h.
|
private |
Definition at line 57 of file DivisiveVertexFinder.h.
Referenced by findVertexesAlt().
|
private |
Definition at line 50 of file DivisiveVertexFinder.h.
Referenced by findVertexes().
|
private |
Cuts on vertex formation and other options.
Definition at line 48 of file DivisiveVertexFinder.h.
|
private |
Definition at line 48 of file DivisiveVertexFinder.h.