test
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 118 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.

118  :
119  he_recalibration(0), hf_recalibration(0), setHEdsegm(false), setHBdsegm(false), SipmLumi(0.0), testHFQIE10(iConfig.getParameter<bool>("testHFQIE10"))
120 {
121  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::HcalHardcodeCalibrations->...";
122 
123  if ( iConfig.exists("GainWidthsForTrigPrims") )
124  switchGainWidthsForTrigPrims = iConfig.getParameter<bool>("GainWidthsForTrigPrims");
125  else switchGainWidthsForTrigPrims = false;
126 
127 
128  // HE and HF recalibration preparation
129  iLumi = 0.;
130  if ( iConfig.exists("iLumi") )
131  iLumi=iConfig.getParameter<double>("iLumi");
132 
133  if( iLumi > 0.0 ) {
134  bool he_recalib = iConfig.getParameter<bool>("HERecalibration");
135  bool hf_recalib = iConfig.getParameter<bool>("HFRecalibration");
136  if(he_recalib) {
137  double cutoff = iConfig.getParameter<double>("HEreCalibCutoff");
138  he_recalibration = new HERecalibration(iLumi,cutoff);
139  }
140  if(hf_recalib) hf_recalibration = new HFRecalibration();
141 
142 #ifdef DebugLog
143  std::cout << " HcalHardcodeCalibrations: iLumi = " << iLumi << std::endl;
144 #endif
145  }
146 
147  std::vector <std::string> toGet = iConfig.getUntrackedParameter <std::vector <std::string> > ("toGet");
148  for(std::vector <std::string>::iterator objectName = toGet.begin(); objectName != toGet.end(); ++objectName ) {
149  bool all = *objectName == "all";
150 #ifdef DebugLog
151  std::cout << "Load parameters for " << *objectName << std::endl;
152 #endif
153  if ((*objectName == "Pedestals") || all) {
155  findingRecord <HcalPedestalsRcd> ();
156  }
157  if ((*objectName == "PedestalWidths") || all) {
159  findingRecord <HcalPedestalWidthsRcd> ();
160  }
161  if ((*objectName == "Gains") || all) {
163  findingRecord <HcalGainsRcd> ();
164  }
165  if ((*objectName == "GainWidths") || all) {
167  findingRecord <HcalGainWidthsRcd> ();
168  }
169  if ((*objectName == "QIEData") || all) {
171  findingRecord <HcalQIEDataRcd> ();
172  }
173  if ((*objectName == "QIETypes") || all) {
175  findingRecord <HcalQIETypesRcd> ();
176  }
177  if ((*objectName == "ChannelQuality") || (*objectName == "channelQuality") || all) {
179  findingRecord <HcalChannelQualityRcd> ();
180  }
181  if ((*objectName == "ElectronicsMap") || (*objectName == "electronicsMap") || all) {
183  findingRecord <HcalElectronicsMapRcd> ();
184  }
185  if ((*objectName == "ZSThresholds") || (*objectName == "zsThresholds") || all) {
187  findingRecord <HcalZSThresholdsRcd> ();
188  }
189  if ((*objectName == "RespCorrs") || (*objectName == "ResponseCorrection") || all) {
191  findingRecord <HcalRespCorrsRcd> ();
192  }
193  if ((*objectName == "LUTCorrs") || (*objectName == "LUTCorrection") || all) {
195  findingRecord <HcalLUTCorrsRcd> ();
196  }
197  if ((*objectName == "PFCorrs") || (*objectName == "PFCorrection") || all) {
199  findingRecord <HcalPFCorrsRcd> ();
200  }
201  if ((*objectName == "TimeCorrs") || (*objectName == "TimeCorrection") || all) {
203  findingRecord <HcalTimeCorrsRcd> ();
204  }
205  if ((*objectName == "L1TriggerObjects") || (*objectName == "L1Trigger") || all) {
207  findingRecord <HcalL1TriggerObjectsRcd> ();
208  }
209  if ((*objectName == "ValidationCorrs") || (*objectName == "ValidationCorrection") || all) {
211  findingRecord <HcalValidationCorrsRcd> ();
212  }
213  if ((*objectName == "LutMetadata") || (*objectName == "lutMetadata") || all) {
215  findingRecord <HcalLutMetadataRcd> ();
216  }
217  if ((*objectName == "DcsValues") || all) {
219  findingRecord <HcalDcsRcd> ();
220  }
221  if ((*objectName == "DcsMap") || (*objectName == "dcsMap") || all) {
223  findingRecord <HcalDcsMapRcd> ();
224  }
225  if ((*objectName == "RecoParams") || all) {
227  findingRecord <HcalRecoParamsRcd> ();
228  }
229  if ((*objectName == "LongRecoParams") || all) {
231  findingRecord <HcalLongRecoParamsRcd> ();
232  }
233  if ((*objectName == "ZDCLowGainFractions") || all) {
235  findingRecord <HcalZDCLowGainFractionsRcd> ();
236  }
237  if ((*objectName == "MCParams") || all) {
239  findingRecord <HcalMCParamsRcd> ();
240  }
241  if ((*objectName == "FlagHFDigiTimeParams") || all) {
243  findingRecord <HcalFlagHFDigiTimeParamsRcd> ();
244  }
245  if ((*objectName == "CholeskyMatrices") || all) {
247  findingRecord <HcalCholeskyMatricesRcd> ();
248  }
249  if ((*objectName == "CovarianceMatrices") || all) {
251  findingRecord <HcalCovarianceMatricesRcd> ();
252  }
253  }
254 }
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 257 of file HcalHardcodeCalibrations.cc.

