CMS 3D CMS Logo

HcalTextCalibrations Class Reference

#include <CalibCalorimetry/HcalPlugins/src/HcalTextCalibrations.h>

Inheritance diagram for HcalTextCalibrations:

edm::ESProducer edm::EventSetupRecordIntervalFinder edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Member Functions

 HcalTextCalibrations (const edm::ParameterSet &)
void produce ()
 ~HcalTextCalibrations ()

Protected Member Functions

std::auto_ptr< HcalChannelQualityproduceChannelQuality (const HcalChannelQualityRcd &rcd)
std::auto_ptr< HcalElectronicsMapproduceElectronicsMap (const HcalElectronicsMapRcd &rcd)
std::auto_ptr< HcalGainsproduceGains (const HcalGainsRcd &rcd)
std::auto_ptr< HcalGainWidthsproduceGainWidths (const HcalGainWidthsRcd &rcd)
std::auto_ptr< HcalPedestalsproducePedestals (const HcalPedestalsRcd &rcd)
std::auto_ptr< HcalPedestalWidthsproducePedestalWidths (const HcalPedestalWidthsRcd &rcd)
std::auto_ptr< HcalQIEDataproduceQIEData (const HcalQIEDataRcd &rcd)
std::auto_ptr< HcalRespCorrsproduceRespCorrs (const HcalRespCorrsRcd &rcd)
std::auto_ptr< HcalZSThresholdsproduceZSThresholds (const HcalZSThresholdsRcd &rcd)
virtual void setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &)

Private Attributes

std::map< std::string,
std::string > 
mInputs


Detailed Description

Definition at line 26 of file HcalTextCalibrations.h.


Constructor & Destructor Documentation

HcalTextCalibrations::HcalTextCalibrations ( const edm::ParameterSet iConfig  ) 

Definition at line 44 of file HcalTextCalibrations.cc.

References TestMuL1L2Filter_cff::cerr, data, lat::endl(), edm::ParameterSet::getParameter(), mInputs, produceChannelQuality(), produceElectronicsMap(), produceGains(), produceGainWidths(), producePedestals(), producePedestalWidths(), produceQIEData(), produceRespCorrs(), produceZSThresholds(), and edm::ESProducer::setWhatProduced().

00046 {
00047   //parsing parameters
00048   std::vector<edm::ParameterSet> data = iConfig.getParameter<std::vector<edm::ParameterSet> >("input");
00049   std::vector<edm::ParameterSet>::iterator request = data.begin ();
00050   for (; request != data.end (); request++) {
00051     std::string objectName = request->getParameter<std::string> ("object");
00052     edm::FileInPath fp = request->getParameter<edm::FileInPath>("file");
00053     mInputs [objectName] = fp.fullPath();
00054     if (objectName == "Pedestals") {
00055       setWhatProduced (this, &HcalTextCalibrations::producePedestals);
00056       findingRecord <HcalPedestalsRcd> ();
00057     }
00058     else if (objectName == "PedestalWidths") {
00059       setWhatProduced (this, &HcalTextCalibrations::producePedestalWidths);
00060       findingRecord <HcalPedestalWidthsRcd> ();
00061     }
00062     else if (objectName == "Gains") {
00063       setWhatProduced (this, &HcalTextCalibrations::produceGains);
00064       findingRecord <HcalGainsRcd> ();
00065     }
00066     else if (objectName == "GainWidths") {
00067       setWhatProduced (this, &HcalTextCalibrations::produceGainWidths);
00068       findingRecord <HcalGainWidthsRcd> ();
00069     }
00070     else if (objectName == "QIEData") {
00071       setWhatProduced (this, &HcalTextCalibrations::produceQIEData);
00072       findingRecord <HcalQIEDataRcd> ();
00073     }
00074     else if (objectName == "ChannelQuality") {
00075       setWhatProduced (this, &HcalTextCalibrations::produceChannelQuality);
00076       findingRecord <HcalChannelQualityRcd> ();
00077     }
00078     else if (objectName == "ZSThresholds") {
00079       setWhatProduced (this, &HcalTextCalibrations::produceZSThresholds);
00080       findingRecord <HcalZSThresholdsRcd> ();
00081     }
00082     else if (objectName == "RespCorrs") {
00083       setWhatProduced (this, &HcalTextCalibrations::produceRespCorrs);
00084       findingRecord <HcalRespCorrsRcd> ();
00085     }
00086     else if (objectName == "ElectronicsMap") {
00087       setWhatProduced (this, &HcalTextCalibrations::produceElectronicsMap);
00088       findingRecord <HcalElectronicsMapRcd> ();
00089     }
00090     else {
00091       std::cerr << "HcalTextCalibrations-> Unknown object name '" << objectName 
00092                 << "', known names are: "
00093                 << "Pedestals PedestalWidths Gains GainWidths QIEData ChannelQuality ElectronicsMap"
00094                 << std::endl;
00095     }
00096   }
00097   //  setWhatProduced(this);
00098 }

HcalTextCalibrations::~HcalTextCalibrations (  ) 

