CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/CalibCalorimetry/CastorCalib/plugins/CastorHardcodeCalibrations.h

Go to the documentation of this file.
00001 // ESSource to generate default HCAL/CASTOR calibration objects 
00002 //
00003 #include <map>
00004 #include <string>
00005 
00006 #include "FWCore/Framework/interface/ESProducer.h"
00007 #include "FWCore/Framework/interface/EventSetupRecordIntervalFinder.h"
00008 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00009 
00010 #include "CondFormats/CastorObjects/interface/AllObjects.h"
00011 class ParameterSet;
00012 
00013 class CastorPedestalsRcd;
00014 class CastorPedestalWidthsRcd;
00015 class CastorGainsRcd;
00016 class CastorGainWidthsRcd;
00017 class CastorQIEDataRcd;
00018 class CastorChannelQualityRcd;
00019 class CastorElectronicsMapRcd;
00020 class CastorRecoParamsRcd;
00021 class CastorSaturationCorrsRcd;
00022 
00023 class CastorHardcodeCalibrations : public edm::ESProducer,
00024                        public edm::EventSetupRecordIntervalFinder
00025 {
00026 public:
00027   CastorHardcodeCalibrations (const edm::ParameterSet& );
00028   ~CastorHardcodeCalibrations ();
00029 
00030   void produce () {};
00031   
00032 protected:
00033   virtual void setIntervalFor(const edm::eventsetup::EventSetupRecordKey&,
00034                               const edm::IOVSyncValue& , 
00035                               edm::ValidityInterval&) ;
00036 
00037   std::auto_ptr<CastorPedestals> producePedestals (const CastorPedestalsRcd& rcd);
00038   std::auto_ptr<CastorPedestalWidths> producePedestalWidths (const CastorPedestalWidthsRcd& rcd);
00039   std::auto_ptr<CastorGains> produceGains (const CastorGainsRcd& rcd);
00040   std::auto_ptr<CastorGainWidths> produceGainWidths (const CastorGainWidthsRcd& rcd);
00041   std::auto_ptr<CastorQIEData> produceQIEData (const CastorQIEDataRcd& rcd);
00042   std::auto_ptr<CastorChannelQuality> produceChannelQuality (const CastorChannelQualityRcd& rcd);
00043   std::auto_ptr<CastorElectronicsMap> produceElectronicsMap (const CastorElectronicsMapRcd& rcd);
00044   std::auto_ptr<CastorRecoParams> produceRecoParams (const CastorRecoParamsRcd& rcd);
00045   std::auto_ptr<CastorSaturationCorrs> produceSaturationCorrs (const CastorSaturationCorrsRcd& rcd);
00046   bool h2mode_;
00047 };
00048