References he_recalibration, and hf_recalibration.

258 {
259  if (he_recalibration != 0 ) delete he_recalibration;
260  if (hf_recalibration != 0 ) delete hf_recalibration;
261 }

Member Function Documentation

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

Definition at line 764 of file HcalHardcodeCalibrations.cc.

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

764  {
766  desc.add<double>("iLumi",-1.);
767  desc.add<bool>("HERecalibration",false);
768  desc.add<double>("HEreCalibCutoff",20.);
769  desc.add<bool>("HFRecalibration",false);
770  desc.add<bool>("GainWidthsForTrigPrims",false);
771  desc.add<bool>("testHFQIE10",false);
772  desc.addUntracked<std::vector<std::string>>("toGet",std::vector<std::string>());
773  desc.addUntracked<bool>("fromDDD",false);
774 
775  descriptions.addDefault(desc);
776 }
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 376 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

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

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

726  {
727 
729  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
730  const HcalTopology* topo=&(*htopo);
731  std::auto_ptr<HcalCholeskyMatrices> result (new HcalCholeskyMatrices (topo));
732 
733  std::vector <HcalGenericDetId> cells = allCells(*topo);
734  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
735 
736  int sub = cell->genericSubdet();
737 
738  if (sub == HcalGenericDetId::HcalGenBarrel ||
742  HcalCholeskyMatrix item(cell->rawId());
743  result->addValues(item);
744  }
745  }
746  return result;
747 
748 }
tuple result
Definition: mps_fire.py:83
std::auto_ptr< HcalCovarianceMatrices > HcalHardcodeCalibrations::produceCovarianceMatrices ( const HcalCovarianceMatricesRcd rcd)
protected

Definition at line 749 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

749  {
750 
752  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
753  const HcalTopology* topo=&(*htopo);
754  std::auto_ptr<HcalCovarianceMatrices> result (new HcalCovarianceMatrices (topo));
755  std::vector <HcalGenericDetId> cells = allCells(*topo);
756  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
757 
758  HcalCovarianceMatrix item(cell->rawId());
759  result->addValues(item);
760  }
761  return result;
762 }
tuple result
Definition: mps_fire.py:83
std::auto_ptr< HcalDcsMap > HcalHardcodeCalibrations::produceDcsMap ( const HcalDcsMapRcd rcd)
protected

Definition at line 600 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

600  {
601  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceDcsMap-> ...";
602 
603  std::auto_ptr<HcalDcsMap> result (new HcalDcsMap ());
605  return result;
606 }
tuple result
Definition: mps_fire.py:83
void makeHardcodeDcsMap(HcalDcsMap &dcs_map)
std::auto_ptr< HcalDcsValues > HcalHardcodeCalibrations::produceDcsValues ( const HcalDcsRcd rcd)
protected

Definition at line 594 of file HcalHardcodeCalibrations.cc.

References mps_fire::result.

Referenced by HcalHardcodeCalibrations().

594  {
595  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceDcsValues-> ...";
596  std::auto_ptr<HcalDcsValues> result(new HcalDcsValues);
597  return result;
598 }
tuple result
Definition: mps_fire.py:83
std::auto_ptr< HcalElectronicsMap > HcalHardcodeCalibrations::produceElectronicsMap ( const HcalElectronicsMapRcd rcd)
protected

Definition at line 539 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

539  {
540  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceElectronicsMap-> ...";
541 
542  std::auto_ptr<HcalElectronicsMap> result (new HcalElectronicsMap ());
544  return result;
545 }
void makeHardcodeMap(HcalElectronicsMap &emap)
tuple result
Definition: mps_fire.py:83
std::auto_ptr< HcalFlagHFDigiTimeParams > HcalHardcodeCalibrations::produceFlagHFDigiTimeParams ( const HcalFlagHFDigiTimeParamsRcd rcd)
protected

