#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) | |
AdaptiveVertexReconstructor * | clone () const override |
std::vector< TransientVertex > | vertices (const std::vector< reco::TransientTrack > &v) const override |
std::vector< TransientVertex > | vertices (const std::vector< reco::TransientTrack > &, const reco::BeamSpot &) const override |
std::vector< TransientVertex > | vertices (const std::vector< reco::TransientTrack > &primaries, const std::vector< reco::TransientTrack > &tracks, const reco::BeamSpot &) const override |
~AdaptiveVertexReconstructor () override | |
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().
|
override |
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 MillePedeFileConverter_cfg::e, edm::ParameterSet::getParameter(), ghostTrackVertexReco_cff::primcut, ghostTrackVertexReco_cff::seccut, setupFitters(), vertexReco_cff::smoothing, theMinWeight, theWeightThreshold, and cms::Exception::what().
|
private |
Definition at line 11 of file AdaptiveVertexReconstructor.cc.
References TransientVertex::degreesOfFreedom(), TransientVertex::hasPrior(), TransientVertex::hasRefittedTracks(), mps_fire::i, vertexReco_cff::minweight, TransientVertex::originalTracks(), TransientVertex::priorError(), TransientVertex::priorPosition(), TransientVertex::refittedTracks(), TransientVertex::totalChiSquared(), TransientVertex::trackWeight(), TransientVertex::vertexState(), and TransientVertex::weightMap().
Referenced by clone(), and vertices().
|
private |
cleanup reconstructed vertices. discard all with too few significant tracks.
Definition at line 266 of file AdaptiveVertexReconstructor.cc.
References mps_fire::i, theWeightThreshold, and w.
Referenced by clone(), and vertices().
|
inlineoverridevirtual |
Implements VertexReconstructor.
Definition at line 45 of file AdaptiveVertexReconstructor.h.
References AdaptiveVertexReconstructor(), cleanUp(), cleanUpVertices(), erase(), ghostTrackVertexReco_cff::primcut, ghostTrackVertexReco_cff::seccut, setupFitters(), vertexReco_cff::smoothing, vertices(), and w.
|
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 mps_fire::i, TransientVertex::originalTracks(), and TransientVertex::trackWeight().
Referenced by clone(), and vertices().
|
private |
setup the vertex fitters.
Definition at line 101 of file AdaptiveVertexReconstructor.cc.
References AdaptiveVertexFitter::setWeightThreshold(), thePrimaryFitter, theSecondaryFitter, and theWeightThreshold.
Referenced by AdaptiveVertexReconstructor(), and clone().
|
overridevirtual |
Reconstruct vertices
Implements VertexReconstructor.
Definition at line 179 of file AdaptiveVertexReconstructor.cc.
Referenced by clone(), and vertices().
|
overridevirtual |
Reconstruct vertices, exploiting the beamspot constraint for the primary vertex
Reimplemented from VertexReconstructor.
Definition at line 165 of file AdaptiveVertexReconstructor.cc.
References vertices().
|
overridevirtual |
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(), popcon2dropbox::copy(), MillePedeFileConverter_cfg::e, erase(), LogDebug, 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().