72 consumes<reco::PFDisplacedVertexCandidateCollection>(iConfig.
getParameter<
InputTag>(
"vertexCandidatesLabel"));
86 double transvSize = iConfig.
getParameter<
double>(
"transvSize");
90 double longSize = iConfig.
getParameter<
double>(
"longSize");
94 double primaryVertexCut = iConfig.
getParameter<
double>(
"primaryVertexCut");
108 double minAdaptWeight = iConfig.
getParameter<
double>(
"minAdaptWeight");
116 produces<reco::PFDisplacedVertexCollection>();
121 transvSize, longSize, primaryVertexCut, tobCut, tecCut, minAdaptWeight, switchOff2TrackVertex);
130 LogDebug(
"PFDisplacedVertexProducer") <<
"START event: " << iEvent.
id().
event() <<
" in run " << iEvent.
id().
run()
161 LogInfo(
"PFDisplacedVertexProducer") << str.str() << endl;
164 std::unique_ptr<reco::PFDisplacedVertexCollection> pOutputDisplacedVertexCollection(
167 iEvent.
put(
std::move(pOutputDisplacedVertexCollection));
169 LogDebug(
"PFDisplacedVertexProducer") <<
"STOP event: " << iEvent.
id().
event() <<
" in run " << iEvent.
id().
run()
const edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > globTkGeomToken_
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
void setEdmParameters(const MagneticField *magField, edm::ESHandle< GlobalTrackingGeometry > globTkGeomHandle, const TrackerTopology *tkerTopo, const TrackerGeometry *tkerGeom)
Sets parameters for track extrapolation and hits study.
PFDisplacedVertexFinder pfDisplacedVertexFinder_
Displaced Vertices finder.
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::unique_ptr< reco::PFDisplacedVertexCollection > transferDisplacedVertices()
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > tkerGeomToken_
void findDisplacedVertices()
-----— Main function which find vertices -----— ///
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tkerTopoToken_
PFDisplacedVertexProducer(const edm::ParameterSet &)
bool getData(T &iHolder) const
~PFDisplacedVertexProducer() override
void setTracksSelector(const edm::ParameterSet &ps)
void setDebug(bool debug)
Sets debug printout flag.
edm::EDGetTokenT< reco::PFDisplacedVertexCandidateCollection > inputTagVertexCandidates_
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
edm::EDGetTokenT< reco::VertexCollection > inputTagMainVertex_
Input tag for main vertex to cut of dxy of secondary tracks.
void setPrimaryVertex(edm::Handle< reco::VertexCollection > mainVertexHandle, edm::Handle< reco::BeamSpot > beamSpotHandle)
edm::EDGetTokenT< reco::BeamSpot > inputTagBeamSpot_
T getParameter(std::string const &) const
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)