CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes
HcalHardcodeCalibrations Class Reference

#include <HcalHardcodeCalibrations.h>

Inheritance diagram for HcalHardcodeCalibrations:
edm::ESProducer edm::EventSetupRecordIntervalFinder edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

 HcalHardcodeCalibrations (const edm::ParameterSet &)
 
void produce ()
 
 ~HcalHardcodeCalibrations () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer ()(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval) override
 overrides DataProxyProvider method More...
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
 DataProxyProvider ()
 
const ComponentDescriptiondescription () const
 
bool isUsingRecord (const EventSetupRecordKey &) const
 
const KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey) const
 
void resetProxies (const EventSetupRecordKey &iRecordType)
 
void resetProxiesIfTransient (const EventSetupRecordKey &iRecordType)
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider () noexcept(false)
 
- Public Member Functions inherited from edm::EventSetupRecordIntervalFinder
const eventsetup::ComponentDescriptiondescriptionForFinder () const
 
 EventSetupRecordIntervalFinder ()
 
std::set< eventsetup::EventSetupRecordKeyfindingForRecords () const
 
const ValidityIntervalfindIntervalFor (const eventsetup::EventSetupRecordKey &, const IOVSyncValue &)
 
void setDescriptionForFinder (const eventsetup::ComponentDescription &iDescription)
 
virtual ~EventSetupRecordIntervalFinder () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 

Protected Member Functions

std::unique_ptr< HcalChannelQualityproduceChannelQuality (const HcalChannelQualityRcd &rcd)
 
std::unique_ptr< HcalDcsMapproduceDcsMap (const HcalDcsMapRcd &rcd)
 
std::unique_ptr< HcalDcsValuesproduceDcsValues (const HcalDcsRcd &rcd)
 
std::unique_ptr< HcalPedestalsproduceEffectivePedestals (const HcalPedestalsRcd &rcd)
 
std::unique_ptr< HcalPedestalWidthsproduceEffectivePedestalWidths (const HcalPedestalWidthsRcd &rcd)
 
std::unique_ptr< HcalElectronicsMapproduceElectronicsMap (const HcalElectronicsMapRcd &rcd)
 
std::unique_ptr< HcalFlagHFDigiTimeParamsproduceFlagHFDigiTimeParams (const HcalFlagHFDigiTimeParamsRcd &rcd)
 
std::unique_ptr< HcalFrontEndMapproduceFrontEndMap (const HcalFrontEndMapRcd &rcd)
 
std::unique_ptr< HcalGainsproduceGains (const HcalGainsRcd &rcd)
 
std::unique_ptr< HcalGainWidthsproduceGainWidths (const HcalGainWidthsRcd &rcd)
 
std::unique_ptr< HcalL1TriggerObjectsproduceL1TriggerObjects (const HcalL1TriggerObjectsRcd &rcd)
 
std::unique_ptr< HcalLongRecoParamsproduceLongRecoParams (const HcalLongRecoParamsRcd &rcd)
 
std::unique_ptr< HcalLUTCorrsproduceLUTCorrs (const HcalLUTCorrsRcd &rcd)
 
std::unique_ptr< HcalLutMetadataproduceLutMetadata (const HcalLutMetadataRcd &rcd)
 
std::unique_ptr< HcalMCParamsproduceMCParams (const HcalMCParamsRcd &rcd)
 
std::unique_ptr< HcalPedestalsproducePedestals (const HcalPedestalsRcd &rcd)
 
std::unique_ptr< HcalPedestalsproducePedestals_ (const HcalPedestalsRcd &rcd, bool eff)
 
std::unique_ptr< HcalPedestalWidthsproducePedestalWidths (const HcalPedestalWidthsRcd &rcd)
 
std::unique_ptr< HcalPedestalWidthsproducePedestalWidths_ (const HcalPedestalWidthsRcd &rcd, bool eff)
 
std::unique_ptr< HcalPFCorrsproducePFCorrs (const HcalPFCorrsRcd &rcd)
 
std::unique_ptr< HcalQIEDataproduceQIEData (const HcalQIEDataRcd &rcd)
 
std::unique_ptr< HcalQIETypesproduceQIETypes (const HcalQIETypesRcd &rcd)
 
std::unique_ptr< HcalRecoParamsproduceRecoParams (const HcalRecoParamsRcd &rcd)
 
std::unique_ptr< HcalRespCorrsproduceRespCorrs (const HcalRespCorrsRcd &rcd)
 
std::unique_ptr< HcalSiPMCharacteristicsproduceSiPMCharacteristics (const HcalSiPMCharacteristicsRcd &rcd)
 
std::unique_ptr< HcalSiPMParametersproduceSiPMParameters (const HcalSiPMParametersRcd &rcd)
 
std::unique_ptr< HcalTimeCorrsproduceTimeCorrs (const HcalTimeCorrsRcd &rcd)
 
std::unique_ptr< HcalTimingParamsproduceTimingParams (const HcalTimingParamsRcd &rcd)
 
std::unique_ptr< HcalTPChannelParametersproduceTPChannelParameters (const HcalTPChannelParametersRcd &rcd)
 
std::unique_ptr< HcalTPParametersproduceTPParameters (const HcalTPParametersRcd &rcd)
 
std::unique_ptr< HcalValidationCorrsproduceValidationCorrs (const HcalValidationCorrsRcd &rcd)
 
std::unique_ptr< HcalZDCLowGainFractionsproduceZDCLowGainFractions (const HcalZDCLowGainFractionsRcd &rcd)
 
std::unique_ptr< HcalZSThresholdsproduceZSThresholds (const HcalZSThresholdsRcd &rcd)
 
void setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
 
- Protected Member Functions inherited from edm::ESProducer
 ESProducer (const ESProducer &)=delete
 
ESProducer const & operator= (const ESProducer &)=delete
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
auto setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
auto setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord >
auto setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
ESConsumesCollectorT< TRecord > setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={})
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) override
 override DataProxyProvider method More...
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
void eraseAll (const EventSetupRecordKey &iRecordKey)
 deletes all the Proxies in aStream More...
 
void invalidateProxies (const EventSetupRecordKey &iRecordKey)
 
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &)
 
- Protected Member Functions inherited from edm::EventSetupRecordIntervalFinder
template<class T >
void findingRecord ()
 
void findingRecordWithKey (const eventsetup::EventSetupRecordKey &)
 

Private Attributes

HcalDbHardcode dbHardcode
 
std::unique_ptr< HBHERecalibrationhb_recalibration
 
std::unique_ptr< HBHERecalibrationhe_recalibration
 
std::unique_ptr< HFRecalibrationhf_recalibration
 
double iLumi
 
bool setHBdsegm
 
bool setHEdsegm
 
bool switchGainWidthsForTrigPrims
 
bool testHEPlan1
 
bool useIeta18depth1
 
bool useLayer0Weight
 

Additional Inherited Members

- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > KeyedProxies
 
typedef std::vector< EventSetupRecordKeyKeys
 
typedef std::map< EventSetupRecordKey, KeyedProxiesRecordProxies
 

Detailed Description

Definition at line 53 of file HcalHardcodeCalibrations.h.

Constructor & Destructor Documentation

HcalHardcodeCalibrations::HcalHardcodeCalibrations ( const edm::ParameterSet iConfig)

Definition at line 127 of file HcalHardcodeCalibrations.cc.

References Vispa.Plugins.EdmBrowser.EdmDataAccessor::all(), gather_cfg::cout, dbHardcode, edm::ParameterSet::empty(), edm::ParameterSet::exists(), edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), hb_recalibration, he_recalibration, hf_recalibration, iLumi, summarizeEdmComparisonLogfiles::objectName, produceChannelQuality(), produceDcsMap(), produceDcsValues(), produceEffectivePedestals(), produceEffectivePedestalWidths(), produceElectronicsMap(), produceFlagHFDigiTimeParams(), produceFrontEndMap(), produceGains(), produceGainWidths(), produceL1TriggerObjects(), produceLongRecoParams(), produceLUTCorrs(), produceLutMetadata(), produceMCParams(), producePedestals(), producePedestalWidths(), producePFCorrs(), produceQIEData(), produceQIETypes(), produceRecoParams(), produceRespCorrs(), produceSiPMCharacteristics(), produceSiPMParameters(), produceTimeCorrs(), produceTPChannelParameters(), produceTPParameters(), produceValidationCorrs(), produceZDCLowGainFractions(), produceZSThresholds(), HcalDbHardcode::setHB(), HcalDbHardcode::setHBUpgrade(), HcalDbHardcode::setHE(), HcalDbHardcode::setHEUpgrade(), HcalDbHardcode::setHF(), HcalDbHardcode::setHFUpgrade(), HcalDbHardcode::setHO(), HcalDbHardcode::setKillHE(), HcalDbHardcode::setSiPMCharacteristics(), edm::ESProducer::setWhatProduced(), switchGainWidthsForTrigPrims, HcalDbHardcode::testHEPlan1(), testHEPlan1, HcalDbHardcode::testHFQIE10(), DBConfiguration_cff::toGet, HcalDbHardcode::useHBUpgrade(), HcalDbHardcode::useHEUpgrade(), HcalDbHardcode::useHFUpgrade(), HcalDbHardcode::useHOUpgrade(), useIeta18depth1, and useLayer0Weight.

