CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Protected 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 ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer ()
 
- 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 ()
 
- Public Member Functions inherited from edm::EventSetupRecordIntervalFinder
const
eventsetup::ComponentDescription
descriptionForFinder () const
 
 EventSetupRecordIntervalFinder ()
 
std::set
< eventsetup::EventSetupRecordKey
findingForRecords () const
 
const ValidityIntervalfindIntervalFor (const eventsetup::EventSetupRecordKey &, const IOVSyncValue &)
 
void setDescriptionForFinder (const eventsetup::ComponentDescription &iDescription)
 
virtual ~EventSetupRecordIntervalFinder ()
 

Protected Member Functions

std::auto_ptr< HcalChannelQualityproduceChannelQuality (const HcalChannelQualityRcd &rcd)
 
std::auto_ptr< HcalDcsMapproduceDcsMap (const HcalDcsMapRcd &rcd)
 
std::auto_ptr< HcalDcsValuesproduceDcsValues (const HcalDcsRcd &rcd)
 
std::auto_ptr< HcalElectronicsMapproduceElectronicsMap (const HcalElectronicsMapRcd &rcd)
 
std::auto_ptr
< HcalFlagHFDigiTimeParams
produceFlagHFDigiTimeParams (const HcalFlagHFDigiTimeParamsRcd &rcd)
 
std::auto_ptr< HcalGainsproduceGains (const HcalGainsRcd &rcd)
 
std::auto_ptr< HcalGainWidthsproduceGainWidths (const HcalGainWidthsRcd &rcd)
 
std::auto_ptr
< HcalL1TriggerObjects
produceL1TriggerObjects (const HcalL1TriggerObjectsRcd &rcd)
 
std::auto_ptr< HcalLongRecoParamsproduceLongRecoParams (const HcalLongRecoParamsRcd &rcd)
 
std::auto_ptr< HcalLUTCorrsproduceLUTCorrs (const HcalLUTCorrsRcd &rcd)
 
std::auto_ptr< HcalLutMetadataproduceLutMetadata (const HcalLutMetadataRcd &rcd)
 
std::auto_ptr< HcalMCParamsproduceMCParams (const HcalMCParamsRcd &rcd)
 
std::auto_ptr< HcalPedestalsproducePedestals (const HcalPedestalsRcd &rcd)
 
std::auto_ptr< HcalPedestalWidthsproducePedestalWidths (const HcalPedestalWidthsRcd &rcd)
 
std::auto_ptr< HcalPFCorrsproducePFCorrs (const HcalPFCorrsRcd &rcd)
 
std::auto_ptr< HcalQIEDataproduceQIEData (const HcalQIEDataRcd &rcd)
 
std::auto_ptr< HcalRecoParamsproduceRecoParams (const HcalRecoParamsRcd &rcd)
 
std::auto_ptr< HcalRespCorrsproduceRespCorrs (const HcalRespCorrsRcd &rcd)
 
std::auto_ptr< HcalTimeCorrsproduceTimeCorrs (const HcalTimeCorrsRcd &rcd)
 
std::auto_ptr< HcalTimingParamsproduceTimingParams (const HcalTimingParamsRcd &rcd)
 
std::auto_ptr
< HcalValidationCorrs
produceValidationCorrs (const HcalValidationCorrsRcd &rcd)
 
std::auto_ptr< HcalZSThresholdsproduceZSThresholds (const HcalZSThresholdsRcd &rcd)
 
virtual void setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
void setWhatProduced (T *iThis, const es::Label &iLabel=es::Label())
 
template<typename T >
void setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
void setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
void setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label())
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string())
 
virtual void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList)
 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 &)
 

Protected Attributes

bool h2mode_
 

Additional Inherited Members

- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair
< DataKey, boost::shared_ptr
< DataProxy > > > 
KeyedProxies
 
typedef std::vector
< EventSetupRecordKey
Keys
 
typedef std::map
< EventSetupRecordKey,
KeyedProxies
RecordProxies
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 

Detailed Description

Definition at line 40 of file HcalHardcodeCalibrations.h.

Constructor & Destructor Documentation

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

Definition at line 74 of file HcalHardcodeCalibrations.cc.

