CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Private Attributes

HcalTextCalibrations Class Reference

#include <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
< HcalCholeskyMatrices
produceCholeskyMatrices (const HcalCholeskyMatricesRcd &rcd)
std::auto_ptr
< HcalCovarianceMatrices
produceCovarianceMatrices (const HcalCovarianceMatricesRcd &rcd)
std::auto_ptr< HcalDcsMapproduceDcsMap (const HcalDcsMapRcd &rcd)
std::auto_ptr< HcalDcsValuesproduceDcsValues (HcalDcsRcd const &rcd)
std::auto_ptr< HcalElectronicsMapproduceElectronicsMap (const HcalElectronicsMapRcd &rcd)
std::auto_ptr
< HcalFlagHFDigiTimeParams
produceFlagHFDigiTimeParams (const HcalFlagHFDigiTimeParamsRcd &rcd)
std::auto_ptr< HcalGainsproduceGains (const HcalGainsRcd &rcd)
std::auto_ptr< HcalGainWidthsproduceGainWidths (const HcalGainWidthsRcd &rcd)
std::auto_ptr
< HcalL1TriggerObjects
produceL1TriggerObjects (const HcalL1TriggerObjectsRcd &rcd)
std::auto_ptr< HcalLongRecoParamsproduceLongRecoParams (const HcalLongRecoParamsRcd &rcd)
std::auto_ptr< HcalLUTCorrsproduceLUTCorrs (const HcalLUTCorrsRcd &rcd)
std::auto_ptr< HcalLutMetadataproduceLutMetadata (const HcalLutMetadataRcd &rcd)
std::auto_ptr< HcalMCParamsproduceMCParams (const HcalMCParamsRcd &rcd)
std::auto_ptr< HcalPedestalsproducePedestals (const HcalPedestalsRcd &rcd)
std::auto_ptr< HcalPedestalWidthsproducePedestalWidths (const HcalPedestalWidthsRcd &rcd)
std::auto_ptr< HcalPFCorrsproducePFCorrs (const HcalPFCorrsRcd &rcd)
std::auto_ptr< HcalQIEDataproduceQIEData (const HcalQIEDataRcd &rcd)
std::auto_ptr< HcalRecoParamsproduceRecoParams (const HcalRecoParamsRcd &rcd)
std::auto_ptr< HcalRespCorrsproduceRespCorrs (const HcalRespCorrsRcd &rcd)
std::auto_ptr< HcalTimeCorrsproduceTimeCorrs (const HcalTimeCorrsRcd &rcd)
std::auto_ptr< HcalTimingParamsproduceTimingParams (const HcalTimingParamsRcd &rcd)
std::auto_ptr
< HcalValidationCorrs
produceValidationCorrs (const HcalValidationCorrsRcd &rcd)
std::auto_ptr< 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 41 of file HcalTextCalibrations.h.


Constructor & Destructor Documentation

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

Definition at line 27 of file HcalTextCalibrations.cc.

References dtNoiseDBValidation_cfg::cerr, data, edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), summarizeEdmComparisonLogfiles::objectName, produceChannelQuality(), produceCholeskyMatrices(), produceCovarianceMatrices(), produceDcsMap(), produceDcsValues(), produceElectronicsMap(), produceFlagHFDigiTimeParams(), produceGains(), produceGainWidths(), produceL1TriggerObjects(), produceLongRecoParams(), produceLUTCorrs(), produceLutMetadata(), produceMCParams(), producePedestals(), producePedestalWidths(), producePFCorrs(), produceQIEData(), produceRecoParams(), produceRespCorrs(), produceTimeCorrs(), produceTimingParams(), produceValidationCorrs(), and produceZSThresholds().

