CMS 3D CMS Logo

CastorDbService Class Reference

#include <CalibFormats/CastorObjects/interface/CastorDbService.h>

List of all members.

Public Member Functions

 CastorDbService (const edm::ParameterSet &)
 CastorDbService ()
const CastorQIECodergetCastorCoder (const HcalGenericDetId &fId) const
const CastorElectronicsMapgetCastorMapping () const
const CastorQIEShapegetCastorShape () const
const CastorGaingetGain (const HcalGenericDetId &fId) const
const CastorGainWidthgetGainWidth (const HcalGenericDetId &fId) const
const CastorPedestalgetPedestal (const HcalGenericDetId &fId) const
const CastorPedestalWidthgetPedestalWidth (const HcalGenericDetId &fId) const
bool makeCastorCalibration (const HcalGenericDetId &fId, CastorCalibrations *fObject) const
bool makeCastorCalibrationWidth (const HcalGenericDetId &fId, CastorCalibrationWidths *fObject) const
void setData (const CastorElectronicsMap *fItem)
void setData (const CastorChannelQuality *fItem)
void setData (const CastorQIEData *fItem)
void setData (const CastorGainWidths *fItem)
void setData (const CastorGains *fItem)
void setData (const CastorPedestalWidths *fItem)
void setData (const CastorPedestals *fItem)

Private Attributes

const CastorChannelQualitymChannelQuality
const CastorElectronicsMapmElectronicsMap
const CastorGainsmGains
const CastorGainWidthsmGainWidths
const CastorPedestalsmPedestals
const CastorPedestalWidthsmPedestalWidths
const CastorQIEDatamQIEData
QieShapemQieShapeCache


Detailed Description

Definition at line 32 of file CastorDbService.h.


Constructor & Destructor Documentation

CastorDbService::CastorDbService (  ) 

Definition at line 24 of file CastorDbService.cc.

00025   : 
00026   mQieShapeCache (0),
00027   mPedestals (0),
00028   mPedestalWidths (0),
00029   mGains (0),
00030   mGainWidths (0)
00031  {}

CastorDbService::CastorDbService ( const edm::ParameterSet  ) 


Member Function Documentation

const CastorQIECoder * CastorDbService::getCastorCoder ( const HcalGenericDetId fId  )  const

Definition at line 87 of file CastorDbService.cc.

References CastorQIEData::getCoder(), and mQIEData.

Referenced by CastorCoderFactory::coder(), and CastorPedestalAnalysis::processEvent().

00087                                                                                         {
00088   if (mQIEData) {
00089     return mQIEData->getCoder (fId);
00090   }
00091   return 0;
00092 }

const CastorElectronicsMap * CastorDbService::getCastorMapping (  )  const

Definition at line 100 of file CastorDbService.cc.

References mElectronicsMap.

00100                                                                      {
00101   return mElectronicsMap;
00102 }

const CastorQIEShape * CastorDbService::getCastorShape (  )  const

Definition at line 94 of file CastorDbService.cc.

References CastorQIEData::getShape(), and mQIEData.

Referenced by CastorCoderFactory::coder(), and CastorPedestalAnalysis::processEvent().

00094                                                              {
00095   if (mQIEData) {
00096     return &mQIEData->getShape ();
00097   }
00098   return 0;
00099 }

const CastorGain * CastorDbService::getGain ( const HcalGenericDetId fId  )  const

Definition at line 73 of file CastorDbService.cc.

References CastorGains::getValues(), and mGains.

Referenced by CastorSimParameters::fCtoGeV(), and makeCastorCalibration().

00073                                                                              {
00074   if (mGains) {
00075     return mGains->getValues(fId);
00076   }
00077   return 0;
00078 }

const CastorGainWidth * CastorDbService::getGainWidth ( const HcalGenericDetId fId  )  const

Definition at line 80 of file CastorDbService.cc.

References CastorGainWidths::getValues(), and mGainWidths.

Referenced by CastorSimParameters::fCtoGeV(), and makeCastorCalibrationWidth().

00080                                                                                          {
00081   if (mGainWidths) {
00082     return mGainWidths->getValues (fId);
00083   }
00084   return 0;
00085 }

const CastorPedestal * CastorDbService::getPedestal ( const HcalGenericDetId fId  )  const

Definition at line 59 of file CastorDbService.cc.

References CastorPedestals::getValues(), and mPedestals.

Referenced by CastorAmplifier::amplify(), and makeCastorCalibration().

00059                                                                                      {
00060   if (mPedestals) {
00061     return mPedestals->getValues (fId);
00062   }
00063   return 0;
00064 }

const CastorPedestalWidth * CastorDbService::getPedestalWidth ( const HcalGenericDetId fId  )  const

