CMS 3D CMS Logo

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