CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes
HcalHardcodeCalibrations Class Reference

#include <HcalHardcodeCalibrations.h>

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

Public Member Functions

 HcalHardcodeCalibrations (const edm::ParameterSet &)
 
void produce ()
 
 ~HcalHardcodeCalibrations ()
 
- 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 ()
 

Static Public Member Functions

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

Protected Member Functions

std::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< HcalQIETypesproduceQIETypes (const HcalQIETypesRcd &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 setHBdsegm
 
bool setHEdsegm
 
double SipmLumi
 
bool switchGainWidthsForTrigPrims
 
bool testHFQIE10
 

Additional Inherited Members

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

Detailed Description

Definition at line 48 of file HcalHardcodeCalibrations.h.

Constructor & Destructor Documentation

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

Definition at line 125 of file HcalHardcodeCalibrations.cc.

References Vispa.Plugins.EdmBrowser.EdmDataAccessor::all(), gather_cfg::cout, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), he_recalibration, hf_recalibration, iLumi, summarizeEdmComparisonLogfiles::objectName, produceChannelQuality(), produceCholeskyMatrices(), produceCovarianceMatrices(), produceDcsMap(), produceDcsValues(), produceElectronicsMap(), produceFlagHFDigiTimeParams(), produceGains(), produceGainWidths(), produceL1TriggerObjects(), produceLongRecoParams(), produceLUTCorrs(), produceLutMetadata(), produceMCParams(), producePedestals(), producePedestalWidths(), producePFCorrs(), produceQIEData(), produceQIETypes(), produceRecoParams(), produceRespCorrs(), produceTimeCorrs(), produceValidationCorrs(), produceZDCLowGainFractions(), produceZSThresholds(), edm::ESProducer::setWhatProduced(), switchGainWidthsForTrigPrims, and convertSQLitetoXML_cfg::toGet.

