#include <PatSelectorByFlags.h>
Public Member Functions | |
bool | operator() (const reco::Candidate &c) const |
bool | operator() (const reco::Candidate *c) const |
SelectorByFlags (uint32_t maskToTest) | |
SelectorByFlags (const std::vector< std::string > bitsToTest) | |
SelectorByFlags (const std::string &bitToTest) | |
SelectorByFlags () | |
Private Attributes | |
uint32_t | mask_ |
Definition at line 7 of file PatSelectorByFlags.h.
pat::SelectorByFlags::SelectorByFlags | ( | ) | [inline] |
Definition at line 9 of file PatSelectorByFlags.h.
: mask_(0) { }
pat::SelectorByFlags::SelectorByFlags | ( | uint32_t | maskToTest | ) | [inline] |
Definition at line 10 of file PatSelectorByFlags.h.
: mask_(~maskToTest) {}
pat::SelectorByFlags::SelectorByFlags | ( | const std::string & | bitToTest | ) |
pat::SelectorByFlags::SelectorByFlags | ( | const std::vector< std::string > | bitsToTest | ) |
bool pat::SelectorByFlags::operator() | ( | const reco::Candidate & | c | ) | const [inline] |
Definition at line 13 of file PatSelectorByFlags.h.
References mask_, and run_regression::test.
{ return pat::Flags::test(c, mask_); }
bool pat::SelectorByFlags::operator() | ( | const reco::Candidate * | c | ) | const [inline] |
Definition at line 14 of file PatSelectorByFlags.h.
References mask_, and pat::Flags::test().
{ return (c == 0 ? false : pat::Flags::test(*c, mask_)); }
uint32_t pat::SelectorByFlags::mask_ [private] |
Definition at line 16 of file PatSelectorByFlags.h.
Referenced by operator()().