CMS 3D CMS Logo

SimpleIsolator.h

Go to the documentation of this file.
00001 #ifndef PhysicsTools_PatAlgos_interface_SimpleIsolator_h
00002 #define PhysicsTools_PatAlgos_interface_SimpleIsolator_h
00003 
00004 #include "PhysicsTools/PatAlgos/interface/BaseIsolator.h"
00005 
00006 namespace pat { namespace helper {
00007 class SimpleIsolator : public BaseIsolator {
00008     public:
00009         typedef edm::ValueMap<double> IsoValueMap;
00010         SimpleIsolator() {}
00011         SimpleIsolator(const edm::ParameterSet &conf, bool withCut) ;
00012         virtual ~SimpleIsolator() {}
00013         virtual void beginEvent(const edm::Event &event, const edm::EventSetup &eventSetup) ;
00014         virtual void endEvent() ;
00015 
00016         virtual std::string description() const { return input_.encode(); }
00017     protected:
00018         edm::Handle<IsoValueMap> handle_;
00019         virtual float getValue(const edm::ProductID &id, size_t index) const {
00020             return handle_->get(id, index);
00021         }
00022 }; // class SimpleIsolator
00023 } } // namespaces
00024 
00025 #endif

Generated on Tue Jun 9 17:41:33 2009 for CMSSW by  doxygen 1.5.4