References cond::ecalcond::all, edm::ParameterSet::getUntrackedParameter(), summarizeEdmComparisonLogfiles::objectName, produceChannelQuality(), produceDcsMap(), produceDcsValues(), produceElectronicsMap(), produceFlagHFDigiTimeParams(), produceGains(), produceGainWidths(), produceL1TriggerObjects(), produceLongRecoParams(), produceLUTCorrs(), produceLutMetadata(), produceMCParams(), producePedestals(), producePedestalWidths(), producePFCorrs(), produceQIEData(), produceRecoParams(), produceRespCorrs(), produceTimeCorrs(), produceValidationCorrs(), produceZSThresholds(), and convertSQLitetoXML_cfg::toGet.

76 {
77  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::HcalHardcodeCalibrations->...";
78  //parsing record parameters
79  h2mode_=iConfig.getUntrackedParameter<bool>("H2Mode",false);
80  std::vector <std::string> toGet = iConfig.getUntrackedParameter <std::vector <std::string> > ("toGet");
81  for(std::vector <std::string>::iterator objectName = toGet.begin(); objectName != toGet.end(); ++objectName ) {
82  bool all = *objectName == "all";
83  if ((*objectName == "Pedestals") || all) {
85  findingRecord <HcalPedestalsRcd> ();
86  }
87  if ((*objectName == "PedestalWidths") || all) {
89  findingRecord <HcalPedestalWidthsRcd> ();
90  }
91  if ((*objectName == "Gains") || all) {
93  findingRecord <HcalGainsRcd> ();
94  }
95  if ((*objectName == "GainWidths") || all) {
97  findingRecord <HcalGainWidthsRcd> ();
98  }
99  if ((*objectName == "QIEData") || all) {
101  findingRecord <HcalQIEDataRcd> ();
102  }
103  if ((*objectName == "ChannelQuality") || (*objectName == "channelQuality") || all) {
105  findingRecord <HcalChannelQualityRcd> ();
106  }
107  if ((*objectName == "ElectronicsMap") || (*objectName == "electronicsMap") || all) {
109  findingRecord <HcalElectronicsMapRcd> ();
110  }
111  if ((*objectName == "ZSThresholds") || (*objectName == "zsThresholds") || all) {
113  findingRecord <HcalZSThresholdsRcd> ();
114  }
115  if ((*objectName == "RespCorrs") || (*objectName == "ResponseCorrection") || all) {
117  findingRecord <HcalRespCorrsRcd> ();
118  }
119  if ((*objectName == "LUTCorrs") || (*objectName == "LUTCorrection") || all) {
121  findingRecord <HcalLUTCorrsRcd> ();
122  }
123  if ((*objectName == "PFCorrs") || (*objectName == "PFCorrection") || all) {
125  findingRecord <HcalPFCorrsRcd> ();
126  }
127  if ((*objectName == "TimeCorrs") || (*objectName == "TimeCorrection") || all) {
129  findingRecord <HcalTimeCorrsRcd> ();
130  }
131  if ((*objectName == "L1TriggerObjects") || (*objectName == "L1Trigger") || all) {
133  findingRecord <HcalL1TriggerObjectsRcd> ();
134  }
135  if ((*objectName == "ValidationCorrs") || (*objectName == "ValidationCorrection") || all) {
137  findingRecord <HcalValidationCorrsRcd> ();
138  }
139  if ((*objectName == "LutMetadata") || (*objectName == "lutMetadata") || all) {
141  findingRecord <HcalLutMetadataRcd> ();
142  }
143  if ((*objectName == "DcsValues") || all) {
145  findingRecord <HcalDcsRcd> ();
146  }
147  if ((*objectName == "DcsMap") || (*objectName == "dcsMap") || all) {
149  findingRecord <HcalDcsMapRcd> ();
150  }
151  if ((*objectName == "RecoParams") || all) {
153  findingRecord <HcalRecoParamsRcd> ();
154  }
155  if ((*objectName == "LongRecoParams") || all) {
157  findingRecord <HcalLongRecoParamsRcd> ();
158  }
159  if ((*objectName == "MCParams") || all) {
161  findingRecord <HcalMCParamsRcd> ();
162  }
163  if ((*objectName == "FlagHFDigiTimeParams") || all) {
165  findingRecord <HcalFlagHFDigiTimeParamsRcd> ();
166  }
167  }
168 }
std::auto_ptr< HcalPedestalWidths > producePedestalWidths(const HcalPedestalWidthsRcd &rcd)
T getUntrackedParameter(std::string const &, T const &) const
std::auto_ptr< HcalLUTCorrs > produceLUTCorrs(const HcalLUTCorrsRcd &rcd)
std::auto_ptr< HcalDcsMap > produceDcsMap(const HcalDcsMapRcd &rcd)
std::auto_ptr< HcalQIEData > produceQIEData(const HcalQIEDataRcd &rcd)
std::auto_ptr< HcalLutMetadata > produceLutMetadata(const HcalLutMetadataRcd &rcd)
std::auto_ptr< HcalZSThresholds > produceZSThresholds(const HcalZSThresholdsRcd &rcd)
std::auto_ptr< HcalDcsValues > produceDcsValues(const HcalDcsRcd &rcd)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
std::auto_ptr< HcalChannelQuality > produceChannelQuality(const HcalChannelQualityRcd &rcd)
std::auto_ptr< HcalTimeCorrs > produceTimeCorrs(const HcalTimeCorrsRcd &rcd)
std::auto_ptr< HcalRecoParams > produceRecoParams(const HcalRecoParamsRcd &rcd)
std::auto_ptr< HcalGains > produceGains(const HcalGainsRcd &rcd)
std::auto_ptr< HcalRespCorrs > produceRespCorrs(const HcalRespCorrsRcd &rcd)
std::auto_ptr< HcalLongRecoParams > produceLongRecoParams(const HcalLongRecoParamsRcd &rcd)
std::auto_ptr< HcalElectronicsMap > produceElectronicsMap(const HcalElectronicsMapRcd &rcd)
std::auto_ptr< HcalPFCorrs > producePFCorrs(const HcalPFCorrsRcd &rcd)
std::auto_ptr< HcalMCParams > produceMCParams(const HcalMCParamsRcd &rcd)
std::auto_ptr< HcalFlagHFDigiTimeParams > produceFlagHFDigiTimeParams(const HcalFlagHFDigiTimeParamsRcd &rcd)
std::auto_ptr< HcalGainWidths > produceGainWidths(const HcalGainWidthsRcd &rcd)
std::auto_ptr< HcalValidationCorrs > produceValidationCorrs(const HcalValidationCorrsRcd &rcd)
std::auto_ptr< HcalPedestals > producePedestals(const HcalPedestalsRcd &rcd)
std::auto_ptr< HcalL1TriggerObjects > produceL1TriggerObjects(const HcalL1TriggerObjectsRcd &rcd)
HcalHardcodeCalibrations::~HcalHardcodeCalibrations ( )

