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 | 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 ()
 
- 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
< HcalCholeskyMatrices
produceCholeskyMatrices (const HcalCholeskyMatricesRcd &rcd)
 
std::auto_ptr
< HcalCovarianceMatrices
produceCovarianceMatrices (const HcalCovarianceMatricesRcd &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
< HcalZDCLowGainFractions
produceZDCLowGainFractions (const HcalZDCLowGainFractionsRcd &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 &)
 

Private Attributes

HERecalibrationhe_recalibration
 
HFRecalibrationhf_recalibration
 
double iLumi
 
bool switchGainWidthsForTrigPrims
 

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 45 of file HcalHardcodeCalibrations.h.

Constructor & Destructor Documentation

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

Definition at line 110 of file HcalHardcodeCalibrations.cc.

References cond::ecalcond::all, prof2calltree::cutoff, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), he_recalibration, hf_recalibration, i, iLumi, mergeVDriftHistosByStation::name, summarizeEdmComparisonLogfiles::objectName, produceChannelQuality(), produceCholeskyMatrices(), produceCovarianceMatrices(), produceDcsMap(), produceDcsValues(), produceElectronicsMap(), produceFlagHFDigiTimeParams(), produceGains(), produceGainWidths(), produceL1TriggerObjects(), produceLongRecoParams(), produceLUTCorrs(), produceLutMetadata(), produceMCParams(), producePedestals(), producePedestalWidths(), producePFCorrs(), produceQIEData(), produceRecoParams(), produceRespCorrs(), produceTimeCorrs(), produceValidationCorrs(), produceZDCLowGainFractions(), produceZSThresholds(), HERecalibration::setDsegm(), edm::ESProducer::setWhatProduced(), switchGainWidthsForTrigPrims, and convertSQLitetoXML_cfg::toGet.

