![]() |
![]() |
#include <HcalOmdsCalibrations.h>
Definition at line 31 of file HcalOmdsCalibrations.h.
HcalOmdsCalibrations::HcalOmdsCalibrations | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 43 of file HcalOmdsCalibrations.cc.
References dtNoiseDBValidation_cfg::cerr, data, edm::ParameterSet::getParameter(), summarizeEdmComparisonLogfiles::objectName, produceChannelQuality(), produceDcsValues(), produceElectronicsMap(), produceGains(), produceGainWidths(), produceL1TriggerObjects(), produceLutMetadata(), producePedestals(), producePedestalWidths(), produceQIEData(), produceRespCorrs(), produceValidationCorrs(), produceZSThresholds(), 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"); if (request->exists("version")) mVersion[objectName] = request->getParameter<std::string>("version"); if (request->exists("subversion")) mSubversion[objectName] = request->getParameter<int>("subversion"); if (request->exists("iov_begin")) mIOVBegin[objectName] = request->getParameter<int>("iov_begin"); if (request->exists("accessor")) mAccessor[objectName] = request->getParameter<std::string>("accessor"); if (request->exists("query")) mQuery[objectName] = request->getParameter<std::string>("query"); mInputs [objectName] = request->getParameter<std::string>("tag"); if (objectName == "Pedestals") { setWhatProduced (this, &HcalOmdsCalibrations::producePedestals); findingRecord <HcalPedestalsRcd> (); } else if (objectName == "PedestalWidths") { setWhatProduced (this, &HcalOmdsCalibrations::producePedestalWidths); findingRecord <HcalPedestalWidthsRcd> (); } else if (objectName == "Gains") { setWhatProduced (this, &HcalOmdsCalibrations::produceGains); findingRecord <HcalGainsRcd> (); } else if (objectName == "GainWidths") { setWhatProduced (this, &HcalOmdsCalibrations::produceGainWidths); findingRecord <HcalGainWidthsRcd> (); } else if (objectName == "QIEData") { setWhatProduced (this, &HcalOmdsCalibrations::produceQIEData); findingRecord <HcalQIEDataRcd> (); } else if (objectName == "ChannelQuality") { setWhatProduced (this, &HcalOmdsCalibrations::produceChannelQuality); findingRecord <HcalChannelQualityRcd> (); } else if (objectName == "ZSThresholds") { setWhatProduced (this, &HcalOmdsCalibrations::produceZSThresholds); findingRecord <HcalZSThresholdsRcd> (); } else if (objectName == "RespCorrs") { setWhatProduced (this, &HcalOmdsCalibrations::produceRespCorrs); findingRecord <HcalRespCorrsRcd> (); } else if (objectName == "L1TriggerObjects") { setWhatProduced (this, &HcalOmdsCalibrations::produceL1TriggerObjects); findingRecord <HcalL1TriggerObjectsRcd> (); } else if (objectName == "ElectronicsMap") { setWhatProduced (this, &HcalOmdsCalibrations::produceElectronicsMap); findingRecord <HcalElectronicsMapRcd> (); } else if (objectName == "ValidationCorrs") { setWhatProduced (this, &HcalOmdsCalibrations::produceValidationCorrs); findingRecord <HcalValidationCorrsRcd> (); } else if (objectName == "LutMetadata") { setWhatProduced (this, &HcalOmdsCalibrations::produceLutMetadata); findingRecord <HcalLutMetadataRcd> (); } else if (objectName == "DcsValues") { setWhatProduced (this, &HcalOmdsCalibrations::produceDcsValues); findingRecord <HcalDcsRcd> (); } else { std::cerr << "HcalOmdsCalibrations-> Unknown object name '" << objectName << "', known names are: " << "Pedestals PedestalWidths Gains GainWidths QIEData ChannelQuality ElectronicsMap " << "ZSThresholds RespCorrs L1TriggerObjects ValidationCorrs LutMetadata DcsValues " << std::endl; } } // setWhatProduced(this); }
HcalOmdsCalibrations::~HcalOmdsCalibrations | ( | ) |
Definition at line 123 of file HcalOmdsCalibrations.cc.
{ }
void HcalOmdsCalibrations::produce | ( | ) | [inline] |
Definition at line 38 of file HcalOmdsCalibrations.h.
{};
std::auto_ptr< HcalChannelQuality > HcalOmdsCalibrations::produceChannelQuality | ( | const HcalChannelQualityRcd & | rcd | ) | [protected] |
Definition at line 262 of file HcalOmdsCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord().
Referenced by HcalOmdsCalibrations().
{ edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); return produce_impl<HcalChannelQuality> (topo, mInputs ["ChannelQuality"], mVersion["ChannelQuality"], mSubversion["ChannelQuality"], mIOVBegin["ChannelQuality"], mQuery["ChannelQuality"], mAccessor["ChannelQuality"]); }
std::auto_ptr< HcalDcsValues > HcalOmdsCalibrations::produceDcsValues | ( | const HcalDcsRcd & | rcd | ) | [protected] |
Definition at line 343 of file HcalOmdsCalibrations.cc.
Referenced by HcalOmdsCalibrations().
std::auto_ptr< HcalElectronicsMap > HcalOmdsCalibrations::produceElectronicsMap | ( | const HcalElectronicsMapRcd & | rcd | ) | [protected] |
Definition at line 310 of file HcalOmdsCalibrations.cc.
Referenced by HcalOmdsCalibrations().
std::auto_ptr< HcalGains > HcalOmdsCalibrations::produceGains | ( | const HcalGainsRcd & | rcd | ) | [protected] |
Definition at line 226 of file HcalOmdsCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord().
Referenced by HcalOmdsCalibrations().
{ edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); return produce_impl<HcalGains> (topo, mInputs ["Gains"], mVersion["Gains"], mSubversion["Gains"], mIOVBegin["Gains"], mQuery["Gains"], mAccessor["Gains"]); }
std::auto_ptr< HcalGainWidths > HcalOmdsCalibrations::produceGainWidths | ( | const HcalGainWidthsRcd & | rcd | ) | [protected] |
Definition at line 238 of file HcalOmdsCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord().
Referenced by HcalOmdsCalibrations().
{ edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); return produce_impl<HcalGainWidths> (topo, mInputs ["GainWidths"], mVersion["GainWidths"], mSubversion["GainWidths"], mIOVBegin["GainWidths"], mQuery["GainWidths"], mAccessor["GainWidths"]); }
std::auto_ptr< HcalL1TriggerObjects > HcalOmdsCalibrations::produceL1TriggerObjects | ( | const HcalL1TriggerObjectsRcd & | rcd | ) | [protected] |
Definition at line 298 of file HcalOmdsCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord().
Referenced by HcalOmdsCalibrations().
{ edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); return produce_impl<HcalL1TriggerObjects> (topo, mInputs ["L1TriggerObjects"], mVersion["L1TriggerObjects"], mSubversion["L1TriggerObjects"], mIOVBegin["L1TriggerObjects"], mQuery["L1TriggerObjects"], mAccessor["L1TriggerObjects"]); }
std::auto_ptr< HcalLutMetadata > HcalOmdsCalibrations::produceLutMetadata | ( | const HcalLutMetadataRcd & | rcd | ) | [protected] |
Definition at line 331 of file HcalOmdsCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord().
Referenced by HcalOmdsCalibrations().
{ edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); return produce_impl<HcalLutMetadata> (topo, mInputs ["LutMetadata"], mVersion["LutMetadata"], mSubversion["LutMetadata"], mIOVBegin["LutMetadata"], mQuery["LutMetadata"], mAccessor["LutMetadata"]); }
std::auto_ptr< HcalPedestals > HcalOmdsCalibrations::producePedestals | ( | const HcalPedestalsRcd & | rcd | ) | [protected] |
Definition at line 201 of file HcalOmdsCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord().
Referenced by HcalOmdsCalibrations().
{ edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); return produce_impl<HcalPedestals> (topo, mInputs ["Pedestals"], mVersion["Pedestals"], mSubversion["Pedestals"], mIOVBegin["Pedestals"], mQuery["Pedestals"], mAccessor["Pedestals"]); }
std::auto_ptr< HcalPedestalWidths > HcalOmdsCalibrations::producePedestalWidths | ( | const HcalPedestalWidthsRcd & | rcd | ) | [protected] |
Definition at line 214 of file HcalOmdsCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord().
Referenced by HcalOmdsCalibrations().
{ edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); return produce_impl<HcalPedestalWidths> (topo, mInputs ["PedestalWidths"], mVersion["PedestalWidths"], mSubversion["PedestalWidths"], mIOVBegin["PedestalWidths"], mQuery["PedestalWidths"], mAccessor["PedestalWidths"]); }
std::auto_ptr< HcalQIEData > HcalOmdsCalibrations::produceQIEData | ( | const HcalQIEDataRcd & | rcd | ) | [protected] |
Definition at line 250 of file HcalOmdsCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord().
Referenced by HcalOmdsCalibrations().
{ edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); return produce_impl<HcalQIEData> (topo, mInputs ["QIEData"], mVersion["QIEData"], mSubversion["QIEData"], mIOVBegin["QIEData"], mQuery["QIEData"], mAccessor["QIEData"]); }
std::auto_ptr< HcalRespCorrs > HcalOmdsCalibrations::produceRespCorrs | ( | const HcalRespCorrsRcd & | rcd | ) | [protected] |
Definition at line 286 of file HcalOmdsCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord().
Referenced by HcalOmdsCalibrations().
{ edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); return produce_impl<HcalRespCorrs> (topo, mInputs ["RespCorrs"], mVersion["RespCorrs"], mSubversion["RespCorrs"], mIOVBegin["RespCorrs"], mQuery["RespCorrs"], mAccessor["RespCorrs"]); }
std::auto_ptr< HcalValidationCorrs > HcalOmdsCalibrations::produceValidationCorrs | ( | const HcalValidationCorrsRcd & | rcd | ) | [protected] |
Definition at line 319 of file HcalOmdsCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord().
Referenced by HcalOmdsCalibrations().
{ edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); return produce_impl<HcalValidationCorrs> (topo, mInputs ["ValidationCorrs"], mVersion["ValidationCorrs"], mSubversion["ValidationCorrs"], mIOVBegin["ValidationCorrs"], mQuery["ValidationCorrs"], mAccessor["ValidationCorrs"]); }
std::auto_ptr< HcalZSThresholds > HcalOmdsCalibrations::produceZSThresholds | ( | const HcalZSThresholdsRcd & | rcd | ) | [protected] |
Definition at line 274 of file HcalOmdsCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord().
Referenced by HcalOmdsCalibrations().
{ edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); return produce_impl<HcalZSThresholds> (topo, mInputs ["ZSThresholds"], mVersion["ZSThresholds"], mSubversion["ZSThresholds"], mIOVBegin["ZSThresholds"], mQuery["ZSThresholds"], mAccessor["ZSThresholds"]); }
void HcalOmdsCalibrations::setIntervalFor | ( | const edm::eventsetup::EventSetupRecordKey & | iKey, |
const edm::IOVSyncValue & | iTime, | ||
edm::ValidityInterval & | oInterval | ||
) | [protected, virtual] |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 132 of file HcalOmdsCalibrations.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> HcalOmdsCalibrations::mAccessor [private] |
Definition at line 65 of file HcalOmdsCalibrations.h.
std::map<std::string, std::string> HcalOmdsCalibrations::mInputs [private] |
Definition at line 61 of file HcalOmdsCalibrations.h.
std::map<std::string, int> HcalOmdsCalibrations::mIOVBegin [private] |
Definition at line 64 of file HcalOmdsCalibrations.h.
std::map<std::string, std::string> HcalOmdsCalibrations::mQuery [private] |
Definition at line 66 of file HcalOmdsCalibrations.h.
std::map<std::string, int> HcalOmdsCalibrations::mSubversion [private] |
Definition at line 63 of file HcalOmdsCalibrations.h.
std::map<std::string, std::string> HcalOmdsCalibrations::mVersion [private] |
Definition at line 62 of file HcalOmdsCalibrations.h.