CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/CalibCalorimetry/CaloMiscalibTools/interface/CaloMiscalibToolsMC.h

Go to the documentation of this file.
00001 #ifndef _CALOMISCALIBTOOLSMC_H
00002 #define _CALOMISCALIBTOOLSMC_H
00003 
00004 // -*- C++ -*-
00005 //
00006 // Package:    CaloMiscalibToolsMC
00007 // Class:      CaloMiscalibToolsMC
00008 // 
00016 //
00017 // Original Author:  Lorenzo AGOSTINO
00018 //         Created:  Mon Jul 17 18:07:01 CEST 2006
00019 // $Id: CaloMiscalibToolsMC.h,v 1.1 2009/04/08 22:29:38 fra 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/EcalIntercalibConstantsMC.h"
00044 #include "CondFormats/DataRecord/interface/EcalIntercalibConstantsMCRcd.h"
00045 #include "CalibCalorimetry/CaloMiscalibTools/interface/CaloMiscalibMapEcal.h"
00046 
00047 //
00048 // class decleration
00049 //
00050 
00051 class CaloMiscalibToolsMC : public edm::ESProducer, public edm::EventSetupRecordIntervalFinder  {
00052    public:
00053       CaloMiscalibToolsMC(const edm::ParameterSet&);
00054       ~CaloMiscalibToolsMC();
00055 
00056       typedef const  EcalIntercalibConstantsMC * ReturnType;
00057 
00058       ReturnType produce(const EcalIntercalibConstantsMCRcd&);
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