#include <CalibFormats/CastorObjects/interface/CastorDbService.h>
Definition at line 32 of file CastorDbService.h.
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 & | ) |
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().
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().
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] |
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] |
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] |
const CastorChannelQuality* CastorDbService::mChannelQuality [private] |
const CastorElectronicsMap* CastorDbService::mElectronicsMap [private] |
const CastorGains* CastorDbService::mGains [private] |
const CastorGainWidths* CastorDbService::mGainWidths [private] |
const CastorPedestals* CastorDbService::mPedestals [private] |
const CastorPedestalWidths* CastorDbService::mPedestalWidths [private] |
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.