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