1 #ifndef Analysis_AnalysisFilters_interface_PVSelector_h 2 #define Analysis_AnalysisFilters_interface_PVSelector_h 21 pvSrc_ (params.getParameter<
edm::InputTag>(
"pvSrc") ),
44 if (
h_primVtx->size() < 1 )
return false;
50 for ( std::vector<reco::Vertex>::const_iterator ibegin =
h_primVtx->begin(),
73 bool pass = (
bool)ret;
88 std::vector<edm::Ptr<reco::Vertex> >
const &
std::vector< edm::Ptr< reco::Vertex > > mvSelPvs
T getParameter(std::string const &) const
edm::Handle< std::vector< reco::Vertex > > const & vertices() const
pat::strbitset::index_type index_type
void setIgnored(pat::strbitset &ret)
set ignored bits
pat::strbitset retInternal_
internal ret if users don't care about return bits
PVSelector(edm::ParameterSet const ¶ms, edm::ConsumesCollector &&iC)
pat::strbitset bits_
the bitset indexed by strings
void passCut(pat::strbitset &ret, std::string const &s)
Passing cuts.
bool ignoreCut(std::string const &s) const
ignore the cut at index "s"
virtual void push_back(std::string const &s)
This is the registration of an individual cut string.
Functor that operates on <T>
strbitset & set(bool val=true)
set method of all bits
bool operator()(edm::EventBase const &event, pat::strbitset &ret)
std::vector< edm::Ptr< reco::Vertex > > const & GetSelectedPvs() const
pat::strbitset getBitTemplate() const
Get an empty bitset with the proper names.
edm::EDGetTokenT< std::vector< reco::Vertex > > pvSrcToken_
edm::Handle< std::vector< reco::Vertex > > h_primVtx
PVSelector(edm::ParameterSet const ¶ms)
int cut(index_type const &i, int val) const
Access the int cut values at index "s".