111 {
112  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::HcalHardcodeCalibrations->...";
113 
114  if ( iConfig.exists("GainWidthsForTrigPrims") )
115  switchGainWidthsForTrigPrims = iConfig.getParameter<bool>("GainWidthsForTrigPrims");
116  else switchGainWidthsForTrigPrims = false;
117 
118 
119  // HE and HF recalibration preparation
120  iLumi = 0.;
121  if ( iConfig.exists("iLumi") )
122  iLumi=iConfig.getParameter<double>("iLumi");
123 
124  if( iLumi > 0.0 ) {
125  bool he_recalib = iConfig.getParameter<bool>("HERecalibration");
126  bool hf_recalib = iConfig.getParameter<bool>("HFRecalibration");
127  if(he_recalib) {
128  double cutoff = iConfig.getParameter<double>("HEreCalibCutoff");
129  he_recalibration = new HERecalibration(iLumi,cutoff);
130  }
131  if(hf_recalib) hf_recalibration = new HFRecalibration();
132 
133  // std::cout << " HcalHardcodeCalibrations: iLumi = " << iLumi << std::endl;
134  }
135 
136  bool relabel_=false;
137  edm::ParameterSet ps0;
138  if ( iConfig.exists("HcalReLabel") ) {
139  ps0 = iConfig.getParameter<edm::ParameterSet>("HcalReLabel");
140  relabel_= ps0.getUntrackedParameter<bool>("RelabelHits",false);
141  }
142 
143  if (relabel_) {
144  std::vector<std::vector<int>> m_segmentation;
145  m_segmentation.resize(29);
146  edm::ParameterSet ps1 = ps0.getUntrackedParameter<edm::ParameterSet>("RelabelRules");
147  for (int i = 0; i < 29; i++) {
148  char name[10];
149  snprintf(name,10,"Eta%d",i+1);
150  if (i > 0) {
151  m_segmentation[i]=
152  ps1.getUntrackedParameter<std::vector<int>>(name,m_segmentation[i-1]);
153  } else {
154  m_segmentation[i]=ps1.getUntrackedParameter<std::vector<int> >(name);
155  }
156 
157  /*
158  std::cout << name;
159  for (unsigned int k=0; k<m_segmentation[i].size(); k++) {
160  std::cout << " [" << k << "] " << m_segmentation[i][k];
161  }
162  std::cout << std::endl;
163  */
164 
165  }
166 
167  if(he_recalibration !=0) he_recalibration->setDsegm(m_segmentation);
168  }
169 
170 
171  std::vector <std::string> toGet = iConfig.getUntrackedParameter <std::vector <std::string> > ("toGet");
172  for(std::vector <std::string>::iterator objectName = toGet.begin(); objectName != toGet.end(); ++objectName ) {
173  bool all = *objectName == "all";
174  if ((*objectName == "Pedestals") || all) {
176  findingRecord <HcalPedestalsRcd> ();
177  }
178  if ((*objectName == "PedestalWidths") || all) {
180  findingRecord <HcalPedestalWidthsRcd> ();
181  }
182  if ((*objectName == "Gains") || all) {
184  findingRecord <HcalGainsRcd> ();
185  }
186  if ((*objectName == "GainWidths") || all) {
188  findingRecord <HcalGainWidthsRcd> ();
189  }
190  if ((*objectName == "QIEData") || all) {
192  findingRecord <HcalQIEDataRcd> ();
193  }
194  if ((*objectName == "ChannelQuality") || (*objectName == "channelQuality") || all) {
196  findingRecord <HcalChannelQualityRcd> ();
197  }
198  if ((*objectName == "ElectronicsMap") || (*objectName == "electronicsMap") || all) {
200  findingRecord <HcalElectronicsMapRcd> ();
201  }
202  if ((*objectName == "ZSThresholds") || (*objectName == "zsThresholds") || all) {
204  findingRecord <HcalZSThresholdsRcd> ();
205  }
206  if ((*objectName == "RespCorrs") || (*objectName == "ResponseCorrection") || all) {
208  findingRecord <HcalRespCorrsRcd> ();
209  }
210  if ((*objectName == "LUTCorrs") || (*objectName == "LUTCorrection") || all) {
212  findingRecord <HcalLUTCorrsRcd> ();
213  }
214  if ((*objectName == "PFCorrs") || (*objectName == "PFCorrection") || all) {
216  findingRecord <HcalPFCorrsRcd> ();
217  }
218  if ((*objectName == "TimeCorrs") || (*objectName == "TimeCorrection") || all) {
220  findingRecord <HcalTimeCorrsRcd> ();
221  }
222  if ((*objectName == "L1TriggerObjects") || (*objectName == "L1Trigger") || all) {
224  findingRecord <HcalL1TriggerObjectsRcd> ();
225  }
226  if ((*objectName == "ValidationCorrs") || (*objectName == "ValidationCorrection") || all) {
228  findingRecord <HcalValidationCorrsRcd> ();
229  }
230  if ((*objectName == "LutMetadata") || (*objectName == "lutMetadata") || all) {
232  findingRecord <HcalLutMetadataRcd> ();
233  }
234  if ((*objectName == "DcsValues") || all) {
236  findingRecord <HcalDcsRcd> ();
237  }
238  if ((*objectName == "DcsMap") || (*objectName == "dcsMap") || all) {
240  findingRecord <HcalDcsMapRcd> ();
241  }
242  if ((*objectName == "RecoParams") || all) {
244  findingRecord <HcalRecoParamsRcd> ();
245  }
246  if ((*objectName == "LongRecoParams") || all) {
248  findingRecord <HcalLongRecoParamsRcd> ();
249  }
250  if ((*objectName == "ZDCLowGainFractions") || all) {
252  findingRecord <HcalZDCLowGainFractionsRcd> ();
253  }
254  if ((*objectName == "MCParams") || all) {
256  findingRecord <HcalMCParamsRcd> ();
257  }
258  if ((*objectName == "FlagHFDigiTimeParams") || all) {
260  findingRecord <HcalFlagHFDigiTimeParamsRcd> ();
261  }
262  if ((*objectName == "CholeskyMatrices") || all) {
264  findingRecord <HcalCholeskyMatricesRcd> ();
265  }
266  if ((*objectName == "CovarianceMatrices") || all) {
268  findingRecord <HcalCovarianceMatricesRcd> ();
269  }
270  }
271 }
std::auto_ptr< HcalZDCLowGainFractions > produceZDCLowGainFractions(const HcalZDCLowGainFractionsRcd &rcd)
std::auto_ptr< HcalPedestalWidths > producePedestalWidths(const HcalPedestalWidthsRcd &rcd)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
int i
Definition: DBlmapReader.cc:9
std::auto_ptr< HcalLUTCorrs > produceLUTCorrs(const HcalLUTCorrsRcd &rcd)
std::auto_ptr< HcalDcsMap > produceDcsMap(const HcalDcsMapRcd &rcd)
void setDsegm(const std::vector< std::vector< int > > &m_segmentation)
std::auto_ptr< HcalQIEData > produceQIEData(const HcalQIEDataRcd &rcd)
bool exists(std::string const &parameterName) const
checks if a parameter exists
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< HcalCovarianceMatrices > produceCovarianceMatrices(const HcalCovarianceMatricesRcd &rcd)
std::auto_ptr< HcalMCParams > produceMCParams(const HcalMCParamsRcd &rcd)
std::auto_ptr< HcalFlagHFDigiTimeParams > produceFlagHFDigiTimeParams(const HcalFlagHFDigiTimeParamsRcd &rcd)
std::auto_ptr< HcalCholeskyMatrices > produceCholeskyMatrices(const HcalCholeskyMatricesRcd &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 274 of file HcalHardcodeCalibrations.cc.

References he_recalibration, and hf_recalibration.

275 {
276  if (he_recalibration != 0 ) delete he_recalibration;
277  if (hf_recalibration != 0 ) delete hf_recalibration;
278 }

Member Function Documentation

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

Definition at line 378 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.

Referenced by HcalHardcodeCalibrations().

378  {
379  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceChannelQuality-> ...";
381  rcd.getRecord<IdealGeometryRecord>().get(htopo);
382  const HcalTopology* topo=&(*htopo);
383 
384  std::auto_ptr<HcalChannelQuality> result (new HcalChannelQuality (topo));
385  std::vector <HcalGenericDetId> cells = allCells(*topo);
386  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
387  HcalChannelStatus item(cell->rawId(),0);
388  result->addValues(item);
389  }
390  return result;
391 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalCholeskyMatrices > HcalHardcodeCalibrations::produceCholeskyMatrices ( const HcalCholeskyMatricesRcd rcd)
protected

Definition at line 707 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, and query::result.

Referenced by HcalHardcodeCalibrations().

707  {
708 
710  rec.getRecord<IdealGeometryRecord>().get(htopo);
711  const HcalTopology* topo=&(*htopo);
712  std::auto_ptr<HcalCholeskyMatrices> result (new HcalCholeskyMatrices (topo));
713 
714  std::vector <HcalGenericDetId> cells = allCells(*topo);
715  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
716 
717  int sub = cell->genericSubdet();
718 
719  if (sub == HcalGenericDetId::HcalGenBarrel ||
723  HcalCholeskyMatrix item(cell->rawId());
724  result->addValues(item);
725  }
726  }
727  return result;
728 
729 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalCovarianceMatrices > HcalHardcodeCalibrations::produceCovarianceMatrices ( const HcalCovarianceMatricesRcd rcd)
protected

Definition at line 730 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.

Referenced by HcalHardcodeCalibrations().

730  {
731 
733  rec.getRecord<IdealGeometryRecord>().get(htopo);
734  const HcalTopology* topo=&(*htopo);
735  std::auto_ptr<HcalCovarianceMatrices> result (new HcalCovarianceMatrices (topo));
736  std::vector <HcalGenericDetId> cells = allCells(*topo);
737  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
738 
739  HcalCovarianceMatrix item(cell->rawId());
740  result->addValues(item);
741  }
742  return result;
743 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalDcsMap > HcalHardcodeCalibrations::produceDcsMap ( const HcalDcsMapRcd rcd)
protected

Definition at line 581 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

581  {
582  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceDcsMap-> ...";
583 
584  std::auto_ptr<HcalDcsMap> result (new HcalDcsMap ());
586  return result;
587 }
void makeHardcodeDcsMap(HcalDcsMap &dcs_map)
tuple result
Definition: query.py:137
std::auto_ptr< HcalDcsValues > HcalHardcodeCalibrations::produceDcsValues ( const HcalDcsRcd rcd)
protected

Definition at line 575 of file HcalHardcodeCalibrations.cc.

References query::result.

Referenced by HcalHardcodeCalibrations().

575  {
576  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceDcsValues-> ...";
577  std::auto_ptr<HcalDcsValues> result(new HcalDcsValues);
578  return result;
579 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalElectronicsMap > HcalHardcodeCalibrations::produceElectronicsMap ( const HcalElectronicsMapRcd rcd)
protected

Definition at line 520 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

520  {
521  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceElectronicsMap-> ...";
522 
523  std::auto_ptr<HcalElectronicsMap> result (new HcalElectronicsMap ());
525  return result;
526 }
void makeHardcodeMap(HcalElectronicsMap &emap)
tuple result
Definition: query.py:137
std::auto_ptr< HcalFlagHFDigiTimeParams > HcalHardcodeCalibrations::produceFlagHFDigiTimeParams ( const HcalFlagHFDigiTimeParamsRcd rcd)
protected

Definition at line 679 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.

Referenced by HcalHardcodeCalibrations().

679  {
680  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceFlagHFDigiTimeParams-> ...";
682  rec.getRecord<IdealGeometryRecord>().get(htopo);
683  const HcalTopology* topo=&(*htopo);
684 
685  std::auto_ptr<HcalFlagHFDigiTimeParams> result (new HcalFlagHFDigiTimeParams (topo));
686  std::vector <HcalGenericDetId> cells = allCells(*topo);
687 
688  std::vector<double> coef;
689  coef.push_back(0.93);
690  coef.push_back(-0.38275);
691  coef.push_back(-0.012667);
692 
693  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
694  HcalFlagHFDigiTimeParam item(cell->rawId(),
695  1, //firstsample
696  3, // samplestoadd
697  2, //expectedpeak
698  40., // min energy threshold
699  coef // coefficients
700  );
701  result->addValues(item);
702  }
703  return result;
704 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalGains > HcalHardcodeCalibrations::produceGains ( const HcalGainsRcd rcd)
protected

Definition at line 320 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::makeGain(), and query::result.

Referenced by HcalHardcodeCalibrations().

320  {
321  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceGains-> ...";
323  rec.getRecord<IdealGeometryRecord>().get(htopo);
324  const HcalTopology* topo=&(*htopo);
325 
326  std::auto_ptr<HcalGains> result (new HcalGains (topo));
327  std::vector <HcalGenericDetId> cells = allCells(*topo);
328  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
329  HcalGain item = HcalDbHardcode::makeGain (*cell);
330  result->addValues(item);
331  }
332  return result;
333 }
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 335 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::makeGainWidth(), query::result, and switchGainWidthsForTrigPrims.

Referenced by HcalHardcodeCalibrations().

335  {
336  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceGainWidths-> ...";
338  rec.getRecord<IdealGeometryRecord>().get(htopo);
339  const HcalTopology* topo=&(*htopo);
340 
341  std::auto_ptr<HcalGainWidths> result (new HcalGainWidths (topo));
342  std::vector <HcalGenericDetId> cells = allCells(*topo);
343  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
344 
345  // for Upgrade - include TrigPrims, for regular case - only HcalDetId
348  result->addValues(item);
349  } else if (!cell->isHcalTrigTowerDetId()) {
351  result->addValues(item);
352  }
353  }
354  return result;
355 }
tuple result
Definition: query.py:137
HcalGainWidth makeGainWidth(HcalGenericDetId fId)
std::auto_ptr< HcalL1TriggerObjects > HcalHardcodeCalibrations::produceL1TriggerObjects ( const HcalL1TriggerObjectsRcd rcd)
protected

