#include <CastorHardcodeCalibrations.h>
Definition at line 22 of file CastorHardcodeCalibrations.h.
CastorHardcodeCalibrations::CastorHardcodeCalibrations | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 71 of file CastorHardcodeCalibrations.cc.
References cond::ecalcond::all, edm::ParameterSet::getUntrackedParameter(), summarizeEdmComparisonLogfiles::objectName, produceChannelQuality(), produceElectronicsMap(), produceGains(), produceGainWidths(), producePedestals(), producePedestalWidths(), produceQIEData(), produceRecoParams(), and align_tpl::toGet.
{ edm::LogInfo("HCAL") << "CastorHardcodeCalibrations::CastorHardcodeCalibrations->..."; //parsing record parameters h2mode_=iConfig.getUntrackedParameter<bool>("H2Mode",false); std::vector <std::string> toGet = iConfig.getUntrackedParameter <std::vector <std::string> > ("toGet"); for(std::vector <std::string>::iterator objectName = toGet.begin(); objectName != toGet.end(); ++objectName ) { bool all = *objectName == "all"; if ((*objectName == "Pedestals") || all) { setWhatProduced (this, &CastorHardcodeCalibrations::producePedestals); findingRecord <CastorPedestalsRcd> (); } if ((*objectName == "PedestalWidths") || all) { setWhatProduced (this, &CastorHardcodeCalibrations::producePedestalWidths); findingRecord <CastorPedestalWidthsRcd> (); } if ((*objectName == "Gains") || all) { setWhatProduced (this, &CastorHardcodeCalibrations::produceGains); findingRecord <CastorGainsRcd> (); } if ((*objectName == "GainWidths") || all) { setWhatProduced (this, &CastorHardcodeCalibrations::produceGainWidths); findingRecord <CastorGainWidthsRcd> (); } if ((*objectName == "QIEData") || all) { setWhatProduced (this, &CastorHardcodeCalibrations::produceQIEData); findingRecord <CastorQIEDataRcd> (); } if ((*objectName == "ChannelQuality") || (*objectName == "channelQuality") || all) { setWhatProduced (this, &CastorHardcodeCalibrations::produceChannelQuality); findingRecord <CastorChannelQualityRcd> (); } if ((*objectName == "ElectronicsMap") || (*objectName == "electronicsMap") || all) { setWhatProduced (this, &CastorHardcodeCalibrations::produceElectronicsMap); findingRecord <CastorElectronicsMapRcd> (); } if ((*objectName == "RecoParams") || all) { setWhatProduced (this, &CastorHardcodeCalibrations::produceRecoParams); findingRecord <CastorRecoParamsRcd> (); } } }
CastorHardcodeCalibrations::~CastorHardcodeCalibrations | ( | ) |
Definition at line 117 of file CastorHardcodeCalibrations.cc.
{ }
void CastorHardcodeCalibrations::produce | ( | ) | [inline] |
Definition at line 29 of file CastorHardcodeCalibrations.h.
{};
std::auto_ptr< CastorChannelQuality > CastorHardcodeCalibrations::produceChannelQuality | ( | const CastorChannelQualityRcd & | rcd | ) | [protected] |
Definition at line 187 of file CastorHardcodeCalibrations.cc.
References pat::GOOD, DetId::rawId(), and query::result.
Referenced by CastorHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "CastorHardcodeCalibrations::produceChannelQuality-> ..."; std::auto_ptr<CastorChannelQuality> result (new CastorChannelQuality ()); std::vector <HcalGenericDetId> cells = allCells(h2mode_); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { CastorChannelStatus item(cell->rawId(),CastorChannelStatus::GOOD); result->addValues(item); } return result; }
std::auto_ptr< CastorElectronicsMap > CastorHardcodeCalibrations::produceElectronicsMap | ( | const CastorElectronicsMapRcd & | rcd | ) | [protected] |
Definition at line 198 of file CastorHardcodeCalibrations.cc.
References CastorDbHardcode::makeHardcodeMap(), and query::result.
Referenced by CastorHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "CastorHardcodeCalibrations::produceElectronicsMap-> ..."; std::auto_ptr<CastorElectronicsMap> result (new CastorElectronicsMap ()); CastorDbHardcode::makeHardcodeMap(*result); return result; }
std::auto_ptr< CastorGains > CastorHardcodeCalibrations::produceGains | ( | const CastorGainsRcd & | rcd | ) | [protected] |
Definition at line 154 of file CastorHardcodeCalibrations.cc.
References CastorDbHardcode::makeGain(), and query::result.
Referenced by CastorHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "CastorHardcodeCalibrations::produceGains-> ..."; std::auto_ptr<CastorGains> result (new CastorGains ()); std::vector <HcalGenericDetId> cells = allCells(h2mode_); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { CastorGain item = CastorDbHardcode::makeGain (*cell); result->addValues(item); } return result; }
std::auto_ptr< CastorGainWidths > CastorHardcodeCalibrations::produceGainWidths | ( | const CastorGainWidthsRcd & | rcd | ) | [protected] |
Definition at line 165 of file CastorHardcodeCalibrations.cc.
References CastorDbHardcode::makeGainWidth(), and query::result.
Referenced by CastorHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "CastorHardcodeCalibrations::produceGainWidths-> ..."; std::auto_ptr<CastorGainWidths> result (new CastorGainWidths ()); std::vector <HcalGenericDetId> cells = allCells(h2mode_); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { CastorGainWidth item = CastorDbHardcode::makeGainWidth (*cell); result->addValues(item); } return result; }
std::auto_ptr< CastorPedestals > CastorHardcodeCalibrations::producePedestals | ( | const CastorPedestalsRcd & | rcd | ) | [protected] |
Definition at line 132 of file CastorHardcodeCalibrations.cc.
References CastorDbHardcode::makePedestal(), and query::result.
Referenced by CastorHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "CastorHardcodeCalibrations::producePedestals-> ..."; std::auto_ptr<CastorPedestals> result (new CastorPedestals (false)); std::vector <HcalGenericDetId> cells = allCells(h2mode_); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { CastorPedestal item = CastorDbHardcode::makePedestal (*cell); result->addValues(item); } return result; }
std::auto_ptr< CastorPedestalWidths > CastorHardcodeCalibrations::producePedestalWidths | ( | const CastorPedestalWidthsRcd & | rcd | ) | [protected] |
Definition at line 143 of file CastorHardcodeCalibrations.cc.
References CastorDbHardcode::makePedestalWidth(), and query::result.
Referenced by CastorHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "CastorHardcodeCalibrations::producePedestalWidths-> ..."; std::auto_ptr<CastorPedestalWidths> result (new CastorPedestalWidths (false)); std::vector <HcalGenericDetId> cells = allCells(h2mode_); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { CastorPedestalWidth item = CastorDbHardcode::makePedestalWidth (*cell); result->addValues(item); } return result; }
std::auto_ptr< CastorQIEData > CastorHardcodeCalibrations::produceQIEData | ( | const CastorQIEDataRcd & | rcd | ) | [protected] |
Definition at line 176 of file CastorHardcodeCalibrations.cc.
References CastorDbHardcode::makeQIECoder(), and query::result.
Referenced by CastorHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "CastorHardcodeCalibrations::produceQIEData-> ..."; std::auto_ptr<CastorQIEData> result (new CastorQIEData ()); std::vector <HcalGenericDetId> cells = allCells(h2mode_); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { CastorQIECoder coder = CastorDbHardcode::makeQIECoder (*cell); result->addCoder(coder); } return result; }
std::auto_ptr< CastorRecoParams > CastorHardcodeCalibrations::produceRecoParams | ( | const CastorRecoParamsRcd & | rcd | ) | [protected] |
Definition at line 206 of file CastorHardcodeCalibrations.cc.
References CastorDbHardcode::makeRecoParam(), and query::result.
Referenced by CastorHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "CastorHardcodeCalibrations::produceRecoParams-> ..."; std::auto_ptr<CastorRecoParams> result (new CastorRecoParams ()); std::vector <HcalGenericDetId> cells = allCells(h2mode_); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { CastorRecoParam item = CastorDbHardcode::makeRecoParam (*cell); result->addValues(item); } return result; }
void CastorHardcodeCalibrations::setIntervalFor | ( | const edm::eventsetup::EventSetupRecordKey & | iKey, |
const edm::IOVSyncValue & | iTime, | ||
edm::ValidityInterval & | oInterval | ||
) | [protected, virtual] |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 126 of file CastorHardcodeCalibrations.cc.
References edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), edm::IOVSyncValue::eventID(), edm::eventsetup::EventSetupRecordKey::name(), record, and edm::IOVSyncValue::time().
{ std::string record = iKey.name (); edm::LogInfo("HCAL") << "CastorHardcodeCalibrations::setIntervalFor-> key: " << record << " time: " << iTime.eventID() << '/' << iTime.time ().value (); oInterval = edm::ValidityInterval (edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime()); //infinite }
bool CastorHardcodeCalibrations::h2mode_ [protected] |
Definition at line 44 of file CastorHardcodeCalibrations.h.