Go to the documentation of this file. 1 #ifndef PhysicsTools_PatUtils_interface_ElectronVPlusJetsIDSelectionFunctor_h
2 #define PhysicsTools_PatUtils_interface_ElectronVPlusJetsIDSelectionFunctor_h
26 if (versionStr !=
"FIRSTDATA") {
27 std::cout <<
"The version " << versionStr <<
" is deprecated. Setting to FIRSTDATA" << std::endl;
30 if (versionStr ==
"FIRSTDATA") {
39 throw cms::Exception(
"InvalidInput") <<
"Expect version to be one of SUMMER08, FIRSTDATA," << std::endl;
46 Version_t version,
double d0 = 0.2,
double ed0 = 999.0,
double sd0 = 999.0,
double reliso = 0.1) {
86 double corr_sd0 = (corr_ed0 > 0.000000001) ? corr_d0 / corr_ed0 : 999.0;
88 double hcalIso =
electron.dr03HcalTowerSumEt();
89 double ecalIso =
electron.dr03EcalRecHitSumEt();
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
ElectronVPlusJetsIDSelectionFunctor(Version_t version, double d0=0.2, double ed0=999.0, double sd0=999.0, double reliso=0.1)
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"
ElectronVPlusJetsIDSelectionFunctor()
bool operator()(const pat::Electron &electron, pat::strbitset &ret) override
This provides the interface for base classes to select objects.
virtual void push_back(std::string const &s)
This is the registration of an individual cut string.
ElectronVPlusJetsIDSelectionFunctor(edm::ParameterSet const ¶meters)
pat::strbitset getBitTemplate() const
Get an empty bitset with the proper names.
void passCut(pat::strbitset &ret, std::string const &s)
Passing cuts.
void setIgnoredCuts(std::vector< std::string > const &bitsToIgnore)
set the bits to ignore from a vector
ElectronVPlusJetsIDSelectionFunctor(edm::ParameterSet const ¶meters, 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.
Analysis-level electron class.
static constexpr float d0
bool firstDataCuts(const pat::Electron &electron, pat::strbitset &ret)
void initialize(Version_t version, double d0, double ed0, double sd0, double reliso)