Definition at line 499 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.

Referenced by HcalHardcodeCalibrations().

499  {
500  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceL1TriggerObjects-> ...";
502  rcd.getRecord<IdealGeometryRecord>().get(htopo);
503  const HcalTopology* topo=&(*htopo);
504 
505  std::auto_ptr<HcalL1TriggerObjects> result (new HcalL1TriggerObjects (topo));
506  std::vector <HcalGenericDetId> cells = allCells(*topo);
507  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
508  HcalL1TriggerObject item(cell->rawId(),0., 1., 0);
509  result->addValues(item);
510  }
511  // add tag and algo values
512  result->setTagString("hardcoded");
513  result->setAlgoString("hardcoded");
514  return result;
515 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalLongRecoParams > HcalHardcodeCalibrations::produceLongRecoParams ( const HcalLongRecoParamsRcd rcd)
protected

Definition at line 617 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.

Referenced by HcalHardcodeCalibrations().

617  {
618  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceLongRecoParams-> ...";
620  rec.getRecord<IdealGeometryRecord>().get(htopo);
621  const HcalTopology* topo=&(*htopo);
622 
623  std::auto_ptr<HcalLongRecoParams> result (new HcalLongRecoParams (topo));
624  std::vector <HcalGenericDetId> cells = allCells(*topo);
625  std::vector <unsigned int> mSignal;
626  mSignal.push_back(4);
627  mSignal.push_back(5);
628  mSignal.push_back(6);
629  std::vector <unsigned int> mNoise;
630  mNoise.push_back(1);
631  mNoise.push_back(2);
632  mNoise.push_back(3);
633  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
634  if (cell->isHcalZDCDetId())
635  {
636  HcalLongRecoParam item(cell->rawId(),mSignal,mNoise);
637  result->addValues(item);
638  }
639  }
640  return result;
641 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalLUTCorrs > HcalHardcodeCalibrations::produceLUTCorrs ( const HcalLUTCorrsRcd rcd)
protected

