31 inputTagVertexCandidates_
60 double primaryVertexCut
80 bool switchOff2TrackVertex
87 produces<reco::PFDisplacedVertexCollection>();
90 pfDisplacedVertexFinder_.setDebug(debug);
91 pfDisplacedVertexFinder_.setParameters(transvSize, longSize,
92 primaryVertexCut, tobCut,
93 tecCut, minAdaptWeight, switchOff2TrackVertex);
94 pfDisplacedVertexFinder_.setAVFParameters(ps_avf);
95 pfDisplacedVertexFinder_.setTracksSelector(ps_trk);
96 pfDisplacedVertexFinder_.setVertexIdentifier(ps_vtx);
118 LogDebug(
"PFDisplacedVertexProducer")<<
"START event: "<<iEvent.
id().
event()
119 <<
" in run "<<iEvent.
id().
run()<<endl;
134 iEvent.
getByLabel(inputTagVertexCandidates_, vertexCandidates);
137 iEvent.
getByLabel(inputTagMainVertex_, mainVertexHandle);
140 iEvent.
getByLabel(inputTagBeamSpot_, beamSpotHandle);
143 pfDisplacedVertexFinder_.setEdmParameters(theMagField, globTkGeomHandle, tkerGeomHandle);
144 pfDisplacedVertexFinder_.setPrimaryVertex(mainVertexHandle, beamSpotHandle);
145 pfDisplacedVertexFinder_.setInput(vertexCandidates);
148 pfDisplacedVertexFinder_.findDisplacedVertices();
154 cout << pfDisplacedVertexFinder_<<endl;
155 LogInfo(
"PFDisplacedVertexProducer") << str.str()<<endl;
159 auto_ptr< reco::PFDisplacedVertexCollection >
160 pOutputDisplacedVertexCollection(
161 pfDisplacedVertexFinder_.transferDisplacedVertices() );
165 iEvent.
put(pOutputDisplacedVertexCollection);
167 LogDebug(
"PFDisplacedVertexProducer")<<
"STOP event: "<<iEvent.
id().
event()
168 <<
" 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