{
  //parsing parameters
  std::vector<edm::ParameterSet> data = iConfig.getParameter<std::vector<edm::ParameterSet> >("input");
  std::vector<edm::ParameterSet>::iterator request = data.begin ();
  for (; request != data.end (); request++) {
    std::string objectName = request->getParameter<std::string> ("object");
    edm::FileInPath fp = request->getParameter<edm::FileInPath>("file");
    mInputs [objectName] = fp.fullPath();
    if (objectName == "Pedestals") {
      setWhatProduced (this, &HcalTextCalibrations::producePedestals);
      findingRecord <HcalPedestalsRcd> ();
    }
    else if (objectName == "PedestalWidths") {
      setWhatProduced (this, &HcalTextCalibrations::producePedestalWidths);
      findingRecord <HcalPedestalWidthsRcd> ();
    }
    else if (objectName == "Gains") {
      setWhatProduced (this, &HcalTextCalibrations::produceGains);
      findingRecord <HcalGainsRcd> ();
    }
    else if (objectName == "GainWidths") {
      setWhatProduced (this, &HcalTextCalibrations::produceGainWidths);
      findingRecord <HcalGainWidthsRcd> ();
    }
    else if (objectName == "QIEData") {
      setWhatProduced (this, &HcalTextCalibrations::produceQIEData);
      findingRecord <HcalQIEDataRcd> ();
    }
    else if (objectName == "ChannelQuality") {
      setWhatProduced (this, &HcalTextCalibrations::produceChannelQuality);
      findingRecord <HcalChannelQualityRcd> ();
    }
    else if (objectName == "ZSThresholds") {
      setWhatProduced (this, &HcalTextCalibrations::produceZSThresholds);
      findingRecord <HcalZSThresholdsRcd> ();
    }
    else if (objectName == "RespCorrs") {
      setWhatProduced (this, &HcalTextCalibrations::produceRespCorrs);
      findingRecord <HcalRespCorrsRcd> ();
    }
    else if (objectName == "LUTCorrs") {
      setWhatProduced (this, &HcalTextCalibrations::produceLUTCorrs);
      findingRecord <HcalLUTCorrsRcd> ();
    }
    else if (objectName == "PFCorrs") {
      setWhatProduced (this, &HcalTextCalibrations::producePFCorrs);
      findingRecord <HcalPFCorrsRcd> ();
    }
    else if (objectName == "TimeCorrs") {
      setWhatProduced (this, &HcalTextCalibrations::produceTimeCorrs);
      findingRecord <HcalTimeCorrsRcd> ();
    }
    else if (objectName == "L1TriggerObjects") {
      setWhatProduced (this, &HcalTextCalibrations::produceL1TriggerObjects);
      findingRecord <HcalL1TriggerObjectsRcd> ();
    }
    else if (objectName == "ElectronicsMap") {
      setWhatProduced (this, &HcalTextCalibrations::produceElectronicsMap);
      findingRecord <HcalElectronicsMapRcd> ();
    }
    else if (objectName == "ValidationCorrs") {
      setWhatProduced (this, &HcalTextCalibrations::produceValidationCorrs);
      findingRecord <HcalValidationCorrsRcd> ();
    }
    else if (objectName == "LutMetadata") {
      setWhatProduced (this, &HcalTextCalibrations::produceLutMetadata);
      findingRecord <HcalLutMetadataRcd> ();
    }
    else if (objectName == "DcsValues") {
      setWhatProduced (this, &HcalTextCalibrations::produceDcsValues);
      findingRecord <HcalDcsRcd> ();
    }
    else if (objectName == "DcsMap") {
      setWhatProduced (this, &HcalTextCalibrations::produceDcsMap);
      findingRecord <HcalDcsMapRcd> ();
    }
    else if (objectName == "CholeskyMatrices") {
      setWhatProduced (this, &HcalTextCalibrations::produceCholeskyMatrices);
      findingRecord <HcalCholeskyMatricesRcd> ();
    }
    else if (objectName == "CovarianceMatrices") {
      setWhatProduced (this, &HcalTextCalibrations::produceCovarianceMatrices);
      findingRecord <HcalCovarianceMatricesRcd> ();
    }
    else if (objectName == "RecoParams") {
      setWhatProduced (this, &HcalTextCalibrations::produceRecoParams);
      findingRecord <HcalRecoParamsRcd> ();
    }
    else if (objectName == "TimingParams") {
      setWhatProduced (this, &HcalTextCalibrations::produceTimingParams);
      findingRecord <HcalTimingParamsRcd> ();
    }
    else if (objectName == "LongRecoParams") {
      setWhatProduced (this, &HcalTextCalibrations::produceLongRecoParams);
      findingRecord <HcalLongRecoParamsRcd> ();
    }
    else if (objectName == "MCParams") {
      setWhatProduced (this, &HcalTextCalibrations::produceMCParams);
      findingRecord <HcalMCParamsRcd> ();
    }
    else if (objectName == "FlagHFDigiTimeParams") {
      setWhatProduced (this, &HcalTextCalibrations::produceFlagHFDigiTimeParams);
      findingRecord <HcalFlagHFDigiTimeParamsRcd> ();
    }
    else {
      std::cerr << "HcalTextCalibrations-> Unknown object name '" << objectName 
                << "', known names are: "
                << "Pedestals PedestalWidths Gains GainWidths QIEData ChannelQuality ElectronicsMap "
                << "ZSThresholds RespCorrs LUTCorrs PFCorrs TimeCorrs L1TriggerObjects "
                << "ValidationCorrs LutMetadata DcsValues DcsMap CholeskyMatrices CovarianceMatrices "
                << "RecoParams LongRecoParams FlagHFDigiTimeParams MCParams "
                << std::endl;
    }
  }
  //  setWhatProduced(this);
}
HcalTextCalibrations::~HcalTextCalibrations ( )