125  :
126  he_recalibration(0), hf_recalibration(0), setHEdsegm(false), setHBdsegm(false), SipmLumi(0.0), testHFQIE10(iConfig.getParameter<bool>("testHFQIE10"))
127 {
128  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::HcalHardcodeCalibrations->...";
129 
130  if ( iConfig.exists("GainWidthsForTrigPrims") )
131  switchGainWidthsForTrigPrims = iConfig.getParameter<bool>("GainWidthsForTrigPrims");
132  else switchGainWidthsForTrigPrims = false;
133 
134 
135  // HE and HF recalibration preparation
136  iLumi = 0.;
137  if ( iConfig.exists("iLumi") )
138  iLumi=iConfig.getParameter<double>("iLumi");
139 
140  if( iLumi > 0.0 ) {
141  bool he_recalib = iConfig.getParameter<bool>("HERecalibration");
142  bool hf_recalib = iConfig.getParameter<bool>("HFRecalibration");
143  if(he_recalib) {
144  double cutoff = iConfig.getParameter<double>("HEreCalibCutoff");
145  he_recalibration = new HERecalibration(iLumi,cutoff);
146  }
147  if(hf_recalib) hf_recalibration = new HFRecalibration();
148 
149 #ifdef DebugLog
150  std::cout << " HcalHardcodeCalibrations: iLumi = " << iLumi << std::endl;
151 #endif
152  }
153 
154  std::vector <std::string> toGet = iConfig.getUntrackedParameter <std::vector <std::string> > ("toGet");
155  for(std::vector <std::string>::iterator objectName = toGet.begin(); objectName != toGet.end(); ++objectName ) {
156  bool all = *objectName == "all";
157 #ifdef DebugLog
158  std::cout << "Load parameters for " << *objectName << std::endl;
159 #endif
160  if ((*objectName == "Pedestals") || all) {
162  findingRecord <HcalPedestalsRcd> ();
163  }
164  if ((*objectName == "PedestalWidths") || all) {
166  findingRecord <HcalPedestalWidthsRcd> ();
167  }
168  if ((*objectName == "Gains") || all) {
170  findingRecord <HcalGainsRcd> ();
171  }
172  if ((*objectName == "GainWidths") || all) {
174  findingRecord <HcalGainWidthsRcd> ();
175  }
176  if ((*objectName == "QIEData") || all) {
178  findingRecord <HcalQIEDataRcd> ();
179  }
180  if ((*objectName == "QIETypes") || all) {
182  findingRecord <HcalQIETypesRcd> ();
183  }
184  if ((*objectName == "ChannelQuality") || (*objectName == "channelQuality") || all) {
186  findingRecord <HcalChannelQualityRcd> ();
187  }
188  if ((*objectName == "ElectronicsMap") || (*objectName == "electronicsMap") || all) {
190  findingRecord <HcalElectronicsMapRcd> ();
191  }
192  if ((*objectName == "ZSThresholds") || (*objectName == "zsThresholds") || all) {
194  findingRecord <HcalZSThresholdsRcd> ();
195  }
196  if ((*objectName == "RespCorrs") || (*objectName == "ResponseCorrection") || all) {
198  findingRecord <HcalRespCorrsRcd> ();
199  }
200  if ((*objectName == "LUTCorrs") || (*objectName == "LUTCorrection") || all) {
202  findingRecord <HcalLUTCorrsRcd> ();
203  }
204  if ((*objectName == "PFCorrs") || (*objectName == "PFCorrection") || all) {
206  findingRecord <HcalPFCorrsRcd> ();
207  }
208  if ((*objectName == "TimeCorrs") || (*objectName == "TimeCorrection") || all) {
210  findingRecord <HcalTimeCorrsRcd> ();
211  }
212  if ((*objectName == "L1TriggerObjects") || (*objectName == "L1Trigger") || all) {
214  findingRecord <HcalL1TriggerObjectsRcd> ();
215  }
216  if ((*objectName == "ValidationCorrs") || (*objectName == "ValidationCorrection") || all) {
218  findingRecord <HcalValidationCorrsRcd> ();
219  }
220  if ((*objectName == "LutMetadata") || (*objectName == "lutMetadata") || all) {
222  findingRecord <HcalLutMetadataRcd> ();
223  }
224  if ((*objectName == "DcsValues") || all) {
226  findingRecord <HcalDcsRcd> ();
227  }
228  if ((*objectName == "DcsMap") || (*objectName == "dcsMap") || all) {
230  findingRecord <HcalDcsMapRcd> ();
231  }
232  if ((*objectName == "RecoParams") || all) {
234  findingRecord <HcalRecoParamsRcd> ();
235  }
236  if ((*objectName == "LongRecoParams") || all) {
238  findingRecord <HcalLongRecoParamsRcd> ();
239  }
240  if ((*objectName == "ZDCLowGainFractions") || all) {
242  findingRecord <HcalZDCLowGainFractionsRcd> ();
243  }
244  if ((*objectName == "MCParams") || all) {
246  findingRecord <HcalMCParamsRcd> ();
247  }
248  if ((*objectName == "FlagHFDigiTimeParams") || all) {
250  findingRecord <HcalFlagHFDigiTimeParamsRcd> ();
251  }
252  if ((*objectName == "CholeskyMatrices") || all) {
254  findingRecord <HcalCholeskyMatricesRcd> ();
255  }
256  if ((*objectName == "CovarianceMatrices") || all) {
258  findingRecord <HcalCovarianceMatricesRcd> ();
259  }
260  }
261 }
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
std::auto_ptr< HcalLUTCorrs > produceLUTCorrs(const HcalLUTCorrsRcd &rcd)
std::auto_ptr< HcalDcsMap > produceDcsMap(const HcalDcsMapRcd &rcd)
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< HcalQIETypes > produceQIETypes(const HcalQIETypesRcd &rcd)
std::auto_ptr< HcalCovarianceMatrices > produceCovarianceMatrices(const HcalCovarianceMatricesRcd &rcd)
std::auto_ptr< HcalMCParams > produceMCParams(const HcalMCParamsRcd &rcd)
tuple cout
Definition: gather_cfg.py:145
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 264 of file HcalHardcodeCalibrations.cc.

