49 double primaryVertexCut
53 double dcaPInnerHitCut
60 produces<reco::PFDisplacedVertexCandidateCollection>();
63 pfDisplacedVertexCandidateFinder_.setDebug(debug);
64 pfDisplacedVertexCandidateFinder_.setParameters(dcaCut, primaryVertexCut, dcaPInnerHitCut, ps_trk);
85 LogDebug(
"PFDisplacedVertexCandidateProducer")<<
"START event: "<<iEvent.
id().
event()
86 <<
" in run "<<iEvent.
id().
run()<<endl;
94 iEvent.
getByLabel(inputTagTracks_, trackCollection);
97 iEvent.
getByLabel(inputTagMainVertex_, mainVertexHandle);
100 iEvent.
getByLabel(inputTagBeamSpot_, beamSpotHandle);
102 pfDisplacedVertexCandidateFinder_.setPrimaryVertex(mainVertexHandle, beamSpotHandle);
103 pfDisplacedVertexCandidateFinder_.setInput( trackCollection, theMagField );
107 pfDisplacedVertexCandidateFinder_.findDisplacedVertexCandidates();
112 str<<pfDisplacedVertexCandidateFinder_<<endl;
113 cout << pfDisplacedVertexCandidateFinder_<<endl;
114 LogInfo(
"PFDisplacedVertexCandidateProducer") << str.str()<<endl;
118 auto_ptr< reco::PFDisplacedVertexCandidateCollection >
119 pOutputDisplacedVertexCandidateCollection(
120 pfDisplacedVertexCandidateFinder_.transferVertexCandidates() );
123 iEvent.
put(pOutputDisplacedVertexCandidateCollection);
125 LogDebug(
"PFDisplacedVertexCandidateProducer")<<
"STOP event: "<<iEvent.
id().
event()
126 <<
" 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.
virtual void beginRun(edm::Run &r, const edm::EventSetup &c)
~PFDisplacedVertexCandidateProducer()
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
PFDisplacedVertexCandidateProducer(const edm::ParameterSet &)
T const * product() const
virtual void produce(edm::Event &, const edm::EventSetup &)