CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/CalibCalorimetry/CaloMiscalibTools/interface/CaloMiscalibTools.h

Go to the documentation of this file.
00001 #ifndef _CALOMISCALIBTOOLS_H
00002 #define _CALOMISCALIBTOOLS_H
00003 
00004 // -*- C++ -*-
00005 //
00006 // Package:    CaloMiscalibTools
00007 // Class:      CaloMiscalibTools
00008 // 
00016 //
00017 // Original Author:  Lorenzo AGOSTINO
00018 //         Created:  Mon Jul 17 18:07:01 CEST 2006
00019 // $Id: CaloMiscalibTools.h,v 1.3 2007/09/11 13:46:07 malgeri Exp $
00020 //
00021 // Modified       : Luca Malgeri 
00022 // Date:          : 11/09/2006 
00023 // Reason         : split class definition (.h) from source code (.cc)
00024  
00025 
00026 // system include files
00027 #include <memory>
00028 
00029 // user include files
00030 #include "FWCore/Framework/interface/SourceFactory.h"
00031 
00032 #include "FWCore/Framework/interface/Frameworkfwd.h"
00033 #include "FWCore/Framework/interface/ESProducer.h"
00034 
00035 #include "FWCore/Framework/interface/Event.h"
00036 #include "FWCore/Framework/interface/MakerMacros.h"
00037 
00038 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00039 
00040 #include "FWCore/Framework/interface/EventSetupRecordIntervalFinder.h"
00041 #include "FWCore/Framework/interface/ESHandle.h"
00042 #include "FWCore/Framework/interface/EventSetup.h"
00043 #include "CondFormats/EcalObjects/interface/EcalIntercalibConstants.h"
00044 #include "CondFormats/DataRecord/interface/EcalIntercalibConstantsRcd.h"
00045 #include "CalibCalorimetry/CaloMiscalibTools/interface/CaloMiscalibMapEcal.h"
00046 
00047 //
00048 // class decleration
00049 //
00050 
00051 class CaloMiscalibTools : public edm::ESProducer, public edm::EventSetupRecordIntervalFinder  {
00052    public:
00053       CaloMiscalibTools(const edm::ParameterSet&);
00054       ~CaloMiscalibTools();
00055 
00056       typedef const  EcalIntercalibConstants * ReturnType;
00057 
00058       ReturnType produce(const EcalIntercalibConstantsRcd&);
00059    private:
00060       // ----------member data ---------------------------
00061     void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue&, edm::ValidityInterval & );
00062     
00063     CaloMiscalibMapEcal map_;
00064     std::string barrelfile_; 
00065     std::string endcapfile_; 
00066     std::string barrelfileinpath_; 
00067     std::string endcapfileinpath_; 
00068 
00069 };
00070 
00071 #endif