Definition at line 698 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

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

Definition at line 303 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

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

Definition at line 318 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

318  {
319  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceGainWidths-> ...";
321  rec.getRecord<HcalRecNumberingRecord>().get(htopo);
322  const HcalTopology* topo=&(*htopo);
323 
324  std::auto_ptr<HcalGainWidths> result (new HcalGainWidths (topo));
325  std::vector <HcalGenericDetId> cells = allCells(*topo);
326  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
327 
328  // for Upgrade - include TrigPrims, for regular case - only HcalDetId
331  result->addValues(item);
332  } else if (!cell->isHcalTrigTowerDetId()) {
334  result->addValues(item);
335  }
336  }
337  return result;
338 }
tuple result
Definition: mps_fire.py:83
HcalGainWidth makeGainWidth(HcalGenericDetId fId)
std::auto_ptr< HcalL1TriggerObjects > HcalHardcodeCalibrations::produceL1TriggerObjects ( const HcalL1TriggerObjectsRcd rcd)
protected

Definition at line 518 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

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

Definition at line 636 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

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

Definition at line 457 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

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

Definition at line 562 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

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

Definition at line 677 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

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

Definition at line 273 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

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

Definition at line 288 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

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

Definition at line 472 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

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

Definition at line 340 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

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

Definition at line 361 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

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

Definition at line 608 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

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

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

392  {
393  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::produceRespCorrs-> ...";
395  rcd.getRecord<HcalRecNumberingRecord>().get(htopo);
396  const HcalTopology* topo=&(*htopo);
397 
398  //set depth segmentation for HB/HE recalib - only happens once
399 // if((he_recalibration && !setHEdsegm) || (hb_recalibration && !setHBdsegm)){
400  if((he_recalibration && !setHEdsegm)) {
401  std::vector<std::vector<int>> m_segmentation;
402  int maxEta = topo->lastHERing();
403  m_segmentation.resize(maxEta);
404  for (int i = 0; i < maxEta; i++) {
405  topo->getDepthSegmentation(i+1,m_segmentation[i]);
406  }
408  he_recalibration->setDsegm(m_segmentation);
409  setHEdsegm = true;
410  }
411  /*
412  if(hb_recalibration && !setHBdsegm){
413  hb_recalibration->setDsegm(m_segmentation);
414  setHBdsegm = true;
415  }
416  */
417  }
418 
419  std::auto_ptr<HcalRespCorrs> result (new HcalRespCorrs (topo));
420  std::vector <HcalGenericDetId> cells = allCells(*topo);
421  for (std::vector <HcalGenericDetId>::const_iterator cell = cells.begin (); cell != cells.end (); ++cell) {
422 
423  double corr = 1.0;
424 
425  if ((he_recalibration != 0 ) &&
426  ((*cell).genericSubdet() == HcalGenericDetId::HcalGenEndcap)) {
427 
428  int depth_ = HcalDetId(*cell).depth();
429  int ieta_ = HcalDetId(*cell).ieta();
430  corr = he_recalibration->getCorr(ieta_, depth_);
431 
432  /*
433  std::cout << "HE ieta, depth = " << ieta_ << ", " << depth_
434  << " corr = " << corr << std::endl;
435  */
436 
437  }
438  else if ((hf_recalibration != 0 ) &&
439  ((*cell).genericSubdet() == HcalGenericDetId::HcalGenForward)) {
440  int depth_ = HcalDetId(*cell).depth();
441  int ieta_ = HcalDetId(*cell).ieta();
442  corr = hf_recalibration->getCorr(ieta_, depth_, iLumi);
443 
444  /*
445  std::cout << "HF ieta, depth = " << ieta_ << ", " << depth_
446  << " corr = " << corr << std::endl;
447  */
448 
449  }
450 
451  HcalRespCorr item(cell->rawId(),corr);
452  result->addValues(item);
453  }
454  return result;
455 }
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:83
int depth() const
get the tower depth
Definition: HcalDetId.cc:106
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 487 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

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

Definition at line 622 of file HcalHardcodeCalibrations.cc.

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

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

Definition at line 547 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

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

Definition at line 662 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

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

Definition at line 502 of file HcalHardcodeCalibrations.cc.

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

Referenced by HcalHardcodeCalibrations().

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

Implements edm::EventSetupRecordIntervalFinder.

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

267  {
268  std::string record = iKey.name ();
269  edm::LogInfo("HCAL") << "HcalHardcodeCalibrations::setIntervalFor-> key: " << record << " time: " << iTime.eventID() << '/' << iTime.time ().value ();
271 }
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().