Definition at line 438 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.

Referenced by HcalHardcodeCalibrations().

438  {
439  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceLUTCorrs-> ...";
441  rcd.getRecord<IdealGeometryRecord>().get(htopo);
442  const HcalTopology* topo=&(*htopo);
443 
444  std::auto_ptr<HcalLUTCorrs> result (new HcalLUTCorrs (topo));
445  std::vector <HcalGenericDetId> cells = allCells(*topo);
446  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
447  HcalLUTCorr item(cell->rawId(),1.0);
448  result->addValues(item);
449  }
450  return result;
451 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalLutMetadata > HcalHardcodeCalibrations::produceLutMetadata ( const HcalLutMetadataRcd rcd)
protected

Definition at line 543 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.

Referenced by HcalHardcodeCalibrations().

543  {
544  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceLutMetadata-> ...";
546  rcd.getRecord<IdealGeometryRecord>().get(htopo);
547  const HcalTopology* topo=&(*htopo);
548 
549  std::auto_ptr<HcalLutMetadata> result (new HcalLutMetadata (topo));
550 
551  result->setRctLsb( 0.5 );
552  result->setNominalGain(0.003333); // for HBHE SiPMs
553 
554  std::vector <HcalGenericDetId> cells = allCells(*topo);
555  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
556 
557  /*
558  if (cell->isHcalTrigTowerDetId()) {
559  HcalTrigTowerDetId ht = HcalTrigTowerDetId(*cell);
560  int ieta = ht.ieta();
561  int iphi = ht.iphi();
562  std::cout << " HcalTrigTower cell (ieta,iphi) = "
563  << ieta << ", " << iphi << std::endl;
564  }
565  */
566 
567  HcalLutMetadatum item(cell->rawId(),1.0,1,1);
568  result->addValues(item);
569  }
570 
571  return result;
572 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalMCParams > HcalHardcodeCalibrations::produceMCParams ( const HcalMCParamsRcd rcd)
protected