References he_recalibration, and hf_recalibration.

265 {
266  if (he_recalibration != 0 ) delete he_recalibration;
267  if (hf_recalibration != 0 ) delete hf_recalibration;
268 }

Member Function Documentation

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

Definition at line 771 of file HcalHardcodeCalibrations.cc.

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

771  {
773  desc.add<double>("iLumi",-1.);
774  desc.add<bool>("HERecalibration",false);
775  desc.add<double>("HEreCalibCutoff",20.);
776  desc.add<bool>("HFRecalibration",false);
777  desc.add<bool>("GainWidthsForTrigPrims",false);
778  desc.add<bool>("testHFQIE10",false);
779  desc.addUntracked<std::vector<std::string>>("toGet",std::vector<std::string>());
780  desc.addUntracked<bool>("fromDDD",false);
781 
782  descriptions.addDefault(desc);
783 }
void addDefault(ParameterSetDescription const &psetDescription)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void HcalHardcodeCalibrations::produce ( )
inline
std::auto_ptr< HcalChannelQuality > HcalHardcodeCalibrations::produceChannelQuality ( const HcalChannelQualityRcd rcd)
protected

Definition at line 383 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

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

Definition at line 733 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

733  {
734 
736  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
737  const HcalTopology* topo=&(*htopo);
738  std::auto_ptr<HcalCholeskyMatrices> result (new HcalCholeskyMatrices (topo));
739 
740  std::vector <HcalGenericDetId> cells = allCells(*topo);
741  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
742 
743  int sub = cell->genericSubdet();
744 
745  if (sub == HcalGenericDetId::HcalGenBarrel ||
749  HcalCholeskyMatrix item(cell->rawId());
750  result->addValues(item);
751  }
752  }
753  return result;
754 
755 }
tuple result
Definition: mps_fire.py:84
std::auto_ptr< HcalCovarianceMatrices > HcalHardcodeCalibrations::produceCovarianceMatrices ( const HcalCovarianceMatricesRcd rcd)
protected

Definition at line 756 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

756  {
757 
759  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
760  const HcalTopology* topo=&(*htopo);
761  std::auto_ptr<HcalCovarianceMatrices> result (new HcalCovarianceMatrices (topo));
762  std::vector <HcalGenericDetId> cells = allCells(*topo);
763  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
764 
765  HcalCovarianceMatrix item(cell->rawId());
766  result->addValues(item);
767  }
768  return result;
769 }
tuple result
Definition: mps_fire.py:84
std::auto_ptr< HcalDcsMap > HcalHardcodeCalibrations::produceDcsMap ( const HcalDcsMapRcd rcd)
protected

Definition at line 607 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

607  {
608  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceDcsMap-> ...";
609 
610  std::auto_ptr<HcalDcsMap> result (new HcalDcsMap ());
612  return result;
613 }
tuple result
Definition: mps_fire.py:84
void makeHardcodeDcsMap(HcalDcsMap &dcs_map)
std::auto_ptr< HcalDcsValues > HcalHardcodeCalibrations::produceDcsValues ( const HcalDcsRcd rcd)
protected

Definition at line 601 of file HcalHardcodeCalibrations.cc.

References mps_fire::result.

Referenced by HcalHardcodeCalibrations().

601  {
602  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceDcsValues-> ...";
603  std::auto_ptr<HcalDcsValues> result(new HcalDcsValues);
604  return result;
605 }
tuple result
Definition: mps_fire.py:84
std::auto_ptr< HcalElectronicsMap > HcalHardcodeCalibrations::produceElectronicsMap ( const HcalElectronicsMapRcd rcd)
protected

Definition at line 546 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

546  {
547  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceElectronicsMap-> ...";
548 
549  std::auto_ptr<HcalElectronicsMap> result (new HcalElectronicsMap ());
551  return result;
552 }
void makeHardcodeMap(HcalElectronicsMap &emap)
tuple result
Definition: mps_fire.py:84
std::auto_ptr< HcalFlagHFDigiTimeParams > HcalHardcodeCalibrations::produceFlagHFDigiTimeParams ( const HcalFlagHFDigiTimeParamsRcd rcd)
protected