Definition at line 147 of file HcalTextCalibrations.cc.

{
}

Member Function Documentation

void HcalTextCalibrations::produce ( ) [inline]

Definition at line 48 of file HcalTextCalibrations.h.

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

Definition at line 199 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                                             {
  return produce_impl<HcalChannelQuality> (mInputs ["ChannelQuality"]);
}
std::auto_ptr< HcalCholeskyMatrices > HcalTextCalibrations::produceCholeskyMatrices ( const HcalCholeskyMatricesRcd rcd) [protected]

Definition at line 252 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                                                   {
  return produce_impl<HcalCholeskyMatrices> (mInputs ["CholeskyMatrices"]);
}
std::auto_ptr< HcalCovarianceMatrices > HcalTextCalibrations::produceCovarianceMatrices ( const HcalCovarianceMatricesRcd rcd) [protected]

Definition at line 248 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                                                         {
  return produce_impl<HcalCovarianceMatrices> (mInputs ["CovarianceMatrices"]);
}
std::auto_ptr< HcalDcsMap > HcalTextCalibrations::produceDcsMap ( const HcalDcsMapRcd rcd) [protected]

Definition at line 244 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                     {
  return produce_impl<HcalDcsMap> (mInputs ["DcsMap"]);
}
std::auto_ptr< HcalDcsValues > HcalTextCalibrations::produceDcsValues ( HcalDcsRcd const &  rcd) [protected]

Definition at line 240 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                               {
  return produce_impl<HcalDcsValues> (mInputs ["DcsValues"]);
}
std::auto_ptr< HcalElectronicsMap > HcalTextCalibrations::produceElectronicsMap ( const HcalElectronicsMapRcd rcd) [protected]

Definition at line 227 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                                             {
  return produce_impl<HcalElectronicsMap> (mInputs ["ElectronicsMap"]);
}
std::auto_ptr< HcalFlagHFDigiTimeParams > HcalTextCalibrations::produceFlagHFDigiTimeParams ( const HcalFlagHFDigiTimeParamsRcd rcd) [protected]

Definition at line 270 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                                                           {
  return produce_impl<HcalFlagHFDigiTimeParams> (mInputs ["FlagHFDigiTimeParams"]);
}
std::auto_ptr< HcalGains > HcalTextCalibrations::produceGains ( const HcalGainsRcd rcd) [protected]

Definition at line 187 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                              {
  return produce_impl<HcalGains> (mInputs ["Gains"]);
}
std::auto_ptr< HcalGainWidths > HcalTextCalibrations::produceGainWidths ( const HcalGainWidthsRcd rcd) [protected]

Definition at line 191 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                             {
  return produce_impl<HcalGainWidths> (mInputs ["GainWidths"]);
}
std::auto_ptr< HcalL1TriggerObjects > HcalTextCalibrations::produceL1TriggerObjects ( const HcalL1TriggerObjectsRcd rcd) [protected]

Definition at line 223 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                                                   {
  return produce_impl<HcalL1TriggerObjects> (mInputs ["L1TriggerObjects"]);
}
std::auto_ptr< HcalLongRecoParams > HcalTextCalibrations::produceLongRecoParams ( const HcalLongRecoParamsRcd rcd) [protected]

