1 #ifndef Analysis_AnalysisFilters_interface_PVSelector_h
2 #define Analysis_AnalysisFilters_interface_PVSelector_h
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
void set(std::string const &s, bool val=true)
Set a given selection cut, on or off.
tuple ret
prodAgent to be discontinued
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.
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
Functor that operates on <T>
strbitset & set(bool val=true)
set method of all bits
bool operator()(edm::EventBase const &event, pat::strbitset &ret)
This provides the interface for base classes to select objects.
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".