#include <AdaptiveVertexReconstructor.h>
Public Member Functions | |
AdaptiveVertexReconstructor (const edm::ParameterSet &s) | |
AdaptiveVertexReconstructor (float primcut=2.0, float seccut=6.0, float minweight=0.5, bool smoothing=false) | |
AdaptiveVertexReconstructor * | clone () 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 |
std::vector< TransientVertex > | vertices (const std::vector< reco::TransientTrack > &v) 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_FULL_cff::primcut, HLT_FULL_cff::seccut, setupFitters(), and HLT_FULL_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_FULL_cff::primcut, HLT_FULL_cff::seccut, setupFitters(), HLT_FULL_cff::smoothing, theMinWeight, and theWeightThreshold.
|
private |
Definition at line 11 of file AdaptiveVertexReconstructor.cc.
References TransientVertex::hasPrior(), TransientVertex::hasRefittedTracks(), mps_fire::i, HLT_FULL_cff::minweight, TransientVertex::originalTracks(), TransientVertex::priorError(), TransientVertex::priorPosition(), TransientVertex::refittedTracks(), runTheMatrix::ret, TransientVertex::trackWeight(), and TransientVertex::vertexState().
Referenced by 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 vertices().
|
inlineoverridevirtual |
Implements VertexReconstructor.
Definition at line 41 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_FULL_cff::primcut, HLT_FULL_cff::seccut, AdaptiveVertexFitter::setWeightThreshold(), HLT_FULL_cff::smoothing, thePrimaryFitter, theSecondaryFitter, and theWeightThreshold.
Referenced by AdaptiveVertexReconstructor().
|
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. \paramname primaries Tracks that cannot come from a secondary vertex (but can, in principle, be non-primaries, also). \paramname tracks These are the tracks that are of unknown origin. These tracks are subjected to pattern recognition. \paramname spot A beamspot constraint is mandatory in this method.
Reimplemented from VertexReconstructor.
Definition at line 154 of file AdaptiveVertexReconstructor.cc.
References alignCSCRings::s, PDWG_EXOHSCP_cff::tracks, and 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, alignCSCRings::s, theMinWeight, thePrimaryFitter, theSecondaryFitter, PDWG_EXOHSCP_cff::tracks, findQualityFiles::v, and AdaptiveVertexFitter::vertex().
|
overridevirtual |
Reconstruct vertices
Implements VertexReconstructor.
Definition at line 160 of file AdaptiveVertexReconstructor.cc.
References PDWG_EXOHSCP_cff::tracks.
Referenced by vertices().
|
private |
Definition at line 76 of file AdaptiveVertexReconstructor.h.
Referenced by AdaptiveVertexReconstructor(), and vertices().
|
private |
Definition at line 72 of file AdaptiveVertexReconstructor.h.
Referenced by setupFitters(), vertices(), and ~AdaptiveVertexReconstructor().
|
private |
Definition at line 73 of file AdaptiveVertexReconstructor.h.
Referenced by setupFitters(), vertices(), and ~AdaptiveVertexReconstructor().
|
private |
Definition at line 78 of file AdaptiveVertexReconstructor.h.
Referenced by AdaptiveVertexReconstructor(), cleanUpVertices(), and setupFitters().