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)
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 CastorTextCalibrations.h.


Constructor & Destructor Documentation

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

Definition at line 36 of file CastorTextCalibrations.cc.

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

{
  //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 {
      std::cerr << "CastorTextCalibrations-> Unknown object name '" << objectName 
                << "', known names are: "
                << "Pedestals PedestalWidths Gains GainWidths QIEData ChannelQuality ElectronicsMap"
                << std::endl;
    }
  }
  //  setWhatProduced(this);
}
CastorTextCalibrations::~CastorTextCalibrations ( )

Definition at line 85 of file CastorTextCalibrations.cc.

{
}

Member Function Documentation

void CastorTextCalibrations::produce ( ) [inline]

Definition at line 33 of file CastorTextCalibrations.h.

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

Definition at line 135 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 139 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 123 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 127 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 115 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 119 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 131 of file CastorTextCalibrations.cc.

Referenced by CastorTextCalibrations().

                                                                                              {
  return produce_impl<CastorQIEData> (mInputs ["QIEData"]);
}
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 49 of file CastorTextCalibrations.h.