1 #ifndef PhysicsTools_PatAlgos_PATSingleVertexSelector_h
2 #define PhysicsTools_PatAlgos_PATSingleVertexSelector_h
44 std::auto_ptr<std::vector<reco::Vertex> >
Produces a list containing a single vertex selected by some criteria.
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
const VtxSel vtxPreselection_
bool hasMode_(Mode mode) const
std::auto_ptr< std::vector< reco::Vertex > > filter_(Mode mode, const edm::Event &iEvent, const edm::EventSetup &iSetup)
edm::EDGetTokenT< std::vector< reco::Vertex > > verticesToken_
~PATSingleVertexSelector()
std::vector< reco::VertexRef > selVtxs_
reco::CandidatePtr bestCand_
Mode parseMode(const std::string &name) const
const CandSel candPreselection_
std::vector< edm::EDGetTokenT< edm::View< reco::Candidate > > > candidatesToken_
virtual bool filter(edm::Event &iEvent, const edm::EventSetup &iSetup) override
PATSingleVertexSelector(const edm::ParameterSet &iConfig)
StringCutObjectSelector< reco::Vertex > VtxSel
StringCutObjectSelector< reco::Candidate > CandSel
std::vector< Mode > modes_