Definition at line 171 of file HcalHardcodeCalibrations.cc.

172 {
173 }

Member Function Documentation

void HcalHardcodeCalibrations::produce ( )
inline
std::auto_ptr< HcalChannelQuality > HcalHardcodeCalibrations::produceChannelQuality ( const HcalChannelQualityRcd rcd)
protected

Definition at line 241 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

241  {
242  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceChannelQuality-> ...";
243  std::auto_ptr<HcalChannelQuality> result (new HcalChannelQuality ());
244  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
245  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
246  HcalChannelStatus item(cell->rawId(),0);
247  result->addValues(item,h2mode_);
248  }
249  return result;
250 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalDcsMap > HcalHardcodeCalibrations::produceDcsMap ( const HcalDcsMapRcd rcd)
protected

Definition at line 367 of file HcalHardcodeCalibrations.cc.

References HcalDbHardcode::makeHardcodeDcsMap(), and query::result.

Referenced by HcalHardcodeCalibrations().

367  {
368  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceDcsMap-> ...";
369 
370  std::auto_ptr<HcalDcsMap> result (new HcalDcsMap ());
372  return result;
373 }
void makeHardcodeDcsMap(HcalDcsMap &dcs_map)
tuple result
Definition: query.py:137
std::auto_ptr< HcalDcsValues > HcalHardcodeCalibrations::produceDcsValues ( const HcalDcsRcd rcd)
protected

Definition at line 361 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