Definition at line 658 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::makeMCParam(), and query::result.

Referenced by HcalHardcodeCalibrations().

658  {
659 
660 
661  // std::cout << std::endl << " .... HcalHardcodeCalibrations::produceMCParams ->"<< std::endl;
662 
663  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceMCParams-> ...";
665  rec.getRecord<IdealGeometryRecord>().get(htopo);
666  const HcalTopology* topo=&(*htopo);
667  std::auto_ptr<HcalMCParams> result (new HcalMCParams (topo));
668  std::vector <HcalGenericDetId> cells = allCells(*topo);
669  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
670 
671  // HcalMCParam item(cell->rawId(),0);
673  result->addValues(item);
674  }
675  return result;
676 }
tuple result
Definition: query.py:137
HcalMCParam makeMCParam(HcalGenericDetId fId)
std::auto_ptr< HcalPedestals > HcalHardcodeCalibrations::producePedestals ( const HcalPedestalsRcd rcd)
protected

Definition at line 290 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), iLumi, HcalDbHardcode::makePedestal(), and query::result.

Referenced by HcalHardcodeCalibrations().

290  {
291  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::producePedestals-> ...";
293  rec.getRecord<IdealGeometryRecord>().get(htopo);
294  const HcalTopology* topo=&(*htopo);
295 
296  std::auto_ptr<HcalPedestals> result (new HcalPedestals (topo,false));
297  std::vector <HcalGenericDetId> cells = allCells(*topo);
298  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
299  HcalPedestal item = HcalDbHardcode::makePedestal (*cell, false, iLumi);
300  result->addValues(item);
301  }
302  return result;
303 }
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 305 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), iLumi, HcalDbHardcode::makePedestalWidth(), and query::result.

