CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Private Attributes

CastorTextCalibrations Class Reference

#include <CastorTextCalibrations.h>

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

List of all members.

Public Member Functions

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

Protected Member Functions

std::auto_ptr
< CastorChannelQuality
produceChannelQuality (const CastorChannelQualityRcd &rcd)
std::auto_ptr
< CastorElectronicsMap
produceElectronicsMap (const CastorElectronicsMapRcd &rcd)
std::auto_ptr< CastorGainsproduceGains (const CastorGainsRcd &rcd)
std::auto_ptr< CastorGainWidthsproduceGainWidths (const CastorGainWidthsRcd &rcd)
std::auto_ptr< CastorPedestalsproducePedestals (const CastorPedestalsRcd &rcd)
std::auto_ptr
< CastorPedestalWidths
producePedestalWidths (const CastorPedestalWidthsRcd &rcd)
std::auto_ptr< CastorQIEDataproduceQIEData (const CastorQIEDataRcd &rcd)
std::auto_ptr< CastorRecoParamsproduceRecoParams (const CastorRecoParamsRcd &rcd)
std::auto_ptr
< CastorSaturationCorrs
produceSaturationCorrs (const CastorSaturationCorrsRcd &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 28 of file CastorTextCalibrations.h.


Constructor & Destructor Documentation

CastorTextCalibrations::CastorTextCalibrations ( const edm::ParameterSet iConfig)

Definition at line 37 of file CastorTextCalibrations.cc.

References dtNoiseDBValidation_cfg::cerr, data, edm::FileInPath::fullPath(), edm::ParameterSet::getParameter(), summarizeEdmComparisonLogfiles::objectName, produceChannelQuality(), produceElectronicsMap(), produceGains(), produceGainWidths(), producePedestals(), producePedestalWidths(), produceQIEData(), produceRecoParams(), and produceSaturationCorrs().

{
  //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, &CastorTextCalibrations::producePedestals);
      findingRecord <CastorPedestalsRcd> ();
    }
    else if (objectName == "PedestalWidths") {
      setWhatProduced (this, &CastorTextCalibrations::producePedestalWidths);
      findingRecord <CastorPedestalWidthsRcd> ();
    }
    else if (objectName == "Gains") {
      setWhatProduced (this, &CastorTextCalibrations::produceGains);
      findingRecord <CastorGainsRcd> ();
    }
    else if (objectName == "GainWidths") {
      setWhatProduced (this, &CastorTextCalibrations::produceGainWidths);
      findingRecord <CastorGainWidthsRcd> ();
    }
    else if (objectName == "QIEData") {
      setWhatProduced (this, &CastorTextCalibrations::produceQIEData);
      findingRecord <CastorQIEDataRcd> ();
    }
    else if (objectName == "ChannelQuality") {
      setWhatProduced (this, &CastorTextCalibrations::produceChannelQuality);
      findingRecord <CastorChannelQualityRcd> ();
    }
    else if (objectName == "ElectronicsMap") {
      setWhatProduced (this, &CastorTextCalibrations::produceElectronicsMap);
      findingRecord <CastorElectronicsMapRcd> ();
    }
    else if (objectName == "RecoParams") {
      setWhatProduced (this, &CastorTextCalibrations::produceRecoParams);
      findingRecord <CastorRecoParamsRcd> ();
    }
    else if (objectName == "SaturationCorrs") {
      setWhatProduced (this, &CastorTextCalibrations::produceSaturationCorrs);
      findingRecord <CastorSaturationCorrsRcd> ();
    }
    else {
      std::cerr << "CastorTextCalibrations-> Unknown object name '" << objectName 
                << "', known names are: "
                << "Pedestals PedestalWidths Gains GainWidths QIEData ChannelQuality ElectronicsMap RecoParams SaturationCorrs"
                << std::endl;
    }
  }
  //  setWhatProduced(this);
}
CastorTextCalibrations::~CastorTextCalibrations ( )

Definition at line 94 of file CastorTextCalibrations.cc.

{
}

Member Function Documentation

void CastorTextCalibrations::produce ( ) [inline]

Definition at line 35 of file CastorTextCalibrations.h.

{};
std::auto_ptr< CastorChannelQuality > CastorTextCalibrations::produceChannelQuality ( const CastorChannelQualityRcd rcd) [protected]

Definition at line 144 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

                                                                                                                   {
  return produce_impl<CastorChannelQuality> (mInputs ["ChannelQuality"]);
}
std::auto_ptr< CastorElectronicsMap > CastorTextCalibrations::produceElectronicsMap ( const CastorElectronicsMapRcd rcd) [protected]

Definition at line 148 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

                                                                                                                   {
  return produce_impl<CastorElectronicsMap> (mInputs ["ElectronicsMap"]);
}
std::auto_ptr< CastorGains > CastorTextCalibrations::produceGains ( const CastorGainsRcd rcd) [protected]

Definition at line 132 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

                                                                                    {
  return produce_impl<CastorGains> (mInputs ["Gains"]);
}
std::auto_ptr< CastorGainWidths > CastorTextCalibrations::produceGainWidths ( const CastorGainWidthsRcd rcd) [protected]

Definition at line 136 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

                                                                                                   {
  return produce_impl<CastorGainWidths> (mInputs ["GainWidths"]);
}
std::auto_ptr< CastorPedestals > CastorTextCalibrations::producePedestals ( const CastorPedestalsRcd rcd) [protected]

Definition at line 124 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

                                                                                                {
  return produce_impl<CastorPedestals> (mInputs ["Pedestals"]);
}
std::auto_ptr< CastorPedestalWidths > CastorTextCalibrations::producePedestalWidths ( const CastorPedestalWidthsRcd rcd) [protected]

Definition at line 128 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

                                                                                                               {
  return produce_impl<CastorPedestalWidths> (mInputs ["PedestalWidths"]);
}
std::auto_ptr< CastorQIEData > CastorTextCalibrations::produceQIEData ( const CastorQIEDataRcd rcd) [protected]

Definition at line 140 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

                                                                                              {
  return produce_impl<CastorQIEData> (mInputs ["QIEData"]);
}
std::auto_ptr< CastorRecoParams > CastorTextCalibrations::produceRecoParams ( const CastorRecoParamsRcd rcd) [protected]

Definition at line 152 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

                                                                                                       {
  return produce_impl<CastorRecoParams> (mInputs ["RecoParams"]);
}
std::auto_ptr< CastorSaturationCorrs > CastorTextCalibrations::produceSaturationCorrs ( const CastorSaturationCorrsRcd rcd) [protected]

Definition at line 156 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

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

Member Data Documentation

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

Definition at line 53 of file CastorTextCalibrations.h.