Definition at line 705 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

705  {
706  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceFlagHFDigiTimeParams-> ...";
708  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
709  const HcalTopology* topo=&(*htopo);
710 
711  std::auto_ptr<HcalFlagHFDigiTimeParams> result (new HcalFlagHFDigiTimeParams (topo));
712  std::vector <HcalGenericDetId> cells = allCells(*topo);
713 
714  std::vector<double> coef;
715  coef.push_back(0.93);
716  coef.push_back(-0.38275);
717  coef.push_back(-0.012667);
718 
719  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
720  HcalFlagHFDigiTimeParam item(cell->rawId(),
721  1, //firstsample
722  3, // samplestoadd
723  2, //expectedpeak
724  40., // min energy threshold
725  coef // coefficients
726  );
727  result->addValues(item);
728  }
729  return result;
730 }
tuple result
Definition: mps_fire.py:84
std::auto_ptr< HcalGains > HcalHardcodeCalibrations::produceGains ( const HcalGainsRcd rcd)
protected

Definition at line 310 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

310  {
311  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceGains-> ...";
313  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
314  const HcalTopology* topo=&(*htopo);
315 
316  std::auto_ptr<HcalGains> result (new HcalGains (topo));
317  std::vector <HcalGenericDetId> cells = allCells(*topo);
318  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
319  HcalGain item = HcalDbHardcode::makeGain (*cell);
320  result->addValues(item);
321  }
322  return result;
323 }
tuple result
Definition: mps_fire.py:84
HcalGain makeGain(HcalGenericDetId fId, bool fSmear=false)
std::auto_ptr< HcalGainWidths > HcalHardcodeCalibrations::produceGainWidths ( const HcalGainWidthsRcd rcd)
protected

Definition at line 325 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

325  {
326  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceGainWidths-> ...";
328  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
329  const HcalTopology* topo=&(*htopo);
330 
331  std::auto_ptr<HcalGainWidths> result (new HcalGainWidths (topo));
332  std::vector <HcalGenericDetId> cells = allCells(*topo);
333  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
334 
335  // for Upgrade - include TrigPrims, for regular case - only HcalDetId
338  result->addValues(item);
339  } else if (!cell->isHcalTrigTowerDetId()) {
341  result->addValues(item);
342  }
343  }
344  return result;
345 }
tuple result
Definition: mps_fire.py:84
HcalGainWidth makeGainWidth(HcalGenericDetId fId)
std::auto_ptr< HcalL1TriggerObjects > HcalHardcodeCalibrations::produceL1TriggerObjects ( const HcalL1TriggerObjectsRcd rcd)
protected

Definition at line 525 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

525  {
526  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceL1TriggerObjects-> ...";
528  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
529  const HcalTopology* topo=&(*htopo);
530 
531  std::auto_ptr<HcalL1TriggerObjects> result (new HcalL1TriggerObjects (topo));
532  std::vector <HcalGenericDetId> cells = allCells(*topo);
533  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
534  HcalL1TriggerObject item(cell->rawId(),0., 1., 0);
535  result->addValues(item);
536  }
537  // add tag and algo values
538  result->setTagString("hardcoded");
539  result->setAlgoString("hardcoded");
540  return result;
541 }
tuple result
Definition: mps_fire.py:84
std::auto_ptr< HcalLongRecoParams > HcalHardcodeCalibrations::produceLongRecoParams ( const HcalLongRecoParamsRcd rcd)
protected

Definition at line 643 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