Referenced by HcalHardcodeCalibrations().

305  {
306  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::producePedestalWidths-> ...";
308  rec.getRecord<IdealGeometryRecord>().get(htopo);
309  const HcalTopology* topo=&(*htopo);
310 
311  std::auto_ptr<HcalPedestalWidths> result (new HcalPedestalWidths (topo,false));
312  std::vector <HcalGenericDetId> cells = allCells(*htopo);
313  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
315  result->addValues(item);
316  }
317  return result;
318 }
HcalPedestalWidth makePedestalWidth(HcalGenericDetId fId)
tuple result
Definition: query.py:137
std::auto_ptr< HcalPFCorrs > HcalHardcodeCalibrations::producePFCorrs ( const HcalPFCorrsRcd rcd)
protected

Definition at line 453 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.

Referenced by HcalHardcodeCalibrations().

453  {
454  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::producePFCorrs-> ...";
456  rcd.getRecord<IdealGeometryRecord>().get(htopo);
457  const HcalTopology* topo=&(*htopo);
458 
459  std::auto_ptr<HcalPFCorrs> result (new HcalPFCorrs (topo));
460  std::vector <HcalGenericDetId> cells = allCells(*topo);
461  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
462  HcalPFCorr item(cell->rawId(),1.0);
463  result->addValues(item);
464  }
465  return result;
466 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalQIEData > HcalHardcodeCalibrations::produceQIEData ( const HcalQIEDataRcd rcd)
protected

Definition at line 357 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::makeQIECoder(), and query::result.

Referenced by HcalHardcodeCalibrations().

