1 #ifndef Analysis_AnalysisFilters_interface_PVObjectSelector_h
2 #define Analysis_AnalysisFilters_interface_PVObjectSelector_h
40 if ( params.
exists(
"cutsToIgnore") )
47 if ( pv.
isFake() )
return false;
T getParameter(std::string const &) const
void set(std::string const &s, bool val=true)
Set a given selection cut, on or off.
bool exists(std::string const ¶meterName) const
checks if a parameter exists
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
const Point & position() const
position
PVObjectSelector(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"
double z() const
y coordinate
virtual void push_back(std::string const &s)
This is the registration of an individual cut string.
PVObjectSelector(edm::ParameterSet const ¶ms)
Functor that operates on <T>
pat::strbitset getBitTemplate() const
Get an empty bitset with the proper names.
bool operator()(reco::Vertex const &pv, pat::strbitset &ret)
This provides the interface for base classes to select objects.
void setIgnoredCuts(std::vector< std::string > const &bitsToIgnore)
set the bits to ignore from a vector
int cut(index_type const &i, int val) const
Access the int cut values at index "s".