CMS 3D CMS Logo

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

#include "RecoPPS/Local/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() [1/2]

CTPPSPixelGainCalibrationDBService::CTPPSPixelGainCalibrationDBService ( )

Definition at line 21 of file CTPPSPixelGainCalibrationDBService.cc.

21 {}

◆ ~CTPPSPixelGainCalibrationDBService()

CTPPSPixelGainCalibrationDBService::~CTPPSPixelGainCalibrationDBService ( )
virtual

Definition at line 23 of file CTPPSPixelGainCalibrationDBService.cc.

23 {}

◆ CTPPSPixelGainCalibrationDBService() [2/2]

CTPPSPixelGainCalibrationDBService::CTPPSPixelGainCalibrationDBService ( const CTPPSPixelGainCalibrationDBService )
privatedelete

Member Function Documentation

◆ getCalibs()

const CTPPSPixelGainCalibrations* CTPPSPixelGainCalibrationDBService::getCalibs ( ) const
inline

◆ getDB()

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

Definition at line 25 of file CTPPSPixelGainCalibrationDBService.cc.

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 }

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

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

◆ operator=()

const CTPPSPixelGainCalibrationDBService& CTPPSPixelGainCalibrationDBService::operator= ( const CTPPSPixelGainCalibrationDBService )
privatedelete

Member Data Documentation

◆ pPixelGainCalibrations

const CTPPSPixelGainCalibrations* CTPPSPixelGainCalibrationDBService::pPixelGainCalibrations
private

Definition at line 32 of file CTPPSPixelGainCalibrationDBService.h.

Referenced by getCalibs(), and getDB().

edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
edm::eventsetup::heterocontainer::HCTypeTag::findType
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
Definition: HCTypeTag.cc:121
edm::eventsetup::EventSetupRecordKey
Definition: EventSetupRecordKey.h:30
edm::ESHandle
Definition: DTSurvey.h:22
edm::eventsetup::EventSetupRecordKey::TypeTag
heterocontainer::HCTypeTag TypeTag
Definition: EventSetupRecordKey.h:32
CTPPSPixelGainCalibrationsRcd
Definition: CTPPSPixelGainCalibrationsRcd.h:23
get
#define get
Exception
Definition: hltDiff.cc:246
CTPPSPixelGainCalibrationDBService::pPixelGainCalibrations
const CTPPSPixelGainCalibrations * pPixelGainCalibrations
Definition: CTPPSPixelGainCalibrationDBService.h:32