#include <EcalClusterCrackCorrectionBaseClass.h>
Public Member Functions | |
void | checkInit () const |
EcalClusterCrackCorrectionBaseClass () | |
EcalClusterCrackCorrectionBaseClass (const edm::ParameterSet &) | |
const EcalClusterCrackCorrParameters * | getParameters () const |
virtual float | getValue (const reco::SuperCluster &, const int mode) const =0 |
virtual float | getValue (const reco::CaloCluster &) const |
virtual float | getValue (const reco::BasicCluster &, const EcalRecHitCollection &) const =0 |
virtual void | init (const edm::EventSetup &es) |
virtual | ~EcalClusterCrackCorrectionBaseClass () |
Protected Attributes | |
const edm::EventSetup * | es_ |
edm::ESHandle < EcalClusterCrackCorrParameters > | esParams_ |
const EcalClusterCrackCorrParameters * | params_ |
Definition at line 20 of file EcalClusterCrackCorrectionBaseClass.h.
EcalClusterCrackCorrectionBaseClass::EcalClusterCrackCorrectionBaseClass | ( | ) |
Definition at line 8 of file EcalClusterCrackCorrectionBaseClass.cc.
: params_(0) {}
EcalClusterCrackCorrectionBaseClass::EcalClusterCrackCorrectionBaseClass | ( | const edm::ParameterSet & | ) | [inline] |
Definition at line 23 of file EcalClusterCrackCorrectionBaseClass.h.
{};
EcalClusterCrackCorrectionBaseClass::~EcalClusterCrackCorrectionBaseClass | ( | ) | [virtual] |
Definition at line 12 of file EcalClusterCrackCorrectionBaseClass.cc.
{}
void EcalClusterCrackCorrectionBaseClass::checkInit | ( | ) | const |
Definition at line 33 of file EcalClusterCrackCorrectionBaseClass.cc.
References Exception, and params_.
Referenced by EcalClusterCrackCorrection::getValue().
{ if ( ! params_ ) { // non initialized function parameters: throw exception throw cms::Exception("EcalClusterCrackCorrectionBaseClass::checkInit()") << "Trying to access an uninitialized crack correction function.\n" "Please call `init( edm::EventSetup &)' before any use of the function.\n"; } }
const EcalClusterCrackCorrParameters* EcalClusterCrackCorrectionBaseClass::getParameters | ( | ) | const [inline] |
Definition at line 27 of file EcalClusterCrackCorrectionBaseClass.h.
References params_.
{ return params_; }
virtual float EcalClusterCrackCorrectionBaseClass::getValue | ( | const reco::CaloCluster & | ) | const [inline, virtual] |
Reimplemented from EcalClusterFunctionBaseClass.
Reimplemented in EcalClusterCrackCorrection.
Definition at line 35 of file EcalClusterCrackCorrectionBaseClass.h.
{return 0;};
virtual float EcalClusterCrackCorrectionBaseClass::getValue | ( | const reco::SuperCluster & | , |
const int | mode | ||
) | const [pure virtual] |
Implements EcalClusterFunctionBaseClass.
Implemented in EcalClusterCrackCorrection.
virtual float EcalClusterCrackCorrectionBaseClass::getValue | ( | const reco::BasicCluster & | , |
const EcalRecHitCollection & | |||
) | const [pure virtual] |
Implements EcalClusterFunctionBaseClass.
Implemented in EcalClusterCrackCorrection.
void EcalClusterCrackCorrectionBaseClass::init | ( | const edm::EventSetup & | es | ) | [virtual] |
Implements EcalClusterFunctionBaseClass.
Definition at line 16 of file EcalClusterCrackCorrectionBaseClass.cc.
References es_, esParams_, edm::EventSetup::get(), params_, and edm::ESHandle< T >::product().
{ es.get<EcalClusterCrackCorrParametersRcd>().get( esParams_ ); params_ = esParams_.product(); es_ = &es; //needed to access the ECAL geometry //EcalClusterCrackCorrParameters::const_iterator it; //std::cout << "[[EcalClusterCrackCorrectionBaseClass::init]] " // << params_->size() << " parameters:"; //for ( it = params_->begin(); it != params_->end(); ++it ) { // std::cout << " " << *it; //} //std::cout << "\n"; }
const edm::EventSetup* EcalClusterCrackCorrectionBaseClass::es_ [protected] |
Definition at line 42 of file EcalClusterCrackCorrectionBaseClass.h.
Referenced by EcalClusterCrackCorrection::getValue(), and init().
edm::ESHandle<EcalClusterCrackCorrParameters> EcalClusterCrackCorrectionBaseClass::esParams_ [protected] |
Definition at line 40 of file EcalClusterCrackCorrectionBaseClass.h.
Referenced by init().
const EcalClusterCrackCorrParameters* EcalClusterCrackCorrectionBaseClass::params_ [protected] |
Definition at line 41 of file EcalClusterCrackCorrectionBaseClass.h.
Referenced by checkInit(), getParameters(), EcalClusterCrackCorrection::getValue(), and init().