127  :
128  hb_recalibration(nullptr), he_recalibration(nullptr), hf_recalibration(nullptr), setHEdsegm(false), setHBdsegm(false)
129 {
130  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::HcalHardcodeCalibrations->...";
131 
132  if ( iConfig.exists("GainWidthsForTrigPrims") )
133  switchGainWidthsForTrigPrims = iConfig.getParameter<bool>("GainWidthsForTrigPrims");
134  else switchGainWidthsForTrigPrims = false;
135 
136  //DB helper preparation
144  dbHardcode.useHBUpgrade(iConfig.getParameter<bool>("useHBUpgrade"));
145  dbHardcode.useHEUpgrade(iConfig.getParameter<bool>("useHEUpgrade"));
146  dbHardcode.useHFUpgrade(iConfig.getParameter<bool>("useHFUpgrade"));
147  dbHardcode.useHOUpgrade(iConfig.getParameter<bool>("useHOUpgrade"));
148  dbHardcode.testHFQIE10(iConfig.getParameter<bool>("testHFQIE10"));
149  dbHardcode.testHEPlan1(iConfig.getParameter<bool>("testHEPlan1"));
150  dbHardcode.setKillHE(iConfig.getParameter<bool>("killHE"));
151  dbHardcode.setSiPMCharacteristics(iConfig.getParameter<std::vector<edm::ParameterSet>>("SiPMCharacteristics"));
152 
153  useLayer0Weight = iConfig.getParameter<bool>("useLayer0Weight");
154  useIeta18depth1 = iConfig.getParameter<bool>("useIeta18depth1");
155  testHEPlan1 = iConfig.getParameter<bool>("testHEPlan1");
156  // HB, HE, HF recalibration preparation
157  iLumi=iConfig.getParameter<double>("iLumi");
158 
159  if( iLumi > 0.0 ) {
160  bool hb_recalib = iConfig.getParameter<bool>("HBRecalibration");
161  bool he_recalib = iConfig.getParameter<bool>("HERecalibration");
162  bool hf_recalib = iConfig.getParameter<bool>("HFRecalibration");
163  if(hb_recalib) {
164  hb_recalibration.reset(
165  new HBHERecalibration(
166  iLumi,
167  iConfig.getParameter<double>("HBreCalibCutoff"),
168  iConfig.getParameter<edm::FileInPath>("HBmeanenergies").fullPath()
169  )
170  );
171  }
172  if(he_recalib) {
173  he_recalibration.reset(
174  new HBHERecalibration(
175  iLumi,
176  iConfig.getParameter<double>("HEreCalibCutoff"),
177  iConfig.getParameter<edm::FileInPath>("HEmeanenergies").fullPath()
178  )
179  );
180  }
181  if(hf_recalib && !iConfig.getParameter<edm::ParameterSet>("HFRecalParameterBlock").empty()) hf_recalibration.reset(new HFRecalibration(iConfig.getParameter<edm::ParameterSet>("HFRecalParameterBlock")));
182 
183 #ifdef DebugLog
184  std::cout << " HcalHardcodeCalibrations: iLumi = " << iLumi << std::endl;
185 #endif
186  }
187 
188  std::vector <std::string> toGet = iConfig.getUntrackedParameter <std::vector <std::string> > ("toGet");
189  for(auto& objectName : toGet){
190  bool all = objectName == "all";
191 #ifdef DebugLog
192  std::cout << "Load parameters for " << objectName << std::endl;
193 #endif
194  if ((objectName == "Pedestals") || all) {
196  findingRecord <HcalPedestalsRcd> ();
197  }
198  if ((objectName == "PedestalWidths") || all) {
200  findingRecord <HcalPedestalWidthsRcd> ();
201  }
202  if ((objectName == "EffectivePedestals") || all) {
204  findingRecord <HcalPedestalsRcd> ();
205  }
206  if ((objectName == "EffectivePedestalWidths") || all) {
208  findingRecord <HcalPedestalWidthsRcd> ();
209  }
210  if ((objectName == "Gains") || all) {
212  findingRecord <HcalGainsRcd> ();
213  }
214  if ((objectName == "GainWidths") || all) {
216  findingRecord <HcalGainWidthsRcd> ();
217  }
218  if ((objectName == "QIEData") || all) {
220  findingRecord <HcalQIEDataRcd> ();
221  }
222  if ((objectName == "QIETypes") || all) {
224  findingRecord <HcalQIETypesRcd> ();
225  }
226  if ((objectName == "ChannelQuality") || (objectName == "channelQuality") || all) {
228  findingRecord <HcalChannelQualityRcd> ();
229  }
230  if ((objectName == "ElectronicsMap") || (objectName == "electronicsMap") || all) {
232  findingRecord <HcalElectronicsMapRcd> ();
233  }
234  if ((objectName == "ZSThresholds") || (objectName == "zsThresholds") || all) {
236  findingRecord <HcalZSThresholdsRcd> ();
237  }
238  if ((objectName == "RespCorrs") || (objectName == "ResponseCorrection") || all) {
240  findingRecord <HcalRespCorrsRcd> ();
241  }
242  if ((objectName == "LUTCorrs") || (objectName == "LUTCorrection") || all) {
244  findingRecord <HcalLUTCorrsRcd> ();
245  }
246  if ((objectName == "PFCorrs") || (objectName == "PFCorrection") || all) {
248  findingRecord <HcalPFCorrsRcd> ();
249  }
250  if ((objectName == "TimeCorrs") || (objectName == "TimeCorrection") || all) {
252  findingRecord <HcalTimeCorrsRcd> ();
253  }
254  if ((objectName == "L1TriggerObjects") || (objectName == "L1Trigger") || all) {
256  findingRecord <HcalL1TriggerObjectsRcd> ();
257  }
258  if ((objectName == "ValidationCorrs") || (objectName == "ValidationCorrection") || all) {
260  findingRecord <HcalValidationCorrsRcd> ();
261  }
262  if ((objectName == "LutMetadata") || (objectName == "lutMetadata") || all) {
264  findingRecord <HcalLutMetadataRcd> ();
265  }
266  if ((objectName == "DcsValues") || all) {
268  findingRecord <HcalDcsRcd> ();
269  }
270  if ((objectName == "DcsMap") || (objectName == "dcsMap") || all) {
272  findingRecord <HcalDcsMapRcd> ();
273  }
274  if ((objectName == "RecoParams") || all) {
276  findingRecord <HcalRecoParamsRcd> ();
277  }
278  if ((objectName == "LongRecoParams") || all) {
280  findingRecord <HcalLongRecoParamsRcd> ();
281  }
282  if ((objectName == "ZDCLowGainFractions") || all) {
284  findingRecord <HcalZDCLowGainFractionsRcd> ();
285  }
286  if ((objectName == "MCParams") || all) {
288  findingRecord <HcalMCParamsRcd> ();
289  }
290  if ((objectName == "FlagHFDigiTimeParams") || all) {
292  findingRecord <HcalFlagHFDigiTimeParamsRcd> ();
293  }
294  if ((objectName == "FrontEndMap") || (objectName == "frontEndMap") || all) {
296  findingRecord <HcalFrontEndMapRcd> ();
297  }
298  if ((objectName == "SiPMParameters") || all) {
300  findingRecord <HcalSiPMParametersRcd> ();
301  }
302  if ((objectName == "SiPMCharacteristics") || all) {
304  findingRecord <HcalSiPMCharacteristicsRcd> ();
305  }
306  if ((objectName == "TPChannelParameters") || all) {
308  findingRecord <HcalTPChannelParametersRcd> ();
309  }
310  if ((objectName == "TPParameters") || all) {
312  findingRecord <HcalTPParametersRcd> ();
313  }
314  }
315 }
std::unique_ptr< HcalPedestals > producePedestals(const HcalPedestalsRcd &rcd)
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
bool empty() const
Definition: ParameterSet.h:191
T getUntrackedParameter(std::string const &, T const &) const
std::unique_ptr< HcalGains > produceGains(const HcalGainsRcd &rcd)
void useHBUpgrade(bool b)
std::unique_ptr< HcalPedestalWidths > produceEffectivePedestalWidths(const HcalPedestalWidthsRcd &rcd)
std::unique_ptr< HcalPFCorrs > producePFCorrs(const HcalPFCorrsRcd &rcd)
std::unique_ptr< HcalQIEData > produceQIEData(const HcalQIEDataRcd &rcd)
void setHBUpgrade(HcalHardcodeParameters p)
void testHEPlan1(bool b)
std::unique_ptr< HcalTimeCorrs > produceTimeCorrs(const HcalTimeCorrsRcd &rcd)
void useHFUpgrade(bool b)
std::unique_ptr< HcalLongRecoParams > produceLongRecoParams(const HcalLongRecoParamsRcd &rcd)
std::unique_ptr< HcalPedestals > produceEffectivePedestals(const HcalPedestalsRcd &rcd)
std::unique_ptr< HcalSiPMCharacteristics > produceSiPMCharacteristics(const HcalSiPMCharacteristicsRcd &rcd)
std::unique_ptr< HcalElectronicsMap > produceElectronicsMap(const HcalElectronicsMapRcd &rcd)
void setHF(HcalHardcodeParameters p)
bool exists(std::string const &parameterName) const
checks if a parameter exists
std::unique_ptr< HcalDcsValues > produceDcsValues(const HcalDcsRcd &rcd)
std::unique_ptr< HcalPedestalWidths > producePedestalWidths(const HcalPedestalWidthsRcd &rcd)
std::unique_ptr< HFRecalibration > hf_recalibration
std::unique_ptr< HcalRespCorrs > produceRespCorrs(const HcalRespCorrsRcd &rcd)
std::unique_ptr< HcalLutMetadata > produceLutMetadata(const HcalLutMetadataRcd &rcd)
void setHO(HcalHardcodeParameters p)
void setHFUpgrade(HcalHardcodeParameters p)
void setHE(HcalHardcodeParameters p)
void setKillHE(bool b)
std::unique_ptr< HcalFlagHFDigiTimeParams > produceFlagHFDigiTimeParams(const HcalFlagHFDigiTimeParamsRcd &rcd)
std::unique_ptr< HcalFrontEndMap > produceFrontEndMap(const HcalFrontEndMapRcd &rcd)
std::unique_ptr< HBHERecalibration > hb_recalibration
void useHOUpgrade(bool b)
std::unique_ptr< HcalSiPMParameters > produceSiPMParameters(const HcalSiPMParametersRcd &rcd)
std::unique_ptr< HBHERecalibration > he_recalibration
std::unique_ptr< HcalRecoParams > produceRecoParams(const HcalRecoParamsRcd &rcd)
void setHB(HcalHardcodeParameters p)
std::unique_ptr< HcalTPParameters > produceTPParameters(const HcalTPParametersRcd &rcd)
std::unique_ptr< HcalGainWidths > produceGainWidths(const HcalGainWidthsRcd &rcd)
std::unique_ptr< HcalTPChannelParameters > produceTPChannelParameters(const HcalTPChannelParametersRcd &rcd)
std::unique_ptr< HcalL1TriggerObjects > produceL1TriggerObjects(const HcalL1TriggerObjectsRcd &rcd)
std::unique_ptr< HcalZSThresholds > produceZSThresholds(const HcalZSThresholdsRcd &rcd)
std::unique_ptr< HcalZDCLowGainFractions > produceZDCLowGainFractions(const HcalZDCLowGainFractionsRcd &rcd)
void setSiPMCharacteristics(std::vector< edm::ParameterSet > vps)
std::unique_ptr< HcalMCParams > produceMCParams(const HcalMCParamsRcd &rcd)
void useHEUpgrade(bool b)
std::unique_ptr< HcalQIETypes > produceQIETypes(const HcalQIETypesRcd &rcd)
std::unique_ptr< HcalChannelQuality > produceChannelQuality(const HcalChannelQualityRcd &rcd)
std::string fullPath() const
Definition: FileInPath.cc:163
void setHEUpgrade(HcalHardcodeParameters p)
std::unique_ptr< HcalDcsMap > produceDcsMap(const HcalDcsMapRcd &rcd)
std::unique_ptr< HcalLUTCorrs > produceLUTCorrs(const HcalLUTCorrsRcd &rcd)
void testHFQIE10(bool b)
std::unique_ptr< HcalValidationCorrs > produceValidationCorrs(const HcalValidationCorrsRcd &rcd)
HcalHardcodeCalibrations::~HcalHardcodeCalibrations ( )
override

