#include <HcalHardcodeCalibrations.h>
Definition at line 45 of file HcalHardcodeCalibrations.h.
HcalHardcodeCalibrations::HcalHardcodeCalibrations | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 111 of file HcalHardcodeCalibrations.cc.
References cond::ecalcond::all, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), he_recalibration, hf_recalibration, i, iLumi, mergeVDriftHistosByStation::name, summarizeEdmComparisonLogfiles::objectName, produceChannelQuality(), produceCholeskyMatrices(), produceCovarianceMatrices(), produceDcsMap(), produceDcsValues(), produceElectronicsMap(), produceFlagHFDigiTimeParams(), produceGains(), produceGainWidths(), produceL1TriggerObjects(), produceLongRecoParams(), produceLUTCorrs(), produceLutMetadata(), produceMCParams(), producePedestals(), producePedestalWidths(), producePFCorrs(), produceQIEData(), produceRecoParams(), produceRespCorrs(), produceTimeCorrs(), produceValidationCorrs(), produceZSThresholds(), HERecalibration::setDsegm(), edm::ESProducer::setWhatProduced(), switchGainWidthsForTrigPrims, and convertSQLitetoXML_cfg::toGet.
: he_recalibration(0), hf_recalibration(0) { edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::HcalHardcodeCalibrations->..."; if ( iConfig.exists("GainWidthsForTrigPrims") ) switchGainWidthsForTrigPrims = iConfig.getParameter<bool>("GainWidthsForTrigPrims"); else switchGainWidthsForTrigPrims = false; // HE recalibration preparation iLumi = 0.; if ( iConfig.exists("iLumi") ) iLumi=iConfig.getParameter<double>("iLumi"); if( iLumi > 0.0 ) { bool he_recalib = iConfig.getParameter<bool>("HERecalibration"); bool hf_recalib = iConfig.getParameter<bool>("HFRecalibration"); if(he_recalib) he_recalibration = new HERecalibration(iLumi); if(hf_recalib) hf_recalibration = new HFRecalibration(); // std::cout << " HcalHardcodeCalibrations: iLumi = " << iLumi << std::endl; } bool relabel_=false; edm::ParameterSet ps0; if ( iConfig.exists("HcalReLabel") ) { ps0 = iConfig.getParameter<edm::ParameterSet>("HcalReLabel"); relabel_= ps0.getUntrackedParameter<bool>("RelabelHits",false); } if (relabel_) { std::vector<std::vector<int>> m_segmentation; m_segmentation.resize(29); edm::ParameterSet ps1 = ps0.getUntrackedParameter<edm::ParameterSet>("RelabelRules"); for (int i = 0; i < 29; i++) { char name[10]; snprintf(name,10,"Eta%d",i+1); if (i > 0) { m_segmentation[i]= ps1.getUntrackedParameter<std::vector<int>>(name,m_segmentation[i-1]); } else { m_segmentation[i]=ps1.getUntrackedParameter<std::vector<int> >(name); } /* std::cout << name; for (unsigned int k=0; k<m_segmentation[i].size(); k++) { std::cout << " [" << k << "] " << m_segmentation[i][k]; } std::cout << std::endl; */ } if(he_recalibration !=0) he_recalibration->setDsegm(m_segmentation); } 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, &HcalHardcodeCalibrations::producePedestals); findingRecord <HcalPedestalsRcd> (); } if ((*objectName == "PedestalWidths") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::producePedestalWidths); findingRecord <HcalPedestalWidthsRcd> (); } if ((*objectName == "Gains") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::produceGains); findingRecord <HcalGainsRcd> (); } if ((*objectName == "GainWidths") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::produceGainWidths); findingRecord <HcalGainWidthsRcd> (); } if ((*objectName == "QIEData") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::produceQIEData); findingRecord <HcalQIEDataRcd> (); } if ((*objectName == "ChannelQuality") || (*objectName == "channelQuality") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::produceChannelQuality); findingRecord <HcalChannelQualityRcd> (); } if ((*objectName == "ElectronicsMap") || (*objectName == "electronicsMap") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::produceElectronicsMap); findingRecord <HcalElectronicsMapRcd> (); } if ((*objectName == "ZSThresholds") || (*objectName == "zsThresholds") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::produceZSThresholds); findingRecord <HcalZSThresholdsRcd> (); } if ((*objectName == "RespCorrs") || (*objectName == "ResponseCorrection") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::produceRespCorrs); findingRecord <HcalRespCorrsRcd> (); } if ((*objectName == "LUTCorrs") || (*objectName == "LUTCorrection") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::produceLUTCorrs); findingRecord <HcalLUTCorrsRcd> (); } if ((*objectName == "PFCorrs") || (*objectName == "PFCorrection") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::producePFCorrs); findingRecord <HcalPFCorrsRcd> (); } if ((*objectName == "TimeCorrs") || (*objectName == "TimeCorrection") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::produceTimeCorrs); findingRecord <HcalTimeCorrsRcd> (); } if ((*objectName == "L1TriggerObjects") || (*objectName == "L1Trigger") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::produceL1TriggerObjects); findingRecord <HcalL1TriggerObjectsRcd> (); } if ((*objectName == "ValidationCorrs") || (*objectName == "ValidationCorrection") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::produceValidationCorrs); findingRecord <HcalValidationCorrsRcd> (); } if ((*objectName == "LutMetadata") || (*objectName == "lutMetadata") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::produceLutMetadata); findingRecord <HcalLutMetadataRcd> (); } if ((*objectName == "DcsValues") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::produceDcsValues); findingRecord <HcalDcsRcd> (); } if ((*objectName == "DcsMap") || (*objectName == "dcsMap") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::produceDcsMap); findingRecord <HcalDcsMapRcd> (); } if ((*objectName == "RecoParams") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::produceRecoParams); findingRecord <HcalRecoParamsRcd> (); } if ((*objectName == "LongRecoParams") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::produceLongRecoParams); findingRecord <HcalLongRecoParamsRcd> (); } if ((*objectName == "MCParams") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::produceMCParams); findingRecord <HcalMCParamsRcd> (); } if ((*objectName == "FlagHFDigiTimeParams") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::produceFlagHFDigiTimeParams); findingRecord <HcalFlagHFDigiTimeParamsRcd> (); } if ((*objectName == "CholeskyMatrices") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::produceCholeskyMatrices); findingRecord <HcalCholeskyMatricesRcd> (); } if ((*objectName == "CovarianceMatrices") || all) { setWhatProduced (this, &HcalHardcodeCalibrations::produceCovarianceMatrices); findingRecord <HcalCovarianceMatricesRcd> (); } } }
HcalHardcodeCalibrations::~HcalHardcodeCalibrations | ( | ) |
Definition at line 268 of file HcalHardcodeCalibrations.cc.
References he_recalibration, and hf_recalibration.
{ if (he_recalibration != 0 ) delete he_recalibration; if (hf_recalibration != 0 ) delete hf_recalibration; }
void HcalHardcodeCalibrations::produce | ( | ) | [inline] |
Definition at line 52 of file HcalHardcodeCalibrations.h.
{};
std::auto_ptr< HcalChannelQuality > HcalHardcodeCalibrations::produceChannelQuality | ( | const HcalChannelQualityRcd & | rcd | ) | [protected] |
Definition at line 372 of file HcalHardcodeCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceChannelQuality-> ..."; edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalChannelQuality> result (new HcalChannelQuality (topo)); std::vector <HcalGenericDetId> cells = allCells(*topo); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { HcalChannelStatus item(cell->rawId(),0); result->addValues(item); } return result; }
std::auto_ptr< HcalCholeskyMatrices > HcalHardcodeCalibrations::produceCholeskyMatrices | ( | const HcalCholeskyMatricesRcd & | rcd | ) | [protected] |
Definition at line 686 of file HcalHardcodeCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, and query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::ESHandle<HcalTopology> htopo; rec.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalCholeskyMatrices> result (new HcalCholeskyMatrices (topo)); std::vector <HcalGenericDetId> cells = allCells(*topo); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { int sub = cell->genericSubdet(); if (sub == HcalGenericDetId::HcalGenBarrel || sub == HcalGenericDetId::HcalGenEndcap || sub == HcalGenericDetId::HcalGenOuter || sub == HcalGenericDetId::HcalGenForward ) { HcalCholeskyMatrix item(cell->rawId()); result->addValues(item); } } return result; }
std::auto_ptr< HcalCovarianceMatrices > HcalHardcodeCalibrations::produceCovarianceMatrices | ( | const HcalCovarianceMatricesRcd & | rcd | ) | [protected] |
Definition at line 709 of file HcalHardcodeCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::ESHandle<HcalTopology> htopo; rec.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalCovarianceMatrices> result (new HcalCovarianceMatrices (topo)); std::vector <HcalGenericDetId> cells = allCells(*topo); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { HcalCovarianceMatrix item(cell->rawId()); result->addValues(item); } return result; }
std::auto_ptr< HcalDcsMap > HcalHardcodeCalibrations::produceDcsMap | ( | const HcalDcsMapRcd & | rcd | ) | [protected] |
Definition at line 575 of file HcalHardcodeCalibrations.cc.
References HcalDbHardcode::makeHardcodeDcsMap(), and query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceDcsMap-> ..."; std::auto_ptr<HcalDcsMap> result (new HcalDcsMap ()); HcalDbHardcode::makeHardcodeDcsMap(*result); return result; }
std::auto_ptr< HcalDcsValues > HcalHardcodeCalibrations::produceDcsValues | ( | const HcalDcsRcd & | rcd | ) | [protected] |
Definition at line 569 of file HcalHardcodeCalibrations.cc.
References query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceDcsValues-> ..."; std::auto_ptr<HcalDcsValues> result(new HcalDcsValues); return result; }
std::auto_ptr< HcalElectronicsMap > HcalHardcodeCalibrations::produceElectronicsMap | ( | const HcalElectronicsMapRcd & | rcd | ) | [protected] |
Definition at line 514 of file HcalHardcodeCalibrations.cc.
References CastorDbHardcode::makeHardcodeMap(), and query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceElectronicsMap-> ..."; std::auto_ptr<HcalElectronicsMap> result (new HcalElectronicsMap ()); HcalDbHardcode::makeHardcodeMap(*result); return result; }
std::auto_ptr< HcalFlagHFDigiTimeParams > HcalHardcodeCalibrations::produceFlagHFDigiTimeParams | ( | const HcalFlagHFDigiTimeParamsRcd & | rcd | ) | [protected] |
Definition at line 658 of file HcalHardcodeCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceFlagHFDigiTimeParams-> ..."; edm::ESHandle<HcalTopology> htopo; rec.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalFlagHFDigiTimeParams> result (new HcalFlagHFDigiTimeParams (topo)); std::vector <HcalGenericDetId> cells = allCells(*topo); std::vector<double> coef; coef.push_back(0.93); coef.push_back(-0.38275); coef.push_back(-0.012667); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { HcalFlagHFDigiTimeParam item(cell->rawId(), 1, //firstsample 3, // samplestoadd 2, //expectedpeak 40., // min energy threshold coef // coefficients ); result->addValues(item); } return result; }
std::auto_ptr< HcalGains > HcalHardcodeCalibrations::produceGains | ( | const HcalGainsRcd & | rcd | ) | [protected] |
Definition at line 314 of file HcalHardcodeCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), CastorDbHardcode::makeGain(), and query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceGains-> ..."; edm::ESHandle<HcalTopology> htopo; rec.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalGains> result (new HcalGains (topo)); std::vector <HcalGenericDetId> cells = allCells(*topo); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { HcalGain item = HcalDbHardcode::makeGain (*cell); result->addValues(item); } return result; }
std::auto_ptr< HcalGainWidths > HcalHardcodeCalibrations::produceGainWidths | ( | const HcalGainWidthsRcd & | rcd | ) | [protected] |
Definition at line 329 of file HcalHardcodeCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), CastorDbHardcode::makeGainWidth(), query::result, and switchGainWidthsForTrigPrims.
Referenced by HcalHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceGainWidths-> ..."; edm::ESHandle<HcalTopology> htopo; rec.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalGainWidths> result (new HcalGainWidths (topo)); std::vector <HcalGenericDetId> cells = allCells(*topo); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { // for Upgrade - include TrigPrims, for regular case - only HcalDetId if(switchGainWidthsForTrigPrims) { HcalGainWidth item = HcalDbHardcode::makeGainWidth (*cell); result->addValues(item); } else if (!cell->isHcalTrigTowerDetId()) { HcalGainWidth item = HcalDbHardcode::makeGainWidth (*cell); result->addValues(item); } } return result; }
std::auto_ptr< HcalL1TriggerObjects > HcalHardcodeCalibrations::produceL1TriggerObjects | ( | const HcalL1TriggerObjectsRcd & | rcd | ) | [protected] |
Definition at line 493 of file HcalHardcodeCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceL1TriggerObjects-> ..."; edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalL1TriggerObjects> result (new HcalL1TriggerObjects (topo)); std::vector <HcalGenericDetId> cells = allCells(*topo); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { HcalL1TriggerObject item(cell->rawId(),0., 1., 0); result->addValues(item); } // add tag and algo values result->setTagString("hardcoded"); result->setAlgoString("hardcoded"); return result; }
std::auto_ptr< HcalLongRecoParams > HcalHardcodeCalibrations::produceLongRecoParams | ( | const HcalLongRecoParamsRcd & | rcd | ) | [protected] |
Definition at line 611 of file HcalHardcodeCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceLongRecoParams-> ..."; edm::ESHandle<HcalTopology> htopo; rec.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalLongRecoParams> result (new HcalLongRecoParams (topo)); std::vector <HcalGenericDetId> cells = allCells(*topo); std::vector <unsigned int> mSignal; mSignal.push_back(4); mSignal.push_back(5); mSignal.push_back(6); std::vector <unsigned int> mNoise; mNoise.push_back(1); mNoise.push_back(2); mNoise.push_back(3); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { if (cell->isHcalZDCDetId()) { HcalLongRecoParam item(cell->rawId(),mSignal,mNoise); result->addValues(item); } } return result; }
std::auto_ptr< HcalLUTCorrs > HcalHardcodeCalibrations::produceLUTCorrs | ( | const HcalLUTCorrsRcd & | rcd | ) | [protected] |
Definition at line 432 of file HcalHardcodeCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceLUTCorrs-> ..."; edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalLUTCorrs> result (new HcalLUTCorrs (topo)); std::vector <HcalGenericDetId> cells = allCells(*topo); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { HcalLUTCorr item(cell->rawId(),1.0); result->addValues(item); } return result; }
std::auto_ptr< HcalLutMetadata > HcalHardcodeCalibrations::produceLutMetadata | ( | const HcalLutMetadataRcd & | rcd | ) | [protected] |
Definition at line 537 of file HcalHardcodeCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceLutMetadata-> ..."; edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalLutMetadata> result (new HcalLutMetadata (topo)); result->setRctLsb( 0.5 ); result->setNominalGain(0.003333); // for HBHE SiPMs std::vector <HcalGenericDetId> cells = allCells(*topo); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { /* if (cell->isHcalTrigTowerDetId()) { HcalTrigTowerDetId ht = HcalTrigTowerDetId(*cell); int ieta = ht.ieta(); int iphi = ht.iphi(); std::cout << " HcalTrigTower cell (ieta,iphi) = " << ieta << ", " << iphi << std::endl; } */ HcalLutMetadatum item(cell->rawId(),1.0,1,1); result->addValues(item); } return result; }
std::auto_ptr< HcalMCParams > HcalHardcodeCalibrations::produceMCParams | ( | const HcalMCParamsRcd & | rcd | ) | [protected] |
Definition at line 637 of file HcalHardcodeCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::makeMCParam(), and query::result.
Referenced by HcalHardcodeCalibrations().
{ // std::cout << std::endl << " .... HcalHardcodeCalibrations::produceMCParams ->"<< std::endl; edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceMCParams-> ..."; edm::ESHandle<HcalTopology> htopo; rec.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalMCParams> result (new HcalMCParams (topo)); std::vector <HcalGenericDetId> cells = allCells(*topo); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { // HcalMCParam item(cell->rawId(),0); HcalMCParam item = HcalDbHardcode::makeMCParam (*cell); result->addValues(item); } return result; }
std::auto_ptr< HcalPedestals > HcalHardcodeCalibrations::producePedestals | ( | const HcalPedestalsRcd & | rcd | ) | [protected] |
Definition at line 284 of file HcalHardcodeCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), iLumi, CastorDbHardcode::makePedestal(), and query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::producePedestals-> ..."; edm::ESHandle<HcalTopology> htopo; rec.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalPedestals> result (new HcalPedestals (topo,false)); std::vector <HcalGenericDetId> cells = allCells(*topo); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { HcalPedestal item = HcalDbHardcode::makePedestal (*cell, false, iLumi); result->addValues(item); } return result; }
std::auto_ptr< HcalPedestalWidths > HcalHardcodeCalibrations::producePedestalWidths | ( | const HcalPedestalWidthsRcd & | rcd | ) | [protected] |
Definition at line 299 of file HcalHardcodeCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), iLumi, CastorDbHardcode::makePedestalWidth(), and query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::producePedestalWidths-> ..."; edm::ESHandle<HcalTopology> htopo; rec.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalPedestalWidths> result (new HcalPedestalWidths (topo,false)); std::vector <HcalGenericDetId> cells = allCells(*htopo); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { HcalPedestalWidth item = HcalDbHardcode::makePedestalWidth (*cell, iLumi); result->addValues(item); } return result; }
std::auto_ptr< HcalPFCorrs > HcalHardcodeCalibrations::producePFCorrs | ( | const HcalPFCorrsRcd & | rcd | ) | [protected] |
Definition at line 447 of file HcalHardcodeCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::producePFCorrs-> ..."; edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalPFCorrs> result (new HcalPFCorrs (topo)); std::vector <HcalGenericDetId> cells = allCells(*topo); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { HcalPFCorr item(cell->rawId(),1.0); result->addValues(item); } return result; }
std::auto_ptr< HcalQIEData > HcalHardcodeCalibrations::produceQIEData | ( | const HcalQIEDataRcd & | rcd | ) | [protected] |
Definition at line 351 of file HcalHardcodeCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), CastorDbHardcode::makeQIECoder(), and query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceQIEData-> ..."; /* std::cout << std::endl << ">>> HcalHardcodeCalibrations::produceQIEData" << std::endl; */ edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalQIEData> result (new HcalQIEData (topo)); std::vector <HcalGenericDetId> cells = allCells(*topo); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { HcalQIECoder coder = HcalDbHardcode::makeQIECoder (*cell); result->addCoder (coder); } return result; }
std::auto_ptr< HcalRecoParams > HcalHardcodeCalibrations::produceRecoParams | ( | const HcalRecoParamsRcd & | rcd | ) | [protected] |
Definition at line 583 of file HcalHardcodeCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), CastorDbHardcode::makeRecoParam(), and query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceRecoParams-> ..."; edm::ESHandle<HcalTopology> htopo; rec.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalRecoParams> result (new HcalRecoParams (topo)); std::vector <HcalGenericDetId> cells = allCells(*topo); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { HcalRecoParam item = HcalDbHardcode::makeRecoParam (*cell); result->addValues(item); } return result; }
std::auto_ptr< HcalRespCorrs > HcalHardcodeCalibrations::produceRespCorrs | ( | const HcalRespCorrsRcd & | rcd | ) | [protected] |
Definition at line 388 of file HcalHardcodeCalibrations.cc.
References corr, HcalDetId::depth(), HFRecalibration::getCorr(), HERecalibration::getCorr(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, he_recalibration, hf_recalibration, HcalDetId::ieta(), iLumi, and query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceRespCorrs-> ..."; edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalRespCorrs> result (new HcalRespCorrs (topo)); std::vector <HcalGenericDetId> cells = allCells(*topo); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { double corr = 1.0; if ((he_recalibration != 0 ) && ((*cell).genericSubdet() == HcalGenericDetId::HcalGenEndcap)) { int depth_ = HcalDetId(*cell).depth(); int ieta_ = HcalDetId(*cell).ieta(); corr = he_recalibration->getCorr(ieta_, depth_); /* std::cout << "HE ieta, depth = " << ieta_ << ", " << depth_ << " corr = " << corr << std::endl; */ } else if ((hf_recalibration != 0 ) && ((*cell).genericSubdet() == HcalGenericDetId::HcalGenForward)) { int depth_ = HcalDetId(*cell).depth(); int ieta_ = HcalDetId(*cell).ieta(); corr = hf_recalibration->getCorr(ieta_, depth_, iLumi); /* std::cout << "HF ieta, depth = " << ieta_ << ", " << depth_ << " corr = " << corr << std::endl; */ } HcalRespCorr item(cell->rawId(),corr); result->addValues(item); } return result; }
std::auto_ptr< HcalTimeCorrs > HcalHardcodeCalibrations::produceTimeCorrs | ( | const HcalTimeCorrsRcd & | rcd | ) | [protected] |
Definition at line 462 of file HcalHardcodeCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceTimeCorrs-> ..."; edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalTimeCorrs> result (new HcalTimeCorrs (topo)); std::vector <HcalGenericDetId> cells = allCells(*topo); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { HcalTimeCorr item(cell->rawId(),0.0); result->addValues(item); } return result; }
std::auto_ptr< HcalTimingParams > HcalHardcodeCalibrations::produceTimingParams | ( | const HcalTimingParamsRcd & | rcd | ) | [protected] |
Definition at line 597 of file HcalHardcodeCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::makeTimingParam(), and query::result.
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceTimingParams-> ..."; edm::ESHandle<HcalTopology> htopo; rec.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalTimingParams> result (new HcalTimingParams (topo)); std::vector <HcalGenericDetId> cells = allCells(*topo); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { HcalTimingParam item = HcalDbHardcode::makeTimingParam (*cell); result->addValues(item); } return result; }
std::auto_ptr< HcalValidationCorrs > HcalHardcodeCalibrations::produceValidationCorrs | ( | const HcalValidationCorrsRcd & | rcd | ) | [protected] |
Definition at line 522 of file HcalHardcodeCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceValidationCorrs-> ..."; edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalValidationCorrs> result (new HcalValidationCorrs (topo)); std::vector <HcalGenericDetId> cells = allCells(*topo); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { HcalValidationCorr item(cell->rawId(),1.0); result->addValues(item); } return result; }
std::auto_ptr< HcalZSThresholds > HcalHardcodeCalibrations::produceZSThresholds | ( | const HcalZSThresholdsRcd & | rcd | ) | [protected] |
Definition at line 477 of file HcalHardcodeCalibrations.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.
Referenced by HcalHardcodeCalibrations().
{ edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceZSThresholds-> ..."; edm::ESHandle<HcalTopology> htopo; rcd.getRecord<IdealGeometryRecord>().get(htopo); const HcalTopology* topo=&(*htopo); std::auto_ptr<HcalZSThresholds> result (new HcalZSThresholds (topo)); std::vector <HcalGenericDetId> cells = allCells(*topo); for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) { HcalZSThreshold item(cell->rawId(),0); result->addValues(item); } return result; }
void HcalHardcodeCalibrations::setIntervalFor | ( | const edm::eventsetup::EventSetupRecordKey & | iKey, |
const edm::IOVSyncValue & | iTime, | ||
edm::ValidityInterval & | oInterval | ||
) | [protected, virtual] |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 278 of file HcalHardcodeCalibrations.cc.
References edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), edm::IOVSyncValue::eventID(), edm::eventsetup::EventSetupRecordKey::name(), record, AlCaHLTBitMon_QueryRunRegistry::string, and edm::IOVSyncValue::time().
{ std::string record = iKey.name (); edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::setIntervalFor-> key: " << record << " time: " << iTime.eventID() << '/' << iTime.time ().value (); oInterval = edm::ValidityInterval (edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime()); //infinite }
Definition at line 91 of file HcalHardcodeCalibrations.h.
Referenced by HcalHardcodeCalibrations(), produceRespCorrs(), and ~HcalHardcodeCalibrations().
Definition at line 92 of file HcalHardcodeCalibrations.h.
Referenced by HcalHardcodeCalibrations(), produceRespCorrs(), and ~HcalHardcodeCalibrations().
double HcalHardcodeCalibrations::iLumi [private] |
Definition at line 90 of file HcalHardcodeCalibrations.h.
Referenced by HcalHardcodeCalibrations(), producePedestals(), producePedestalWidths(), and produceRespCorrs().
bool HcalHardcodeCalibrations::switchGainWidthsForTrigPrims [private] |
Definition at line 93 of file HcalHardcodeCalibrations.h.
Referenced by HcalHardcodeCalibrations(), and produceGainWidths().