Hardcode implementation of some conditions data. More...
#include <HcalDbHardcode.h>
Private Attributes | |
bool | killHE_ |
bool | setHB_ |
bool | setHBUpgrade_ |
bool | setHE_ |
bool | setHEUpgrade_ |
bool | setHF_ |
bool | setHFUpgrade_ |
bool | setHO_ |
bool | testHEPlan1_ |
bool | testHFQIE10_ |
HcalHardcodeParameters | theDefaultParameters_ |
HcalHardcodeParameters | theHBParameters_ |
HcalHardcodeParameters | theHBUpgradeParameters_ |
HcalHardcodeParameters | theHEParameters_ |
HcalHardcodeParameters | theHEUpgradeParameters_ |
HcalHardcodeParameters | theHFParameters_ |
HcalHardcodeParameters | theHFUpgradeParameters_ |
HcalHardcodeParameters | theHOParameters_ |
std::map< std::pair< int, int >, int > | theLayersInDepths_ |
std::vector< edm::ParameterSet > | theSiPMCharacteristics_ |
bool | useHBUpgrade_ |
bool | useHEUpgrade_ |
bool | useHFUpgrade_ |
bool | useHOUpgrade_ |
Hardcode implementation of some conditions data.
Definition at line 45 of file HcalDbHardcode.h.
HcalDbHardcode::HcalDbHardcode | ( | ) |
Definition at line 18 of file HcalDbHardcode.cc.
|
inlinevirtual |
Definition at line 51 of file HcalDbHardcode.h.
const int HcalDbHardcode::getGainIndex | ( | HcalGenericDetId | fId | ) | const |
Definition at line 90 of file HcalDbHardcode.cc.
References HcalDetId::depth(), HcalGenericDetId::genericSubdet(), HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, and HcalDetId::ieta().
Referenced by makeGain(), and makeGainWidth().
int HcalDbHardcode::getLayersInDepth | ( | int | ieta, |
int | depth, | ||
const HcalTopology * | topo | ||
) |
Definition at line 616 of file HcalDbHardcode.cc.
References LEDCalibrationChannels::depth, HLT_2022v15_cff::distance, HcalTopology::getDepthSegmentation(), LEDCalibrationChannels::ieta, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, MuonTCMETValueMapProducer_cff::nLayers, theLayersInDepths_, and pfDeepBoostedJetPreprocessParams_cfi::upper_bound.
Referenced by makeHardcodeSiPMParameter(), and HcalHardcodeCalibrations::produceRespCorrs().
const HcalHardcodeParameters & HcalDbHardcode::getParameters | ( | HcalGenericDetId | fId | ) | const |
Definition at line 48 of file HcalDbHardcode.cc.
References HcalDetId::depth(), HcalGenericDetId::genericSubdet(), HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, HcalDetId::ieta(), HcalDetId::iphi(), HcalGenericDetId::isHcalDetId(), isHEPlan1(), setHB_, setHBUpgrade_, setHE_, setHEUpgrade_, setHF_, setHFUpgrade_, setHO_, testHEPlan1_, testHFQIE10_, theDefaultParameters_, theHBParameters_, theHBUpgradeParameters_, theHEParameters_, theHEUpgradeParameters_, theHFParameters_, theHFUpgradeParameters_, theHOParameters_, useHBUpgrade_, useHEUpgrade_, useHFUpgrade_, and HcalDetId::zside().
Referenced by makeGain(), makeGainWidth(), makeHardcodeSiPMParameter(), makeMCParam(), makePedestal(), makePedestalWidth(), makeQIECoder(), makeQIEType(), makeRecoParam(), and makeZSThreshold().
bool HcalDbHardcode::isHEPlan1 | ( | HcalGenericDetId | fId | ) | const |
Definition at line 633 of file HcalDbHardcode.cc.
References HcalDetId::iphi(), HcalGenericDetId::isHcalDetId(), and HcalDetId::zside().
Referenced by getParameters(), and makeHardcodeSiPMParameter().
|
inline |
Definition at line 98 of file HcalDbHardcode.h.
References killHE_.
Referenced by HcalHardcodeCalibrations::produceChannelQuality(), HcalHardcodeCalibrations::produceElectronicsMap(), HcalHardcodeCalibrations::produceFlagHFDigiTimeParams(), HcalHardcodeCalibrations::produceFrontEndMap(), HcalHardcodeCalibrations::produceGains(), HcalHardcodeCalibrations::produceGainWidths(), HcalHardcodeCalibrations::produceL1TriggerObjects(), HcalHardcodeCalibrations::produceLongRecoParams(), HcalHardcodeCalibrations::produceLUTCorrs(), HcalHardcodeCalibrations::produceLutMetadata(), HcalHardcodeCalibrations::produceMCParams(), HcalHardcodeCalibrations::producePedestals_(), HcalHardcodeCalibrations::producePedestalWidths_(), HcalHardcodeCalibrations::producePFCorrs(), HcalHardcodeCalibrations::produceQIEData(), HcalHardcodeCalibrations::produceQIETypes(), HcalHardcodeCalibrations::produceRecoParams(), HcalHardcodeCalibrations::produceRespCorrs(), HcalHardcodeCalibrations::produceSiPMParameters(), HcalHardcodeCalibrations::produceTimeCorrs(), HcalHardcodeCalibrations::produceTimingParams(), HcalHardcodeCalibrations::produceTPChannelParameters(), HcalHardcodeCalibrations::produceValidationCorrs(), HcalHardcodeCalibrations::produceZDCLowGainFractions(), and HcalHardcodeCalibrations::produceZSThresholds().
HcalCalibrationQIECoder HcalDbHardcode::makeCalibrationQIECoder | ( | HcalGenericDetId | fId | ) | const |
Definition at line 205 of file HcalDbHardcode.cc.
References mps_fire::i, DetId::rawId(), and mps_fire::result.
HcalGain HcalDbHardcode::makeGain | ( | HcalGenericDetId | fId, |
bool | fSmear = false |
||
) | const |
Definition at line 158 of file HcalDbHardcode.cc.
References f, dqmMemoryStats::float, HcalHardcodeParameters::gain(), getGainIndex(), getParameters(), mps_fire::i, makeGainWidth(), DetId::rawId(), mps_fire::result, and ApeEstimator_cff::width.
Referenced by HcalHardcodeCalibrations::produceGains().
HcalGainWidth HcalDbHardcode::makeGainWidth | ( | HcalGenericDetId | fId | ) | const |
Definition at line 173 of file HcalDbHardcode.cc.
References HcalHardcodeParameters::gainWidth(), getGainIndex(), getParameters(), DetId::rawId(), mps_fire::result, and relativeConstraints::value.
Referenced by makeGain(), and HcalHardcodeCalibrations::produceGainWidths().
std::unique_ptr< HcalDcsMap > HcalDbHardcode::makeHardcodeDcsMap | ( | ) | const |
Definition at line 492 of file HcalDbHardcode.cc.
References HcalDcsDetId::DYN8, HcalBarrel, HcalDcsBarrel, HcalDcsForward, HcalDcsOuter, HcalForward, HcalOuter, HcalDcsDetId::HV, and HcalDcsMapAddons::Helper::mapGeomId2DcsId().
Referenced by HcalHardcodeCalibrations::produceDcsMap().
void HcalDbHardcode::makeHardcodeFrontEndMap | ( | HcalFrontEndMap & | emap, |
const std::vector< HcalGenericDetId > & | cells | ||
) | const |
Referenced by HcalHardcodeCalibrations::produceFrontEndMap().
std::unique_ptr< HcalFrontEndMap > HcalDbHardcode::makeHardcodeFrontEndMap | ( | const std::vector< HcalGenericDetId > & | cells | ) | const |
Definition at line 539 of file HcalDbHardcode.cc.
References hgcalTBTopologyTester_cfi::cells, hgcalTestNeighbor_cfi::detector, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, mps_fire::i, LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, HcalFrontEndMapAddons::Helper::loadObject(), relativeConstraints::ring, hgcalTBTopologyTester_cfi::sector, AlCaHLTBitMon_QueryRunRegistry::string, and HcalDetId::subdet().
std::unique_ptr< HcalElectronicsMap > HcalDbHardcode::makeHardcodeMap | ( | const std::vector< HcalGenericDetId > & | cells | ) | const |
Definition at line 509 of file HcalDbHardcode.cc.
References cms::cuda::assert(), hgcalTBTopologyTester_cfi::cells, counter, HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, HcalGenericDetId::HcalGenTriggerTower, HcalGenericDetId::HcalGenZDC, HcalElectronicsMapAddons::Helper::mapEId2chId(), and HcalElectronicsMapAddons::Helper::mapEId2tId().
Referenced by HcalHardcodeCalibrations::produceElectronicsMap().
std::unique_ptr< HcalSiPMCharacteristics > HcalDbHardcode::makeHardcodeSiPMCharacteristics | ( | ) | const |
Definition at line 695 of file HcalDbHardcode.cc.
References HcalSiPMCharacteristicsAddons::Helper::loadObject(), and theSiPMCharacteristics_.
Referenced by makePedestal(), makePedestalWidth(), and HcalHardcodeCalibrations::produceSiPMCharacteristics().
HcalSiPMParameter HcalDbHardcode::makeHardcodeSiPMParameter | ( | HcalGenericDetId | fId, |
const HcalTopology * | topo, | ||
double | intlumi | ||
) |
Definition at line 643 of file HcalDbHardcode.cc.
References HcalHardcodeParameters::darkCurrent(), HcalDetId::depth(), dqmMemoryStats::float, HcalGenericDetId::genericSubdet(), getLayersInDepth(), getParameters(), HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenOuter, HcalHBHamamatsu1, HcalHBHamamatsu2, HcalHEHamamatsu1, HcalHEHamamatsu2, HcalHOHamamatsu, HcalHPD, HcalNoSiPM, HcalDetId::ietaAbs(), submitPVValidationJobs::intlumi, isHEPlan1(), HcalHardcodeParameters::noiseCorrelation(), HcalHardcodeParameters::photoelectronsToAnalog(), DetId::rawId(), testHEPlan1_, useHBUpgrade_, useHEUpgrade_, and useHOUpgrade_.
Referenced by makePedestal(), makePedestalWidth(), and HcalHardcodeCalibrations::produceSiPMParameters().
HcalTPChannelParameter HcalDbHardcode::makeHardcodeTPChannelParameter | ( | HcalGenericDetId | fId | ) | const |
Definition at line 715 of file HcalDbHardcode.cc.
References DetId::rawId().
Referenced by HcalHardcodeCalibrations::produceTPChannelParameters().
void HcalDbHardcode::makeHardcodeTPParameters | ( | HcalTPParameters & | tppar | ) | const |
Definition at line 723 of file HcalDbHardcode.cc.
References HcalTPParameters::loadObject().
Referenced by HcalHardcodeCalibrations::produceTPParameters().
HcalMCParam HcalDbHardcode::makeMCParam | ( | HcalGenericDetId | fId | ) | const |
Definition at line 217 of file HcalDbHardcode.cc.
References ecalEBTriggerPrimitiveDigis_cfi::binOfMaximum, f, HcalGenericDetId::genericSubdet(), getParameters(), HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, HcalGenericDetId::HcalGenZDC, HcalDetId::ieta(), HcalDetId::iphi(), dqmdumpme::k, HcalHardcodeParameters::mcShape(), DetId::rawId(), mps_fire::result, ecalSimParameterMap_cff::syncPhase, and hcalSimParameters_cfi::timeSmearing.
Referenced by HcalHardcodeCalibrations::produceMCParams().
HcalPedestal HcalDbHardcode::makePedestal | ( | HcalGenericDetId | fId, |
bool | fSmear, | ||
bool | eff, | ||
const HcalTopology * | topo, | ||
double | intlumi | ||
) |
Definition at line 108 of file HcalDbHardcode.cc.
References f, dqmMemoryStats::float, getParameters(), mps_fire::i, submitPVValidationJobs::intlumi, makeHardcodeSiPMCharacteristics(), makeHardcodeSiPMParameter(), makePedestalWidth(), HcalHardcodeParameters::pedestal(), DetId::rawId(), mps_fire::result, and ApeEstimator_cff::width.
Referenced by HcalHardcodeCalibrations::producePedestals_().
HcalPedestalWidth HcalDbHardcode::makePedestalWidth | ( | HcalGenericDetId | fId, |
bool | eff, | ||
const HcalTopology * | topo, | ||
double | intlumi | ||
) |
Definition at line 131 of file HcalDbHardcode.cc.
References getParameters(), mps_fire::i, submitPVValidationJobs::intlumi, dqmiolumiharvest::j, makeHardcodeSiPMCharacteristics(), makeHardcodeSiPMParameter(), HcalHardcodeParameters::pedestalWidth(), funct::pow(), DetId::rawId(), mps_fire::result, and relativeConstraints::value.
Referenced by makePedestal(), and HcalHardcodeCalibrations::producePedestalWidths_().
HcalQIECoder HcalDbHardcode::makeQIECoder | ( | HcalGenericDetId | fId | ) | const |
Definition at line 185 of file HcalDbHardcode.cc.
References getParameters(), FastTimerService_cff::range, DetId::rawId(), and mps_fire::result.
Referenced by HcalHardcodeCalibrations::produceQIEData().
HcalQIEShape HcalDbHardcode::makeQIEShape | ( | ) | const |
Definition at line 215 of file HcalDbHardcode.cc.
HcalQIEType HcalDbHardcode::makeQIEType | ( | HcalGenericDetId | fId | ) | const |
Definition at line 199 of file HcalDbHardcode.cc.
References getParameters(), HcalHardcodeParameters::qieType(), DetId::rawId(), and mps_fire::result.
Referenced by HcalHardcodeCalibrations::produceQIETypes().
HcalRecoParam HcalDbHardcode::makeRecoParam | ( | HcalGenericDetId | fId | ) | const |
Definition at line 308 of file HcalDbHardcode.cc.
References castor_dqm_sourceclient-live_cfg::correctForTimeslew, HLT_2022v15_cff::correctTiming, HLT_2022v15_cff::firstAuxTS, castor_dqm_sourceclient-live_cfg::firstSample, HcalGenericDetId::genericSubdet(), getParameters(), HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, dqmiolumiharvest::j, dqmdumpme::k, DetId::rawId(), HcalHardcodeParameters::recoShape(), mps_fire::result, castor_dqm_sourceclient-live_cfg::samplesToAdd, and HLT_2022v15_cff::useLeakCorrection.
Referenced by HcalHardcodeCalibrations::produceRecoParams().
HcalTimingParam HcalDbHardcode::makeTimingParam | ( | HcalGenericDetId | fId | ) | const |
Definition at line 455 of file HcalDbHardcode.cc.
References HcalGenericDetId::genericSubdet(), HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, nhits, DetId::rawId(), mps_fire::result, and SiStripPI::rms.
Referenced by HcalHardcodeCalibrations::produceTimingParams().
HcalZSThreshold HcalDbHardcode::makeZSThreshold | ( | HcalGenericDetId | fId | ) | const |
Definition at line 179 of file HcalDbHardcode.cc.
References getParameters(), DetId::rawId(), mps_fire::result, relativeConstraints::value, and HcalHardcodeParameters::zsThreshold().
Referenced by HcalHardcodeCalibrations::produceZSThresholds().
|
inline |
Definition at line 54 of file HcalDbHardcode.h.
References AlCaHLTBitMon_ParallelJobs::p, setHB_, and theHBParameters_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 70 of file HcalDbHardcode.h.
References AlCaHLTBitMon_ParallelJobs::p, setHBUpgrade_, and theHBUpgradeParameters_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 58 of file HcalDbHardcode.h.
References AlCaHLTBitMon_ParallelJobs::p, setHE_, and theHEParameters_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 74 of file HcalDbHardcode.h.
References AlCaHLTBitMon_ParallelJobs::p, setHEUpgrade_, and theHEUpgradeParameters_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 62 of file HcalDbHardcode.h.
References AlCaHLTBitMon_ParallelJobs::p, setHF_, and theHFParameters_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 78 of file HcalDbHardcode.h.
References AlCaHLTBitMon_ParallelJobs::p, setHFUpgrade_, and theHFUpgradeParameters_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 66 of file HcalDbHardcode.h.
References AlCaHLTBitMon_ParallelJobs::p, setHO_, and theHOParameters_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 89 of file HcalDbHardcode.h.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 88 of file HcalDbHardcode.h.
References theSiPMCharacteristics_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 87 of file HcalDbHardcode.h.
References b, and testHEPlan1_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 86 of file HcalDbHardcode.h.
References b, and testHFQIE10_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 82 of file HcalDbHardcode.h.
References b, and useHBUpgrade_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
|
inline |
Definition at line 83 of file HcalDbHardcode.h.
References b, and useHEUpgrade_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
|
inline |
Definition at line 85 of file HcalDbHardcode.h.
References b, and useHFUpgrade_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
|
inline |
Definition at line 84 of file HcalDbHardcode.h.
References b, and useHOUpgrade_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
|
private |
Definition at line 127 of file HcalDbHardcode.h.
Referenced by killHE(), and setKillHE().
|
private |
Definition at line 127 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHB().
|
private |
Definition at line 127 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHBUpgrade().
|
private |
Definition at line 127 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHE().
|
private |
Definition at line 127 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHEUpgrade().
|
private |
Definition at line 127 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHF().
|
private |
Definition at line 127 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHFUpgrade().
|
private |
Definition at line 127 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHO().
|
private |
Definition at line 128 of file HcalDbHardcode.h.
Referenced by getParameters(), makeHardcodeSiPMParameter(), and testHEPlan1().
|
private |
Definition at line 128 of file HcalDbHardcode.h.
Referenced by getParameters(), and testHFQIE10().
|
private |
Definition at line 124 of file HcalDbHardcode.h.
Referenced by getParameters().
|
private |
Definition at line 125 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHB().
|
private |
Definition at line 126 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHBUpgrade().
|
private |
Definition at line 125 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHE().
|
private |
Definition at line 126 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHEUpgrade().
|
private |
Definition at line 125 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHF().
|
private |
Definition at line 126 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHFUpgrade().
|
private |
Definition at line 125 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHO().
|
private |
Definition at line 130 of file HcalDbHardcode.h.
Referenced by getLayersInDepth().
|
private |
Definition at line 129 of file HcalDbHardcode.h.
Referenced by makeHardcodeSiPMCharacteristics(), and setSiPMCharacteristics().
|
private |
Definition at line 128 of file HcalDbHardcode.h.
Referenced by getParameters(), makeHardcodeSiPMParameter(), and useHBUpgrade().
|
private |
Definition at line 128 of file HcalDbHardcode.h.
Referenced by getParameters(), makeHardcodeSiPMParameter(), and useHEUpgrade().
|
private |
Definition at line 128 of file HcalDbHardcode.h.
Referenced by getParameters(), and useHFUpgrade().
|
private |
Definition at line 128 of file HcalDbHardcode.h.
Referenced by makeHardcodeSiPMParameter(), and useHOUpgrade().