CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalClusterEnergyCorrectionBaseClass.cc
Go to the documentation of this file.
2 
4 
7 
9 {}
10 
12 {}
13 
14 void
16 {
18  params_ = esParams_.product();
19 }
20 
21 void
23 {
24  if ( ! params_ ) {
25  // non-initialized function parameters: throw exception
26  throw cms::Exception("EcalClusterEnergyCorrectionBaseClass::checkInit()")
27  << "Trying to access an uninitialized crack correction function.\n"
28  "Please call `init( edm::EventSetup &)' before any use of the function.\n";
29  }
30 }
virtual void init(const edm::EventSetup &es)
edm::ESHandle< EcalClusterEnergyCorrectionParameters > esParams_
const T & get() const
Definition: EventSetup.h:55
const EcalClusterEnergyCorrectionParameters * params_