Definition at line 260 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                                         {
  return produce_impl<HcalLongRecoParams> (mInputs ["LongRecoParams"]);
}
std::auto_ptr< HcalLUTCorrs > HcalTextCalibrations::produceLUTCorrs ( const HcalLUTCorrsRcd rcd) [protected]

Definition at line 211 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                           {
  return produce_impl<HcalLUTCorrs> (mInputs ["LUTCorrs"]);
}
std::auto_ptr< HcalLutMetadata > HcalTextCalibrations::produceLutMetadata ( const HcalLutMetadataRcd rcd) [protected]

Definition at line 235 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                                    {
  return produce_impl<HcalLutMetadata> (mInputs ["LutMetadata"]);
}
std::auto_ptr< HcalMCParams > HcalTextCalibrations::produceMCParams ( const HcalMCParamsRcd rcd) [protected]

Definition at line 266 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                       {
  return produce_impl<HcalMCParams> (mInputs ["MCParams"]);
}
std::auto_ptr< HcalPedestals > HcalTextCalibrations::producePedestals ( const HcalPedestalsRcd rcd) [protected]

Definition at line 179 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                          {
  return produce_impl<HcalPedestals> (mInputs ["Pedestals"]);
}
std::auto_ptr< HcalPedestalWidths > HcalTextCalibrations::producePedestalWidths ( const HcalPedestalWidthsRcd rcd) [protected]

Definition at line 183 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                                         {
  return produce_impl<HcalPedestalWidths> (mInputs ["PedestalWidths"]);
}
std::auto_ptr< HcalPFCorrs > HcalTextCalibrations::producePFCorrs ( const HcalPFCorrsRcd rcd) [protected]

Definition at line 215 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                        {
  return produce_impl<HcalPFCorrs> (mInputs ["PFCorrs"]);
}
std::auto_ptr< HcalQIEData > HcalTextCalibrations::produceQIEData ( const HcalQIEDataRcd rcd) [protected]

Definition at line 195 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                        {
  return produce_impl<HcalQIEData> (mInputs ["QIEData"]);
}
std::auto_ptr< HcalRecoParams > HcalTextCalibrations::produceRecoParams ( const HcalRecoParamsRcd rcd) [protected]

Definition at line 256 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                             {
  return produce_impl<HcalRecoParams> (mInputs ["RecoParams"]);
}
std::auto_ptr< HcalRespCorrs > HcalTextCalibrations::produceRespCorrs ( const HcalRespCorrsRcd rcd) [protected]

Definition at line 207 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                              {
  return produce_impl<HcalRespCorrs> (mInputs ["RespCorrs"]);
}
std::auto_ptr< HcalTimeCorrs > HcalTextCalibrations::produceTimeCorrs ( const HcalTimeCorrsRcd rcd) [protected]

Definition at line 219 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                              {
  return produce_impl<HcalTimeCorrs> (mInputs ["TimeCorrs"]);
}
std::auto_ptr< HcalTimingParams > HcalTextCalibrations::produceTimingParams ( const HcalTimingParamsRcd rcd) [protected]

Definition at line 263 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                                   {
  return produce_impl<HcalTimingParams> (mInputs ["TimingParams"]);
}
std::auto_ptr< HcalValidationCorrs > HcalTextCalibrations::produceValidationCorrs ( const HcalValidationCorrsRcd rcd) [protected]

Definition at line 231 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                                                {
  return produce_impl<HcalValidationCorrs> (mInputs ["ValidationCorrs"]);
}
std::auto_ptr< HcalZSThresholds > HcalTextCalibrations::produceZSThresholds ( const HcalZSThresholdsRcd rcd) [protected]

Definition at line 203 of file HcalTextCalibrations.cc.

Referenced by HcalTextCalibrations().

                                                                                                       {
  return produce_impl<HcalZSThresholds> (mInputs ["ZSThresholds"]);
}
void HcalTextCalibrations::setIntervalFor ( const edm::eventsetup::EventSetupRecordKey iKey,
const edm::IOVSyncValue iTime,
edm::ValidityInterval oInterval 
) [protected, virtual]

Member Data Documentation

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

Definition at line 84 of file HcalTextCalibrations.h.