#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 HLT_2023v12_cff::primcut, HLT_2023v12_cff::seccut, setupFitters(), and HLT_2023v12_cff::smoothing.
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, visualization-live-secondInstance_cfg::m, HLT_2023v12_cff::primcut, HLT_2023v12_cff::seccut, setupFitters(), HLT_2023v12_cff::smoothing, theMinWeight, and theWeightThreshold.
|
private |
Definition at line 11 of file AdaptiveVertexReconstructor.cc.
References TransientVertex::degreesOfFreedom(), TransientVertex::hasPrior(), TransientVertex::hasRefittedTracks(), mps_fire::i, HLT_2023v12_cff::minweight, TransientVertex::originalTracks(), TransientVertex::priorError(), TransientVertex::priorPosition(), TransientVertex::refittedTracks(), runTheMatrix::ret, TransientVertex::totalChiSquared(), TransientVertex::trackWeight(), hltEgammaHLTExtra_cfi::trks, and TransientVertex::vertexState().
Referenced by vertices().
|
private |
cleanup reconstructed vertices. discard all with too few significant tracks.
Definition at line 233 of file AdaptiveVertexReconstructor.cc.
References mps_fire::i, runTheMatrix::ret, theWeightThreshold, and w().
Referenced by vertices().
|
inlineoverridevirtual |
Implements VertexReconstructor.
Definition at line 42 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 55 of file AdaptiveVertexReconstructor.cc.
References mps_fire::i, TransientVertex::originalTracks(), TransientVertex::trackWeight(), and w().
Referenced by vertices().
|
private |
setup the vertex fitters.
Definition at line 83 of file AdaptiveVertexReconstructor.cc.
References HLT_2023v12_cff::primcut, HLT_2023v12_cff::seccut, AdaptiveVertexFitter::setWeightThreshold(), HLT_2023v12_cff::smoothing, thePrimaryFitter, theSecondaryFitter, and theWeightThreshold.
Referenced by AdaptiveVertexReconstructor().
|
overridevirtual |
Reconstruct vertices
Implements VertexReconstructor.
Definition at line 160 of file AdaptiveVertexReconstructor.cc.
References pwdgSkimBPark_cfi::tracks.
Referenced by vertices().
|
overridevirtual |
Reconstruct vertices, exploiting the beamspot constraint for the primary vertex
Reimplemented from VertexReconstructor.
Definition at line 149 of file AdaptiveVertexReconstructor.cc.
References alignCSCRings::s, submitPVValidationJobs::t, and 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 alignCSCRings::s, pwdgSkimBPark_cfi::tracks, and vertices().
|
private |
the actual fit to avoid code duplication
Definition at line 164 of file AdaptiveVertexReconstructor.cc.
References cleanUp(), cleanUpVertices(), filterCSVwithJSON::copy, MillePedeFileConverter_cfg::e, erase(), LogDebug, runTheMatrix::ret, alignCSCRings::s, theMinWeight, thePrimaryFitter, theSecondaryFitter, pwdgSkimBPark_cfi::tracks, 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().