CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
EcalClusterLocalContCorrParameters
getParameters () const
 
virtual float getValue (const reco::BasicCluster &, const EcalRecHitCollection &) const =0
 
virtual float getValue (const reco::SuperCluster &, const int mode) const =0
 
virtual void init (const edm::EventSetup &es)
 
virtual ~EcalClusterLocalContCorrectionBaseClass ()
 
- Public Member Functions inherited from EcalClusterFunctionBaseClass
virtual float getValue (const reco::CaloCluster &) const
 
virtual ~EcalClusterFunctionBaseClass ()
 

Protected Attributes

const edm::EventSetupes_
 
edm::ESHandle
< EcalClusterLocalContCorrParameters
esParams_
 
const
EcalClusterLocalContCorrParameters
params_
 

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 ( )
virtual

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

Definition at line 35 of file EcalClusterLocalContCorrectionBaseClass.h.

References params_.

35 { return params_; }
const EcalClusterLocalContCorrParameters * params_
virtual float EcalClusterLocalContCorrectionBaseClass::getValue ( const reco::BasicCluster ,
const EcalRecHitCollection  
) const
pure virtual
virtual float EcalClusterLocalContCorrectionBaseClass::getValue ( const reco::SuperCluster ,
const int  mode 
) const
pure virtual
void EcalClusterLocalContCorrectionBaseClass::init ( const edm::EventSetup es)
virtual

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:56
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(), getParameters(), and init().