CMS 3D CMS Logo

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

#include <EcalClusterEnergyUncertaintyBaseClass.h>

Inheritance diagram for EcalClusterEnergyUncertaintyBaseClass:
EcalClusterFunctionBaseClass EcalClusterEnergyUncertainty

Public Member Functions

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

Protected Attributes

edm::ESHandle< EcalClusterEnergyUncertaintyParametersesParams_
 
const EcalClusterEnergyUncertaintyParametersparams_
 

Detailed Description

Function to correct cluster for the so called local containment

$Id: EcalClusterEnergyUncertaintyBaseClass.h $Date: $Revision:

Author
Yurii Maravin, KSU, March 20, 2009

Definition at line 27 of file EcalClusterEnergyUncertaintyBaseClass.h.

Constructor & Destructor Documentation

EcalClusterEnergyUncertaintyBaseClass::EcalClusterEnergyUncertaintyBaseClass ( )

Definition at line 8 of file EcalClusterEnergyUncertaintyBaseClass.cc.

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

Definition at line 30 of file EcalClusterEnergyUncertaintyBaseClass.h.

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

Definition at line 11 of file EcalClusterEnergyUncertaintyBaseClass.cc.

12 {}

Member Function Documentation

void EcalClusterEnergyUncertaintyBaseClass::checkInit ( ) const

Definition at line 22 of file EcalClusterEnergyUncertaintyBaseClass.cc.

References Exception, and params_.

Referenced by EcalClusterEnergyUncertainty::getValue().

23 {
24  if ( ! params_ ) {
25  // non-initialized function parameters: throw exception
26  throw cms::Exception("EcalClusterEnergyUncertaintyBaseClass::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 EcalClusterEnergyUncertaintyParameters * params_
const EcalClusterEnergyUncertaintyParameters* EcalClusterEnergyUncertaintyBaseClass::getParameters ( ) const
inline
float EcalClusterEnergyUncertaintyBaseClass::getValue ( const reco::BasicCluster ,
const EcalRecHitCollection  
) const
overridepure virtual
float EcalClusterEnergyUncertaintyBaseClass::getValue ( const reco::SuperCluster ,
const int  mode 
) const
overridepure virtual
void EcalClusterEnergyUncertaintyBaseClass::init ( const edm::EventSetup es)
overridevirtual

Member Data Documentation

edm::ESHandle<EcalClusterEnergyUncertaintyParameters> EcalClusterEnergyUncertaintyBaseClass::esParams_
protected

Definition at line 47 of file EcalClusterEnergyUncertaintyBaseClass.h.

Referenced by init().

const EcalClusterEnergyUncertaintyParameters* EcalClusterEnergyUncertaintyBaseClass::params_
protected