31 inputTagVertexCandidates_
84 produces<reco::PFDisplacedVertexCollection>();
87 pfDisplacedVertexFinder_.setDebug(debug);
88 pfDisplacedVertexFinder_.setParameters(transvSize, longSize,
89 primaryVertexCut, tobCut,
90 tecCut, minAdaptWeight);
91 pfDisplacedVertexFinder_.setAVFParameters(ps_avf);
92 pfDisplacedVertexFinder_.setTracksSelector(ps_trk);
93 pfDisplacedVertexFinder_.setVertexIdentifier(ps_vtx);
115 LogDebug(
"PFDisplacedVertexProducer")<<
"START event: "<<iEvent.
id().
event()
116 <<
" in run "<<iEvent.
id().
run()<<endl;
131 iEvent.
getByLabel(inputTagVertexCandidates_, vertexCandidates);
134 iEvent.
getByLabel(inputTagMainVertex_, mainVertexHandle);
137 iEvent.
getByLabel(inputTagBeamSpot_, beamSpotHandle);
140 pfDisplacedVertexFinder_.setEdmParameters(theMagField, globTkGeomHandle, tkerGeomHandle);
141 pfDisplacedVertexFinder_.setPrimaryVertex(mainVertexHandle, beamSpotHandle);
142 pfDisplacedVertexFinder_.setInput(vertexCandidates);
145 pfDisplacedVertexFinder_.findDisplacedVertices();
151 cout << pfDisplacedVertexFinder_<<endl;
152 LogInfo(
"PFDisplacedVertexProducer") << str.str()<<endl;
156 auto_ptr< reco::PFDisplacedVertexCollection >
157 pOutputDisplacedVertexCollection(
158 pfDisplacedVertexFinder_.transferDisplacedVertices() );
162 iEvent.
put(pOutputDisplacedVertexCollection);
164 LogDebug(
"PFDisplacedVertexProducer")<<
"STOP event: "<<iEvent.
id().
event()
165 <<
" in run "<<iEvent.
id().
run()<<endl;
T getParameter(std::string const &) const
EventNumber_t event() const
T getUntrackedParameter(std::string const &, T const &) const
~PFDisplacedVertexProducer()
virtual void beginRun(edm::Run &r, const edm::EventSetup &c)
PFDisplacedVertexProducer(const edm::ParameterSet &)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void produce(edm::Event &, const edm::EventSetup &)
T const * product() const