Definition at line 318 of file HcalHardcodeCalibrations.cc.

319 {
320 }

Member Function Documentation

void HcalHardcodeCalibrations::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 896 of file HcalHardcodeCalibrations.cc.

References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addDefault(), edm::ParameterSetDescription::addUntracked(), and edm::ParameterSetDescription::addVPSet().

Referenced by produce().

896  {
898  desc.add<double>("iLumi",-1.);
899  desc.add<bool>("HBRecalibration",false);
900  desc.add<double>("HBreCalibCutoff",20.);
901  desc.add<edm::FileInPath>("HBmeanenergies",edm::FileInPath("CalibCalorimetry/HcalPlugins/data/meanenergiesHB.txt"));
902  desc.add<bool>("HERecalibration",false);
903  desc.add<double>("HEreCalibCutoff",20.);
904  desc.add<edm::FileInPath>("HEmeanenergies",edm::FileInPath("CalibCalorimetry/HcalPlugins/data/meanenergiesHE.txt"));
905  desc.add<bool>("HFRecalibration",false);
906  desc.add<bool>("GainWidthsForTrigPrims",false);
907  desc.add<bool>("useHBUpgrade",false);
908  desc.add<bool>("useHEUpgrade",false);
909  desc.add<bool>("useHFUpgrade",false);
910  desc.add<bool>("useHOUpgrade",true);
911  desc.add<bool>("testHFQIE10",false);
912  desc.add<bool>("testHEPlan1",false);
913  desc.add<bool>("killHE",false);
914  desc.add<bool>("useLayer0Weight",false);
915  desc.add<bool>("useIeta18depth1",true);
916  desc.addUntracked<std::vector<std::string> >("toGet",std::vector<std::string>());
917  desc.addUntracked<bool>("fromDDD",false);
918 
920  desc_hb.add<std::vector<double>>("gain", std::vector<double>({0.19}));
921  desc_hb.add<std::vector<double>>("gainWidth", std::vector<double>({0.0}));
922  desc_hb.add<double>("pedestal", 3.0);
923  desc_hb.add<double>("pedestalWidth", 0.55);
924  desc_hb.add<int>("zsThreshold", 8);
925  desc_hb.add<std::vector<double>>("qieOffset", std::vector<double>({-0.49, 1.8, 7.2, 37.9}));
926  desc_hb.add<std::vector<double>>("qieSlope", std::vector<double>({0.912, 0.917, 0.922, 0.923}));
927  desc_hb.add<int>("qieType", 0);
928  desc_hb.add<int>("mcShape",125);
929  desc_hb.add<int>("recoShape",105);
930  desc_hb.add<double>("photoelectronsToAnalog",0.0);
931  desc_hb.add<std::vector<double>>("darkCurrent",std::vector<double>({0.0}));
932  desc_hb.add<bool>("doRadiationDamage", false);
933  desc.add<edm::ParameterSetDescription>("hb", desc_hb);
934 
935  edm::ParameterSetDescription desc_hbRaddam;
936  desc_hbRaddam.add<double>("temperatureBase",20.0);
937  desc_hbRaddam.add<double>("temperatureNew",-5.0);
938  desc_hbRaddam.add<double>("intlumiOffset",150);
939  desc_hbRaddam.add<double>("depVsTemp",0.0631);
940  desc_hbRaddam.add<double>("intlumiToNeutrons",3.67e8);
941  desc_hbRaddam.add<std::vector<double>>("depVsNeutrons",{5.69e-11,7.90e-11});
942 
943  edm::ParameterSetDescription desc_hbUpgrade;
944  desc_hbUpgrade.add<std::vector<double>>("gain", std::vector<double>({0.00111111111111}));
945  desc_hbUpgrade.add<std::vector<double>>("gainWidth", std::vector<double>({0}));
946  desc_hbUpgrade.add<double>("pedestal", 18.0);
947  desc_hbUpgrade.add<double>("pedestalWidth", 5.0);
948  desc_hbUpgrade.add<int>("zsThreshold", 3);
949  desc_hbUpgrade.add<std::vector<double>>("qieOffset", std::vector<double>({0.0, 0.0, 0.0, 0.0}));
950  desc_hbUpgrade.add<std::vector<double>>("qieSlope", std::vector<double>({0.333, 0.333, 0.333, 0.333}));
951  desc_hbUpgrade.add<int>("qieType", 2);
952  desc_hbUpgrade.add<int>("mcShape",206);
953  desc_hbUpgrade.add<int>("recoShape",206);
954  desc_hbUpgrade.add<double>("photoelectronsToAnalog",57.5);
955  desc_hbUpgrade.add<std::vector<double>>("darkCurrent", std::vector<double>({0.055}));
956  desc_hbUpgrade.add<bool>("doRadiationDamage", true);
957  desc_hbUpgrade.add<edm::ParameterSetDescription>("radiationDamage", desc_hbRaddam);
958  desc.add<edm::ParameterSetDescription>("hbUpgrade", desc_hbUpgrade);
959 
961  desc_he.add<std::vector<double>>("gain", std::vector<double>({0.23}));
962  desc_he.add<std::vector<double>>("gainWidth", std::vector<double>({0}));
963  desc_he.add<double>("pedestal", 3.0);
964  desc_he.add<double>("pedestalWidth", 0.79);
965  desc_he.add<int>("zsThreshold", 9);
966  desc_he.add<std::vector<double>>("qieOffset", std::vector<double>({-0.38, 2.0, 7.6, 39.6}));
967  desc_he.add<std::vector<double>>("qieSlope", std::vector<double>({0.912, 0.916, 0.92, 0.922}));
968  desc_he.add<int>("qieType", 0);
969  desc_he.add<int>("mcShape",125);
970  desc_he.add<int>("recoShape",105);
971  desc_he.add<double>("photoelectronsToAnalog",0.0);
972  desc_he.add<std::vector<double>>("darkCurrent",std::vector<double>({0.0}));
973  desc_he.add<bool>("doRadiationDamage", false);
974  desc.add<edm::ParameterSetDescription>("he", desc_he);
975 
976  edm::ParameterSetDescription desc_heRaddam;
977  desc_heRaddam.add<double>("temperatureBase",20.0);
978  desc_heRaddam.add<double>("temperatureNew",5.0);
979  desc_heRaddam.add<double>("intlumiOffset",75);
980  desc_heRaddam.add<double>("depVsTemp",0.0631);
981  desc_heRaddam.add<double>("intlumiToNeutrons",2.92e8);
982  desc_heRaddam.add<std::vector<double>>("depVsNeutrons",{5.69e-11,7.90e-11});
983 
984  edm::ParameterSetDescription desc_heUpgrade;
985  desc_heUpgrade.add<std::vector<double>>("gain", std::vector<double>({0.00111111111111}));
986  desc_heUpgrade.add<std::vector<double>>("gainWidth", std::vector<double>({0}));
987  desc_heUpgrade.add<double>("pedestal", 18.0);
988  desc_heUpgrade.add<double>("pedestalWidth", 5.0);
989  desc_heUpgrade.add<int>("zsThreshold", 3);
990  desc_heUpgrade.add<std::vector<double>>("qieOffset", std::vector<double>({0.0, 0.0, 0.0, 0.0}));
991  desc_heUpgrade.add<std::vector<double>>("qieSlope", std::vector<double>({0.333, 0.333, 0.333, 0.333}));
992  desc_heUpgrade.add<int>("qieType", 2);
993  desc_heUpgrade.add<int>("mcShape",206);
994  desc_heUpgrade.add<int>("recoShape",206);
995  desc_heUpgrade.add<double>("photoelectronsToAnalog",57.5);
996  desc_heUpgrade.add<std::vector<double>>("darkCurrent", std::vector<double>({0.055}));
997  desc_heUpgrade.add<bool>("doRadiationDamage", true);
998  desc_heUpgrade.add<edm::ParameterSetDescription>("radiationDamage", desc_heRaddam);
999  desc.add<edm::ParameterSetDescription>("heUpgrade", desc_heUpgrade);
1000 
1002  desc_hf.add<std::vector<double>>("gain", std::vector<double>({0.14, 0.135}));
1003  desc_hf.add<std::vector<double>>("gainWidth", std::vector<double>({0.0, 0.0}));
1004  desc_hf.add<double>("pedestal", 3.0);
1005  desc_hf.add<double>("pedestalWidth", 0.84);
1006  desc_hf.add<int>("zsThreshold", -9999);
1007  desc_hf.add<std::vector<double>>("qieOffset", std::vector<double>({-0.87, 1.4, 7.8, -29.6}));
1008  desc_hf.add<std::vector<double>>("qieSlope", std::vector<double>({0.359, 0.358, 0.36, 0.367}));
1009  desc_hf.add<int>("qieType", 0);
1010  desc_hf.add<int>("mcShape",301);
1011  desc_hf.add<int>("recoShape",301);
1012  desc_hf.add<double>("photoelectronsToAnalog",0.0);
1013  desc_hf.add<std::vector<double>>("darkCurrent",std::vector<double>({0.0}));
1014  desc_hf.add<bool>("doRadiationDamage", false);
1015  desc.add<edm::ParameterSetDescription>("hf", desc_hf);
1016 
1017  edm::ParameterSetDescription desc_hfUpgrade;
1018  desc_hfUpgrade.add<std::vector<double>>("gain", std::vector<double>({0.14, 0.135}));
1019  desc_hfUpgrade.add<std::vector<double>>("gainWidth", std::vector<double>({0.0, 0.0}));
1020  desc_hfUpgrade.add<double>("pedestal", 13.33);
1021  desc_hfUpgrade.add<double>("pedestalWidth", 3.33);
1022  desc_hfUpgrade.add<int>("zsThreshold", -9999);
1023  desc_hfUpgrade.add<std::vector<double>>("qieOffset", std::vector<double>({0.0697, -0.7405, 12.38, -671.9}));
1024  desc_hfUpgrade.add<std::vector<double>>("qieSlope", std::vector<double>({0.297, 0.298, 0.298, 0.313}));
1025  desc_hfUpgrade.add<int>("qieType", 1);
1026  desc_hfUpgrade.add<int>("mcShape",301);
1027  desc_hfUpgrade.add<int>("recoShape",301);
1028  desc_hfUpgrade.add<double>("photoelectronsToAnalog",0.0);
1029  desc_hfUpgrade.add<std::vector<double>>("darkCurrent",std::vector<double>({0.0}));
1030  desc_hfUpgrade.add<bool>("doRadiationDamage", false);
1031  desc.add<edm::ParameterSetDescription>("hfUpgrade", desc_hfUpgrade);
1032 
1033  edm::ParameterSetDescription desc_hfrecal;
1034  desc_hfrecal.add<std::vector<double>>("HFdepthOneParameterA", std::vector<double>());
1035  desc_hfrecal.add<std::vector<double>>("HFdepthOneParameterB", std::vector<double>());
1036  desc_hfrecal.add<std::vector<double>>("HFdepthTwoParameterA", std::vector<double>());
1037  desc_hfrecal.add<std::vector<double>>("HFdepthTwoParameterB", std::vector<double>());
1038  desc.add<edm::ParameterSetDescription>("HFRecalParameterBlock", desc_hfrecal);
1039 
1041  desc_ho.add<std::vector<double>>("gain", std::vector<double>({0.006, 0.0087}));
1042  desc_ho.add<std::vector<double>>("gainWidth", std::vector<double>({0.0, 0.0}));
1043  desc_ho.add<double>("pedestal", 11.0);
1044  desc_ho.add<double>("pedestalWidth", 0.57);
1045  desc_ho.add<int>("zsThreshold", 24);
1046  desc_ho.add<std::vector<double>>("qieOffset", std::vector<double>({-0.44, 1.4, 7.1, 38.5}));
1047  desc_ho.add<std::vector<double>>("qieSlope", std::vector<double>({0.907, 0.915, 0.92, 0.921}));
1048  desc_ho.add<int>("qieType", 0);
1049  desc_ho.add<int>("mcShape",201);
1050  desc_ho.add<int>("recoShape",201);
1051  desc_ho.add<double>("photoelectronsToAnalog",4.0);
1052  desc_ho.add<std::vector<double>>("darkCurrent",std::vector<double>({0.0}));
1053  desc_ho.add<bool>("doRadiationDamage", false);
1054  desc.add<edm::ParameterSetDescription>("ho", desc_ho);
1055 
1056  edm::ParameterSetDescription validator_sipm;
1057  validator_sipm.add<int>("pixels",1);
1058  validator_sipm.add<double>("crosstalk",0);
1059  validator_sipm.add<double>("nonlin1",1);
1060  validator_sipm.add<double>("nonlin2",0);
1061  validator_sipm.add<double>("nonlin3",0);
1062  std::vector<edm::ParameterSet> default_sipm(1);
1063  desc.addVPSet("SiPMCharacteristics",validator_sipm,default_sipm);
1064 
1065  descriptions.addDefault(desc);
1066 }
void addDefault(ParameterSetDescription const &psetDescription)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void HcalHardcodeCalibrations::produce ( )
inline
std::unique_ptr< HcalChannelQuality > HcalHardcodeCalibrations::produceChannelQuality ( const HcalChannelQualityRcd rcd)
protected