643  {
644  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceLongRecoParams-> ...";
646  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
647  const HcalTopology* topo=&(*htopo);
648 
649  std::auto_ptr<HcalLongRecoParams> result (new HcalLongRecoParams (topo));
650  std::vector <HcalGenericDetId> cells = allCells(*topo);
651  std::vector <unsigned int> mSignal;
652  mSignal.push_back(4);
653  mSignal.push_back(5);
654  mSignal.push_back(6);
655  std::vector <unsigned int> mNoise;
656  mNoise.push_back(1);
657  mNoise.push_back(2);
658  mNoise.push_back(3);
659  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
660  if (cell->isHcalZDCDetId())
661  {
662  HcalLongRecoParam item(cell->rawId(),mSignal,mNoise);
663  result->addValues(item);
664  }
665  }
666  return result;
667 }
tuple result
Definition: mps_fire.py:84
std::auto_ptr< HcalLUTCorrs > HcalHardcodeCalibrations::produceLUTCorrs ( const HcalLUTCorrsRcd rcd)
protected

Definition at line 464 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

464  {
465  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceLUTCorrs-> ...";
467  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
468  const HcalTopology* topo=&(*htopo);
469 
470  std::auto_ptr<HcalLUTCorrs> result (new HcalLUTCorrs (topo));
471  std::vector <HcalGenericDetId> cells = allCells(*topo);
472  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
473  HcalLUTCorr item(cell->rawId(),1.0);
474  result->addValues(item);
475  }
476  return result;
477 }
tuple result
Definition: mps_fire.py:84
std::auto_ptr< HcalLutMetadata > HcalHardcodeCalibrations::produceLutMetadata ( const HcalLutMetadataRcd rcd)
protected

Definition at line 569 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

569  {
570  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceLutMetadata-> ...";
572  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
573  const HcalTopology* topo=&(*htopo);
574 
575  std::auto_ptr<HcalLutMetadata> result (new HcalLutMetadata (topo));
576 
577  result->setRctLsb( 0.5 );
578  result->setNominalGain(0.003333); // for HBHE SiPMs
579 
580  std::vector <HcalGenericDetId> cells = allCells(*topo);
581  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
582 
583  /*
584  if (cell->isHcalTrigTowerDetId()) {
585  HcalTrigTowerDetId ht = HcalTrigTowerDetId(*cell);
586  int ieta = ht.ieta();
587  int iphi = ht.iphi();
588  std::cout << " HcalTrigTower cell (ieta,iphi) = "
589  << ieta << ", " << iphi << std::endl;
590  }
591  */
592 
593  HcalLutMetadatum item(cell->rawId(),1.0,1,1);
594  result->addValues(item);
595  }
596 
597  return result;
598 }
tuple result
Definition: mps_fire.py:84
std::auto_ptr< HcalMCParams > HcalHardcodeCalibrations::produceMCParams ( const HcalMCParamsRcd rcd)
protected

Definition at line 684 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

684  {
685 
686 
687  // std::cout << std::endl << " .... HcalHardcodeCalibrations::produceMCParams ->"<< std::endl;
688 
689  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceMCParams-> ...";
691  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
692  const HcalTopology* topo=&(*htopo);
693  std::auto_ptr<HcalMCParams> result (new HcalMCParams (topo));
694  std::vector <HcalGenericDetId> cells = allCells(*topo);
695  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
696 
697  // HcalMCParam item(cell->rawId(),0);
699  result->addValues(item);
700  }
701  return result;
702 }
tuple result
Definition: mps_fire.py:84
HcalMCParam makeMCParam(HcalGenericDetId fId)
std::auto_ptr< HcalPedestals > HcalHardcodeCalibrations::producePedestals ( const HcalPedestalsRcd rcd)
protected

Definition at line 280 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

280  {
281  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::producePedestals-> ...";
283  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
284  const HcalTopology* topo=&(*htopo);
285 
286  std::auto_ptr<HcalPedestals> result (new HcalPedestals (topo,false));
287  std::vector <HcalGenericDetId> cells = allCells(*topo);
288  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
289  HcalPedestal item = HcalDbHardcode::makePedestal (*cell, false, iLumi);
290  result->addValues(item);
291  }
292  return result;
293 }
tuple result
Definition: mps_fire.py:84
HcalPedestal makePedestal(HcalGenericDetId fId, bool fSmear=false)
std::auto_ptr< HcalPedestalWidths > HcalHardcodeCalibrations::producePedestalWidths ( const HcalPedestalWidthsRcd rcd)
protected

