CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ElectronIDSelectorCutBased.cc
Go to the documentation of this file.
2 
4 {
5  std::string algorithm_ = conf.getParameter<std::string> ("algorithm") ;
6 
7  if ( algorithm_ == "eIDClassBased" )
9  else if ( algorithm_ == "eIDCBClasses" )
11  else if ( algorithm_ == "eIDCB" )
13  else {
14  throw cms::Exception("Configuration")
15  << "Invalid algorithm parameter in ElectronIDSelectorCutBased: must be eIDCBClasses or eIDCB." ;
16  }
17 }
18 
20 {
21  delete electronIDAlgo_ ;
22 }
23 
25 {
27 }
28 
30 {
31  return electronIDAlgo_->result (& (ele), e, es) ;
32 }
T getParameter(std::string const &) const
double operator()(const reco::GsfElectron &, const edm::Event &, const edm::EventSetup &)
tuple conf
Definition: dbtoconf.py:185
virtual void setup(const edm::ParameterSet &conf)
void newEvent(const edm::Event &, const edm::EventSetup &)
virtual double result(const reco::GsfElectron *, const edm::Event &, const edm::EventSetup &)
ElectronIDSelectorCutBased(const edm::ParameterSet &conf)