Definition at line 453 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, egammaForCoreTracking_cff::depth, HcalDetId::depth(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDetId::ieta(), HcalDetId::ietaAbs(), HcalDetId::iphi(), HcalDbHardcode::killHE(), mps_fire::result, mps_update::status, testHEPlan1, and useIeta18depth1.

Referenced by HcalHardcodeCalibrations(), and produce().

453  {
454  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceChannelQuality-> ...";
456  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
457  const HcalTopology* topo=&(*htopo);
458 
459  auto result = std::make_unique<HcalChannelQuality>(topo);
460  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
461  for (auto cell : cells) {
462  // Special: removal of (non-instrumented) layer "-1"("nose") = depth 1
463  // from Upgrade HE, either from
464  // (i) HEP17 sector in 2017 or
465  // (ii) the entire HE rin=18 from 2018 through Run 3.
466  // May require a revision by 2021.
467 
468  uint32_t status = 0;
469 
470  if ( !(cell.isHcalZDCDetId())) {
471 
472  HcalDetId hid = HcalDetId(cell);
473  int iphi = hid.iphi();
474  int ieta = hid.ieta();
475  int absieta = hid.ietaAbs();
476  int depth = hid.depth();
477 
478  // specific HEP17 sector (2017 only)
479  bool isHEP17 = (iphi >= 63) && (iphi <= 66) && (ieta > 0);
480  // |ieta|=18, depth=1
481  bool is18d1 = (absieta == 18) && (depth ==1);
482 
483  if( (!useIeta18depth1 && is18d1 ) &&
484  ((testHEPlan1 && isHEP17) || (!testHEPlan1))) {
485  status = 0x8002; // dead cell
486  }
487  }
488 
489  HcalChannelStatus item(cell.rawId(),status);
490  result->addValues(item);
491  }
492 
493 
494 
495  return result;
496 }
const bool killHE() const
int depth() const
get the tower depth
Definition: HcalDetId.h:166
int ieta() const
get the cell ieta
Definition: HcalDetId.h:159
int ietaAbs() const
get the absolute value of the cell ieta
Definition: HcalDetId.h:154
int iphi() const
get the cell iphi
Definition: HcalDetId.h:161
std::unique_ptr< HcalDcsMap > HcalHardcodeCalibrations::produceDcsMap ( const HcalDcsMapRcd rcd)
protected

Definition at line 716 of file HcalHardcodeCalibrations.cc.

References dbHardcode, and HcalDbHardcode::makeHardcodeDcsMap().

Referenced by HcalHardcodeCalibrations(), and produce().

716  {
717  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceDcsMap-> ...";
718 
720 }
std::unique_ptr< HcalDcsMap > makeHardcodeDcsMap() const
std::unique_ptr< HcalDcsValues > HcalHardcodeCalibrations::produceDcsValues ( const HcalDcsRcd rcd)
protected

Definition at line 710 of file HcalHardcodeCalibrations.cc.

References mps_fire::result.

Referenced by HcalHardcodeCalibrations(), and produce().

710  {
711  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceDcsValues-> ...";
712  auto result = std::make_unique<HcalDcsValues>();
713  return result;
714 }
std::unique_ptr< HcalPedestals > HcalHardcodeCalibrations::produceEffectivePedestals ( const HcalPedestalsRcd rcd)
protected

Definition at line 368 of file HcalHardcodeCalibrations.cc.

References producePedestals_().

Referenced by HcalHardcodeCalibrations(), and produce().

368  {
369  return producePedestals_(rec,true);
370 }
std::unique_ptr< HcalPedestals > producePedestals_(const HcalPedestalsRcd &rcd, bool eff)
std::unique_ptr< HcalPedestalWidths > HcalHardcodeCalibrations::produceEffectivePedestalWidths ( const HcalPedestalWidthsRcd rcd)
protected

Definition at line 376 of file HcalHardcodeCalibrations.cc.

References producePedestalWidths_().

Referenced by HcalHardcodeCalibrations(), and produce().

376  {
377  return producePedestalWidths_(rec,true);
378 }
std::unique_ptr< HcalPedestalWidths > producePedestalWidths_(const HcalPedestalWidthsRcd &rcd, bool eff)
std::unique_ptr< HcalElectronicsMap > HcalHardcodeCalibrations::produceElectronicsMap ( const HcalElectronicsMapRcd rcd)
protected

Definition at line 657 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::killHE(), and HcalDbHardcode::makeHardcodeMap().

Referenced by HcalHardcodeCalibrations(), and produce().

657  {
658  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceElectronicsMap-> ...";
660  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
661  const HcalTopology* topo=&(*htopo);
662 
663  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
664  return dbHardcode.makeHardcodeMap(cells);
665 }
const bool killHE() const
std::unique_ptr< HcalElectronicsMap > makeHardcodeMap(const std::vector< HcalGenericDetId > &cells) const
std::unique_ptr< HcalFlagHFDigiTimeParams > HcalHardcodeCalibrations::produceFlagHFDigiTimeParams ( const HcalFlagHFDigiTimeParamsRcd rcd)
protected

Definition at line 812 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::killHE(), and mps_fire::result.

Referenced by HcalHardcodeCalibrations(), and produce().

812  {
813  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceFlagHFDigiTimeParams-> ...";
815  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
816  const HcalTopology* topo=&(*htopo);
817 
818  auto result = std::make_unique<HcalFlagHFDigiTimeParams>(topo);
819  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
820 
821  std::vector<double> coef;
822  coef.push_back(0.93);
823  coef.push_back(-0.38275);
824  coef.push_back(-0.012667);
825 
826  for (auto cell : cells) {
827  HcalFlagHFDigiTimeParam item(cell.rawId(),
828  1, //firstsample
829  3, // samplestoadd
830  2, //expectedpeak
831  40., // min energy threshold
832  coef // coefficients
833  );
834  result->addValues(item);
835  }
836  return result;
837 }
const bool killHE() const
std::unique_ptr< HcalFrontEndMap > HcalHardcodeCalibrations::produceFrontEndMap ( const HcalFrontEndMapRcd rcd)
protected

Definition at line 840 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::killHE(), and HcalDbHardcode::makeHardcodeFrontEndMap().

Referenced by HcalHardcodeCalibrations(), and produce().

840  {
841  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceFrontEndMap-> ...";
843  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
844  const HcalTopology* topo=&(*htopo);
845  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
846 
847  return dbHardcode.makeHardcodeFrontEndMap(cells);
848 }
const bool killHE() const
void makeHardcodeFrontEndMap(HcalFrontEndMap &emap, const std::vector< HcalGenericDetId > &cells) const
std::unique_ptr< HcalGains > HcalHardcodeCalibrations::produceGains ( const HcalGainsRcd rcd)
protected

Definition at line 380 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::killHE(), HcalDbHardcode::makeGain(), and mps_fire::result.

Referenced by HcalHardcodeCalibrations(), and produce().

380  {
381  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceGains-> ...";
383  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
384  const HcalTopology* topo=&(*htopo);
385 
386  auto result = std::make_unique<HcalGains>(topo);
387  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
388  for (auto cell : cells) {
389  HcalGain item = dbHardcode.makeGain (cell);
390  result->addValues(item);
391  }
392  return result;
393 }
const bool killHE() const
HcalGain makeGain(HcalGenericDetId fId, bool fSmear=false) const
std::unique_ptr< HcalGainWidths > HcalHardcodeCalibrations::produceGainWidths ( const HcalGainWidthsRcd rcd)
protected

Definition at line 395 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::killHE(), HcalDbHardcode::makeGainWidth(), mps_fire::result, and switchGainWidthsForTrigPrims.

Referenced by HcalHardcodeCalibrations(), and produce().

395  {
396  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceGainWidths-> ...";
398  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
399  const HcalTopology* topo=&(*htopo);
400 
401  auto result = std::make_unique<HcalGainWidths>(topo);
402  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
403  for (auto cell : cells) {
404 
405  // for Upgrade - include TrigPrims, for regular case - only HcalDetId
407  HcalGainWidth item = dbHardcode.makeGainWidth (cell);
408  result->addValues(item);
409  } else if (!cell.isHcalTrigTowerDetId()) {
410  HcalGainWidth item = dbHardcode.makeGainWidth (cell);
411  result->addValues(item);
412  }
413  }
414  return result;
415 }
const bool killHE() const
HcalGainWidth makeGainWidth(HcalGenericDetId fId) const
std::unique_ptr< HcalL1TriggerObjects > HcalHardcodeCalibrations::produceL1TriggerObjects ( const HcalL1TriggerObjectsRcd rcd)
protected

