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 44 of file HcalDbHardcode.h.
HcalDbHardcode::HcalDbHardcode | ( | ) |
Definition at line 17 of file HcalDbHardcode.cc.
|
inlinevirtual |
Definition at line 50 of file HcalDbHardcode.h.
const int HcalDbHardcode::getGainIndex | ( | HcalGenericDetId | fId | ) |
Definition at line 57 of file HcalDbHardcode.cc.
References HcalDetId::depth(), HcalGenericDetId::genericSubdet(), HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, HcalDetId::ieta(), and diffTreeTool::index.
Referenced by makeGain(), makeGainWidth(), and useHFUpgrade().
int HcalDbHardcode::getLayersInDepth | ( | int | ieta, |
int | depth, | ||
const HcalTopology * | topo | ||
) |
Definition at line 546 of file HcalDbHardcode.cc.
References particleFlowClusterECALTimeSelected_cfi::depth, SoftLeptonByDistance_cfi::distance, HcalTopology::getDepthSegmentation(), MuonTCMETValueMapProducer_cff::nLayers, and theLayersInDepths_.
Referenced by killHE(), makeHardcodeSiPMParameter(), and HcalHardcodeCalibrations::produceRespCorrs().
const HcalHardcodeParameters & HcalDbHardcode::getParameters | ( | HcalGenericDetId | fId | ) |
Definition at line 26 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 useHFUpgrade().
bool HcalDbHardcode::isHEPlan1 | ( | HcalGenericDetId | fId | ) |
Definition at line 564 of file HcalDbHardcode.cc.
References HcalDetId::iphi(), HcalGenericDetId::isHcalDetId(), and HcalDetId::zside().
Referenced by getParameters(), killHE(), and makeHardcodeSiPMParameter().
|
inline |
Definition at line 76 of file HcalDbHardcode.h.
References particleFlowClusterECALTimeSelected_cfi::depth, getLayersInDepth(), isHEPlan1(), killHE_, makeCalibrationQIECoder(), makeGain(), makeGainWidth(), makeHardcodeDcsMap(), makeHardcodeFrontEndMap(), makeHardcodeMap(), makeHardcodeSiPMCharacteristics(), makeHardcodeSiPMParameter(), makeHardcodeTPChannelParameter(), makeHardcodeTPParameters(), makeMCParam(), makePedestal(), makePedestalWidth(), makeQIECoder(), makeQIEShape(), makeQIEType(), makeRecoParam(), and makeTimingParam().
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 | ) |
Definition at line 144 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 |
||
) |
Definition at line 104 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 | ) |
Definition at line 118 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 | ( | ) |
Definition at line 427 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 | ||
) |
Referenced by killHE(), and HcalHardcodeCalibrations::produceFrontEndMap().
std::unique_ptr< HcalFrontEndMap > HcalDbHardcode::makeHardcodeFrontEndMap | ( | const std::vector< HcalGenericDetId > & | cells | ) |
Definition at line 477 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 | ) |
Definition at line 444 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 | ( | ) |
Definition at line 617 of file HcalDbHardcode.cc.
References HcalSiPMCharacteristicsAddons::Helper::loadObject(), and theSiPMCharacteristics_.
Referenced by killHE(), and HcalHardcodeCalibrations::produceSiPMCharacteristics().
HcalSiPMParameter HcalDbHardcode::makeHardcodeSiPMParameter | ( | HcalGenericDetId | fId, |
const HcalTopology * | topo, | ||
double | intlumi | ||
) |
Definition at line 573 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(), and HcalHardcodeCalibrations::produceSiPMParameters().
HcalTPChannelParameter HcalDbHardcode::makeHardcodeTPChannelParameter | ( | HcalGenericDetId | fId | ) |
Definition at line 637 of file HcalDbHardcode.cc.
References DetId::rawId().
Referenced by killHE(), and HcalHardcodeCalibrations::produceTPChannelParameters().
void HcalDbHardcode::makeHardcodeTPParameters | ( | HcalTPParameters & | tppar | ) |
Definition at line 645 of file HcalDbHardcode.cc.
References HcalTPParameters::loadObject().
Referenced by killHE(), and HcalHardcodeCalibrations::produceTPParameters().
HcalMCParam HcalDbHardcode::makeMCParam | ( | HcalGenericDetId | fId | ) |
Definition at line 160 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 = false |
||
) |
Definition at line 71 of file HcalDbHardcode.cc.
References f, objects.autophobj::float, getParameters(), HcalPedestalWidth::getWidth(), mps_fire::i, makePedestalWidth(), HcalHardcodeParameters::pedestal(), DetId::rawId(), mps_fire::result, and ApeEstimator_cff::width.
Referenced by killHE(), and HcalHardcodeCalibrations::producePedestals().
HcalPedestalWidth HcalDbHardcode::makePedestalWidth | ( | HcalGenericDetId | fId | ) |
Definition at line 89 of file HcalDbHardcode.cc.
References getParameters(), mps_fire::i, HcalHardcodeParameters::pedestalWidth(), DetId::rawId(), mps_fire::result, and relativeConstraints::value.
Referenced by killHE(), makePedestal(), and HcalHardcodeCalibrations::producePedestalWidths().
HcalQIECoder HcalDbHardcode::makeQIECoder | ( | HcalGenericDetId | fId | ) |
Definition at line 124 of file HcalDbHardcode.cc.
References getParameters(), DetId::rawId(), and mps_fire::result.
Referenced by killHE(), and HcalHardcodeCalibrations::produceQIEData().
HcalQIEShape HcalDbHardcode::makeQIEShape | ( | ) |
Definition at line 152 of file HcalDbHardcode.cc.
Referenced by killHE().
HcalQIEType HcalDbHardcode::makeQIEType | ( | HcalGenericDetId | fId | ) |
Definition at line 138 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 | ) |
Definition at line 258 of file HcalDbHardcode.cc.
References CastorSimpleReconstructor_cfi::correctForTimeslew, HcalHitReconstructor_hbhe_cfi::correctTiming, HcalHitReconstructor_hbhe_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_hbhe_cfi::useLeakCorrection.
Referenced by killHE(), and HcalHardcodeCalibrations::produceRecoParams().
HcalTimingParam HcalDbHardcode::makeTimingParam | ( | HcalGenericDetId | fId | ) |
Definition at line 403 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 RecoTauDiscriminantConfiguration::rms.
Referenced by killHE(), and HcalHardcodeCalibrations::produceTimingParams().
|
inline |
Definition at line 53 of file HcalDbHardcode.h.
References AlCaHLTBitMon_ParallelJobs::p, setHB_, and theHBParameters_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 57 of file HcalDbHardcode.h.
References AlCaHLTBitMon_ParallelJobs::p, setHBUpgrade_, and theHBUpgradeParameters_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 54 of file HcalDbHardcode.h.
References AlCaHLTBitMon_ParallelJobs::p, setHE_, and theHEParameters_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 58 of file HcalDbHardcode.h.
References AlCaHLTBitMon_ParallelJobs::p, setHEUpgrade_, and theHEUpgradeParameters_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 55 of file HcalDbHardcode.h.
References AlCaHLTBitMon_ParallelJobs::p, setHF_, and theHFParameters_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 59 of file HcalDbHardcode.h.
References AlCaHLTBitMon_ParallelJobs::p, setHFUpgrade_, and theHFUpgradeParameters_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 56 of file HcalDbHardcode.h.
References AlCaHLTBitMon_ParallelJobs::p, setHO_, and theHOParameters_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 67 of file HcalDbHardcode.h.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 66 of file HcalDbHardcode.h.
References theSiPMCharacteristics_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 65 of file HcalDbHardcode.h.
References b, and testHEPlan1_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 64 of file HcalDbHardcode.h.
References b, and testHFQIE10_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
Definition at line 60 of file HcalDbHardcode.h.
References b, and useHBUpgrade_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
|
inline |
Definition at line 61 of file HcalDbHardcode.h.
References b, and useHEUpgrade_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations(), and HcalHardcodeCalibrations::produceLutMetadata().
|
inline |
|
inline |
Definition at line 63 of file HcalDbHardcode.h.
References b, and useHFUpgrade_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations(), and HcalHardcodeCalibrations::produceLutMetadata().
|
inline |
Definition at line 73 of file HcalDbHardcode.h.
References getGainIndex(), getParameters(), and useHFUpgrade_.
|
inline |
Definition at line 62 of file HcalDbHardcode.h.
References b, and useHOUpgrade_.
Referenced by HcalHardcodeCalibrations::HcalHardcodeCalibrations().
|
inline |
|
private |
Definition at line 104 of file HcalDbHardcode.h.
Referenced by killHE(), and setKillHE().
|
private |
Definition at line 104 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHB().
|
private |
Definition at line 104 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 104 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 104 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 105 of file HcalDbHardcode.h.
Referenced by getParameters(), makeHardcodeSiPMParameter(), and testHEPlan1().
|
private |
Definition at line 105 of file HcalDbHardcode.h.
Referenced by getParameters(), and testHFQIE10().
|
private |
Definition at line 101 of file HcalDbHardcode.h.
Referenced by getParameters().
|
private |
Definition at line 102 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHB().
|
private |
Definition at line 103 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHBUpgrade().
|
private |
Definition at line 102 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHE().
|
private |
Definition at line 103 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHEUpgrade().
|
private |
Definition at line 102 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHF().
|
private |
Definition at line 103 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHFUpgrade().
|
private |
Definition at line 102 of file HcalDbHardcode.h.
Referenced by getParameters(), and setHO().
|
private |
Definition at line 107 of file HcalDbHardcode.h.
Referenced by getLayersInDepth().
|
private |
Definition at line 106 of file HcalDbHardcode.h.
Referenced by makeHardcodeSiPMCharacteristics(), and setSiPMCharacteristics().
|
private |
Definition at line 105 of file HcalDbHardcode.h.
Referenced by getParameters(), makeHardcodeSiPMParameter(), and useHBUpgrade().
|
private |
Definition at line 105 of file HcalDbHardcode.h.
Referenced by getParameters(), makeHardcodeSiPMParameter(), and useHEUpgrade().
|
private |
Definition at line 105 of file HcalDbHardcode.h.
Referenced by getParameters(), and useHFUpgrade().
|
private |
Definition at line 105 of file HcalDbHardcode.h.
Referenced by makeHardcodeSiPMParameter(), and useHOUpgrade().