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 17 of file HcalDbHardcode.cc.
|
inlinevirtual |
Definition at line 51 of file HcalDbHardcode.h.
const int HcalDbHardcode::getGainIndex | ( | HcalGenericDetId | fId | ) | const |
Definition at line 71 of file HcalDbHardcode.cc.
References HcalDetId::depth(), HcalGenericDetId::genericSubdet(), HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, and HcalDetId::ieta().
Referenced by makeGain(), makeGainWidth(), and useHFUpgrade().
int HcalDbHardcode::getLayersInDepth | ( | int | ieta, |
int | depth, | ||
const HcalTopology * | topo | ||
) |
Definition at line 577 of file HcalDbHardcode.cc.
References egammaForCoreTracking_cff::depth, SoftLeptonByDistance_cfi::distance, HcalTopology::getDepthSegmentation(), MuonTCMETValueMapProducer_cff::nLayers, and theLayersInDepths_.
Referenced by killHE(), makeHardcodeSiPMParameter(), and HcalHardcodeCalibrations::produceRespCorrs().
const HcalHardcodeParameters & HcalDbHardcode::getParameters | ( | HcalGenericDetId | fId | ) | const |
Definition at line 40 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(), makeZSThreshold(), and useHFUpgrade().
bool HcalDbHardcode::isHEPlan1 | ( | HcalGenericDetId | fId | ) | const |
Definition at line 595 of file HcalDbHardcode.cc.
References HcalDetId::iphi(), HcalGenericDetId::isHcalDetId(), and HcalDetId::zside().
Referenced by getParameters(), killHE(), and makeHardcodeSiPMParameter().
|
inline |
Definition at line 77 of file HcalDbHardcode.h.
References postprocess-scan-build::cells, egammaForCoreTracking_cff::depth, getLayersInDepth(), isHEPlan1(), killHE_, makeCalibrationQIECoder(), makeGain(), makeGainWidth(), makeHardcodeDcsMap(), makeHardcodeFrontEndMap(), makeHardcodeMap(), makeHardcodeSiPMCharacteristics(), makeHardcodeSiPMParameter(), makeHardcodeTPChannelParameter(), makeHardcodeTPParameters(), makeMCParam(), makePedestal(), makePedestalWidth(), makeQIECoder(), makeQIEShape(), makeQIEType(), makeRecoParam(), makeTimingParam(), and makeZSThreshold().
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 178 of file HcalDbHardcode.cc.
References mps_fire::i, DetId::rawId(), and mps_fire::result.
Referenced by killHE().
HcalGain HcalDbHardcode::makeGain | ( | HcalGenericDetId | fId, |
bool | fSmear = false |
||
) | const |
Definition at line 132 of file HcalDbHardcode.cc.
References f, objects.autophobj::float, HcalHardcodeParameters::gain(), getGainIndex(), getParameters(), HcalGainWidth::getValue(), mps_fire::i, makeGainWidth(), DetId::rawId(), mps_fire::result, and ApeEstimator_cff::width.
Referenced by killHE(), and HcalHardcodeCalibrations::produceGains().
HcalGainWidth HcalDbHardcode::makeGainWidth | ( | HcalGenericDetId | fId | ) | const |
Definition at line 146 of file HcalDbHardcode.cc.
References HcalHardcodeParameters::gainWidth(), getGainIndex(), getParameters(), DetId::rawId(), mps_fire::result, and relativeConstraints::value.
Referenced by killHE(), makeGain(), and HcalHardcodeCalibrations::produceGainWidths().
std::unique_ptr< HcalDcsMap > HcalDbHardcode::makeHardcodeDcsMap | ( | ) | const |
Definition at line 458 of file HcalDbHardcode.cc.
References HcalDcsDetId::DYN8, HcalBarrel, HcalDcsBarrel, HcalDcsForward, HcalDcsOuter, HcalForward, HcalOuter, HcalDcsDetId::HV, and HcalDcsMapAddons::Helper::mapGeomId2DcsId().
Referenced by killHE(), and HcalHardcodeCalibrations::produceDcsMap().
void HcalDbHardcode::makeHardcodeFrontEndMap | ( | HcalFrontEndMap & | emap, |
const std::vector< HcalGenericDetId > & | cells | ||
) | const |
Referenced by killHE(), and HcalHardcodeCalibrations::produceFrontEndMap().
std::unique_ptr< HcalFrontEndMap > HcalDbHardcode::makeHardcodeFrontEndMap | ( | const std::vector< HcalGenericDetId > & | cells | ) | const |
Definition at line 508 of file HcalDbHardcode.cc.
References gamEcalExtractorBlocks_cff::detector, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, mps_fire::i, HcalFrontEndMapAddons::Helper::loadObject(), relativeConstraints::ring, AlCaHLTBitMon_QueryRunRegistry::string, and HcalDetId::subdet().
std::unique_ptr< HcalElectronicsMap > HcalDbHardcode::makeHardcodeMap | ( | const std::vector< HcalGenericDetId > & | cells | ) | const |
Definition at line 475 of file HcalDbHardcode.cc.
References counter, HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, HcalGenericDetId::HcalGenTriggerTower, HcalGenericDetId::HcalGenZDC, HcalElectronicsMapAddons::Helper::mapEId2chId(), and HcalElectronicsMapAddons::Helper::mapEId2tId().
Referenced by killHE(), and HcalHardcodeCalibrations::produceElectronicsMap().
std::unique_ptr< HcalSiPMCharacteristics > HcalDbHardcode::makeHardcodeSiPMCharacteristics | ( | ) | const |
Definition at line 648 of file HcalDbHardcode.cc.
References HcalSiPMCharacteristicsAddons::Helper::loadObject(), and theSiPMCharacteristics_.
Referenced by killHE(), makePedestal(), makePedestalWidth(), and HcalHardcodeCalibrations::produceSiPMCharacteristics().
HcalSiPMParameter HcalDbHardcode::makeHardcodeSiPMParameter | ( | HcalGenericDetId | fId, |
const HcalTopology * | topo, | ||
double | intlumi | ||
) |
Definition at line 604 of file HcalDbHardcode.cc.
References HcalHardcodeParameters::darkCurrent(), HcalDetId::depth(), HcalGenericDetId::genericSubdet(), getLayersInDepth(), getParameters(), HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenOuter, HcalHBHamamatsu1, HcalHBHamamatsu2, HcalHEHamamatsu1, HcalHEHamamatsu2, HcalHOHamamatsu, HcalHPD, HcalNoSiPM, HcalDetId::ietaAbs(), isHEPlan1(), HcalHardcodeParameters::photoelectronsToAnalog(), DetId::rawId(), testHEPlan1_, useHBUpgrade_, useHEUpgrade_, and useHOUpgrade_.
Referenced by killHE(), makePedestal(), makePedestalWidth(), and HcalHardcodeCalibrations::produceSiPMParameters().
HcalTPChannelParameter HcalDbHardcode::makeHardcodeTPChannelParameter | ( | HcalGenericDetId | fId | ) | const |
Definition at line 668 of file HcalDbHardcode.cc.
References DetId::rawId().
Referenced by killHE(), and HcalHardcodeCalibrations::produceTPChannelParameters().
void HcalDbHardcode::makeHardcodeTPParameters | ( | HcalTPParameters & | tppar | ) | const |
Definition at line 676 of file HcalDbHardcode.cc.
References HcalTPParameters::loadObject().
Referenced by killHE(), and HcalHardcodeCalibrations::produceTPParameters().
HcalMCParam HcalDbHardcode::makeMCParam | ( | HcalGenericDetId | fId | ) | const |
Definition at line 191 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(), gen::k, HcalHardcodeParameters::mcShape(), hcalRecAlgoESProd_cfi::phase, DetId::rawId(), mps_fire::result, ecalSimParameterMap_cff::syncPhase, and hcalSimParameters_cfi::timeSmearing.
Referenced by killHE(), and HcalHardcodeCalibrations::produceMCParams().
HcalPedestal HcalDbHardcode::makePedestal | ( | HcalGenericDetId | fId, |
bool | fSmear, | ||
bool | eff, | ||
const HcalTopology * | topo, | ||
double | intlumi | ||
) |
Definition at line 85 of file HcalDbHardcode.cc.
References f, objects.autophobj::float, getParameters(), HcalPedestalWidth::getWidth(), mps_fire::i, makeHardcodeSiPMCharacteristics(), makeHardcodeSiPMParameter(), makePedestalWidth(), HcalHardcodeParameters::pedestal(), DetId::rawId(), mps_fire::result, and ApeEstimator_cff::width.
Referenced by killHE(), and HcalHardcodeCalibrations::producePedestals_().
HcalPedestalWidth HcalDbHardcode::makePedestalWidth | ( | HcalGenericDetId | fId, |
bool | eff, | ||
const HcalTopology * | topo, | ||
double | intlumi | ||
) |
Definition at line 109 of file HcalDbHardcode.cc.
References getParameters(), mps_fire::i, makeHardcodeSiPMCharacteristics(), makeHardcodeSiPMParameter(), HcalHardcodeParameters::pedestalWidth(), funct::pow(), DetId::rawId(), mps_fire::result, and relativeConstraints::value.
Referenced by killHE(), makePedestal(), and HcalHardcodeCalibrations::producePedestalWidths_().
HcalQIECoder HcalDbHardcode::makeQIECoder | ( | HcalGenericDetId | fId | ) | const |
Definition at line 158 of file HcalDbHardcode.cc.
References getParameters(), DetId::rawId(), and mps_fire::result.
Referenced by killHE(), and HcalHardcodeCalibrations::produceQIEData().
HcalQIEShape HcalDbHardcode::makeQIEShape | ( | ) | const |
Definition at line 186 of file HcalDbHardcode.cc.
Referenced by killHE().
HcalQIEType HcalDbHardcode::makeQIEType | ( | HcalGenericDetId | fId | ) | const |
Definition at line 172 of file HcalDbHardcode.cc.
References getParameters(), HcalHardcodeParameters::qieType(), DetId::rawId(), and mps_fire::result.
Referenced by killHE(), and HcalHardcodeCalibrations::produceQIETypes().
HcalRecoParam HcalDbHardcode::makeRecoParam | ( | HcalGenericDetId | fId | ) | const |
Definition at line 289 of file HcalDbHardcode.cc.
References CastorSimpleReconstructor_cfi::correctForTimeslew, HcalHitReconstructor_hf_cfi::correctTiming, HcalHitReconstructor_hf_cfi::firstAuxTS, CastorSimpleReconstructor_cfi::firstSample, HcalGenericDetId::genericSubdet(), getParameters(), HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, gen::k, hcalRecAlgoESProd_cfi::phase, DetId::rawId(), HcalHardcodeParameters::recoShape(), mps_fire::result, CastorSimpleReconstructor_cfi::samplesToAdd, and HcalHitReconstructor_hf_cfi::useLeakCorrection.
Referenced by killHE(), and HcalHardcodeCalibrations::produceRecoParams().
HcalTimingParam HcalDbHardcode::makeTimingParam | ( | HcalGenericDetId | fId | ) | const |
Definition at line 434 of file HcalDbHardcode.cc.
References HcalGenericDetId::genericSubdet(), HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, nhits, hcalRecAlgoESProd_cfi::phase, DetId::rawId(), mps_fire::result, and SiStripPI::rms.
Referenced by killHE(), and HcalHardcodeCalibrations::produceTimingParams().
HcalZSThreshold HcalDbHardcode::makeZSThreshold | ( | HcalGenericDetId | fId | ) | const |
Definition at line 152 of file HcalDbHardcode.cc.
References getParameters(), DetId::rawId(), mps_fire::result, relativeConstraints::value, and HcalHardcodeParameters::zsThreshold().
Referenced by killHE(), and 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 58 of file HcalDbHardcode.h.
References AlCaHLTBitMon_ParallelJobs::p, setHBUpgrade_, and theHBUpgradeParameters_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 55 of file HcalDbHardcode.h.
References AlCaHLTBitMon_ParallelJobs::p, setHE_, and theHEParameters_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 59 of file HcalDbHardcode.h.
References AlCaHLTBitMon_ParallelJobs::p, setHEUpgrade_, and theHEUpgradeParameters_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 56 of file HcalDbHardcode.h.
References AlCaHLTBitMon_ParallelJobs::p, setHF_, and theHFParameters_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 60 of file HcalDbHardcode.h.
References AlCaHLTBitMon_ParallelJobs::p, setHFUpgrade_, and theHFUpgradeParameters_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 57 of file HcalDbHardcode.h.
References AlCaHLTBitMon_ParallelJobs::p, setHO_, and theHOParameters_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 68 of file HcalDbHardcode.h.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 67 of file HcalDbHardcode.h.
References theSiPMCharacteristics_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 66 of file HcalDbHardcode.h.
References b, and testHEPlan1_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 65 of file HcalDbHardcode.h.
References b, and testHFQIE10_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 61 of file HcalDbHardcode.h.
References b, and useHBUpgrade_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
|
inline |
Definition at line 62 of file HcalDbHardcode.h.
References b, and useHEUpgrade_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
|
inline |
Definition at line 64 of file HcalDbHardcode.h.
References b, and useHFUpgrade_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 74 of file HcalDbHardcode.h.
References getGainIndex(), getParameters(), and useHFUpgrade_.
|
inline |
Definition at line 63 of file HcalDbHardcode.h.
References b, and useHOUpgrade_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
|
private |
Definition at line 106 of file HcalDbHardcode.h.
Referenced by killHE(), and setKillHE().
|
private |
Definition at line 106 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHB().
|
private |
Definition at line 106 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHBUpgrade().
|
private |
Definition at line 106 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHE().
|
private |
Definition at line 106 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHEUpgrade().
|
private |
Definition at line 106 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHF().
|
private |
Definition at line 106 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHFUpgrade().
|
private |
Definition at line 106 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHO().
|
private |
Definition at line 107 of file HcalDbHardcode.h.
Referenced by getParameters(), makeHardcodeSiPMParameter(), and testHEPlan1().
|
private |
Definition at line 107 of file HcalDbHardcode.h.
Referenced by getParameters(), and testHFQIE10().
|
private |
Definition at line 103 of file HcalDbHardcode.h.
Referenced by getParameters().
|
private |
Definition at line 104 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHB().
|
private |
Definition at line 105 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHBUpgrade().
|
private |
Definition at line 104 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHE().
|
private |
Definition at line 105 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHEUpgrade().
|
private |
Definition at line 104 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHF().
|
private |
Definition at line 105 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHFUpgrade().
|
private |
Definition at line 104 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHO().
|
private |
Definition at line 109 of file HcalDbHardcode.h.
Referenced by getLayersInDepth().
|
private |
Definition at line 108 of file HcalDbHardcode.h.
Referenced by makeHardcodeSiPMCharacteristics(), and setSiPMCharacteristics().
|
private |
Definition at line 107 of file HcalDbHardcode.h.
Referenced by getParameters(), makeHardcodeSiPMParameter(), and useHBUpgrade().
|
private |
Definition at line 107 of file HcalDbHardcode.h.
Referenced by getParameters(), makeHardcodeSiPMParameter(), and useHEUpgrade().
|
private |
Definition at line 107 of file HcalDbHardcode.h.
Referenced by getParameters(), and useHFUpgrade().
|
private |
Definition at line 107 of file HcalDbHardcode.h.
Referenced by makeHardcodeSiPMParameter(), and useHOUpgrade().