#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 71 of file AdaptiveVertexReconstructor.cc.
References setupFitters().
Referenced by clone().
|
override |
Definition at line 76 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 120 of file AdaptiveVertexReconstructor.cc.
References MillePedeFileConverter_cfg::e, edm::ParameterSet::getParameter(), HLT_2018_cff::primcut, HLT_2018_cff::seccut, setupFitters(), HLT_2018_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, HLT_2018_cff::minweight, TransientVertex::originalTracks(), TransientVertex::priorError(), TransientVertex::priorPosition(), TransientVertex::refittedTracks(), runTheMatrix::ret, 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 235 of file AdaptiveVertexReconstructor.cc.
References mps_fire::i, runTheMatrix::ret, theWeightThreshold, and w.
Referenced by clone(), and vertices().
|
inlineoverridevirtual |
Implements VertexReconstructor.
Definition at line 42 of file AdaptiveVertexReconstructor.h.
References AdaptiveVertexReconstructor(), cleanUp(), cleanUpVertices(), erase(), HLT_2018_cff::primcut, HLT_2018_cff::seccut, setupFitters(), HLT_2018_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 55 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 83 of file AdaptiveVertexReconstructor.cc.
References AdaptiveVertexFitter::setWeightThreshold(), thePrimaryFitter, theSecondaryFitter, and theWeightThreshold.
Referenced by AdaptiveVertexReconstructor(), and clone().
|
overridevirtual |
Reconstruct vertices
Implements VertexReconstructor.
Definition at line 160 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 149 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 154 of file AdaptiveVertexReconstructor.cc.
References vertices().
|
private |
the actual fit to avoid code duplication
Definition at line 164 of file AdaptiveVertexReconstructor.cc.
References cleanUp(), cleanUpVertices(), filterCSVwithJSON::copy, dqmiodatasetharvest::ctr, MillePedeFileConverter_cfg::e, erase(), LogDebug, runTheMatrix::ret, theMinWeight, thePrimaryFitter, theSecondaryFitter, findQualityFiles::v, and AdaptiveVertexFitter::vertex().
|
private |
Definition at line 77 of file AdaptiveVertexReconstructor.h.
Referenced by AdaptiveVertexReconstructor(), and vertices().
|
private |
Definition at line 73 of file AdaptiveVertexReconstructor.h.
Referenced by setupFitters(), vertices(), and ~AdaptiveVertexReconstructor().
|
private |
Definition at line 74 of file AdaptiveVertexReconstructor.h.
Referenced by setupFitters(), vertices(), and ~AdaptiveVertexReconstructor().
|
private |
Definition at line 79 of file AdaptiveVertexReconstructor.h.
Referenced by AdaptiveVertexReconstructor(), cleanUpVertices(), and setupFitters().