CMS 3D CMS Logo

Public Member Functions | Protected Attributes

EcalClusterEnergyCorrectionObjectSpecificBaseClass Class Reference

#include <EcalClusterEnergyCorrectionObjectSpecificBaseClass.h>

Inheritance diagram for EcalClusterEnergyCorrectionObjectSpecificBaseClass:
EcalClusterFunctionBaseClass EcalClusterEnergyCorrectionObjectSpecific

List of all members.

Public Member Functions

void checkInit () const
 EcalClusterEnergyCorrectionObjectSpecificBaseClass ()
 EcalClusterEnergyCorrectionObjectSpecificBaseClass (const edm::ParameterSet &)
const
EcalClusterEnergyCorrectionObjectSpecificParameters
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 ~EcalClusterEnergyCorrectionObjectSpecificBaseClass ()

Protected Attributes

edm::ESHandle
< EcalClusterEnergyCorrectionObjectSpecificParameters
esParams_
const
EcalClusterEnergyCorrectionObjectSpecificParameters
params_

Detailed Description

Definition at line 29 of file EcalClusterEnergyCorrectionObjectSpecificBaseClass.h.


Constructor & Destructor Documentation

EcalClusterEnergyCorrectionObjectSpecificBaseClass::EcalClusterEnergyCorrectionObjectSpecificBaseClass ( )
EcalClusterEnergyCorrectionObjectSpecificBaseClass::EcalClusterEnergyCorrectionObjectSpecificBaseClass ( const edm::ParameterSet ) [inline]
EcalClusterEnergyCorrectionObjectSpecificBaseClass::~EcalClusterEnergyCorrectionObjectSpecificBaseClass ( ) [virtual]

Member Function Documentation

void EcalClusterEnergyCorrectionObjectSpecificBaseClass::checkInit ( ) const

Definition at line 22 of file EcalClusterEnergyCorrectionObjectSpecificBaseClass.cc.

References Exception, and params_.

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

Definition at line 36 of file EcalClusterEnergyCorrectionObjectSpecificBaseClass.h.

References params_.

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

Member Data Documentation

Definition at line 52 of file EcalClusterEnergyCorrectionObjectSpecificBaseClass.h.

Referenced by init().