49 double primaryVertexCut
53 double dcaPInnerHitCut
60 produces<reco::PFDisplacedVertexCandidateCollection>();
63 pfDisplacedVertexCandidateFinder_.setDebug(debug);
64 pfDisplacedVertexCandidateFinder_.setParameters(dcaCut, primaryVertexCut, dcaPInnerHitCut, ps_trk);
76 LogDebug(
"PFDisplacedVertexCandidateProducer")<<
"START event: "<<iEvent.
id().
event()
77 <<
" in run "<<iEvent.
id().
run()<<endl;
85 iEvent.
getByLabel(inputTagTracks_, trackCollection);
88 iEvent.
getByLabel(inputTagMainVertex_, mainVertexHandle);
91 iEvent.
getByLabel(inputTagBeamSpot_, beamSpotHandle);
93 pfDisplacedVertexCandidateFinder_.setPrimaryVertex(mainVertexHandle, beamSpotHandle);
94 pfDisplacedVertexCandidateFinder_.setInput( trackCollection, theMagField );
98 pfDisplacedVertexCandidateFinder_.findDisplacedVertexCandidates();
103 str<<pfDisplacedVertexCandidateFinder_<<endl;
104 cout << pfDisplacedVertexCandidateFinder_<<endl;
105 LogInfo(
"PFDisplacedVertexCandidateProducer") << str.str()<<endl;
109 auto_ptr< reco::PFDisplacedVertexCandidateCollection >
110 pOutputDisplacedVertexCandidateCollection(
111 pfDisplacedVertexCandidateFinder_.transferVertexCandidates() );
114 iEvent.
put(pOutputDisplacedVertexCandidateCollection);
116 LogDebug(
"PFDisplacedVertexCandidateProducer")<<
"STOP event: "<<iEvent.
id().
event()
117 <<
" in run "<<iEvent.
id().
run()<<endl;
T getParameter(std::string const &) const
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
~PFDisplacedVertexCandidateProducer()
virtual void produce(edm::Event &, const edm::EventSetup &) override
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
PFDisplacedVertexCandidateProducer(const edm::ParameterSet &)
T const * product() const