CMS 3D CMS Logo

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 EcalClusterCrackCorrParametersgetParameters () const
 
float getValue (const reco::BasicCluster &, const EcalRecHitCollection &) const override=0
 
float getValue (const reco::SuperCluster &, const int mode) const override=0
 
float getValue (const reco::CaloCluster &) const override
 
void init (const edm::EventSetup &es) override
 
 ~EcalClusterCrackCorrectionBaseClass () override
 
- Public Member Functions inherited from EcalClusterFunctionBaseClass
virtual ~EcalClusterFunctionBaseClass ()
 

Protected Attributes

const edm::EventSetupes_
 
edm::ESHandle< EcalClusterCrackCorrParametersesParams_
 
const EcalClusterCrackCorrParametersparams_
 

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_(nullptr)
10 {}
const EcalClusterCrackCorrParameters * params_
EcalClusterCrackCorrectionBaseClass::EcalClusterCrackCorrectionBaseClass ( const edm::ParameterSet )
inline

Definition at line 23 of file EcalClusterCrackCorrectionBaseClass.h.

References ~EcalClusterCrackCorrectionBaseClass().

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

Definition at line 12 of file EcalClusterCrackCorrectionBaseClass.cc.

Referenced by EcalClusterCrackCorrectionBaseClass().

13 {}

Member Function Documentation

void EcalClusterCrackCorrectionBaseClass::checkInit ( ) const

Definition at line 33 of file EcalClusterCrackCorrectionBaseClass.cc.

References Exception, and params_.

Referenced by getParameters(), and 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
float EcalClusterCrackCorrectionBaseClass::getValue ( const reco::BasicCluster ,
const EcalRecHitCollection  
) const
overridepure virtual

Implements EcalClusterFunctionBaseClass.

Implemented in EcalClusterCrackCorrection.

Referenced by getParameters().

float EcalClusterCrackCorrectionBaseClass::getValue ( const reco::SuperCluster ,
const int  mode 
) const
overridepure virtual
float EcalClusterCrackCorrectionBaseClass::getValue ( const reco::CaloCluster ) const
inlineoverridevirtual

Reimplemented from EcalClusterFunctionBaseClass.

Definition at line 35 of file EcalClusterCrackCorrectionBaseClass.h.

References init().

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

Implements EcalClusterFunctionBaseClass.

Definition at line 16 of file EcalClusterCrackCorrectionBaseClass.cc.

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

Referenced by getValue().

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_
T get() const
Definition: EventSetup.h:63

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