CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
EcalClusterCrackCorrectionBaseClass Class Referenceabstract

#include <EcalClusterCrackCorrectionBaseClass.h>

Inheritance diagram for EcalClusterCrackCorrectionBaseClass:
EcalClusterFunctionBaseClass EcalClusterCrackCorrection

Public Member Functions

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

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.

8  :
9  params_(0)
10 {}
const EcalClusterCrackCorrParameters * params_
EcalClusterCrackCorrectionBaseClass::EcalClusterCrackCorrectionBaseClass ( const edm::ParameterSet )
inline

Definition at line 23 of file EcalClusterCrackCorrectionBaseClass.h.

23 {};
EcalClusterCrackCorrectionBaseClass::~EcalClusterCrackCorrectionBaseClass ( )
virtual

Definition at line 12 of file EcalClusterCrackCorrectionBaseClass.cc.

13 {}

Member Function Documentation

void EcalClusterCrackCorrectionBaseClass::checkInit ( ) const

Definition at line 33 of file EcalClusterCrackCorrectionBaseClass.cc.

References edm::hlt::Exception, and params_.

Referenced by EcalClusterCrackCorrection::getValue().

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

Definition at line 27 of file EcalClusterCrackCorrectionBaseClass.h.

References params_.

27 { return params_; }
const EcalClusterCrackCorrParameters * params_
virtual float EcalClusterCrackCorrectionBaseClass::getValue ( const reco::BasicCluster ,
const EcalRecHitCollection  
) const
pure virtual
virtual float EcalClusterCrackCorrectionBaseClass::getValue ( const reco::SuperCluster ,
const int  mode 
) const
pure virtual
virtual float EcalClusterCrackCorrectionBaseClass::getValue ( const reco::CaloCluster ) const
inlinevirtual

Reimplemented from EcalClusterFunctionBaseClass.

Reimplemented in EcalClusterCrackCorrection.

Definition at line 35 of file EcalClusterCrackCorrectionBaseClass.h.

35 {return 0;};
void EcalClusterCrackCorrectionBaseClass::init ( const edm::EventSetup es)
virtual

Implements EcalClusterFunctionBaseClass.

Definition at line 16 of file EcalClusterCrackCorrectionBaseClass.cc.

References es_, esParams_, edm::EventSetup::get(), and params_.

17 {
19  params_ = esParams_.product();
20  es_ = &es; //needed to access the ECAL geometry
21 
23  //EcalClusterCrackCorrParameters::const_iterator it;
24  //std::cout << "[[EcalClusterCrackCorrectionBaseClass::init]] "
25  // << params_->size() << " parameters:";
26  //for ( it = params_->begin(); it != params_->end(); ++it ) {
27  // std::cout << " " << *it;
28  //}
29  //std::cout << "\n";
30 }
edm::ESHandle< EcalClusterCrackCorrParameters > esParams_
const EcalClusterCrackCorrParameters * params_
const T & get() const
Definition: EventSetup.h:55

Member Data Documentation

const edm::EventSetup* EcalClusterCrackCorrectionBaseClass::es_
protected
edm::ESHandle<EcalClusterCrackCorrParameters> EcalClusterCrackCorrectionBaseClass::esParams_
protected

Definition at line 40 of file EcalClusterCrackCorrectionBaseClass.h.

Referenced by init().

const EcalClusterCrackCorrParameters* EcalClusterCrackCorrectionBaseClass::params_
protected