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 &)
 
const CTPPSPixelGainCalibrationDBServiceoperator= (const CTPPSPixelGainCalibrationDBService &)
 

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().

22 {
23 }
CTPPSPixelGainCalibrationDBService::~CTPPSPixelGainCalibrationDBService ( )
virtual

Definition at line 25 of file CTPPSPixelGainCalibrationDBService.cc.

26 {
27 }
CTPPSPixelGainCalibrationDBService::CTPPSPixelGainCalibrationDBService ( const CTPPSPixelGainCalibrationDBService )
private

Member Function Documentation

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

Definition at line 29 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().

29  {
30 
32  if( recordKey.type() == edm::eventsetup::EventSetupRecordKey::TypeTag()) {
33  //record not found
34  throw cms::Exception("CTPPSPixelGainCalibrationService") << "Record CTPPSPixelGainCalibrationsRcd does not exist";
35  }
37  iSetup.get<CTPPSPixelGainCalibrationsRcd>().get(calhandle);
38  pPixelGainCalibrations=calhandle.product();
39 }
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 )
private

Member Data Documentation

const CTPPSPixelGainCalibrations* CTPPSPixelGainCalibrationDBService::pPixelGainCalibrations
private

Definition at line 33 of file CTPPSPixelGainCalibrationDBService.h.

Referenced by getCalibs(), and getDB().