Definition at line 638 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::killHE(), and mps_fire::result.

Referenced by HcalHardcodeCalibrations(), and produce().

638  {
639  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceL1TriggerObjects-> ...";
641  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
642  const HcalTopology* topo=&(*htopo);
643 
644  auto result = std::make_unique<HcalL1TriggerObjects>(topo);
645  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
646  for (auto cell : cells) {
647  HcalL1TriggerObject item(cell.rawId(),0., 1., 0);
648  result->addValues(item);
649  }
650  // add tag and algo values
651  result->setTagString("hardcoded");
652  result->setAlgoString("hardcoded");
653  return result;
654 }
const bool killHE() const
std::unique_ptr< HcalLongRecoParams > HcalHardcodeCalibrations::produceLongRecoParams ( const HcalLongRecoParamsRcd rcd)
protected

Definition at line 752 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::killHE(), and mps_fire::result.

Referenced by HcalHardcodeCalibrations(), and produce().

752  {
753  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceLongRecoParams-> ...";
755  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
756  const HcalTopology* topo=&(*htopo);
757 
758  auto result = std::make_unique<HcalLongRecoParams>(topo);
759  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
760  std::vector <unsigned int> mSignal;
761  mSignal.push_back(4);
762  mSignal.push_back(5);
763  mSignal.push_back(6);
764  std::vector <unsigned int> mNoise;
765  mNoise.push_back(1);
766  mNoise.push_back(2);
767  mNoise.push_back(3);
768  for (auto cell : cells) {
769  if (cell.isHcalZDCDetId())
770  {
771  HcalLongRecoParam item(cell.rawId(),mSignal,mNoise);
772  result->addValues(item);
773  }
774  }
775  return result;
776 }
const bool killHE() const
std::unique_ptr< HcalLUTCorrs > HcalHardcodeCalibrations::produceLUTCorrs ( const HcalLUTCorrsRcd rcd)
protected

