CMS 3D CMS Logo

CTPPSPixelGainCalibrationDBService.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: RecoCTPPS/PixelLocal
4 // Class : CTPPSPixelGainCalibrationDBService
5 //
6 // Implementation:
7 // [Notes on implementation]
8 //
9 // Original Author: Helio Nogima
10 // Created: Thu, 23 Feb 2017 17:37:50 GMT
11 //
12 
20 
22 
24 
27  edm::eventsetup::EventSetupRecordKey::TypeTag::findType("CTPPSPixelGainCalibrationsRcd"));
29  //record not found
30  throw cms::Exception("CTPPSPixelGainCalibrationService") << "Record CTPPSPixelGainCalibrationsRcd does not exist";
31  }
33  iSetup.get<CTPPSPixelGainCalibrationsRcd>().get(calhandle);
34  pPixelGainCalibrations = calhandle.product();
35 }
const CTPPSPixelGainCalibrations * pPixelGainCalibrations
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
int iEvent
Definition: GenABIO.cc:224
virtual void getDB(const edm::Event &e, const edm::EventSetup &c)
heterocontainer::HCTypeTag TypeTag
T get() const
Definition: EventSetup.h:73
T const * product() const
Definition: ESHandle.h:86