#include <CastorTextCalibrations.h>
Public Member Functions | |
CastorTextCalibrations (const edm::ParameterSet &) | |
void | produce () |
~CastorTextCalibrations () | |
Protected Member Functions | |
std::auto_ptr < CastorChannelQuality > | produceChannelQuality (const CastorChannelQualityRcd &rcd) |
std::auto_ptr < CastorElectronicsMap > | produceElectronicsMap (const CastorElectronicsMapRcd &rcd) |
std::auto_ptr< CastorGains > | produceGains (const CastorGainsRcd &rcd) |
std::auto_ptr< CastorGainWidths > | produceGainWidths (const CastorGainWidthsRcd &rcd) |
std::auto_ptr< CastorPedestals > | producePedestals (const CastorPedestalsRcd &rcd) |
std::auto_ptr < CastorPedestalWidths > | producePedestalWidths (const CastorPedestalWidthsRcd &rcd) |
std::auto_ptr< CastorQIEData > | produceQIEData (const CastorQIEDataRcd &rcd) |
virtual void | setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) |
Private Attributes | |
std::map< std::string, std::string > | mInputs |
Definition at line 26 of file CastorTextCalibrations.h.
CastorTextCalibrations::CastorTextCalibrations | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 36 of file CastorTextCalibrations.cc.
References ExpressReco_HICollisions_FallBack::cerr, runTheMatrix::data, edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), summarizeEdmComparisonLogfiles::objectName, produceChannelQuality(), produceElectronicsMap(), produceGains(), produceGainWidths(), producePedestals(), producePedestalWidths(), and produceQIEData().
{ //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 { std::cerr << "CastorTextCalibrations-> Unknown object name '" << objectName << "', known names are: " << "Pedestals PedestalWidths Gains GainWidths QIEData ChannelQuality ElectronicsMap" << std::endl; } } // setWhatProduced(this); }
CastorTextCalibrations::~CastorTextCalibrations | ( | ) |
Definition at line 85 of file CastorTextCalibrations.cc.
{ }
void CastorTextCalibrations::produce | ( | ) | [inline] |
Definition at line 33 of file CastorTextCalibrations.h.
{};
std::auto_ptr< CastorChannelQuality > CastorTextCalibrations::produceChannelQuality | ( | const CastorChannelQualityRcd & | rcd | ) | [protected] |
Definition at line 135 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 139 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 123 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 127 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 115 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 119 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 131 of file CastorTextCalibrations.cc.
Referenced by CastorTextCalibrations().
{ return produce_impl<CastorQIEData> (mInputs ["QIEData"]); }
void CastorTextCalibrations::setIntervalFor | ( | const edm::eventsetup::EventSetupRecordKey & | iKey, |
const edm::IOVSyncValue & | iTime, | ||
edm::ValidityInterval & | oInterval | ||
) | [protected, virtual] |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 94 of file CastorTextCalibrations.cc.
References edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), edm::eventsetup::EventSetupRecordKey::name(), and record.
{ 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 49 of file CastorTextCalibrations.h.