CMS 3D CMS Logo

Public Member Functions | Protected Attributes

EcalClusterEnergyCorrectionBaseClass Class Reference

#include <EcalClusterEnergyCorrectionBaseClass.h>

Inheritance diagram for EcalClusterEnergyCorrectionBaseClass:
EcalClusterFunctionBaseClass EcalClusterEnergyCorrection

List of all members.

Public Member Functions

void checkInit () const
 EcalClusterEnergyCorrectionBaseClass ()
 EcalClusterEnergyCorrectionBaseClass (const edm::ParameterSet &)
const
EcalClusterEnergyCorrectionParameters
getParameters () const
virtual float getValue (const reco::SuperCluster &, const int mode) const =0
virtual float getValue (const reco::BasicCluster &, const EcalRecHitCollection &) const =0
virtual void init (const edm::EventSetup &es)
virtual ~EcalClusterEnergyCorrectionBaseClass ()

Protected Attributes

edm::ESHandle
< EcalClusterEnergyCorrectionParameters
esParams_
const
EcalClusterEnergyCorrectionParameters
params_

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.

{}
EcalClusterEnergyCorrectionBaseClass::EcalClusterEnergyCorrectionBaseClass ( const edm::ParameterSet ) [inline]

Definition at line 30 of file EcalClusterEnergyCorrectionBaseClass.h.

{};
EcalClusterEnergyCorrectionBaseClass::~EcalClusterEnergyCorrectionBaseClass ( ) [virtual]

Definition at line 11 of file EcalClusterEnergyCorrectionBaseClass.cc.

{}

Member Function Documentation

void EcalClusterEnergyCorrectionBaseClass::checkInit ( ) const

Definition at line 22 of file EcalClusterEnergyCorrectionBaseClass.cc.

References Exception, and params_.

Referenced by EcalClusterEnergyCorrection::getValue().

{
        if ( ! params_ ) {
                // non-initialized function parameters: throw exception
                throw cms::Exception("EcalClusterEnergyCorrectionBaseClass::checkInit()") 
                        << "Trying to access an uninitialized crack correction function.\n"
                        "Please call `init( edm::EventSetup &)' before any use of the function.\n";
        }
}
const EcalClusterEnergyCorrectionParameters* EcalClusterEnergyCorrectionBaseClass::getParameters ( ) const [inline]

Definition at line 34 of file EcalClusterEnergyCorrectionBaseClass.h.

References params_.

{ return params_; }
virtual float EcalClusterEnergyCorrectionBaseClass::getValue ( const reco::SuperCluster ,
const int  mode 
) const [pure virtual]
virtual float EcalClusterEnergyCorrectionBaseClass::getValue ( const reco::BasicCluster ,
const EcalRecHitCollection  
) const [pure virtual]
void EcalClusterEnergyCorrectionBaseClass::init ( const edm::EventSetup es) [virtual]

Member Data Documentation

Definition at line 47 of file EcalClusterEnergyCorrectionBaseClass.h.

Referenced by init().