357  {
358  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceQIEData-> ...";
359 
360  /*
361  std::cout << std::endl << ">>> HcalHardcodeCalibrations::produceQIEData"
362  << std::endl;
363  */
364 
366  rcd.getRecord<IdealGeometryRecord>().get(htopo);
367  const HcalTopology* topo=&(*htopo);
368 
369  std::auto_ptr<HcalQIEData> result (new HcalQIEData (topo));
370  std::vector <HcalGenericDetId> cells = allCells(*topo);
371  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
373  result->addCoder (coder);
374  }
375  return result;
376 }
HcalQIECoder makeQIECoder(HcalGenericDetId fId)
tuple result
Definition: query.py:137
std::auto_ptr< HcalRecoParams > HcalHardcodeCalibrations::produceRecoParams ( const HcalRecoParamsRcd rcd)
protected

Definition at line 589 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::makeRecoParam(), and query::result.

Referenced by HcalHardcodeCalibrations().

589  {
590  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceRecoParams-> ...";
592  rec.getRecord<IdealGeometryRecord>().get(htopo);
593  const HcalTopology* topo=&(*htopo);
594 
595  std::auto_ptr<HcalRecoParams> result (new HcalRecoParams (topo));
596  std::vector <HcalGenericDetId> cells = allCells(*topo);
597  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
599  result->addValues(item);
600  }
601  return result;
602 }
tuple result
Definition: query.py:137
HcalRecoParam makeRecoParam(HcalGenericDetId fId)
std::auto_ptr< HcalRespCorrs > HcalHardcodeCalibrations::produceRespCorrs ( const HcalRespCorrsRcd rcd)
protected

Definition at line 394 of file HcalHardcodeCalibrations.cc.

References corr, HcalDetId::depth(), HFRecalibration::getCorr(), HERecalibration::getCorr(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, he_recalibration, hf_recalibration, HcalDetId::ieta(), iLumi, and query::result.

Referenced by HcalHardcodeCalibrations().

394  {
395  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceRespCorrs-> ...";
397  rcd.getRecord<IdealGeometryRecord>().get(htopo);
398  const HcalTopology* topo=&(*htopo);
399 
400  std::auto_ptr<HcalRespCorrs> result (new HcalRespCorrs (topo));
401  std::vector <HcalGenericDetId> cells = allCells(*topo);
402  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
403 
404  double corr = 1.0;
405 
406  if ((he_recalibration != 0 ) &&
407  ((*cell).genericSubdet() == HcalGenericDetId::HcalGenEndcap)) {
408 
409  int depth_ = HcalDetId(*cell).depth();
410  int ieta_ = HcalDetId(*cell).ieta();
411  corr = he_recalibration->getCorr(ieta_, depth_);
412 
413  /*
414  std::cout << "HE ieta, depth = " << ieta_ << ", " << depth_
415  << " corr = " << corr << std::endl;
416  */
417 
418  }
419  else if ((hf_recalibration != 0 ) &&
420  ((*cell).genericSubdet() == HcalGenericDetId::HcalGenForward)) {
421  int depth_ = HcalDetId(*cell).depth();
422  int ieta_ = HcalDetId(*cell).ieta();
423  corr = hf_recalibration->getCorr(ieta_, depth_, iLumi);
424 
425  /*
426  std::cout << "HF ieta, depth = " << ieta_ << ", " << depth_
427  << " corr = " << corr << std::endl;
428  */
429 
430  }
431 
432  HcalRespCorr item(cell->rawId(),corr);
433  result->addValues(item);
434  }
435  return result;
436 }
double getCorr(int ieta, int idepth)
int depth() const
get the tower depth
Definition: HcalDetId.h:55
double getCorr(int ieta, int idepth, double lumi)
tuple result
Definition: query.py:137
int ieta() const
get the cell ieta
Definition: HcalDetId.h:51
JetCorrectorParameters corr
Definition: classes.h:5
std::auto_ptr< HcalTimeCorrs > HcalHardcodeCalibrations::produceTimeCorrs ( const HcalTimeCorrsRcd rcd)
protected

Definition at line 468 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.

Referenced by HcalHardcodeCalibrations().

