#include <EcalClusterEnergyCorrectionBaseClass.h>
Public Member Functions | |
void | checkInit () const |
EcalClusterEnergyCorrectionBaseClass () | |
EcalClusterEnergyCorrectionBaseClass (const edm::ParameterSet &) | |
const EcalClusterEnergyCorrectionParameters * | 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 | ~EcalClusterEnergyCorrectionBaseClass () |
Protected Attributes | |
edm::ESHandle < EcalClusterEnergyCorrectionParameters > | esParams_ |
const EcalClusterEnergyCorrectionParameters * | params_ |
Function to correct cluster for the so called local containment
$Id: EcalClusterEnergyCorrectionBaseClass.h $Date: $Revision:
Function to correct cluster for the so called local containment
$Id: EcalClusterEnergyCorrectionBaseClass.h $Date: $Revision:
Definition at line 27 of file EcalClusterEnergyCorrectionBaseClass.h.
EcalClusterEnergyCorrectionBaseClass::EcalClusterEnergyCorrectionBaseClass | ( | ) |
Definition at line 8 of file EcalClusterEnergyCorrectionBaseClass.cc.
{}
EcalClusterEnergyCorrectionBaseClass::EcalClusterEnergyCorrectionBaseClass | ( | const edm::ParameterSet & | ) | [inline] |
Definition at line 30 of file EcalClusterEnergyCorrectionBaseClass.h.
{};
EcalClusterEnergyCorrectionBaseClass::~EcalClusterEnergyCorrectionBaseClass | ( | ) | [virtual] |
Definition at line 11 of file EcalClusterEnergyCorrectionBaseClass.cc.
{}
void EcalClusterEnergyCorrectionBaseClass::checkInit | ( | ) | const |
Definition at line 22 of file EcalClusterEnergyCorrectionBaseClass.cc.
References Exception, and params_.
Referenced by EcalClusterEnergyCorrection::getValue().
{ if ( ! params_ ) { // non-initialized function parameters: throw exception throw cms::Exception("EcalClusterEnergyCorrectionBaseClass::checkInit()") << "Trying to access an uninitialized crack correction function.\n" "Please call `init( edm::EventSetup &)' before any use of the function.\n"; } }
const EcalClusterEnergyCorrectionParameters* EcalClusterEnergyCorrectionBaseClass::getParameters | ( | ) | const [inline] |
Definition at line 34 of file EcalClusterEnergyCorrectionBaseClass.h.
References params_.
{ return params_; }
virtual float EcalClusterEnergyCorrectionBaseClass::getValue | ( | const reco::SuperCluster & | , |
const int | mode | ||
) | const [pure virtual] |
Implements EcalClusterFunctionBaseClass.
Implemented in EcalClusterEnergyCorrection.
virtual float EcalClusterEnergyCorrectionBaseClass::getValue | ( | const reco::BasicCluster & | , |
const EcalRecHitCollection & | |||
) | const [pure virtual] |
Implements EcalClusterFunctionBaseClass.
Implemented in EcalClusterEnergyCorrection.
void EcalClusterEnergyCorrectionBaseClass::init | ( | const edm::EventSetup & | es | ) | [virtual] |
Implements EcalClusterFunctionBaseClass.
Definition at line 15 of file EcalClusterEnergyCorrectionBaseClass.cc.
References esParams_, edm::EventSetup::get(), params_, and edm::ESHandle< T >::product().
edm::ESHandle<EcalClusterEnergyCorrectionParameters> EcalClusterEnergyCorrectionBaseClass::esParams_ [protected] |
Definition at line 47 of file EcalClusterEnergyCorrectionBaseClass.h.
Referenced by init().
const EcalClusterEnergyCorrectionParameters* EcalClusterEnergyCorrectionBaseClass::params_ [protected] |
Definition at line 48 of file EcalClusterEnergyCorrectionBaseClass.h.
Referenced by checkInit(), EcalClusterEnergyCorrection::fBrem(), EcalClusterEnergyCorrection::fEta(), EcalClusterEnergyCorrection::fEtEta(), getParameters(), and init().