#include <AdaptiveVertexReconstructor.h>
Public Member Functions | |
AdaptiveVertexReconstructor (float primcut=2.0, float seccut=6.0, float minweight=0.5, bool smoothing=false) | |
AdaptiveVertexReconstructor (const edm::ParameterSet &s) | |
virtual AdaptiveVertexReconstructor * | clone () const |
std::vector< TransientVertex > | vertices (const std::vector< reco::TransientTrack > &v) const |
std::vector< TransientVertex > | vertices (const std::vector< reco::TransientTrack > &, const reco::BeamSpot &) const |
std::vector< TransientVertex > | vertices (const std::vector< reco::TransientTrack > &primaries, const std::vector< reco::TransientTrack > &tracks, const reco::BeamSpot &) const |
~AdaptiveVertexReconstructor () | |
Public Member Functions inherited from VertexReconstructor | |
VertexReconstructor () | |
virtual | ~VertexReconstructor () |
Private Member Functions | |
TransientVertex | cleanUp (const TransientVertex &old) const |
std::vector< TransientVertex > | cleanUpVertices (const std::vector< TransientVertex > &) const |
void | erase (const TransientVertex &newvtx, std::set< reco::TransientTrack > &remainingtrks, float w) const |
void | setupFitters (float primcut, float primT, float primr, float seccut, float secT, float secr, bool smoothing) |
std::vector< TransientVertex > | vertices (const std::vector< reco::TransientTrack > &primaries, const std::vector< reco::TransientTrack > &trks, const reco::BeamSpot &, bool has_primaries, bool usespot) const |
Private Attributes | |
float | theMinWeight |
AdaptiveVertexFitter * | thePrimaryFitter |
AdaptiveVertexFitter * | theSecondaryFitter |
float | theWeightThreshold |
Definition at line 9 of file AdaptiveVertexReconstructor.h.
AdaptiveVertexReconstructor::AdaptiveVertexReconstructor | ( | float | primcut = 2.0 , |
float | seccut = 6.0 , |
||
float | minweight = 0.5 , |
||
bool | smoothing = false |
||
) |
Definition at line 87 of file AdaptiveVertexReconstructor.cc.
References setupFitters().
Referenced by clone().
AdaptiveVertexReconstructor::~AdaptiveVertexReconstructor | ( | ) |
Definition at line 95 of file AdaptiveVertexReconstructor.cc.
References thePrimaryFitter, and theSecondaryFitter.
AdaptiveVertexReconstructor::AdaptiveVertexReconstructor | ( | const edm::ParameterSet & | s | ) |
The ParameterSet should have the following defined: double primcut double seccut double minweight for descriptions see
Definition at line 134 of file AdaptiveVertexReconstructor.cc.
References alignCSCRings::e, edm::ParameterSet::getParameter(), setupFitters(), theMinWeight, theWeightThreshold, and cms::Exception::what().
|
private |
Definition at line 11 of file AdaptiveVertexReconstructor.cc.
References TransientVertex::degreesOfFreedom(), TransientVertex::hasPrior(), TransientVertex::hasRefittedTracks(), i, TransientVertex::originalTracks(), TransientVertex::priorError(), TransientVertex::priorPosition(), TransientVertex::refittedTracks(), run_regression::ret, TransientVertex::totalChiSquared(), TransientVertex::trackWeight(), TransientVertex::vertexState(), and TransientVertex::weightMap().
Referenced by vertices().
|
private |
cleanup reconstructed vertices. discard all with too few significant tracks.
Definition at line 266 of file AdaptiveVertexReconstructor.cc.
References i, run_regression::ret, theWeightThreshold, and w.
Referenced by vertices().
|
inlinevirtual |
Implements VertexReconstructor.
Definition at line 45 of file AdaptiveVertexReconstructor.h.
References AdaptiveVertexReconstructor().
|
private |
contrary to what its name has you believe, ::erase removes all newvtx.originalTracks() above theMinWeight from remainingtrks.
Definition at line 66 of file AdaptiveVertexReconstructor.cc.
References i, TransientVertex::originalTracks(), TransientVertex::trackWeight(), and puppiForMET_cff::weight.
Referenced by vertices().
|
private |
setup the vertex fitters.
Definition at line 101 of file AdaptiveVertexReconstructor.cc.
References AdaptiveVertexFitter::setWeightThreshold(), thePrimaryFitter, theSecondaryFitter, and theWeightThreshold.
Referenced by AdaptiveVertexReconstructor().
|
virtual |
Reconstruct vertices
Implements VertexReconstructor.
Definition at line 179 of file AdaptiveVertexReconstructor.cc.
Referenced by vertices().
|
virtual |
Reconstruct vertices, exploiting the beamspot constraint for the primary vertex
Reimplemented from VertexReconstructor.
Definition at line 165 of file AdaptiveVertexReconstructor.cc.
References vertices().
|
virtual |
Reconstruct vertices, but exploit the fact that you know that some tracks cannot come from a secondary vertex. primaries Tracks that cannot come from a secondary vertex (but can, in principle, be non-primaries, also). tracks These are the tracks that are of unknown origin. These tracks are subjected to pattern recognition. spot A beamspot constraint is mandatory in this method.
Reimplemented from VertexReconstructor.
Definition at line 172 of file AdaptiveVertexReconstructor.cc.
References vertices().
|
private |
the actual fit to avoid code duplication
Definition at line 186 of file AdaptiveVertexReconstructor.cc.
References cleanUp(), cleanUpVertices(), filterCSVwithJSON::copy, alignCSCRings::e, erase(), LogDebug, run_regression::ret, theMinWeight, thePrimaryFitter, theSecondaryFitter, findQualityFiles::v, and AdaptiveVertexFitter::vertex().
|
private |
Definition at line 84 of file AdaptiveVertexReconstructor.h.
Referenced by AdaptiveVertexReconstructor(), and vertices().
|
private |
Definition at line 80 of file AdaptiveVertexReconstructor.h.
Referenced by setupFitters(), vertices(), and ~AdaptiveVertexReconstructor().
|
private |
Definition at line 81 of file AdaptiveVertexReconstructor.h.
Referenced by setupFitters(), vertices(), and ~AdaptiveVertexReconstructor().
|
private |
Definition at line 86 of file AdaptiveVertexReconstructor.h.
Referenced by AdaptiveVertexReconstructor(), cleanUpVertices(), and setupFitters().