361  {
362  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceDcsValues-> ...";
363  std::auto_ptr<HcalDcsValues> result(new HcalDcsValues);
364  return result;
365 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalElectronicsMap > HcalHardcodeCalibrations::produceElectronicsMap ( const HcalElectronicsMapRcd rcd)
protected

Definition at line 326 of file HcalHardcodeCalibrations.cc.

References HcalDbHardcode::makeHardcodeMap(), and query::result.

Referenced by HcalHardcodeCalibrations().

326  {
327  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceElectronicsMap-> ...";
328 
329  std::auto_ptr<HcalElectronicsMap> result (new HcalElectronicsMap ());
331  return result;
332 }
void makeHardcodeMap(HcalElectronicsMap &emap)
tuple result
Definition: query.py:137
std::auto_ptr< HcalFlagHFDigiTimeParams > HcalHardcodeCalibrations::produceFlagHFDigiTimeParams ( const HcalFlagHFDigiTimeParamsRcd rcd)
protected

Definition at line 429 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

429  {
430  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceFlagHFDigiTimeParams-> ...";
431  std::auto_ptr<HcalFlagHFDigiTimeParams> result (new HcalFlagHFDigiTimeParams ());
432  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
433 
434  std::vector<double> coef;
435  coef.push_back(0.93);
436  coef.push_back(-0.38275);
437  coef.push_back(-0.012667);
438 
439  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
440  HcalFlagHFDigiTimeParam item(cell->rawId(),
441  1, //firstsample
442  3, // samplestoadd
443  2, //expectedpeak
444  40., // min energy threshold
445  coef // coefficients
446  );
447  result->addValues(item,h2mode_);
448  }
449  return result;
450 } // produceFlagHFDigiTimeParams;
tuple result
Definition: query.py:137
std::auto_ptr< HcalGains > HcalHardcodeCalibrations::produceGains ( const HcalGainsRcd rcd)
protected

Definition at line 208 of file HcalHardcodeCalibrations.cc.

References HcalDbHardcode::makeGain(), and query::result.

Referenced by HcalHardcodeCalibrations().

208  {
209  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceGains-> ...";
210  std::auto_ptr<HcalGains> result (new HcalGains ());
211  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
212  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
213  HcalGain item = HcalDbHardcode::makeGain (*cell);
214  result->addValues(item,h2mode_);
215  }
216  return result;
217 }
HcalGain makeGain(HcalGenericDetId fId, bool fSmear=false)
tuple result
Definition: query.py:137
std::auto_ptr< HcalGainWidths > HcalHardcodeCalibrations::produceGainWidths ( const HcalGainWidthsRcd rcd)
protected

Definition at line 219 of file HcalHardcodeCalibrations.cc.

References HcalDbHardcode::makeGainWidth(), and query::result.

Referenced by HcalHardcodeCalibrations().

219  {
220  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceGainWidths-> ...";
221  std::auto_ptr<HcalGainWidths> result (new HcalGainWidths ());
222  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
223  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
225  result->addValues(item,h2mode_);
226  }
227  return result;
228 }
tuple result
Definition: query.py:137
HcalGainWidth makeGainWidth(HcalGenericDetId fId)
std::auto_ptr< HcalL1TriggerObjects > HcalHardcodeCalibrations::produceL1TriggerObjects ( const HcalL1TriggerObjectsRcd rcd)
protected

Definition at line 309 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

309  {
310  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceL1TriggerObjects-> ...";
311  std::auto_ptr<HcalL1TriggerObjects> result (new HcalL1TriggerObjects ());
312  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
313  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
314  HcalL1TriggerObject item(cell->rawId(),0., 1., 0);
315  result->addValues(item,h2mode_);
316  }
317  // add tag and algo values
318  result->setTagString("hardcoded");
319  result->setAlgoString("hardcoded");
320  return result;
321 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalLongRecoParams > HcalHardcodeCalibrations::produceLongRecoParams ( const HcalLongRecoParamsRcd rcd)
protected

Definition at line 395 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

395  {
396  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceLongRecoParams-> ...";
397  std::auto_ptr<HcalLongRecoParams> result (new HcalLongRecoParams ());
398  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
399  std::vector <unsigned int> mSignal;
400  mSignal.push_back(4);
401  mSignal.push_back(5);
402  mSignal.push_back(6);
403  std::vector <unsigned int> mNoise;
404  mNoise.push_back(1);
405  mNoise.push_back(2);
406  mNoise.push_back(3);
407  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
408  if (cell->isHcalZDCDetId())
409  {
410  HcalLongRecoParam item(cell->rawId(),mSignal,mNoise);
411  result->addValues(item,h2mode_);
412  }
413  }
414  return result;
415 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalLUTCorrs > HcalHardcodeCalibrations::produceLUTCorrs ( const HcalLUTCorrsRcd rcd)
protected

