CMS 3D CMS Logo

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:579
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:98
ElectronIDSelectorLikelihood(const edm::ParameterSet &conf, edm::ConsumesCollector &&iC)
edm::EDGetTokenT< EcalRecHitCollection > reducedEndcapRecHitCollectionToken_
float resultLog(const reco::GsfElectron &electron, const EcalClusterLazyTools &) const
get the log-expanded result of the algorithm
edm::EDGetTokenT< EcalRecHitCollection > reducedBarrelRecHitCollectionToken_