Definition at line 295 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

295  {
296  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::producePedestalWidths-> ...";
298  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
299  const HcalTopology* topo=&(*htopo);
300 
301  std::auto_ptr<HcalPedestalWidths> result (new HcalPedestalWidths (topo,false));
302  std::vector <HcalGenericDetId> cells = allCells(*htopo);
303  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
305  result->addValues(item);
306  }
307  return result;
308 }
tuple result
Definition: mps_fire.py:84
HcalPedestalWidth makePedestalWidth(HcalGenericDetId fId)
std::auto_ptr< HcalPFCorrs > HcalHardcodeCalibrations::producePFCorrs ( const HcalPFCorrsRcd rcd)
protected

Definition at line 479 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

479  {
480  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::producePFCorrs-> ...";
482  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
483  const HcalTopology* topo=&(*htopo);
484 
485  std::auto_ptr<HcalPFCorrs> result (new HcalPFCorrs (topo));
486  std::vector <HcalGenericDetId> cells = allCells(*topo);
487  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
488  HcalPFCorr item(cell->rawId(),1.0);
489  result->addValues(item);
490  }
491  return result;
492 }
tuple result
Definition: mps_fire.py:84
std::auto_ptr< HcalQIEData > HcalHardcodeCalibrations::produceQIEData ( const HcalQIEDataRcd rcd)
protected

Definition at line 347 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

347  {
348  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceQIEData-> ...";
349 
350  /*
351  std::cout << std::endl << ">>> HcalHardcodeCalibrations::produceQIEData"
352  << std::endl;
353  */
354 
356  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
357  const HcalTopology* topo=&(*htopo);
358 
359  std::auto_ptr<HcalQIEData> result (new HcalQIEData (topo));
360  std::vector <HcalGenericDetId> cells = allCells(*topo);
361  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
363  result->addCoder (coder);
364  }
365  return result;
366 }
tuple result
Definition: mps_fire.py:84
HcalQIECoder makeQIECoder(HcalGenericDetId fId)
std::auto_ptr< HcalQIETypes > HcalHardcodeCalibrations::produceQIETypes ( const HcalQIETypesRcd rcd)
protected

Definition at line 368 of file HcalHardcodeCalibrations.cc.

References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalDbHardcode::makeQIEType(), mps_fire::result, and testHFQIE10.

Referenced by HcalHardcodeCalibrations().

368  {
369  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceQIETypes-> ...";
371  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
372  const HcalTopology* topo=&(*htopo);
373 
374  std::auto_ptr<HcalQIETypes> result (new HcalQIETypes (topo));
375  std::vector <HcalGenericDetId> cells = allCells(*topo);
376  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
378  result->addValues(item);
379  }
380  return result;
381 }
HcalQIEType makeQIEType(HcalGenericDetId fId, bool testHFQIE10)
tuple result
Definition: mps_fire.py:84
std::auto_ptr< HcalRecoParams > HcalHardcodeCalibrations::produceRecoParams ( const HcalRecoParamsRcd rcd)
protected

Definition at line 615 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

615  {
616  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceRecoParams-> ...";
618  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
619  const HcalTopology* topo=&(*htopo);
620 
621  std::auto_ptr<HcalRecoParams> result (new HcalRecoParams (topo));
622  std::vector <HcalGenericDetId> cells = allCells(*topo);
623  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
625  result->addValues(item);
626  }
627  return result;
628 }
tuple result
Definition: mps_fire.py:84
HcalRecoParam makeRecoParam(HcalGenericDetId fId)
std::auto_ptr< HcalRespCorrs > HcalHardcodeCalibrations::produceRespCorrs ( const HcalRespCorrsRcd rcd)
protected

Definition at line 399 of file HcalHardcodeCalibrations.cc.

