CMS 3D CMS Logo

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

#include <EcalClusterLocalContCorrectionBaseClass.h>

Inheritance diagram for EcalClusterLocalContCorrectionBaseClass:
EcalClusterFunctionBaseClass EcalBasicClusterLocalContCorrection EcalClusterLocalContCorrection

Public Member Functions

void checkInit () const
 
 EcalClusterLocalContCorrectionBaseClass ()
 
 EcalClusterLocalContCorrectionBaseClass (const edm::ParameterSet &)
 
const EcalClusterLocalContCorrParametersgetParameters () 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
 
 ~EcalClusterLocalContCorrectionBaseClass () override
 
- Public Member Functions inherited from EcalClusterFunctionBaseClass
virtual float getValue (const reco::CaloCluster &) const
 
virtual ~EcalClusterFunctionBaseClass ()
 

Protected Attributes

const edm::EventSetupes_
 
edm::ESHandle< EcalClusterLocalContCorrParametersesParams_
 
const EcalClusterLocalContCorrParametersparams_
 

Detailed Description

Definition at line 28 of file EcalClusterLocalContCorrectionBaseClass.h.

Constructor & Destructor Documentation

EcalClusterLocalContCorrectionBaseClass::EcalClusterLocalContCorrectionBaseClass ( )

Definition at line 8 of file EcalClusterLocalContCorrectionBaseClass.cc.

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

Definition at line 31 of file EcalClusterLocalContCorrectionBaseClass.h.

31 {};
EcalClusterLocalContCorrectionBaseClass::~EcalClusterLocalContCorrectionBaseClass ( )
override

Definition at line 11 of file EcalClusterLocalContCorrectionBaseClass.cc.

12 {}

Member Function Documentation

void EcalClusterLocalContCorrectionBaseClass::checkInit ( ) const

Definition at line 23 of file EcalClusterLocalContCorrectionBaseClass.cc.

References Exception, and params_.

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

Implements EcalClusterFunctionBaseClass.

Definition at line 15 of file EcalClusterLocalContCorrectionBaseClass.cc.

References es_, esParams_, edm::EventSetup::get(), and params_.

16 {
18  params_ = esParams_.product();
19  es_ = &es; //needed to access the ECAL geometry
20 }
edm::ESHandle< EcalClusterLocalContCorrParameters > esParams_
const T & get() const
Definition: EventSetup.h:59
const EcalClusterLocalContCorrParameters * params_

Member Data Documentation

const edm::EventSetup* EcalClusterLocalContCorrectionBaseClass::es_
protected

Definition at line 49 of file EcalClusterLocalContCorrectionBaseClass.h.

Referenced by init().

edm::ESHandle<EcalClusterLocalContCorrParameters> EcalClusterLocalContCorrectionBaseClass::esParams_
protected

Definition at line 47 of file EcalClusterLocalContCorrectionBaseClass.h.

Referenced by init().

const EcalClusterLocalContCorrParameters* EcalClusterLocalContCorrectionBaseClass::params_
protected

Definition at line 48 of file EcalClusterLocalContCorrectionBaseClass.h.

Referenced by checkInit(), and init().