Definition at line 264 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

264  {
265  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceLUTCorrs-> ...";
266  std::auto_ptr<HcalLUTCorrs> result (new HcalLUTCorrs ());
267  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
268  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
269  HcalLUTCorr item(cell->rawId(),1.0);
270  result->addValues(item,h2mode_);
271  }
272  return result;
273 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalLutMetadata > HcalHardcodeCalibrations::produceLutMetadata ( const HcalLutMetadataRcd rcd)
protected

Definition at line 345 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

345  {
346  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceLutMetadata-> ...";
347  std::auto_ptr<HcalLutMetadata> result (new HcalLutMetadata ());
348 
349  result->setRctLsb( 0.25 );
350  result->setNominalGain( 0.177 );
351 
352  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
353  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
354  HcalLutMetadatum item(cell->rawId(),1.0,1,1);
355  result->addValues(item,h2mode_);
356  }
357  return result;
358 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalMCParams > HcalHardcodeCalibrations::produceMCParams ( const HcalMCParamsRcd rcd)
protected

Definition at line 417 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

417  {
418  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceMCParams-> ...";
419  std::auto_ptr<HcalMCParams> result (new HcalMCParams ());
420  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
421  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
422  HcalMCParam item(cell->rawId(),0);
423  result->addValues(item,h2mode_);
424  }
425  return result;
426 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalPedestals > HcalHardcodeCalibrations::producePedestals ( const HcalPedestalsRcd rcd)
protected

Definition at line 186 of file HcalHardcodeCalibrations.cc.

References HcalDbHardcode::makePedestal(), and query::result.

Referenced by HcalHardcodeCalibrations().

186  {
187  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::producePedestals-> ...";
188  std::auto_ptr<HcalPedestals> result (new HcalPedestals (false));
189  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
190  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
192  result->addValues(item,h2mode_);
193  }
194  return result;
195 }
tuple result
Definition: query.py:137
HcalPedestal makePedestal(HcalGenericDetId fId, bool fSmear=false)
std::auto_ptr< HcalPedestalWidths > HcalHardcodeCalibrations::producePedestalWidths ( const HcalPedestalWidthsRcd rcd)
protected

Definition at line 197 of file HcalHardcodeCalibrations.cc.

References HcalDbHardcode::makePedestalWidth(), and query::result.

Referenced by HcalHardcodeCalibrations().

197  {
198  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::producePedestalWidths-> ...";
199  std::auto_ptr<HcalPedestalWidths> result (new HcalPedestalWidths (false));
200  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
201  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
203  result->addValues(item,h2mode_);
204  }
205  return result;
206 }
HcalPedestalWidth makePedestalWidth(HcalGenericDetId fId)
tuple result
Definition: query.py:137
std::auto_ptr< HcalPFCorrs > HcalHardcodeCalibrations::producePFCorrs ( const HcalPFCorrsRcd rcd)
protected

Definition at line 275 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

275  {
276  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::producePFCorrs-> ...";
277  std::auto_ptr<HcalPFCorrs> result (new HcalPFCorrs ());
278  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
279  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
280  HcalPFCorr item(cell->rawId(),1.0);
281  result->addValues(item,h2mode_);
282  }
283  return result;
284 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalQIEData > HcalHardcodeCalibrations::produceQIEData ( const HcalQIEDataRcd rcd)
protected

Definition at line 230 of file HcalHardcodeCalibrations.cc.

References HcalDbHardcode::makeQIECoder(), and query::result.

Referenced by HcalHardcodeCalibrations().

230  {
231  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceQIEData-> ...";
232  std::auto_ptr<HcalQIEData> result (new HcalQIEData ());
233  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
234  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
236  result->addCoder (coder,h2mode_);
237  }
238  return result;
239 }
HcalQIECoder makeQIECoder(HcalGenericDetId fId)
tuple result
Definition: query.py:137
std::auto_ptr< HcalRecoParams > HcalHardcodeCalibrations::produceRecoParams ( const HcalRecoParamsRcd rcd)
protected

