CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/CalibCalorimetry/HcalPlugins/src/HcalHardcodeCalibrations.h

Go to the documentation of this file.
00001 //
00002 // Original Author:  Fedor Ratnikov Oct 21, 2005
00003 // $Id: HcalHardcodeCalibrations.h,v 1.16 2011/02/15 10:41:17 rofierzy Exp $
00004 //
00005 // ESSource to generate default HCAL calibration objects 
00006 //
00007 #include <map>
00008 #include <string>
00009 
00010 #include "FWCore/Framework/interface/ESProducer.h"
00011 #include "FWCore/Framework/interface/EventSetupRecordIntervalFinder.h"
00012 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00013 
00014 #include "CondFormats/HcalObjects/interface/AllObjects.h"
00015 class ParameterSet;
00016 
00017 class HcalPedestalsRcd;
00018 class HcalPedestalWidthsRcd;
00019 class HcalGainsRcd;
00020 class HcalGainWidthsRcd;
00021 class HcalQIEDataRcd;
00022 class HcalChannelQualityRcd;
00023 class HcalElectronicsMapRcd;
00024 class HcalRespCorrsRcd;
00025 class HcalZSThresholdsRcd;
00026 class HcalL1TriggerObjectsRcd;
00027 class HcalTimeCorrsRcd;
00028 class HcalLUTCorrsRcd;
00029 class HcalPFCorrsRcd;
00030 class HcalValidationCorrsRcd;
00031 class HcalLutMetadataRcd;
00032 class HcalDcsRcd;
00033 class HcalDcsMapRcd;
00034 class HcalRecoParamsRcd;
00035 class HcalLongRecoParamsRcd;
00036 class HcalMCParamsRcd;
00037 
00038 class HcalHardcodeCalibrations : public edm::ESProducer,
00039                        public edm::EventSetupRecordIntervalFinder
00040 {
00041 public:
00042   HcalHardcodeCalibrations (const edm::ParameterSet& );
00043   ~HcalHardcodeCalibrations ();
00044 
00045   void produce () {};
00046   
00047 protected:
00048   virtual void setIntervalFor(const edm::eventsetup::EventSetupRecordKey&,
00049                               const edm::IOVSyncValue& , 
00050                               edm::ValidityInterval&) ;
00051 
00052   std::auto_ptr<HcalPedestals> producePedestals (const HcalPedestalsRcd& rcd);
00053   std::auto_ptr<HcalPedestalWidths> producePedestalWidths (const HcalPedestalWidthsRcd& rcd);
00054   std::auto_ptr<HcalGains> produceGains (const HcalGainsRcd& rcd);
00055   std::auto_ptr<HcalGainWidths> produceGainWidths (const HcalGainWidthsRcd& rcd);
00056   std::auto_ptr<HcalQIEData> produceQIEData (const HcalQIEDataRcd& rcd);
00057   std::auto_ptr<HcalChannelQuality> produceChannelQuality (const HcalChannelQualityRcd& rcd);
00058   std::auto_ptr<HcalElectronicsMap> produceElectronicsMap (const HcalElectronicsMapRcd& rcd);
00059 
00060   std::auto_ptr<HcalRespCorrs> produceRespCorrs (const HcalRespCorrsRcd& rcd);
00061   std::auto_ptr<HcalZSThresholds> produceZSThresholds (const HcalZSThresholdsRcd& rcd);
00062   std::auto_ptr<HcalL1TriggerObjects> produceL1TriggerObjects (const HcalL1TriggerObjectsRcd& rcd);
00063   std::auto_ptr<HcalTimeCorrs> produceTimeCorrs (const HcalTimeCorrsRcd& rcd);
00064   std::auto_ptr<HcalLUTCorrs> produceLUTCorrs (const HcalLUTCorrsRcd& rcd);
00065   std::auto_ptr<HcalPFCorrs> producePFCorrs (const HcalPFCorrsRcd& rcd);
00066 
00067   std::auto_ptr<HcalValidationCorrs> produceValidationCorrs (const HcalValidationCorrsRcd& rcd);
00068   std::auto_ptr<HcalLutMetadata> produceLutMetadata (const HcalLutMetadataRcd& rcd);
00069   std::auto_ptr<HcalDcsValues> produceDcsValues (const HcalDcsRcd& rcd);
00070   std::auto_ptr<HcalDcsMap> produceDcsMap (const HcalDcsMapRcd& rcd);
00071 
00072   std::auto_ptr<HcalRecoParams> produceRecoParams (const HcalRecoParamsRcd& rcd);
00073   std::auto_ptr<HcalLongRecoParams> produceLongRecoParams (const HcalLongRecoParamsRcd& rcd);
00074   std::auto_ptr<HcalMCParams> produceMCParams (const HcalMCParamsRcd& rcd);
00075 
00076   bool h2mode_;
00077 };
00078