Definition at line 66 of file CastorDbService.cc.

References CastorPedestalWidths::getValues(), and mPedestalWidths.

Referenced by CastorAmplifier::amplify(), and makeCastorCalibrationWidth().

00066                                                                                                  {
00067   if (mPedestalWidths) {
00068     return mPedestalWidths->getValues (fId);
00069   }
00070   return 0;
00071 }

bool CastorDbService::makeCastorCalibration ( const HcalGenericDetId fId,
CastorCalibrations fObject 
) const

Definition at line 33 of file CastorDbService.cc.

References getGain(), getPedestal(), CastorPedestal::getValues(), CastorGain::getValues(), and pedestal.

00033                                                                                                            {
00034   if (fObject) {
00035     const CastorPedestal* pedestal = getPedestal (fId);
00036     const CastorGain* gain = getGain (fId);
00037     if (pedestal && gain) {
00038       *fObject = CastorCalibrations (gain->getValues (), pedestal->getValues ());
00039       return true;
00040     }
00041   }
00042   return false;
00043 }

bool CastorDbService::makeCastorCalibrationWidth ( const HcalGenericDetId fId,
CastorCalibrationWidths fObject 
) const

Definition at line 45 of file CastorDbService.cc.

References getGainWidth(), getPedestalWidth(), CastorGainWidth::getValues(), CastorPedestalWidth::getWidth(), i, and pedestal.

00045                                                                                                                      {
00046   if (fObject) {
00047     const CastorPedestalWidth* pedestal = getPedestalWidth (fId);
00048     const CastorGainWidth* gain = getGainWidth (fId);
00049     if (pedestal && gain) {
00050       float pedestalWidth [4];
00051       for (int i = 0; i < 4; i++) pedestalWidth [i] = pedestal->getWidth (i);
00052       *fObject = CastorCalibrationWidths (gain->getValues (), pedestalWidth);
00053       return true;
00054     }
00055   }
00056   return false;
00057 }  

void CastorDbService::setData ( const CastorElectronicsMap fItem  )  [inline]

Definition at line 53 of file CastorDbService.h.

References mElectronicsMap.

00053 {mElectronicsMap = fItem;}

void CastorDbService::setData ( const CastorChannelQuality fItem  )  [inline]

Definition at line 52 of file CastorDbService.h.

References mChannelQuality.

00052 {mChannelQuality = fItem;}

void CastorDbService::setData ( const CastorQIEData fItem  )  [inline]

Definition at line 51 of file CastorDbService.h.

References mQIEData.

00051 {mQIEData = fItem;}

void CastorDbService::setData ( const CastorGainWidths fItem  )  [inline]

Definition at line 50 of file CastorDbService.h.

References mGainWidths.

00050 {mGainWidths = fItem;}

void CastorDbService::setData ( const CastorGains fItem  )  [inline]

Definition at line 49 of file CastorDbService.h.

References mGains.

00049 {mGains = fItem;}

void CastorDbService::setData ( const CastorPedestalWidths fItem  )  [inline]

Definition at line 48 of file CastorDbService.h.

References mPedestalWidths.

00048 {mPedestalWidths = fItem;}

void CastorDbService::setData ( const CastorPedestals fItem  )  [inline]

Definition at line 47 of file CastorDbService.h.

References mPedestals.

00047 {mPedestals = fItem;}


Member Data Documentation

const CastorChannelQuality* CastorDbService::mChannelQuality [private]

Definition at line 61 of file CastorDbService.h.

Referenced by setData().

const CastorElectronicsMap* CastorDbService::mElectronicsMap [private]

Definition at line 62 of file CastorDbService.h.

Referenced by getCastorMapping(), and setData().

const CastorGains* CastorDbService::mGains [private]

Definition at line 58 of file CastorDbService.h.

Referenced by getGain(), and setData().

const CastorGainWidths* CastorDbService::mGainWidths [private]

Definition at line 59 of file CastorDbService.h.

Referenced by getGainWidth(), and setData().

const CastorPedestals* CastorDbService::mPedestals [private]

Definition at line 56 of file CastorDbService.h.

Referenced by getPedestal(), and setData().

const CastorPedestalWidths* CastorDbService::mPedestalWidths [private]

Definition at line 57 of file CastorDbService.h.

Referenced by getPedestalWidth(), and setData().

const CastorQIEData* CastorDbService::mQIEData [private]

Definition at line 60 of file CastorDbService.h.

Referenced by getCastorCoder(), getCastorShape(), and setData().

QieShape* CastorDbService::mQieShapeCache [mutable, private]

Definition at line 55 of file CastorDbService.h.


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:16:09 2009 for CMSSW by  doxygen 1.5.4