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);
110 LogDebug(
"PFDisplacedVertexProducer")<<
"START event: "<<iEvent.
id().
event()
111 <<
" in run "<<iEvent.
id().
run()<<endl;
126 iEvent.
getByLabel(inputTagVertexCandidates_, vertexCandidates);
129 iEvent.
getByLabel(inputTagMainVertex_, mainVertexHandle);
132 iEvent.
getByLabel(inputTagBeamSpot_, beamSpotHandle);
135 pfDisplacedVertexFinder_.setEdmParameters(theMagField, globTkGeomHandle, tkerGeomHandle);
136 pfDisplacedVertexFinder_.setPrimaryVertex(mainVertexHandle, beamSpotHandle);
137 pfDisplacedVertexFinder_.setInput(vertexCandidates);
140 pfDisplacedVertexFinder_.findDisplacedVertices();
146 cout << pfDisplacedVertexFinder_<<endl;
147 LogInfo(
"PFDisplacedVertexProducer") << str.str()<<endl;
151 auto_ptr< reco::PFDisplacedVertexCollection >
152 pOutputDisplacedVertexCollection(
153 pfDisplacedVertexFinder_.transferDisplacedVertices() );
157 iEvent.
put(pOutputDisplacedVertexCollection);
159 LogDebug(
"PFDisplacedVertexProducer")<<
"STOP event: "<<iEvent.
id().
event()
160 <<
" 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()
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
T const * product() const
virtual void produce(edm::Event &, const edm::EventSetup &) override