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");
10 
11 }
12 
14 {
15 }
16 
18 {
19 
21 
22 }
23 
25 {
26 
27  if (doLikelihood_) {
30 
33 
35  return static_cast<double>(likelihoodAlgo_->resultLog (ele,lazyTools)) ;
36  }
37  return 0;
38 
39 }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
edm::ESHandle< ElectronLikelihood > likelihoodAlgo_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:449
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:78
ElectronIDSelectorLikelihood(const edm::ParameterSet &conf, edm::ConsumesCollector &&iC)
edm::EDGetTokenT< EcalRecHitCollection > reducedEndcapRecHitCollectionToken_
edm::EDGetTokenT< EcalRecHitCollection > reducedBarrelRecHitCollectionToken_
tuple conf
Definition: dbtoconf.py:185