CMS 3D CMS Logo

EcalClusterEnergyUncertaintyBaseClass.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("EcalClusterEnergyUncertaintyBaseClass::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 }
const T & get() const
Definition: EventSetup.h:55
const EcalClusterEnergyUncertaintyParameters * params_
edm::ESHandle< EcalClusterEnergyUncertaintyParameters > esParams_