CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/PhysicsTools/MVAComputer/interface/MVAComputerESSourceBase.h

Go to the documentation of this file.
00001 #ifndef PhysicsTools_MVAComputer_MVAComputerESSourceBase_h
00002 #define PhysicsTools_MVAComputer_MVAComputerESSourceBase_h
00003 
00004 #include <string>
00005 #include <map>
00006 
00007 #include <boost/shared_ptr.hpp>
00008 
00009 #include "FWCore/Framework/interface/ESProducer.h"
00010 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00011 
00012 #include "PhysicsTools/MVAComputer/interface/Calibration.h"
00013 #include "PhysicsTools/MVAComputer/interface/MVAComputer.h"
00014 
00015 namespace PhysicsTools {
00016 
00017 class MVAComputerESSourceBase : public edm::ESProducer {
00018     public:
00019         typedef boost::shared_ptr<Calibration::MVAComputerContainer> ReturnType;
00020 
00021         MVAComputerESSourceBase(const edm::ParameterSet &params);
00022         virtual ~MVAComputerESSourceBase();
00023 
00024     protected:
00025         ReturnType produce() const;
00026 
00027         typedef std::map<std::string, std::string> LabelFileMap;
00028 
00029         LabelFileMap    mvaCalibrations;
00030 };
00031 
00032 } // namespace PhysicsTools
00033 
00034 #endif // PhysicsTools_MVAComputer_MVAComputerESSourceBase_h