CMS 3D CMS Logo

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

#include <EcalClusterEnergyCorrectionBaseClass.h>

Inheritance diagram for EcalClusterEnergyCorrectionBaseClass:
EcalClusterFunctionBaseClass EcalClusterEnergyCorrection

Public Member Functions

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

Protected Attributes

edm::ESHandle< EcalClusterEnergyCorrectionParametersesParams_
 
const EcalClusterEnergyCorrectionParametersparams_
 

Detailed Description

Function to correct cluster for the so called local containment

$Id: EcalClusterEnergyCorrectionBaseClass.h $Date: $Revision:

Author
Yurii Maravin, KSU, March 20, 2009

Function to correct cluster for the so called local containment

$Id: EcalClusterEnergyCorrectionBaseClass.h $Date: $Revision:

Author
Nicolas Chanon, October 2011

Definition at line 27 of file EcalClusterEnergyCorrectionBaseClass.h.

Constructor & Destructor Documentation

EcalClusterEnergyCorrectionBaseClass::EcalClusterEnergyCorrectionBaseClass ( )

Definition at line 8 of file EcalClusterEnergyCorrectionBaseClass.cc.

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

Definition at line 30 of file EcalClusterEnergyCorrectionBaseClass.h.

30 {};
EcalClusterEnergyCorrectionBaseClass::~EcalClusterEnergyCorrectionBaseClass ( )
override

Definition at line 11 of file EcalClusterEnergyCorrectionBaseClass.cc.

12 {}

Member Function Documentation

void EcalClusterEnergyCorrectionBaseClass::checkInit ( ) const

Definition at line 22 of file EcalClusterEnergyCorrectionBaseClass.cc.

References Exception, and params_.

Referenced by EcalClusterEnergyCorrection::getValue().

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

Member Data Documentation

edm::ESHandle<EcalClusterEnergyCorrectionParameters> EcalClusterEnergyCorrectionBaseClass::esParams_
protected

Definition at line 47 of file EcalClusterEnergyCorrectionBaseClass.h.

Referenced by init().

const EcalClusterEnergyCorrectionParameters* EcalClusterEnergyCorrectionBaseClass::params_
protected