References corr, HcalDetId::depth(), HFRecalibration::getCorr(), HERecalibration::getCorr(), HcalTopology::getDepthSegmentation(), edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, he_recalibration, hf_recalibration, i, HcalDetId::ieta(), iLumi, HcalTopology::lastHERing(), maxEta, mps_fire::result, HERecalibration::setDsegm(), and setHEdsegm.

Referenced by HcalHardcodeCalibrations().

399  {
400  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceRespCorrs-> ...";
402  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
403  const HcalTopology* topo=&(*htopo);
404 
405  //set depth segmentation for HB/HE recalib - only happens once
406 // if((he_recalibration && !setHEdsegm) || (hb_recalibration && !setHBdsegm)){
407  if((he_recalibration && !setHEdsegm)) {
408  std::vector<std::vector<int>> m_segmentation;
409  int maxEta = topo->lastHERing();
410  m_segmentation.resize(maxEta);
411  for (int i = 0; i < maxEta; i++) {
412  topo->getDepthSegmentation(i+1,m_segmentation[i]);
413  }
415  he_recalibration->setDsegm(m_segmentation);
416  setHEdsegm = true;
417  }
418  /*
419  if(hb_recalibration && !setHBdsegm){
420  hb_recalibration->setDsegm(m_segmentation);
421  setHBdsegm = true;
422  }
423  */
424  }
425 
426  std::auto_ptr<HcalRespCorrs> result (new HcalRespCorrs (topo));
427  std::vector <HcalGenericDetId> cells = allCells(*topo);
428  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
429 
430  double corr = 1.0;
431 
432  if ((he_recalibration != 0 ) &&
433  ((*cell).genericSubdet() == HcalGenericDetId::HcalGenEndcap)) {
434 
435  int depth_ = HcalDetId(*cell).depth();
436  int ieta_ = HcalDetId(*cell).ieta();
437  corr = he_recalibration->getCorr(ieta_, depth_);
438 
439  /*
440  std::cout << "HE ieta, depth = " << ieta_ << ", " << depth_
441  << " corr = " << corr << std::endl;
442  */
443 
444  }
445  else if ((hf_recalibration != 0 ) &&
446  ((*cell).genericSubdet() == HcalGenericDetId::HcalGenForward)) {
447  int depth_ = HcalDetId(*cell).depth();
448  int ieta_ = HcalDetId(*cell).ieta();
449  corr = hf_recalibration->getCorr(ieta_, depth_, iLumi);
450 
451  /*
452  std::cout << "HF ieta, depth = " << ieta_ << ", " << depth_
453  << " corr = " << corr << std::endl;
454  */
455 
456  }
457 
458  HcalRespCorr item(cell->rawId(),corr);
459  result->addValues(item);
460  }
461  return result;
462 }
int i
Definition: DBlmapReader.cc:9
void setDsegm(const std::vector< std::vector< int > > &m_segmentation)
double maxEta
double getCorr(int ieta, int idepth)
tuple result
Definition: mps_fire.py:84
int depth() const
get the tower depth
Definition: HcalDetId.cc:129
double getCorr(int ieta, int idepth, double lumi)
int ieta() const
get the cell ieta
Definition: HcalDetId.h:56
JetCorrectorParameters corr
Definition: classes.h:5
void getDepthSegmentation(unsigned ring, std::vector< int > &readoutDepths) const
int lastHERing() const
Definition: HcalTopology.h:86
std::auto_ptr< HcalTimeCorrs > HcalHardcodeCalibrations::produceTimeCorrs ( const HcalTimeCorrsRcd rcd)
protected

Definition at line 494 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

494  {
495  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceTimeCorrs-> ...";
497  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
498  const HcalTopology* topo=&(*htopo);
499 
500  std::auto_ptr<HcalTimeCorrs> result (new HcalTimeCorrs (topo));
501  std::vector <HcalGenericDetId> cells = allCells(*topo);
502  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
503  HcalTimeCorr item(cell->rawId(),0.0);
504  result->addValues(item);
505  }
506  return result;
507 }
tuple result
Definition: mps_fire.py:84
std::auto_ptr< HcalTimingParams > HcalHardcodeCalibrations::produceTimingParams ( const HcalTimingParamsRcd rcd)
protected

