CMS 3D CMS Logo

Public Member Functions | Private Attributes

ElectronIDSelectorNeuralNet Class Reference

#include <ElectronIDSelectorNeuralNet.h>

List of all members.

Public Member Functions

 ElectronIDSelectorNeuralNet (const edm::ParameterSet &conf)
void newEvent (const edm::Event &, const edm::EventSetup &)
double operator() (const reco::GsfElectron &, const edm::Event &, const edm::EventSetup &)
virtual ~ElectronIDSelectorNeuralNet ()

Private Attributes

edm::ParameterSet conf_
bool doNeuralNet_
ElectronNeuralNetneuralNetAlgo_

Detailed Description

Definition at line 12 of file ElectronIDSelectorNeuralNet.h.


Constructor & Destructor Documentation

ElectronIDSelectorNeuralNet::ElectronIDSelectorNeuralNet ( const edm::ParameterSet conf) [explicit]
ElectronIDSelectorNeuralNet::~ElectronIDSelectorNeuralNet ( ) [virtual]

Definition at line 11 of file ElectronIDSelectorNeuralNet.cc.

References doNeuralNet_, and neuralNetAlgo_.

{
  if (doNeuralNet_) 
    delete neuralNetAlgo_ ;
}

Member Function Documentation

void ElectronIDSelectorNeuralNet::newEvent ( const edm::Event e,
const edm::EventSetup es 
)
double ElectronIDSelectorNeuralNet::operator() ( const reco::GsfElectron ele,
const edm::Event e,
const edm::EventSetup es 
)

Definition at line 23 of file ElectronIDSelectorNeuralNet.cc.

References doNeuralNet_, neuralNetAlgo_, and ElectronNeuralNet::result().

{
  if (doNeuralNet_) 
        return static_cast<double>(neuralNetAlgo_->result (& (ele), e) );
  return 0. ;
}

Member Data Documentation

Definition at line 26 of file ElectronIDSelectorNeuralNet.h.

Referenced by ElectronIDSelectorNeuralNet(), and newEvent().