#include <EcalClusterEnergyCorrectionObjectSpecificBaseClass.h>
Public Member Functions | |
void | checkInit () const |
EcalClusterEnergyCorrectionObjectSpecificBaseClass () | |
EcalClusterEnergyCorrectionObjectSpecificBaseClass (const edm::ParameterSet &) | |
const EcalClusterEnergyCorrectionObjectSpecificParameters * | 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 | ~EcalClusterEnergyCorrectionObjectSpecificBaseClass () |
Protected Attributes | |
edm::ESHandle < EcalClusterEnergyCorrectionObjectSpecificParameters > | esParams_ |
const EcalClusterEnergyCorrectionObjectSpecificParameters * | params_ |
Definition at line 29 of file EcalClusterEnergyCorrectionObjectSpecificBaseClass.h.
EcalClusterEnergyCorrectionObjectSpecificBaseClass::EcalClusterEnergyCorrectionObjectSpecificBaseClass | ( | ) |
Definition at line 8 of file EcalClusterEnergyCorrectionObjectSpecificBaseClass.cc.
{}
EcalClusterEnergyCorrectionObjectSpecificBaseClass::EcalClusterEnergyCorrectionObjectSpecificBaseClass | ( | const edm::ParameterSet & | ) | [inline] |
Definition at line 32 of file EcalClusterEnergyCorrectionObjectSpecificBaseClass.h.
{};
EcalClusterEnergyCorrectionObjectSpecificBaseClass::~EcalClusterEnergyCorrectionObjectSpecificBaseClass | ( | ) | [virtual] |
Definition at line 11 of file EcalClusterEnergyCorrectionObjectSpecificBaseClass.cc.
{}
void EcalClusterEnergyCorrectionObjectSpecificBaseClass::checkInit | ( | ) | const |
Definition at line 22 of file EcalClusterEnergyCorrectionObjectSpecificBaseClass.cc.
References Exception, and params_.
{ if ( ! params_ ) { // non-initialized function parameters: throw exception throw cms::Exception("EcalClusterEnergyCorrectionObjectSpecificBaseClass::checkInit()") << "Trying to access an uninitialized correction function.\n" "Please call `init( edm::EventSetup &)' before any use of the function.\n"; } }
const EcalClusterEnergyCorrectionObjectSpecificParameters* EcalClusterEnergyCorrectionObjectSpecificBaseClass::getParameters | ( | ) | const [inline] |
Definition at line 36 of file EcalClusterEnergyCorrectionObjectSpecificBaseClass.h.
References params_.
{ return params_; }
virtual float EcalClusterEnergyCorrectionObjectSpecificBaseClass::getValue | ( | const reco::SuperCluster & | , |
const int | mode | ||
) | const [pure virtual] |
Implements EcalClusterFunctionBaseClass.
Implemented in EcalClusterEnergyCorrectionObjectSpecific.
virtual float EcalClusterEnergyCorrectionObjectSpecificBaseClass::getValue | ( | const reco::BasicCluster & | , |
const EcalRecHitCollection & | |||
) | const [pure virtual] |
Implements EcalClusterFunctionBaseClass.
Implemented in EcalClusterEnergyCorrectionObjectSpecific.
void EcalClusterEnergyCorrectionObjectSpecificBaseClass::init | ( | const edm::EventSetup & | es | ) | [virtual] |
Implements EcalClusterFunctionBaseClass.
Definition at line 15 of file EcalClusterEnergyCorrectionObjectSpecificBaseClass.cc.
References esParams_, edm::EventSetup::get(), params_, and edm::ESHandle< T >::product().
edm::ESHandle<EcalClusterEnergyCorrectionObjectSpecificParameters> EcalClusterEnergyCorrectionObjectSpecificBaseClass::esParams_ [protected] |
Definition at line 52 of file EcalClusterEnergyCorrectionObjectSpecificBaseClass.h.
Referenced by init().
const EcalClusterEnergyCorrectionObjectSpecificParameters* EcalClusterEnergyCorrectionObjectSpecificBaseClass::params_ [protected] |
Definition at line 53 of file EcalClusterEnergyCorrectionObjectSpecificBaseClass.h.
Referenced by checkInit(), EcalClusterEnergyCorrectionObjectSpecific::fBremEta(), EcalClusterEnergyCorrectionObjectSpecific::fEnergy(), EcalClusterEnergyCorrectionObjectSpecific::fEt(), EcalClusterEnergyCorrectionObjectSpecific::fEta(), getParameters(), and init().