66 iConfig.getParameter<
InputTag>(
"vertexCandidatesLabel"))),
68 inputTagBeamSpot_(consumes<
reco::
BeamSpot>(iConfig.getParameter<
InputTag>(
"offlineBeamSpotLabel"))),
113 produces<reco::PFDisplacedVertexCollection>();
127 LogDebug(
"PFDisplacedVertexProducer") <<
"START event: " <<
iEvent.id().event() <<
" in run " <<
iEvent.id().run();
154 std::unique_ptr<reco::PFDisplacedVertexCollection> pOutputDisplacedVertexCollection(
159 LogDebug(
"PFDisplacedVertexProducer") <<
"STOP event: " <<
iEvent.id().event() <<
" in run " <<
iEvent.id().run();
const edm::EDGetTokenT< reco::BeamSpot > inputTagBeamSpot_
const edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > globTkGeomToken_
void setEdmParameters(const MagneticField *magField, edm::ESHandle< GlobalTrackingGeometry > globTkGeomHandle, const TrackerTopology *tkerTopo, const TrackerGeometry *tkerGeom)
Sets parameters for track extrapolation and hits study.
T getParameter(std::string const &) const
PFDisplacedVertexFinder pfDisplacedVertexFinder_
Displaced Vertices finder.
std::vector< PFDisplacedVertexCandidate > PFDisplacedVertexCandidateCollection
collection of PFDisplacedVertexCandidate objects
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
const edm::EDGetTokenT< reco::PFDisplacedVertexCandidateCollection > inputTagVertexCandidates_
std::unique_ptr< reco::PFDisplacedVertexCollection > transferDisplacedVertices()
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkerGeomToken_
void findDisplacedVertices()
-----— Main function which find vertices -----— ///
std::vector< Vertex > VertexCollection
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tkerTopoToken_
PFDisplacedVertexProducer(const edm::ParameterSet &)
T getUntrackedParameter(std::string const &, T const &) const
const edm::EDGetTokenT< reco::VertexCollection > inputTagMainVertex_
Input tag for main vertex to cut of dxy of secondary tracks.
~PFDisplacedVertexProducer() override
void setTracksSelector(const edm::ParameterSet &ps)
void setDebug(bool debug)
Sets debug printout flag.
#define DEFINE_FWK_MODULE(type)
bool getData(T &iHolder) const
Producer for DisplacedVertices.
void setAVFParameters(const edm::ParameterSet &ps)
void setInput(const edm::Handle< reco::PFDisplacedVertexCandidateCollection > &)
Set input collections of tracks.
Log< level::Info, false > LogInfo
void setPrimaryVertex(edm::Handle< reco::VertexCollection > mainVertexHandle, edm::Handle< reco::BeamSpot > beamSpotHandle)
void setParameters(double transvSize, double longSize, double primaryVertexCut, double tobCut, double tecCut, double minAdaptWeight, bool switchOff2TrackVertex)
--—— Set different algo parameters --—— ///
void produce(edm::Event &, const edm::EventSetup &) override
void setVertexIdentifier(const edm::ParameterSet &ps)