Definition at line 577 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::killHE(), and mps_fire::result.

Referenced by HcalHardcodeCalibrations(), and produce().

577  {
578  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceLUTCorrs-> ...";
580  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
581  const HcalTopology* topo=&(*htopo);
582 
583  auto result = std::make_unique<HcalLUTCorrs>(topo);
584  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
585  for (auto cell : cells) {
586  HcalLUTCorr item(cell.rawId(),1.0);
587  result->addValues(item);
588  }
589  return result;
590 }
const bool killHE() const
std::unique_ptr< HcalLutMetadata > HcalHardcodeCalibrations::produceLutMetadata ( const HcalLutMetadataRcd rcd)
protected

Definition at line 682 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::killHE(), mps_fire::result, and electronIdCutBased_cfi::threshold.

Referenced by HcalHardcodeCalibrations(), and produce().

682  {
683  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceLutMetadata-> ...";
685  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
686  const HcalTopology* topo=&(*htopo);
687 
688  auto result = std::make_unique<HcalLutMetadata>(topo);
689 
690  result->setRctLsb( 0.5 );
691  result->setNominalGain(0.177); // for HBHE SiPMs
692 
693  const std::vector <HcalGenericDetId>& cells = allCells(*topo,dbHardcode.killHE());
694  for (const auto& cell: cells) {
695  float rcalib = 1.;
696  int granularity = 1;
697  int threshold = 0;
698 
699  if (cell.isHcalTrigTowerDetId()) {
700  rcalib = 0.;
701  }
702 
703  HcalLutMetadatum item(cell.rawId(), rcalib, granularity, threshold);
704  result->addValues(item);
705  }
706 
707  return result;
708 }
const bool killHE() const
std::unique_ptr< HcalMCParams > HcalHardcodeCalibrations::produceMCParams ( const HcalMCParamsRcd rcd)
protected

Definition at line 793 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::killHE(), HcalDbHardcode::makeMCParam(), and mps_fire::result.

Referenced by HcalHardcodeCalibrations(), and produce().

793  {
794 
795 
796  // std::cout << std::endl << " .... HcalHardcodeCalibrations::produceMCParams ->"<< std::endl;
797 
798  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceMCParams-> ...";
800  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
801  const HcalTopology* topo=&(*htopo);
802  auto result = std::make_unique<HcalMCParams>(topo);
803  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
804  for (auto cell : cells) {
805  HcalMCParam item = dbHardcode.makeMCParam (cell);
806  result->addValues(item);
807  }
808  return result;
809 }
HcalMCParam makeMCParam(HcalGenericDetId fId) const
const bool killHE() const
std::unique_ptr< HcalPedestals > HcalHardcodeCalibrations::producePedestals ( const HcalPedestalsRcd rcd)
protected

Definition at line 364 of file HcalHardcodeCalibrations.cc.

References producePedestals_().

Referenced by HcalHardcodeCalibrations(), and produce().

364  {
365  return producePedestals_(rec,false);
366 }
std::unique_ptr< HcalPedestals > producePedestals_(const HcalPedestalsRcd &rcd, bool eff)
std::unique_ptr< HcalPedestals > HcalHardcodeCalibrations::producePedestals_ ( const HcalPedestalsRcd rcd,
bool  eff 
)
protected

Definition at line 332 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), iLumi, HcalDbHardcode::killHE(), HcalDbHardcode::makePedestal(), mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by produce(), produceEffectivePedestals(), and producePedestals().

332  {
333  std::string seff = eff ? "Effective" : "";
334  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produce" << seff << "Pedestals-> ...";
336  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
337  const HcalTopology* topo=&(*htopo);
338 
339  auto result = std::make_unique<HcalPedestals>(topo,false);
340  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
341  for (auto cell : cells) {
342  HcalPedestal item = dbHardcode.makePedestal (cell, false, eff, topo, iLumi);
343  result->addValues(item);
344  }
345  return result;
346 }
const bool killHE() const
HcalPedestal makePedestal(HcalGenericDetId fId, bool fSmear, bool eff, const HcalTopology *topo, double intlumi)
std::unique_ptr< HcalPedestalWidths > HcalHardcodeCalibrations::producePedestalWidths ( const HcalPedestalWidthsRcd rcd)
protected

Definition at line 372 of file HcalHardcodeCalibrations.cc.

References producePedestalWidths_().

Referenced by HcalHardcodeCalibrations(), and produce().

372  {
373  return producePedestalWidths_(rec,false);
374 }
std::unique_ptr< HcalPedestalWidths > producePedestalWidths_(const HcalPedestalWidthsRcd &rcd, bool eff)
std::unique_ptr< HcalPedestalWidths > HcalHardcodeCalibrations::producePedestalWidths_ ( const HcalPedestalWidthsRcd rcd,
bool  eff 
)
protected

Definition at line 348 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), iLumi, HcalDbHardcode::killHE(), HcalDbHardcode::makePedestalWidth(), mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by produce(), produceEffectivePedestalWidths(), and producePedestalWidths().

348  {
349  std::string seff = eff ? "Effective" : "";
350  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produce" << seff << "PedestalWidths-> ...";
352  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
353  const HcalTopology* topo=&(*htopo);
354 
355  auto result = std::make_unique<HcalPedestalWidths>(topo,false);
356  const std::vector <HcalGenericDetId>& cells = allCells(*htopo, dbHardcode.killHE());
357  for (auto cell : cells) {
358  HcalPedestalWidth item = dbHardcode.makePedestalWidth (cell, eff, topo, iLumi);
359  result->addValues(item);
360  }
361  return result;
362 }
const bool killHE() const
HcalPedestalWidth makePedestalWidth(HcalGenericDetId fId, bool eff, const HcalTopology *topo, double intlumi)
std::unique_ptr< HcalPFCorrs > HcalHardcodeCalibrations::producePFCorrs ( const HcalPFCorrsRcd rcd)
protected

Definition at line 592 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::killHE(), and mps_fire::result.

Referenced by HcalHardcodeCalibrations(), and produce().

592  {
593  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::producePFCorrs-> ...";
595  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
596  const HcalTopology* topo=&(*htopo);
597 
598  auto result = std::make_unique<HcalPFCorrs>(topo);
599  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
600  for (auto cell : cells) {
601  HcalPFCorr item(cell.rawId(),1.0);
602  result->addValues(item);
603  }
604  return result;
605 }
const bool killHE() const
std::unique_ptr< HcalQIEData > HcalHardcodeCalibrations::produceQIEData ( const HcalQIEDataRcd rcd)
protected

Definition at line 417 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::killHE(), HcalDbHardcode::makeQIECoder(), and mps_fire::result.

Referenced by HcalHardcodeCalibrations(), and produce().

