Go to the documentation of this file. 1 #ifndef Analysis_AnalysisFilters_interface_PVSelector_h
2 #define Analysis_AnalysisFilters_interface_PVSelector_h
44 for (std::vector<reco::Vertex>::const_iterator ibegin =
h_primVtx->begin(), iend =
h_primVtx->end(),
i = ibegin;
ret
prodAgent to be discontinued
void setIgnored(pat::strbitset &ret)
set ignored bits
Functor that operates on <T>
pat::strbitset bits_
the bitset indexed by strings
pat::strbitset::index_type index_type
pat::strbitset retInternal_
internal ret if users don't care about return bits
bool ignoreCut(std::string const &s) const
ignore the cut at index "s"
std::vector< edm::Ptr< reco::Vertex > > const & GetSelectedPvs() const
edm::EDGetTokenT< std::vector< reco::Vertex > > pvSrcToken_
bool operator()(edm::EventBase const &event, pat::strbitset &ret) override
This provides the interface for base classes to select objects.
edm::Handle< std::vector< reco::Vertex > > h_primVtx
edm::Handle< std::vector< reco::Vertex > > const & vertices() const
PVSelector(edm::ParameterSet const ¶ms)
virtual void push_back(std::string const &s)
This is the registration of an individual cut string.
pat::strbitset getBitTemplate() const
Get an empty bitset with the proper names.
std::vector< edm::Ptr< reco::Vertex > > mvSelPvs
void passCut(pat::strbitset &ret, std::string const &s)
Passing cuts.
PVSelector(edm::ParameterSet const ¶ms, edm::ConsumesCollector &&iC)
int cut(index_type const &i, int val) const
Access the int cut values at index "s".
void set(std::string const &s, bool val=true)
Set a given selection cut, on or off.