CMS 3D CMS Logo

Public Member Functions | Protected Attributes

EcalClusterCrackCorrectionBaseClass Class Reference

#include <EcalClusterCrackCorrectionBaseClass.h>

Inheritance diagram for EcalClusterCrackCorrectionBaseClass:
EcalClusterFunctionBaseClass EcalClusterCrackCorrection

List of all members.

Public Member Functions

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

Protected Attributes

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

Detailed Description

Definition at line 20 of file EcalClusterCrackCorrectionBaseClass.h.


Constructor & Destructor Documentation

EcalClusterCrackCorrectionBaseClass::EcalClusterCrackCorrectionBaseClass ( )

Definition at line 8 of file EcalClusterCrackCorrectionBaseClass.cc.

                                                                         :
        params_(0)
{}
EcalClusterCrackCorrectionBaseClass::EcalClusterCrackCorrectionBaseClass ( const edm::ParameterSet ) [inline]

Definition at line 23 of file EcalClusterCrackCorrectionBaseClass.h.

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

Definition at line 12 of file EcalClusterCrackCorrectionBaseClass.cc.

{}

Member Function Documentation

void EcalClusterCrackCorrectionBaseClass::checkInit ( ) const

Definition at line 33 of file EcalClusterCrackCorrectionBaseClass.cc.

References Exception, and params_.

Referenced by EcalClusterCrackCorrection::getValue().

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

Definition at line 27 of file EcalClusterCrackCorrectionBaseClass.h.

References params_.

{ return params_; }
virtual float EcalClusterCrackCorrectionBaseClass::getValue ( const reco::CaloCluster ) const [inline, virtual]

Reimplemented from EcalClusterFunctionBaseClass.

Reimplemented in EcalClusterCrackCorrection.

Definition at line 35 of file EcalClusterCrackCorrectionBaseClass.h.

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

Implements EcalClusterFunctionBaseClass.

Definition at line 16 of file EcalClusterCrackCorrectionBaseClass.cc.

References es_, esParams_, edm::EventSetup::get(), params_, and edm::ESHandle< T >::product().

{
        es.get<EcalClusterCrackCorrParametersRcd>().get( esParams_ );
        params_ = esParams_.product();
        es_ = &es; //needed to access the ECAL geometry

        //EcalClusterCrackCorrParameters::const_iterator it;
        //std::cout << "[[EcalClusterCrackCorrectionBaseClass::init]] " 
        //        << params_->size() << " parameters:";
        //for ( it = params_->begin(); it != params_->end(); ++it ) {
        //        std::cout << " " << *it;
        //}
        //std::cout << "\n";
}

Member Data Documentation

Definition at line 40 of file EcalClusterCrackCorrectionBaseClass.h.

Referenced by init().