ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/DGele/PhysicsTools/PatAlgos/interface/SimpleIsolator.h
Revision: 1.1
Committed: Tue Oct 20 17:15:14 2009 UTC (15 years, 6 months ago) by dgele
Content type: text/plain
Branch: MAIN
Branch point for: ANA
Log Message:
Initial revision

File Contents

# User Rev Content
1 dgele 1.1 #ifndef PhysicsTools_PatAlgos_interface_SimpleIsolator_h
2     #define PhysicsTools_PatAlgos_interface_SimpleIsolator_h
3    
4     #include "PhysicsTools/PatAlgos/interface/BaseIsolator.h"
5    
6     namespace pat { namespace helper {
7     class SimpleIsolator : public BaseIsolator {
8     public:
9     typedef edm::ValueMap<double> IsoValueMap;
10     SimpleIsolator() {}
11     SimpleIsolator(const edm::ParameterSet &conf, bool withCut) ;
12     virtual ~SimpleIsolator() {}
13     virtual void beginEvent(const edm::Event &event, const edm::EventSetup &eventSetup) ;
14     virtual void endEvent() ;
15    
16     virtual std::string description() const { return input_.encode(); }
17     protected:
18     edm::Handle<IsoValueMap> handle_;
19     virtual float getValue(const edm::ProductID &id, size_t index) const {
20     return handle_->get(id, index);
21     }
22     }; // class SimpleIsolator
23     } } // namespaces
24    
25     #endif