Definition at line 375 of file HcalHardcodeCalibrations.cc.

References HcalDbHardcode::makeRecoParam(), and query::result.

Referenced by HcalHardcodeCalibrations().

375  {
376  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceRecoParams-> ...";
377  std::auto_ptr<HcalRecoParams> result (new HcalRecoParams ());
378  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
379  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
381  result->addValues(item,h2mode_);
382  }
383  return result;
384 }
tuple result
Definition: query.py:137
HcalRecoParam makeRecoParam(HcalGenericDetId fId)
std::auto_ptr< HcalRespCorrs > HcalHardcodeCalibrations::produceRespCorrs ( const HcalRespCorrsRcd rcd)
protected

Definition at line 253 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

253  {
254  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceRespCorrs-> ...";
255  std::auto_ptr<HcalRespCorrs> result (new HcalRespCorrs ());
256  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
257  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
258  HcalRespCorr item(cell->rawId(),1.0);
259  result->addValues(item,h2mode_);
260  }
261  return result;
262 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalTimeCorrs > HcalHardcodeCalibrations::produceTimeCorrs ( const HcalTimeCorrsRcd rcd)
protected

Definition at line 286 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

286  {
287  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceTimeCorrs-> ...";
288  std::auto_ptr<HcalTimeCorrs> result (new HcalTimeCorrs ());
289  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
290  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
291  HcalTimeCorr item(cell->rawId(),0.0);
292  result->addValues(item,h2mode_);
293  }
294  return result;
295 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalTimingParams > HcalHardcodeCalibrations::produceTimingParams ( const HcalTimingParamsRcd rcd)
protected

Definition at line 385 of file HcalHardcodeCalibrations.cc.

References HcalDbHardcode::makeTimingParam(), and query::result.

385  {
386  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceTimingParams-> ...";
387  std::auto_ptr<HcalTimingParams> result (new HcalTimingParams ());
388  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
389  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
391  result->addValues(item,h2mode_);
392  }
393  return result;
394 }
HcalTimingParam makeTimingParam(HcalGenericDetId fId)
tuple result
Definition: query.py:137
std::auto_ptr< HcalValidationCorrs > HcalHardcodeCalibrations::produceValidationCorrs ( const HcalValidationCorrsRcd rcd)
protected

Definition at line 334 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

334  {
335  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceValidationCorrs-> ...";
336  std::auto_ptr<HcalValidationCorrs> result (new HcalValidationCorrs ());
337  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
338  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
339  HcalValidationCorr item(cell->rawId(),1.0);
340  result->addValues(item,h2mode_);
341  }
342  return result;
343 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalZSThresholds > HcalHardcodeCalibrations::produceZSThresholds ( const HcalZSThresholdsRcd rcd)
protected

Definition at line 297 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

297  {
298  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceZSThresholds-> ...";
299  std::auto_ptr<HcalZSThresholds> result (new HcalZSThresholds ());
300  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
301  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
302  HcalZSThreshold item(cell->rawId(),0);
303  result->addValues(item,h2mode_);
304  }
305  return result;
306 }
tuple result
Definition: query.py:137
void HcalHardcodeCalibrations::setIntervalFor ( const edm::eventsetup::EventSetupRecordKey iKey,
const edm::IOVSyncValue iTime,
edm::ValidityInterval oInterval 
)
protectedvirtual

Implements edm::EventSetupRecordIntervalFinder.

Definition at line 180 of file HcalHardcodeCalibrations.cc.

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

180  {
181  std::string record = iKey.name ();
182  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::setIntervalFor-> key: " << record << " time: " << iTime.eventID() << '/' << iTime.time ().value ();
184 }
const EventID & eventID() const
Definition: IOVSyncValue.h:42
JetCorrectorParameters::Record record
Definition: classes.h:11
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:97
std::pair< Time_t, Time_t > ValidityInterval
Definition: Time.h:19
static const IOVSyncValue & beginOfTime()
TimeValue_t value() const
Definition: Timestamp.cc:72
const Timestamp & time() const
Definition: IOVSyncValue.h:44

Member Data Documentation

bool HcalHardcodeCalibrations::h2mode_
protected

Definition at line 80 of file HcalHardcodeCalibrations.h.