#include <CastorTextCalibrations.h>
Definition at line 28 of file CastorTextCalibrations.h.
CastorTextCalibrations::CastorTextCalibrations | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 37 of file CastorTextCalibrations.cc.
References dtNoiseDBValidation_cfg::cerr, data, edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), summarizeEdmComparisonLogfiles::objectName, produceChannelQuality(), produceElectronicsMap(), produceGains(), produceGainWidths(), producePedestals(), producePedestalWidths(), produceQIEData(), produceRecoParams(), produceSaturationCorrs(), and AlCaHLTBitMon_QueryRunRegistry::string.
{ //parsing parameters std::vector<edm::ParameterSet> data = iConfig.getParameter<std::vector<edm::ParameterSet> >("input"); std::vector<edm::ParameterSet>::iterator request = data.begin (); for (; request != data.end (); request++) { std::string objectName = request->getParameter<std::string> ("object"); edm::FileInPath fp = request->getParameter<edm::FileInPath>("file"); mInputs [objectName] = fp.fullPath(); if (objectName == "Pedestals") { setWhatProduced (this, &CastorTextCalibrations::producePedestals); findingRecord <CastorPedestalsRcd> (); } else if (objectName == "PedestalWidths") { setWhatProduced (this, &CastorTextCalibrations::producePedestalWidths); findingRecord <CastorPedestalWidthsRcd> (); } else if (objectName == "Gains") { setWhatProduced (this, &CastorTextCalibrations::produceGains); findingRecord <CastorGainsRcd> (); } else if (objectName == "GainWidths") { setWhatProduced (this, &CastorTextCalibrations::produceGainWidths); findingRecord <CastorGainWidthsRcd> (); } else if (objectName == "QIEData") { setWhatProduced (this, &CastorTextCalibrations::produceQIEData); findingRecord <CastorQIEDataRcd> (); } else if (objectName == "ChannelQuality") { setWhatProduced (this, &CastorTextCalibrations::produceChannelQuality); findingRecord <CastorChannelQualityRcd> (); } else if (objectName == "ElectronicsMap") { setWhatProduced (this, &CastorTextCalibrations::produceElectronicsMap); findingRecord <CastorElectronicsMapRcd> (); } else if (objectName == "RecoParams") { setWhatProduced (this, &CastorTextCalibrations::produceRecoParams); findingRecord <CastorRecoParamsRcd> (); } else if (objectName == "SaturationCorrs") { setWhatProduced (this, &CastorTextCalibrations::produceSaturationCorrs); findingRecord <CastorSaturationCorrsRcd> (); } else { std::cerr << "CastorTextCalibrations-> Unknown object name '" << objectName << "', known names are: " << "Pedestals PedestalWidths Gains GainWidths QIEData ChannelQuality ElectronicsMap RecoParams SaturationCorrs" << std::endl; } } // setWhatProduced(this); }
CastorTextCalibrations::~CastorTextCalibrations | ( | ) |
Definition at line 94 of file CastorTextCalibrations.cc.
{ }
void CastorTextCalibrations::produce | ( | ) | [inline] |
Definition at line 35 of file CastorTextCalibrations.h.
{};
std::auto_ptr< CastorChannelQuality > CastorTextCalibrations::produceChannelQuality | ( | const CastorChannelQualityRcd & | rcd | ) | [protected] |
Definition at line 144 of file CastorTextCalibrations.cc.
Referenced by CastorTextCalibrations().
{ return produce_impl<CastorChannelQuality> (mInputs ["ChannelQuality"]); }
std::auto_ptr< CastorElectronicsMap > CastorTextCalibrations::produceElectronicsMap | ( | const CastorElectronicsMapRcd & | rcd | ) | [protected] |
Definition at line 148 of file CastorTextCalibrations.cc.
Referenced by CastorTextCalibrations().
{ return produce_impl<CastorElectronicsMap> (mInputs ["ElectronicsMap"]); }
std::auto_ptr< CastorGains > CastorTextCalibrations::produceGains | ( | const CastorGainsRcd & | rcd | ) | [protected] |
Definition at line 132 of file CastorTextCalibrations.cc.
Referenced by CastorTextCalibrations().
{ return produce_impl<CastorGains> (mInputs ["Gains"]); }
std::auto_ptr< CastorGainWidths > CastorTextCalibrations::produceGainWidths | ( | const CastorGainWidthsRcd & | rcd | ) | [protected] |
Definition at line 136 of file CastorTextCalibrations.cc.
Referenced by CastorTextCalibrations().
{ return produce_impl<CastorGainWidths> (mInputs ["GainWidths"]); }
std::auto_ptr< CastorPedestals > CastorTextCalibrations::producePedestals | ( | const CastorPedestalsRcd & | rcd | ) | [protected] |
Definition at line 124 of file CastorTextCalibrations.cc.
Referenced by CastorTextCalibrations().
{ return produce_impl<CastorPedestals> (mInputs ["Pedestals"]); }
std::auto_ptr< CastorPedestalWidths > CastorTextCalibrations::producePedestalWidths | ( | const CastorPedestalWidthsRcd & | rcd | ) | [protected] |
Definition at line 128 of file CastorTextCalibrations.cc.
Referenced by CastorTextCalibrations().
{ return produce_impl<CastorPedestalWidths> (mInputs ["PedestalWidths"]); }
std::auto_ptr< CastorQIEData > CastorTextCalibrations::produceQIEData | ( | const CastorQIEDataRcd & | rcd | ) | [protected] |
Definition at line 140 of file CastorTextCalibrations.cc.
Referenced by CastorTextCalibrations().
{ return produce_impl<CastorQIEData> (mInputs ["QIEData"]); }
std::auto_ptr< CastorRecoParams > CastorTextCalibrations::produceRecoParams | ( | const CastorRecoParamsRcd & | rcd | ) | [protected] |
Definition at line 152 of file CastorTextCalibrations.cc.
Referenced by CastorTextCalibrations().
{ return produce_impl<CastorRecoParams> (mInputs ["RecoParams"]); }
std::auto_ptr< CastorSaturationCorrs > CastorTextCalibrations::produceSaturationCorrs | ( | const CastorSaturationCorrsRcd & | rcd | ) | [protected] |
Definition at line 156 of file CastorTextCalibrations.cc.
Referenced by CastorTextCalibrations().
{ return produce_impl<CastorSaturationCorrs> (mInputs ["SaturationCorrs"]); }
void CastorTextCalibrations::setIntervalFor | ( | const edm::eventsetup::EventSetupRecordKey & | iKey, |
const edm::IOVSyncValue & | iTime, | ||
edm::ValidityInterval & | oInterval | ||
) | [protected, virtual] |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 103 of file CastorTextCalibrations.cc.
References edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), edm::eventsetup::EventSetupRecordKey::name(), record, and AlCaHLTBitMon_QueryRunRegistry::string.
{ std::string record = iKey.name (); oInterval = edm::ValidityInterval (edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime()); //infinite }
std::map<std::string, std::string> CastorTextCalibrations::mInputs [private] |
Definition at line 53 of file CastorTextCalibrations.h.