417  {
418  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceQIEData-> ...";
419 
420  /*
421  std::cout << std::endl << ">>> HcalHardcodeCalibrations::produceQIEData"
422  << std::endl;
423  */
424 
426  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
427  const HcalTopology* topo=&(*htopo);
428 
429  auto result = std::make_unique<HcalQIEData>(topo);
430  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
431  for (auto cell : cells) {
432  HcalQIECoder coder = dbHardcode.makeQIECoder (cell);
433  result->addCoder (coder);
434  }
435  return result;
436 }
const bool killHE() const
HcalQIECoder makeQIECoder(HcalGenericDetId fId) const
std::unique_ptr< HcalQIETypes > HcalHardcodeCalibrations::produceQIETypes ( const HcalQIETypesRcd rcd)
protected

Definition at line 438 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::killHE(), HcalDbHardcode::makeQIEType(), and mps_fire::result.

Referenced by HcalHardcodeCalibrations(), and produce().

438  {
439  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceQIETypes-> ...";
441  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
442  const HcalTopology* topo=&(*htopo);
443 
444  auto result = std::make_unique<HcalQIETypes>(topo);
445  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
446  for (auto cell : cells) {
447  HcalQIEType item = dbHardcode.makeQIEType(cell);
448  result->addValues(item);
449  }
450  return result;
451 }
const bool killHE() const
HcalQIEType makeQIEType(HcalGenericDetId fId) const
std::unique_ptr< HcalRecoParams > HcalHardcodeCalibrations::produceRecoParams ( const HcalRecoParamsRcd rcd)
protected

Definition at line 722 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::killHE(), HcalDbHardcode::makeRecoParam(), and mps_fire::result.

Referenced by HcalHardcodeCalibrations(), and produce().

722  {
723  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceRecoParams-> ...";
725  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
726  const HcalTopology* topo=&(*htopo);
727 
728  auto result = std::make_unique<HcalRecoParams>(topo);
729  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
730  for (auto cell : cells) {
731  HcalRecoParam item = dbHardcode.makeRecoParam (cell);
732  result->addValues(item);
733  }
734  return result;
735 }
const bool killHE() const
HcalRecoParam makeRecoParam(HcalGenericDetId fId) const
std::unique_ptr< HcalRespCorrs > HcalHardcodeCalibrations::produceRespCorrs ( const HcalRespCorrsRcd rcd)
protected

Definition at line 499 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, corr, gather_cfg::cout, dbHardcode, egammaForCoreTracking_cff::depth, HcalDetId::depth(), HcalTopology::getDepthSegmentation(), HcalDbHardcode::getLayersInDepth(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), hb_recalibration, HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, he_recalibration, hf_recalibration, mps_fire::i, HcalDetId::ieta(), iLumi, HcalDbHardcode::killHE(), HcalTopology::lastHBRing(), HcalTopology::lastHERing(), SiStripPI::max, maxEta, mps_fire::result, setHBdsegm, setHEdsegm, and useLayer0Weight.

Referenced by HcalHardcodeCalibrations(), and produce().

499  {
500  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceRespCorrs-> ...";
502  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
503  const HcalTopology* topo=&(*htopo);
504 
505  //set depth segmentation for HB/HE recalib - only happens once
507  std::vector<std::vector<int>> m_segmentation;
508  int maxEta = std::max(topo->lastHERing(),topo->lastHBRing());
509  m_segmentation.resize(maxEta);
510  for (int i = 0; i < maxEta; i++) {
511  topo->getDepthSegmentation(i+1,m_segmentation[i]);
512  }
515  rcd.getRecord<HBHEDarkeningRecord>().get("HE",hdark);
516  he_recalibration->setup(m_segmentation,&*hdark);
517  setHEdsegm = true;
518  }
521  rcd.getRecord<HBHEDarkeningRecord>().get("HB",hdark);
522  hb_recalibration->setup(m_segmentation,&*hdark);
523  setHBdsegm = true;
524  }
525  }
526 
527  auto result = std::make_unique<HcalRespCorrs>(topo);
528  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
529  for (const auto& cell : cells) {
530 
531  double corr = 1.0;
532 
533  //check for layer 0 reweighting: when depth 1 has only one layer, it is layer 0
534  if( useLayer0Weight &&
535  ((cell.genericSubdet() == HcalGenericDetId::HcalGenEndcap) || (cell.genericSubdet() == HcalGenericDetId::HcalGenBarrel)) &&
536  (HcalDetId(cell).depth()==1 && dbHardcode.getLayersInDepth(HcalDetId(cell).ietaAbs(),HcalDetId(cell).depth(),topo)==1) )
537  {
538  //layer 0 is thicker than other layers (9mm vs 3.7mm) and brighter (Bicron vs SCSN81)
539  //in Run1/Run2 (pre-2017 for HE), ODU for layer 0 had neutral density filter attached
540  //NDF was simulated as weight of 0.5 applied to Geant energy deposits
541  //for Phase1, NDF is removed - simulated as weight of 1.2 applied to Geant energy deposits
542  //to maintain RECO calibrations, move the layer 0 energy scale back to its previous state using respcorrs
543  corr = 0.5/1.2;
544  }
545 
546  if ((hb_recalibration != nullptr ) && (cell.genericSubdet() == HcalGenericDetId::HcalGenBarrel)) {
547  int depth_ = HcalDetId(cell).depth();
548  int ieta_ = HcalDetId(cell).ieta();
549  corr *= hb_recalibration->getCorr(ieta_, depth_);
550 #ifdef DebugLog
551  std::cout << "HB ieta, depth = " << ieta_ << ", " << depth_ << " corr = " << corr << std::endl;
552 #endif
553  }
554  else if ((he_recalibration != nullptr ) && (cell.genericSubdet() == HcalGenericDetId::HcalGenEndcap)) {
555  int depth_ = HcalDetId(cell).depth();
556  int ieta_ = HcalDetId(cell).ieta();
557  corr *= he_recalibration->getCorr(ieta_, depth_);
558 #ifdef DebugLog
559  std::cout << "HE ieta, depth = " << ieta_ << ", " << depth_ << " corr = " << corr << std::endl;
560 #endif
561  }
562  else if ((hf_recalibration != nullptr ) && (cell.genericSubdet() == HcalGenericDetId::HcalGenForward)) {
563  int depth_ = HcalDetId(cell).depth();
564  int ieta_ = HcalDetId(cell).ieta();
565  corr = hf_recalibration->getCorr(ieta_, depth_, iLumi);
566 #ifdef DebugLog
567  std::cout << "HF ieta, depth = " << ieta_ << ", " << depth_ << " corr = " << corr << std::endl;
568 #endif
569  }
570 
571  HcalRespCorr item(cell.rawId(),corr);
572  result->addValues(item);
573  }
574  return result;
575 }
void getDepthSegmentation(const unsigned ring, std::vector< int > &readoutDepths, const bool flag=false) const
const bool killHE() const
int lastHBRing() const
Definition: HcalTopology.h:88
double maxEta
int depth() const
get the tower depth
Definition: HcalDetId.h:166
std::unique_ptr< HFRecalibration > hf_recalibration
int ieta() const
get the cell ieta
Definition: HcalDetId.h:159
std::unique_ptr< HBHERecalibration > hb_recalibration
std::unique_ptr< HBHERecalibration > he_recalibration
JetCorrectorParameters corr
Definition: classes.h:5
int getLayersInDepth(int ieta, int depth, const HcalTopology *topo)
int lastHERing() const
Definition: HcalTopology.h:90
std::unique_ptr< HcalSiPMCharacteristics > HcalHardcodeCalibrations::produceSiPMCharacteristics ( const HcalSiPMCharacteristicsRcd rcd)
protected

Definition at line 866 of file HcalHardcodeCalibrations.cc.

References dbHardcode, and HcalDbHardcode::makeHardcodeSiPMCharacteristics().

Referenced by HcalHardcodeCalibrations(), and produce().

866  {
867  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceSiPMCharacteristics-> ...";
868 
870 }
std::unique_ptr< HcalSiPMCharacteristics > makeHardcodeSiPMCharacteristics() const
std::unique_ptr< HcalSiPMParameters > HcalHardcodeCalibrations::produceSiPMParameters ( const HcalSiPMParametersRcd rcd)
protected

Definition at line 851 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), iLumi, HcalDbHardcode::killHE(), HcalDbHardcode::makeHardcodeSiPMParameter(), and mps_fire::result.

Referenced by HcalHardcodeCalibrations(), and produce().

