30 inputTagVertexCandidates_ =
31 consumes<reco::PFDisplacedVertexCandidateCollection>(iConfig.
getParameter<
InputTag>(
"vertexCandidatesLabel"));
33 inputTagMainVertex_ = consumes<reco::VertexCollection>(iConfig.
getParameter<
InputTag>(
"mainVertexLabel"));
35 inputTagBeamSpot_ = consumes<reco::BeamSpot>(iConfig.
getParameter<
InputTag>(
"offlineBeamSpotLabel"));
75 produces<reco::PFDisplacedVertexCollection>();
78 pfDisplacedVertexFinder_.setDebug(
debug);
79 pfDisplacedVertexFinder_.setParameters(
81 pfDisplacedVertexFinder_.setAVFParameters(ps_avf);
82 pfDisplacedVertexFinder_.setTracksSelector(ps_trk);
83 pfDisplacedVertexFinder_.setVertexIdentifier(ps_vtx);
89 LogDebug(
"PFDisplacedVertexProducer") <<
"START event: " <<
iEvent.id().event() <<
" in run " <<
iEvent.id().run()
108 iEvent.getByToken(inputTagVertexCandidates_, vertexCandidates);
111 iEvent.getByToken(inputTagMainVertex_, mainVertexHandle);
114 iEvent.getByToken(inputTagBeamSpot_, beamSpotHandle);
117 pfDisplacedVertexFinder_.setEdmParameters(
118 theMagField, globTkGeomHandle, tkerTopoHandle.
product(), tkerGeomHandle.
product());
119 pfDisplacedVertexFinder_.setPrimaryVertex(mainVertexHandle, beamSpotHandle);
120 pfDisplacedVertexFinder_.setInput(vertexCandidates);
123 pfDisplacedVertexFinder_.findDisplacedVertices();
128 cout << pfDisplacedVertexFinder_ << endl;
129 LogInfo(
"PFDisplacedVertexProducer") <<
str.str() << endl;
132 std::unique_ptr<reco::PFDisplacedVertexCollection> pOutputDisplacedVertexCollection(
133 pfDisplacedVertexFinder_.transferDisplacedVertices());
137 LogDebug(
"PFDisplacedVertexProducer") <<
"STOP event: " <<
iEvent.id().event() <<
" in run " <<
iEvent.id().run()