#include <OniaVtxReProducer.h>
Public Member Functions | |
const edm::InputTag & | inputBeamSpot () const |
Get the InputTag of the BeamSpot used in the VertexProducer. More... | |
const edm::ParameterSet & | inputConfig () const |
Get the configuration used in the VertexProducer. More... | |
const edm::InputTag & | inputTracks () const |
Get the InputTag of the TrackCollection used in the VertexProducer. More... | |
std::vector< TransientVertex > | makeVertices (const reco::TrackCollection &tracks, const reco::BeamSpot &bs, const edm::EventSetup &iSetup) const |
Make the vertices. More... | |
OniaVtxReProducer (const edm::Handle< reco::VertexCollection > &configFromOriginalVertexCollection, const edm::Event &iEvent) | |
This is the real constructor to be used. More... | |
OniaVtxReProducer (const edm::ParameterSet &configByHand) | |
This is only for testing. More... | |
Private Member Functions | |
void | configure (const edm::ParameterSet &iConfig) |
Private Attributes | |
std::unique_ptr< PrimaryVertexProducerAlgorithm > | algo_ |
edm::InputTag | beamSpotTag_ |
edm::ParameterSet | config_ |
edm::InputTag | tracksTag_ |
Definition at line 15 of file OniaVtxReProducer.h.
OniaVtxReProducer::OniaVtxReProducer | ( | const edm::Handle< reco::VertexCollection > & | configFromOriginalVertexCollection, |
const edm::Event & | iEvent | ||
) |
This is the real constructor to be used.
Definition at line 11 of file OniaVtxReProducer.cc.
References beamSpotTag_, configure(), Exception, edm::Provenance::friendlyClassName(), edm::Event::getProvenance(), HLT_2018_cff::InputTag, edm::Provenance::moduleLabel(), edm::moduleName(), edm::parameterSet(), edm::ProductProvenance::parentage(), parents, edm::Parentage::parents(), edm::Provenance::processName(), edm::Provenance::productInstanceName(), edm::Provenance::productProvenance(), edm::HandleBase::provenance(), and tracksTag_.
|
inline |
This is only for testing.
Definition at line 21 of file OniaVtxReProducer.h.
References configure(), makeVertices(), and PDWG_EXOHSCP_cff::tracks.
|
private |
Definition at line 65 of file OniaVtxReProducer.cc.
References algo_, beamSpotTag_, config_, edm::ParameterSet::getParameter(), and tracksTag_.
Referenced by inputBeamSpot(), and OniaVtxReProducer().
|
inline |
Get the InputTag of the BeamSpot used in the VertexProducer.
Definition at line 35 of file OniaVtxReProducer.h.
References beamSpotTag_, and configure().
|
inline |
Get the configuration used in the VertexProducer.
Definition at line 29 of file OniaVtxReProducer.h.
References config_.
|
inline |
Get the InputTag of the TrackCollection used in the VertexProducer.
Definition at line 32 of file OniaVtxReProducer.h.
References tracksTag_.
std::vector< TransientVertex > OniaVtxReProducer::makeVertices | ( | const reco::TrackCollection & | tracks, |
const reco::BeamSpot & | bs, | ||
const edm::EventSetup & | iSetup | ||
) | const |
Make the vertices.
Definition at line 72 of file OniaVtxReProducer.cc.
References algo_, and edm::EventSetup::get().
Referenced by OniaVtxReProducer(), and Onia2MuMuPAT::produce().
|
private |
Definition at line 43 of file OniaVtxReProducer.h.
Referenced by configure(), and makeVertices().
|
private |
Definition at line 42 of file OniaVtxReProducer.h.
Referenced by configure(), inputBeamSpot(), and OniaVtxReProducer().
|
private |
Definition at line 40 of file OniaVtxReProducer.h.
Referenced by configure(), and inputConfig().
|
private |
Definition at line 41 of file OniaVtxReProducer.h.
Referenced by configure(), inputTracks(), and OniaVtxReProducer().