21 inputTagTracks_ = consumes<reco::TrackCollection>(iConfig.
getParameter<
InputTag>(
"trackCollection"));
23 inputTagMainVertex_ = consumes<reco::VertexCollection>(iConfig.
getParameter<
InputTag>(
"mainVertexLabel"));
25 inputTagBeamSpot_ = consumes<reco::BeamSpot>(iConfig.
getParameter<
InputTag>(
"offlineBeamSpotLabel"));
47 produces<reco::PFDisplacedVertexCandidateCollection>();
50 pfDisplacedVertexCandidateFinder_.setDebug(
debug);
57 LogDebug(
"PFDisplacedVertexCandidateProducer")
58 <<
"START event: " <<
iEvent.id().event() <<
" in run " <<
iEvent.id().run() << endl;
69 iEvent.getByToken(inputTagMainVertex_, mainVertexHandle);
72 iEvent.getByToken(inputTagBeamSpot_, beamSpotHandle);
74 pfDisplacedVertexCandidateFinder_.setPrimaryVertex(mainVertexHandle, beamSpotHandle);
75 pfDisplacedVertexCandidateFinder_.setInput(
trackCollection, theMagField);
78 pfDisplacedVertexCandidateFinder_.findDisplacedVertexCandidates();
82 str << pfDisplacedVertexCandidateFinder_ << endl;
83 cout << pfDisplacedVertexCandidateFinder_ << endl;
84 LogInfo(
"PFDisplacedVertexCandidateProducer") <<
str.str() << endl;
87 std::unique_ptr<reco::PFDisplacedVertexCandidateCollection> pOutputDisplacedVertexCandidateCollection(
88 pfDisplacedVertexCandidateFinder_.transferVertexCandidates());
92 LogDebug(
"PFDisplacedVertexCandidateProducer")
93 <<
"STOP event: " <<
iEvent.id().event() <<
" in run " <<
iEvent.id().run() << endl;