Definition at line 629 of file HcalHardcodeCalibrations.cc.

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

629  {
630  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceTimingParams-> ...";
632  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
633  const HcalTopology* topo=&(*htopo);
634 
635  std::auto_ptr<HcalTimingParams> result (new HcalTimingParams (topo));
636  std::vector <HcalGenericDetId> cells = allCells(*topo);
637  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
639  result->addValues(item);
640  }
641  return result;
642 }
HcalTimingParam makeTimingParam(HcalGenericDetId fId)
tuple result
Definition: mps_fire.py:84
std::auto_ptr< HcalValidationCorrs > HcalHardcodeCalibrations::produceValidationCorrs ( const HcalValidationCorrsRcd rcd)
protected

Definition at line 554 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

554  {
555  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceValidationCorrs-> ...";
557  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
558  const HcalTopology* topo=&(*htopo);
559 
560  std::auto_ptr<HcalValidationCorrs> result (new HcalValidationCorrs (topo));
561  std::vector <HcalGenericDetId> cells = allCells(*topo);
562  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
563  HcalValidationCorr item(cell->rawId(),1.0);
564  result->addValues(item);
565  }
566  return result;
567 }
tuple result
Definition: mps_fire.py:84
std::auto_ptr< HcalZDCLowGainFractions > HcalHardcodeCalibrations::produceZDCLowGainFractions ( const HcalZDCLowGainFractionsRcd rcd)
protected

Definition at line 669 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

669  {
670  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceZDCLowGainFractions-> ...";
672  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
673  const HcalTopology* topo=&(*htopo);
674 
675  std::auto_ptr<HcalZDCLowGainFractions> result (new HcalZDCLowGainFractions (topo));
676  std::vector <HcalGenericDetId> cells = allCells(*topo);
677  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
678  HcalZDCLowGainFraction item(cell->rawId(),0.0);
679  result->addValues(item);
680  }
681  return result;
682 }
tuple result
Definition: mps_fire.py:84
std::auto_ptr< HcalZSThresholds > HcalHardcodeCalibrations::produceZSThresholds ( const HcalZSThresholdsRcd rcd)
protected

Definition at line 509 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

509  {
510  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceZSThresholds-> ...";
512  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
513  const HcalTopology* topo=&(*htopo);
514 
515  std::auto_ptr<HcalZSThresholds> result (new HcalZSThresholds (topo));
516  std::vector <HcalGenericDetId> cells = allCells(*topo);
517  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
518  HcalZSThreshold item(cell->rawId(),0);
519  result->addValues(item);
520  }
521  return result;
522 }
tuple result
Definition: mps_fire.py:84
void HcalHardcodeCalibrations::setIntervalFor ( const edm::eventsetup::EventSetupRecordKey iKey,
const edm::IOVSyncValue iTime,
edm::ValidityInterval oInterval 
)
protectedvirtual

Implements edm::EventSetupRecordIntervalFinder.

Definition at line 274 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().

274  {
275  std::string record = iKey.name ();
276  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::setIntervalFor-> key: " << record << " time: " << iTime.eventID() << '/' << iTime.time ().value ();
278 }
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::setHBdsegm
private

Definition at line 101 of file HcalHardcodeCalibrations.h.

bool HcalHardcodeCalibrations::setHEdsegm
private

Definition at line 100 of file HcalHardcodeCalibrations.h.

Referenced by produceRespCorrs().

double HcalHardcodeCalibrations::SipmLumi
private

Definition at line 102 of file HcalHardcodeCalibrations.h.

bool HcalHardcodeCalibrations::switchGainWidthsForTrigPrims
private

Definition at line 99 of file HcalHardcodeCalibrations.h.

Referenced by HcalHardcodeCalibrations(), and produceGainWidths().

bool HcalHardcodeCalibrations::testHFQIE10
private

Definition at line 103 of file HcalHardcodeCalibrations.h.

Referenced by produceQIETypes().