CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
EcalClusterEnergyCorrectionObjectSpecificBaseClass Class Referenceabstract

#include <EcalClusterEnergyCorrectionObjectSpecificBaseClass.h>

Inheritance diagram for EcalClusterEnergyCorrectionObjectSpecificBaseClass:
EcalClusterFunctionBaseClass EcalClusterEnergyCorrectionObjectSpecific

Public Member Functions

void checkInit () const
 
 EcalClusterEnergyCorrectionObjectSpecificBaseClass ()
 
 EcalClusterEnergyCorrectionObjectSpecificBaseClass (const edm::ParameterSet &)
 
const EcalClusterEnergyCorrectionObjectSpecificParametersgetParameters () const
 
float getValue (const reco::BasicCluster &, const EcalRecHitCollection &) const override=0
 
float getValue (const reco::SuperCluster &, const int mode) const override=0
 
void init (const edm::EventSetup &es) override
 
 ~EcalClusterEnergyCorrectionObjectSpecificBaseClass () override
 
- Public Member Functions inherited from EcalClusterFunctionBaseClass
virtual float getValue (const reco::CaloCluster &) const
 
virtual ~EcalClusterFunctionBaseClass ()
 

Protected Attributes

edm::ESHandle< EcalClusterEnergyCorrectionObjectSpecificParametersesParams_
 
const EcalClusterEnergyCorrectionObjectSpecificParametersparams_
 

Detailed Description

Definition at line 29 of file EcalClusterEnergyCorrectionObjectSpecificBaseClass.h.

Constructor & Destructor Documentation

EcalClusterEnergyCorrectionObjectSpecificBaseClass::EcalClusterEnergyCorrectionObjectSpecificBaseClass ( )

Definition at line 8 of file EcalClusterEnergyCorrectionObjectSpecificBaseClass.cc.

9 {}
EcalClusterEnergyCorrectionObjectSpecificBaseClass::EcalClusterEnergyCorrectionObjectSpecificBaseClass ( const edm::ParameterSet )
inline

Definition at line 32 of file EcalClusterEnergyCorrectionObjectSpecificBaseClass.h.

32 {};
EcalClusterEnergyCorrectionObjectSpecificBaseClass::~EcalClusterEnergyCorrectionObjectSpecificBaseClass ( )
override

Definition at line 11 of file EcalClusterEnergyCorrectionObjectSpecificBaseClass.cc.

12 {}

Member Function Documentation

void EcalClusterEnergyCorrectionObjectSpecificBaseClass::checkInit ( ) const

Definition at line 22 of file EcalClusterEnergyCorrectionObjectSpecificBaseClass.cc.

References Exception, and params_.

23 {
24 
25  if ( ! params_ ) {
26  // non-initialized function parameters: throw exception
27  throw cms::Exception("EcalClusterEnergyCorrectionObjectSpecificBaseClass::checkInit()")
28  << "Trying to access an uninitialized correction function.\n"
29  "Please call `init( edm::EventSetup &)' before any use of the function.\n";
30  }
31 
32 }
const EcalClusterEnergyCorrectionObjectSpecificParameters * params_
const EcalClusterEnergyCorrectionObjectSpecificParameters* EcalClusterEnergyCorrectionObjectSpecificBaseClass::getParameters ( ) const
inline
float EcalClusterEnergyCorrectionObjectSpecificBaseClass::getValue ( const reco::BasicCluster ,
const EcalRecHitCollection  
) const
overridepure virtual
float EcalClusterEnergyCorrectionObjectSpecificBaseClass::getValue ( const reco::SuperCluster ,
const int  mode 
) const
overridepure virtual
void EcalClusterEnergyCorrectionObjectSpecificBaseClass::init ( const edm::EventSetup es)
overridevirtual

Member Data Documentation

edm::ESHandle<EcalClusterEnergyCorrectionObjectSpecificParameters> EcalClusterEnergyCorrectionObjectSpecificBaseClass::esParams_
protected

Definition at line 52 of file EcalClusterEnergyCorrectionObjectSpecificBaseClass.h.

Referenced by init().

const EcalClusterEnergyCorrectionObjectSpecificParameters* EcalClusterEnergyCorrectionObjectSpecificBaseClass::params_
protected