CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ElectronIDSelectorLikelihood.cc
Go to the documentation of this file.
2 
4 {
5  doLikelihood_ = conf_.getParameter<bool> ("doLikelihood");
6  reducedBarrelRecHitCollection_ = conf.getParameter<edm::InputTag>("reducedBarrelRecHitCollection");
7  reducedEndcapRecHitCollection_ = conf.getParameter<edm::InputTag>("reducedEndcapRecHitCollection");
8 
9 }
10 
12 {
13 }
14 
16 {
17 
19 
20 }
21 
23 {
24 
25  if (doLikelihood_) {
28 
31 
33  return static_cast<double>(likelihoodAlgo_->resultLog (ele,lazyTools)) ;
34  }
35  return 0;
36 
37 }
T getParameter(std::string const &) const
edm::ESHandle< ElectronLikelihood > likelihoodAlgo_
double operator()(const reco::GsfElectron &, const edm::Event &, const edm::EventSetup &)
void newEvent(const edm::Event &, const edm::EventSetup &)
void getData(T &iHolder) const
Definition: EventSetup.h:67
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
tuple conf
Definition: dbtoconf.py:185
ElectronIDSelectorLikelihood(const edm::ParameterSet &conf)