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< HcalGainsproduceGains (const HcalGainsRcd &rcd)
 
std::auto_ptr< HcalGainWidthsproduceGainWidths (const HcalGainWidthsRcd &rcd)
 
std::auto_ptr
< HcalL1TriggerObjects
produceL1TriggerObjects (const HcalL1TriggerObjectsRcd &rcd)
 
std::auto_ptr< HcalLUTCorrsproduceLUTCorrs (const HcalLUTCorrsRcd &rcd)
 
std::auto_ptr< HcalLutMetadataproduceLutMetadata (const HcalLutMetadataRcd &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< HcalRespCorrsproduceRespCorrs (const HcalRespCorrsRcd &rcd)
 
std::auto_ptr< HcalTimeCorrsproduceTimeCorrs (const HcalTimeCorrsRcd &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
 

Detailed Description

Definition at line 35 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(), produceGains(), produceGainWidths(), produceL1TriggerObjects(), produceLUTCorrs(), produceLutMetadata(), producePedestals(), producePedestalWidths(), producePFCorrs(), produceQIEData(), produceRespCorrs(), produceTimeCorrs(), produceValidationCorrs(), produceZSThresholds(), and align_tpl::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  }
152 }
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< HcalGains > produceGains(const HcalGainsRcd &rcd)
std::auto_ptr< HcalRespCorrs > produceRespCorrs(const HcalRespCorrsRcd &rcd)
std::auto_ptr< HcalElectronicsMap > produceElectronicsMap(const HcalElectronicsMapRcd &rcd)
std::auto_ptr< HcalPFCorrs > producePFCorrs(const HcalPFCorrsRcd &rcd)
std::auto_ptr< HcalGainWidths > produceGainWidths(const HcalGainWidthsRcd &rcd)
std::auto_ptr< HcalValidationCorrs > produceValidationCorrs(const HcalValidationCorrsRcd &rcd)
tuple toGet
Definition: align_tpl.py:67
std::auto_ptr< HcalPedestals > producePedestals(const HcalPedestalsRcd &rcd)
std::auto_ptr< HcalL1TriggerObjects > produceL1TriggerObjects(const HcalL1TriggerObjectsRcd &rcd)
HcalHardcodeCalibrations::~HcalHardcodeCalibrations ( )

Definition at line 155 of file HcalHardcodeCalibrations.cc.

156 {
157 }

Member Function Documentation

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

Definition at line 225 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

225  {
226  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceChannelQuality-> ...";
227  std::auto_ptr<HcalChannelQuality> result (new HcalChannelQuality ());
228  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
229  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
230  HcalChannelStatus item(cell->rawId(),0);
231  result->addValues(item,h2mode_);
232  }
233  return result;
234 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalDcsMap > HcalHardcodeCalibrations::produceDcsMap ( const HcalDcsMapRcd rcd)
protected

Definition at line 351 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

351  {
352  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceDcsMap-> ...";
353 
354  std::auto_ptr<HcalDcsMap> result (new HcalDcsMap ());
356  return result;
357 }
void makeHardcodeDcsMap(HcalDcsMap &dcs_map)
tuple result
Definition: query.py:137
std::auto_ptr< HcalDcsValues > HcalHardcodeCalibrations::produceDcsValues ( const HcalDcsRcd rcd)
protected

Definition at line 345 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

345  {
346  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceDcsValues-> ...";
347  std::auto_ptr<HcalDcsValues> result(new HcalDcsValues);
348  return result;
349 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalElectronicsMap > HcalHardcodeCalibrations::produceElectronicsMap ( const HcalElectronicsMapRcd rcd)
protected

Definition at line 310 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

310  {
311  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceElectronicsMap-> ...";
312 
313  std::auto_ptr<HcalElectronicsMap> result (new HcalElectronicsMap ());
315  return result;
316 }
void makeHardcodeMap(HcalElectronicsMap &emap)
tuple result
Definition: query.py:137
std::auto_ptr< HcalGains > HcalHardcodeCalibrations::produceGains ( const HcalGainsRcd rcd)
protected

Definition at line 192 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

192  {
193  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceGains-> ...";
194  std::auto_ptr<HcalGains> result (new HcalGains ());
195  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
196  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
197  HcalGain item = HcalDbHardcode::makeGain (*cell);
198  result->addValues(item,h2mode_);
199  }
200  return result;
201 }
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 203 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

203  {
204  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceGainWidths-> ...";
205  std::auto_ptr<HcalGainWidths> result (new HcalGainWidths ());
206  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
207  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
209  result->addValues(item,h2mode_);
210  }
211  return result;
212 }
tuple result
Definition: query.py:137
HcalGainWidth makeGainWidth(HcalGenericDetId fId)
std::auto_ptr< HcalL1TriggerObjects > HcalHardcodeCalibrations::produceL1TriggerObjects ( const HcalL1TriggerObjectsRcd rcd)
protected

Definition at line 293 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

