00001 #include <map> 00002 #include <string> 00003 00004 #include "FWCore/Framework/interface/ESProducer.h" 00005 #include "FWCore/Framework/interface/EventSetupRecordIntervalFinder.h" 00006 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00007 00008 class ParameterSet; 00009 00010 class CastorPedestals; 00011 class CastorPedestalWidths; 00012 //class CastorGains; 00013 //class CastorGainWidths; 00014 class CastorQIEData; 00015 //class CastorChannelQuality; 00016 class CastorElectronicsMap; 00017 00018 class CastorPedestalsRcd; 00019 class CastorPedestalWidthsRcd; 00020 class CastorGainsRcd; 00021 class CastorGainWidthsRcd; 00022 class CastorQIEDataRcd; 00023 class CastorChannelQualityRcd; 00024 class CastorElectronicsMapRcd; 00025 00026 class CastorTextCalibrations : public edm::ESProducer, 00027 public edm::EventSetupRecordIntervalFinder 00028 { 00029 public: 00030 CastorTextCalibrations (const edm::ParameterSet& ); 00031 ~CastorTextCalibrations (); 00032 00033 void produce () {}; 00034 00035 protected: 00036 virtual void setIntervalFor(const edm::eventsetup::EventSetupRecordKey&, 00037 const edm::IOVSyncValue& , 00038 edm::ValidityInterval&) ; 00039 00040 std::auto_ptr<CastorPedestals> producePedestals (const CastorPedestalsRcd& rcd); 00041 std::auto_ptr<CastorPedestalWidths> producePedestalWidths (const CastorPedestalWidthsRcd& rcd); 00042 std::auto_ptr<CastorGains> produceGains (const CastorGainsRcd& rcd); 00043 std::auto_ptr<CastorGainWidths> produceGainWidths (const CastorGainWidthsRcd& rcd); 00044 std::auto_ptr<CastorQIEData> produceQIEData (const CastorQIEDataRcd& rcd); 00045 std::auto_ptr<CastorChannelQuality> produceChannelQuality (const CastorChannelQualityRcd& rcd); 00046 std::auto_ptr<CastorElectronicsMap> produceElectronicsMap (const CastorElectronicsMapRcd& rcd); 00047 00048 private: 00049 std::map <std::string, std::string> mInputs; 00050 }; 00051