468  {
469  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceTimeCorrs-> ...";
471  rcd.getRecord<IdealGeometryRecord>().get(htopo);
472  const HcalTopology* topo=&(*htopo);
473 
474  std::auto_ptr<HcalTimeCorrs> result (new HcalTimeCorrs (topo));
475  std::vector <HcalGenericDetId> cells = allCells(*topo);
476  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
477  HcalTimeCorr item(cell->rawId(),0.0);
478  result->addValues(item);
479  }
480  return result;
481 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalTimingParams > HcalHardcodeCalibrations::produceTimingParams ( const HcalTimingParamsRcd rcd)
protected

Definition at line 603 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::makeTimingParam(), and query::result.

603  {
604  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceTimingParams-> ...";
606  rec.getRecord<IdealGeometryRecord>().get(htopo);
607  const HcalTopology* topo=&(*htopo);
608 
609  std::auto_ptr<HcalTimingParams> result (new HcalTimingParams (topo));
610  std::vector <HcalGenericDetId> cells = allCells(*topo);
611  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
613  result->addValues(item);
614  }
615  return result;
616 }
HcalTimingParam makeTimingParam(HcalGenericDetId fId)
tuple result
Definition: query.py:137
std::auto_ptr< HcalValidationCorrs > HcalHardcodeCalibrations::produceValidationCorrs ( const HcalValidationCorrsRcd rcd)
protected

Definition at line 528 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.

Referenced by HcalHardcodeCalibrations().

528  {
529  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceValidationCorrs-> ...";
531  rcd.getRecord<IdealGeometryRecord>().get(htopo);
532  const HcalTopology* topo=&(*htopo);
533 
534  std::auto_ptr<HcalValidationCorrs> result (new HcalValidationCorrs (topo));
535  std::vector <HcalGenericDetId> cells = allCells(*topo);
536  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
537  HcalValidationCorr item(cell->rawId(),1.0);
538  result->addValues(item);
539  }
540  return result;
541 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalZDCLowGainFractions > HcalHardcodeCalibrations::produceZDCLowGainFractions ( const HcalZDCLowGainFractionsRcd rcd)
protected

Definition at line 643 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.

Referenced by HcalHardcodeCalibrations().

643  {
644  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceZDCLowGainFractions-> ...";
646  rec.getRecord<IdealGeometryRecord>().get(htopo);
647  const HcalTopology* topo=&(*htopo);
648 
649  std::auto_ptr<HcalZDCLowGainFractions> result (new HcalZDCLowGainFractions (topo));
650  std::vector <HcalGenericDetId> cells = allCells(*topo);
651  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
652  HcalZDCLowGainFraction item(cell->rawId(),0.0);
653  result->addValues(item);
654  }
655  return result;
656 }
tuple result
Definition: query.py:137
std::auto_ptr< HcalZSThresholds > HcalHardcodeCalibrations::produceZSThresholds ( const HcalZSThresholdsRcd rcd)
protected

Definition at line 483 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), and query::result.

Referenced by HcalHardcodeCalibrations().

483  {
484  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceZSThresholds-> ...";
486  rcd.getRecord<IdealGeometryRecord>().get(htopo);
487  const HcalTopology* topo=&(*htopo);
488 
489  std::auto_ptr<HcalZSThresholds> result (new HcalZSThresholds (topo));
490  std::vector <HcalGenericDetId> cells = allCells(*topo);
491  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); cell++) {
492  HcalZSThreshold item(cell->rawId(),0);
493  result->addValues(item);
494  }
495  return result;
496 }
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 284 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().

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

Member Data Documentation

HERecalibration* HcalHardcodeCalibrations::he_recalibration
private
HFRecalibration* HcalHardcodeCalibrations::hf_recalibration
private
double HcalHardcodeCalibrations::iLumi
private
bool HcalHardcodeCalibrations::switchGainWidthsForTrigPrims
private

Definition at line 95 of file HcalHardcodeCalibrations.h.

Referenced by HcalHardcodeCalibrations(), and produceGainWidths().