Definition at line 101 of file HcalTextCalibrations.cc.

00102 {
00103 }


Member Function Documentation

void HcalTextCalibrations::produce (  )  [inline]

Definition at line 33 of file HcalTextCalibrations.h.

00033 {};

std::auto_ptr< HcalChannelQuality > HcalTextCalibrations::produceChannelQuality ( const HcalChannelQualityRcd rcd  )  [protected]

Definition at line 151 of file HcalTextCalibrations.cc.

References mInputs.

Referenced by HcalTextCalibrations().

00151                                                                                                              {
00152   return produce_impl<HcalChannelQuality> (mInputs ["ChannelQuality"]);
00153 }

std::auto_ptr< HcalElectronicsMap > HcalTextCalibrations::produceElectronicsMap ( const HcalElectronicsMapRcd rcd  )  [protected]

Definition at line 163 of file HcalTextCalibrations.cc.

References mInputs.

Referenced by HcalTextCalibrations().

00163                                                                                                              {
00164   return produce_impl<HcalElectronicsMap> (mInputs ["ElectronicsMap"]);
00165 }

std::auto_ptr< HcalGains > HcalTextCalibrations::produceGains ( const HcalGainsRcd rcd  )  [protected]

Definition at line 139 of file HcalTextCalibrations.cc.

References mInputs.

Referenced by HcalTextCalibrations().

00139                                                                               {
00140   return produce_impl<HcalGains> (mInputs ["Gains"]);
00141 }

std::auto_ptr< HcalGainWidths > HcalTextCalibrations::produceGainWidths ( const HcalGainWidthsRcd rcd  )  [protected]

Definition at line 143 of file HcalTextCalibrations.cc.

References mInputs.

Referenced by HcalTextCalibrations().

00143                                                                                              {
00144   return produce_impl<HcalGainWidths> (mInputs ["GainWidths"]);
00145 }

std::auto_ptr< HcalPedestals > HcalTextCalibrations::producePedestals ( const HcalPedestalsRcd rcd  )  [protected]

Definition at line 131 of file HcalTextCalibrations.cc.

References mInputs.

Referenced by HcalTextCalibrations().

00131                                                                                           {
00132   return produce_impl<HcalPedestals> (mInputs ["Pedestals"]);
00133 }

std::auto_ptr< HcalPedestalWidths > HcalTextCalibrations::producePedestalWidths ( const HcalPedestalWidthsRcd rcd  )  [protected]

Definition at line 135 of file HcalTextCalibrations.cc.

References mInputs.

Referenced by HcalTextCalibrations().

00135                                                                                                          {
00136   return produce_impl<HcalPedestalWidths> (mInputs ["PedestalWidths"]);
00137 }

std::auto_ptr< HcalQIEData > HcalTextCalibrations::produceQIEData ( const HcalQIEDataRcd rcd  )  [protected]

Definition at line 147 of file HcalTextCalibrations.cc.

References mInputs.

Referenced by HcalTextCalibrations().

00147                                                                                         {
00148   return produce_impl<HcalQIEData> (mInputs ["QIEData"]);
00149 }

std::auto_ptr< HcalRespCorrs > HcalTextCalibrations::produceRespCorrs ( const HcalRespCorrsRcd rcd  )  [protected]

Definition at line 159 of file HcalTextCalibrations.cc.

References mInputs.

Referenced by HcalTextCalibrations().

00159                                                                                               {
00160   return produce_impl<HcalRespCorrs> (mInputs ["RespCorrs"]);
00161 }

std::auto_ptr< HcalZSThresholds > HcalTextCalibrations::produceZSThresholds ( const HcalZSThresholdsRcd rcd  )  [protected]

Definition at line 155 of file HcalTextCalibrations.cc.

References mInputs.

Referenced by HcalTextCalibrations().

00155                                                                                                        {
00156   return produce_impl<HcalZSThresholds> (mInputs ["ZSThresholds"]);
00157 }

void HcalTextCalibrations::setIntervalFor ( const edm::eventsetup::EventSetupRecordKey iKey,
const edm::IOVSyncValue iTime,
edm::ValidityInterval oInterval 
) [protected, virtual]

Implements edm::EventSetupRecordIntervalFinder.

Definition at line 110 of file HcalTextCalibrations.cc.

References edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime(), edm::eventsetup::EventSetupRecordKey::name(), and ecalRecalibSequence_cff::record.

00110                                                                                                                                                  {
00111   std::string record = iKey.name ();
00112   oInterval = edm::ValidityInterval (edm::IOVSyncValue::beginOfTime(), edm::IOVSyncValue::endOfTime()); //infinite
00113 }


Member Data Documentation

std::map<std::string, std::string> HcalTextCalibrations::mInputs [private]

Definition at line 51 of file HcalTextCalibrations.h.

Referenced by HcalTextCalibrations(), produceChannelQuality(), produceElectronicsMap(), produceGains(), produceGainWidths(), producePedestals(), producePedestalWidths(), produceQIEData(), produceRespCorrs(), and produceZSThresholds().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:23:59 2009 for CMSSW by  doxygen 1.5.4