CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
CTPPSPixelGainCalibrationDBService Class Reference

#include "RecoCTPPS/PixelLocal/interface/CTPPSPixelGainCalibrationDBService.h"

Public Member Functions

 CTPPSPixelGainCalibrationDBService ()
 
const CTPPSPixelGainCalibrationsgetCalibs () const
 
virtual void getDB (const edm::Event &e, const edm::EventSetup &c)
 
virtual ~CTPPSPixelGainCalibrationDBService ()
 

Private Member Functions

 CTPPSPixelGainCalibrationDBService (const CTPPSPixelGainCalibrationDBService &)=delete
 
const CTPPSPixelGainCalibrationDBServiceoperator= (const CTPPSPixelGainCalibrationDBService &)=delete
 

Private Attributes

const CTPPSPixelGainCalibrationspPixelGainCalibrations
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 23 of file CTPPSPixelGainCalibrationDBService.h.

Constructor & Destructor Documentation

CTPPSPixelGainCalibrationDBService::CTPPSPixelGainCalibrationDBService ( )

Definition at line 21 of file CTPPSPixelGainCalibrationDBService.cc.

Referenced by getCalibs().

21 {}
CTPPSPixelGainCalibrationDBService::~CTPPSPixelGainCalibrationDBService ( )
virtual

Definition at line 23 of file CTPPSPixelGainCalibrationDBService.cc.

23 {}
CTPPSPixelGainCalibrationDBService::CTPPSPixelGainCalibrationDBService ( const CTPPSPixelGainCalibrationDBService )
privatedelete

Member Function Documentation

const CTPPSPixelGainCalibrations* CTPPSPixelGainCalibrationDBService::getCalibs ( ) const
inline
void CTPPSPixelGainCalibrationDBService::getDB ( const edm::Event e,
const edm::EventSetup c 
)
virtual

Definition at line 25 of file CTPPSPixelGainCalibrationDBService.cc.

References Exception, edm::eventsetup::heterocontainer::HCTypeTag::findType(), edm::EventSetup::get(), pPixelGainCalibrations, edm::ESHandle< T >::product(), and edm::eventsetup::EventSetupRecordKey::type().

Referenced by CTPPSPixelClusterProducer::produce(), and CTPPSPixelDigiProducer::produce().

25  {
27  edm::eventsetup::EventSetupRecordKey::TypeTag::findType("CTPPSPixelGainCalibrationsRcd"));
28  if (recordKey.type() == edm::eventsetup::EventSetupRecordKey::TypeTag()) {
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
heterocontainer::HCTypeTag TypeTag
T const * product() const
Definition: ESHandle.h:86
const CTPPSPixelGainCalibrationDBService& CTPPSPixelGainCalibrationDBService::operator= ( const CTPPSPixelGainCalibrationDBService )
privatedelete

Member Data Documentation

const CTPPSPixelGainCalibrations* CTPPSPixelGainCalibrationDBService::pPixelGainCalibrations
private

Definition at line 32 of file CTPPSPixelGainCalibrationDBService.h.

Referenced by getCalibs(), and getDB().