293  {
294  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceL1TriggerObjects-> ...";
295  std::auto_ptr<HcalL1TriggerObjects> result (new HcalL1TriggerObjects ());
296  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
297  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
298  HcalL1TriggerObject item(cell->rawId(),0., 1., 0);
299  result->addValues(item,h2mode_);
300  }
301  // add tag and algo values
302  result->setTagString("hardcoded");
303  result->setAlgoString("hardcoded");
304  return result;
305 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalLUTCorrs > HcalHardcodeCalibrations::produceLUTCorrs ( const HcalLUTCorrsRcd rcd)
protected

Definition at line 248 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

248  {
249  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceLUTCorrs-> ...";
250  std::auto_ptr<HcalLUTCorrs> result (new HcalLUTCorrs ());
251  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
252  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
253  HcalLUTCorr item(cell->rawId(),1.0);
254  result->addValues(item,h2mode_);
255  }
256  return result;
257 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalLutMetadata > HcalHardcodeCalibrations::produceLutMetadata ( const HcalLutMetadataRcd rcd)
protected

Definition at line 329 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

329  {
330  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceLutMetadata-> ...";
331  std::auto_ptr<HcalLutMetadata> result (new HcalLutMetadata ());
332 
333  result->setRctLsb( 0.25 );
334  result->setNominalGain( 0.177 );
335 
336  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
337  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
338  HcalLutMetadatum item(cell->rawId(),1.0,1,1);
339  result->addValues(item,h2mode_);
340  }
341  return result;
342 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalPedestals > HcalHardcodeCalibrations::producePedestals ( const HcalPedestalsRcd rcd)
protected

Definition at line 170 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

170  {
171  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::producePedestals-> ...";
172  std::auto_ptr<HcalPedestals> result (new HcalPedestals (false));
173  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
174  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
176  result->addValues(item,h2mode_);
177  }
178  return result;
179 }
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 181 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

181  {
182  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::producePedestalWidths-> ...";
183  std::auto_ptr<HcalPedestalWidths> result (new HcalPedestalWidths (false));
184  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
185  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
187  result->addValues(item,h2mode_);
188  }
189  return result;
190 }
HcalPedestalWidth makePedestalWidth(HcalGenericDetId fId)
tuple result
Definition: query.py:137
std::auto_ptr< HcalPFCorrs > HcalHardcodeCalibrations::producePFCorrs ( const HcalPFCorrsRcd rcd)
protected

Definition at line 259 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

259  {
260  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::producePFCorrs-> ...";
261  std::auto_ptr<HcalPFCorrs> result (new HcalPFCorrs ());
262  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
263  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
264  HcalPFCorr item(cell->rawId(),1.0);
265  result->addValues(item,h2mode_);
266  }
267  return result;
268 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalQIEData > HcalHardcodeCalibrations::produceQIEData ( const HcalQIEDataRcd rcd)
protected

Definition at line 214 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

214  {
215  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceQIEData-> ...";
216  std::auto_ptr<HcalQIEData> result (new HcalQIEData ());
217  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
218  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
220  result->addCoder (coder,h2mode_);
221  }
222  return result;
223 }
HcalQIECoder makeQIECoder(HcalGenericDetId fId)
tuple result
Definition: query.py:137
std::auto_ptr< HcalRespCorrs > HcalHardcodeCalibrations::produceRespCorrs ( const HcalRespCorrsRcd rcd)
protected

Definition at line 237 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

237  {
238  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceRespCorrs-> ...";
239  std::auto_ptr<HcalRespCorrs> result (new HcalRespCorrs ());
240  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
241  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
242  HcalRespCorr item(cell->rawId(),1.0);
243  result->addValues(item,h2mode_);
244  }
245  return result;
246 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalTimeCorrs > HcalHardcodeCalibrations::produceTimeCorrs ( const HcalTimeCorrsRcd rcd)
protected

Definition at line 270 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

270  {
271  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceTimeCorrs-> ...";
272  std::auto_ptr<HcalTimeCorrs> result (new HcalTimeCorrs ());
273  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
274  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
275  HcalTimeCorr item(cell->rawId(),0.0);
276  result->addValues(item,h2mode_);
277  }
278  return result;
279 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalValidationCorrs > HcalHardcodeCalibrations::produceValidationCorrs ( const HcalValidationCorrsRcd rcd)
protected

Definition at line 318 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

318  {
319  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceValidationCorrs-> ...";
320  std::auto_ptr<HcalValidationCorrs> result (new HcalValidationCorrs ());
321  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
322  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
323  HcalValidationCorr item(cell->rawId(),1.0);
324  result->addValues(item,h2mode_);
325  }
326  return result;
327 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalZSThresholds > HcalHardcodeCalibrations::produceZSThresholds ( const HcalZSThresholdsRcd rcd)
protected

Definition at line 281 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

281  {
282  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceZSThresholds-> ...";
283  std::auto_ptr<HcalZSThresholds> result (new HcalZSThresholds ());
284  std::vector <HcalGenericDetId> cells = allCells(h2mode_);
285  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
286  HcalZSThreshold item(cell->rawId(),0);
287  result->addValues(item,h2mode_);
288  }
289  return result;
290 }
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 164 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().

164  {
165  std::string record = iKey.name ();
166  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::setIntervalFor-> key: " << record << " time: " << iTime.eventID() << '/' << iTime.time ().value ();
168 }
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 69 of file HcalHardcodeCalibrations.h.