#include <EcalClusterLocalContCorrectionBaseClass.h>
Public Member Functions | |
void | checkInit () const |
EcalClusterLocalContCorrectionBaseClass () | |
EcalClusterLocalContCorrectionBaseClass (const edm::ParameterSet &) | |
const EcalClusterLocalContCorrParameters * | getParameters () const |
virtual float | getValue (const reco::SuperCluster &, const int mode) const =0 |
virtual float | getValue (const reco::BasicCluster &, const EcalRecHitCollection &) const =0 |
virtual void | init (const edm::EventSetup &es) |
virtual | ~EcalClusterLocalContCorrectionBaseClass () |
Protected Attributes | |
const edm::EventSetup * | es_ |
edm::ESHandle < EcalClusterLocalContCorrParameters > | esParams_ |
const EcalClusterLocalContCorrParameters * | params_ |
Definition at line 28 of file EcalClusterLocalContCorrectionBaseClass.h.
EcalClusterLocalContCorrectionBaseClass::EcalClusterLocalContCorrectionBaseClass | ( | ) |
Definition at line 8 of file EcalClusterLocalContCorrectionBaseClass.cc.
{}
EcalClusterLocalContCorrectionBaseClass::EcalClusterLocalContCorrectionBaseClass | ( | const edm::ParameterSet & | ) | [inline] |
Definition at line 31 of file EcalClusterLocalContCorrectionBaseClass.h.
{};
EcalClusterLocalContCorrectionBaseClass::~EcalClusterLocalContCorrectionBaseClass | ( | ) | [virtual] |
Definition at line 11 of file EcalClusterLocalContCorrectionBaseClass.cc.
{}
void EcalClusterLocalContCorrectionBaseClass::checkInit | ( | ) | const |
Definition at line 23 of file EcalClusterLocalContCorrectionBaseClass.cc.
References Exception, and params_.
{ if ( ! params_ ) { // non-initialized function parameters: throw exception throw cms::Exception("EcalClusterLocalContCorrectionBaseClass::checkInit()") << "Trying to access an uninitialized crack correction function.\n" "Please call `init( edm::EventSetup &)' before any use of the function.\n"; } }
const EcalClusterLocalContCorrParameters* EcalClusterLocalContCorrectionBaseClass::getParameters | ( | ) | const [inline] |
Definition at line 35 of file EcalClusterLocalContCorrectionBaseClass.h.
References params_.
{ return params_; }
virtual float EcalClusterLocalContCorrectionBaseClass::getValue | ( | const reco::SuperCluster & | , |
const int | mode | ||
) | const [pure virtual] |
Implements EcalClusterFunctionBaseClass.
Implemented in EcalClusterLocalContCorrection.
virtual float EcalClusterLocalContCorrectionBaseClass::getValue | ( | const reco::BasicCluster & | , |
const EcalRecHitCollection & | |||
) | const [pure virtual] |
Implements EcalClusterFunctionBaseClass.
Implemented in EcalClusterLocalContCorrection.
void EcalClusterLocalContCorrectionBaseClass::init | ( | const edm::EventSetup & | es | ) | [virtual] |
Implements EcalClusterFunctionBaseClass.
Definition at line 15 of file EcalClusterLocalContCorrectionBaseClass.cc.
References es_, esParams_, edm::EventSetup::get(), params_, and edm::ESHandle< T >::product().
const edm::EventSetup* EcalClusterLocalContCorrectionBaseClass::es_ [protected] |
Definition at line 49 of file EcalClusterLocalContCorrectionBaseClass.h.
Referenced by init().
edm::ESHandle<EcalClusterLocalContCorrParameters> EcalClusterLocalContCorrectionBaseClass::esParams_ [protected] |
Definition at line 47 of file EcalClusterLocalContCorrectionBaseClass.h.
Referenced by init().
const EcalClusterLocalContCorrParameters* EcalClusterLocalContCorrectionBaseClass::params_ [protected] |
Definition at line 48 of file EcalClusterLocalContCorrectionBaseClass.h.
Referenced by checkInit(), getParameters(), and init().