851  {
852  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceSiPMParameters-> ...";
854  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
855  const HcalTopology* topo=&(*htopo);
856 
857  auto result = std::make_unique<HcalSiPMParameters>(topo);
858  const std::vector <HcalGenericDetId>& cells = allCells(*htopo, dbHardcode.killHE());
859  for (auto cell : cells) {
861  result->addValues(item);
862  }
863  return result;
864 }
const bool killHE() const
HcalSiPMParameter makeHardcodeSiPMParameter(HcalGenericDetId fId, const HcalTopology *topo, double intlumi)
std::unique_ptr< HcalTimeCorrs > HcalHardcodeCalibrations::produceTimeCorrs ( const HcalTimeCorrsRcd rcd)
protected

Definition at line 607 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::killHE(), and mps_fire::result.

Referenced by HcalHardcodeCalibrations(), and produce().

607  {
608  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceTimeCorrs-> ...";
610  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
611  const HcalTopology* topo=&(*htopo);
612 
613  auto result = std::make_unique<HcalTimeCorrs>(topo);
614  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
615  for (auto cell : cells) {
616  HcalTimeCorr item(cell.rawId(),0.0);
617  result->addValues(item);
618  }
619  return result;
620 }
const bool killHE() const
std::unique_ptr< HcalTimingParams > HcalHardcodeCalibrations::produceTimingParams ( const HcalTimingParamsRcd rcd)
protected

Definition at line 737 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::killHE(), HcalDbHardcode::makeTimingParam(), and mps_fire::result.

Referenced by produce().

737  {
738  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceTimingParams-> ...";
740  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
741  const HcalTopology* topo=&(*htopo);
742 
743  auto result = std::make_unique<HcalTimingParams>(topo);
744  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
745  for (auto cell : cells) {
747  result->addValues(item);
748  }
749  return result;
750 }
const bool killHE() const
HcalTimingParam makeTimingParam(HcalGenericDetId fId) const
std::unique_ptr< HcalTPChannelParameters > HcalHardcodeCalibrations::produceTPChannelParameters ( const HcalTPChannelParametersRcd rcd)
protected

Definition at line 873 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::killHE(), HcalDbHardcode::makeHardcodeTPChannelParameter(), and mps_fire::result.

Referenced by HcalHardcodeCalibrations(), and produce().

873  {
874  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceTPChannelParameters-> ...";
876  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
877  const HcalTopology* topo=&(*htopo);
878 
879  auto result = std::make_unique<HcalTPChannelParameters>(topo);
880  const std::vector <HcalGenericDetId>& cells = allCells(*htopo, dbHardcode.killHE());
881  for (auto cell : cells) {
883  result->addValues(item);
884  }
885  return result;
886 }
const bool killHE() const
HcalTPChannelParameter makeHardcodeTPChannelParameter(HcalGenericDetId fId) const
std::unique_ptr< HcalTPParameters > HcalHardcodeCalibrations::produceTPParameters ( const HcalTPParametersRcd rcd)
protected

Definition at line 888 of file HcalHardcodeCalibrations.cc.

References dbHardcode, HcalDbHardcode::makeHardcodeTPParameters(), and mps_fire::result.

Referenced by HcalHardcodeCalibrations(), and produce().

888  {
889  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceTPParameters-> ...";
890 
891  auto result = std::make_unique<HcalTPParameters>();
893  return result;
894 }
void makeHardcodeTPParameters(HcalTPParameters &tppar) const
std::unique_ptr< HcalValidationCorrs > HcalHardcodeCalibrations::produceValidationCorrs ( const HcalValidationCorrsRcd rcd)
protected

Definition at line 667 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::killHE(), and mps_fire::result.

Referenced by HcalHardcodeCalibrations(), and produce().

667  {
668  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceValidationCorrs-> ...";
670  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
671  const HcalTopology* topo=&(*htopo);
672 
673  auto result = std::make_unique<HcalValidationCorrs>(topo);
674  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
675  for (auto cell : cells) {
676  HcalValidationCorr item(cell.rawId(),1.0);
677  result->addValues(item);
678  }
679  return result;
680 }
const bool killHE() const
std::unique_ptr< HcalZDCLowGainFractions > HcalHardcodeCalibrations::produceZDCLowGainFractions ( const HcalZDCLowGainFractionsRcd rcd)
protected

Definition at line 778 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::killHE(), and mps_fire::result.

Referenced by HcalHardcodeCalibrations(), and produce().

778  {
779  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceZDCLowGainFractions-> ...";
781  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
782  const HcalTopology* topo=&(*htopo);
783 
784  auto result = std::make_unique<HcalZDCLowGainFractions>(topo);
785  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
786  for (auto cell : cells) {
787  HcalZDCLowGainFraction item(cell.rawId(),0.0);
788  result->addValues(item);
789  }
790  return result;
791 }
const bool killHE() const
std::unique_ptr< HcalZSThresholds > HcalHardcodeCalibrations::produceZSThresholds ( const HcalZSThresholdsRcd rcd)
protected

Definition at line 622 of file HcalHardcodeCalibrations.cc.

References postprocess-scan-build::cells, dbHardcode, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::killHE(), HcalDbHardcode::makeZSThreshold(), and mps_fire::result.

Referenced by HcalHardcodeCalibrations(), and produce().

622  {
623  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceZSThresholds-> ...";
625  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
626  const HcalTopology* topo=&(*htopo);
627 
628  auto result = std::make_unique<HcalZSThresholds>(topo);
629  const std::vector <HcalGenericDetId>& cells = allCells(*topo, dbHardcode.killHE());
630  for (auto cell : cells) {
632  result->addValues(item);
633  }
634  return result;
635 }
const bool killHE() const
HcalZSThreshold makeZSThreshold(HcalGenericDetId fId) const
void HcalHardcodeCalibrations::setIntervalFor ( const edm::eventsetup::EventSetupRecordKey iKey,
const edm::IOVSyncValue iTime,
edm::ValidityInterval oInterval 
)
overrideprotectedvirtual

Implements edm::EventSetupRecordIntervalFinder.

Definition at line 326 of file HcalHardcodeCalibrations.cc.

References edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), edm::IOVSyncValue::eventID(), edm::eventsetup::EventSetupRecordKey::name(), record, AlCaHLTBitMon_QueryRunRegistry::string, edm::IOVSyncValue::time(), and edm::Timestamp::value().

Referenced by produce().

326  {
327  std::string record = iKey.name ();
328  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::setIntervalFor-> key: " << record << " time: " << iTime.eventID() << '/' << iTime.time ().value ();
330 }
const EventID & eventID() const
Definition: IOVSyncValue.h:40
JetCorrectorParameters::Record record
Definition: classes.h:7
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:82
std::pair< Time_t, Time_t > ValidityInterval
Definition: Time.h:19
static const IOVSyncValue & beginOfTime()
Definition: IOVSyncValue.cc:88
const Timestamp & time() const
Definition: IOVSyncValue.h:42
TimeValue_t value() const
Definition: Timestamp.h:56

Member Data Documentation

HcalDbHardcode HcalHardcodeCalibrations::dbHardcode
private
std::unique_ptr<HBHERecalibration> HcalHardcodeCalibrations::hb_recalibration
private

Definition at line 110 of file HcalHardcodeCalibrations.h.

Referenced by HcalHardcodeCalibrations(), and produceRespCorrs().

std::unique_ptr<HBHERecalibration> HcalHardcodeCalibrations::he_recalibration
private

Definition at line 111 of file HcalHardcodeCalibrations.h.

Referenced by HcalHardcodeCalibrations(), and produceRespCorrs().

std::unique_ptr<HFRecalibration> HcalHardcodeCalibrations::hf_recalibration
private

Definition at line 112 of file HcalHardcodeCalibrations.h.

Referenced by HcalHardcodeCalibrations(), and produceRespCorrs().

double HcalHardcodeCalibrations::iLumi
private
bool HcalHardcodeCalibrations::setHBdsegm
private

Definition at line 115 of file HcalHardcodeCalibrations.h.

Referenced by produceRespCorrs().

bool HcalHardcodeCalibrations::setHEdsegm
private

Definition at line 114 of file HcalHardcodeCalibrations.h.

Referenced by produceRespCorrs().

bool HcalHardcodeCalibrations::switchGainWidthsForTrigPrims
private

Definition at line 113 of file HcalHardcodeCalibrations.h.

Referenced by HcalHardcodeCalibrations(), and produceGainWidths().

bool HcalHardcodeCalibrations::testHEPlan1
private

Definition at line 118 of file HcalHardcodeCalibrations.h.

Referenced by HcalHardcodeCalibrations(), and produceChannelQuality().

bool HcalHardcodeCalibrations::useIeta18depth1
private

Definition at line 117 of file HcalHardcodeCalibrations.h.

Referenced by HcalHardcodeCalibrations(), and produceChannelQuality().

bool HcalHardcodeCalibrations::useLayer0Weight
private

Definition at line 116 of file HcalHardcodeCalibrations.h.

Referenced by HcalHardcodeCalibrations(), and produceRespCorrs().