CMS 3D CMS Logo

SimpleIsolator.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_PatAlgos_interface_SimpleIsolator_h
2 #define PhysicsTools_PatAlgos_interface_SimpleIsolator_h
3 
5 
6 namespace pat { namespace helper {
7 class SimpleIsolator : public BaseIsolator {
8  public:
11  SimpleIsolator(const edm::ParameterSet &conf, edm::ConsumesCollector & iC, 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:
20  virtual float getValue(const edm::ProductID &id, size_t index) const {
21  return handle_->get(id, index);
22  }
23 }; // class SimpleIsolator
24 } } // namespaces
25 
26 #endif
edm::Handle< IsoValueMap > handle_
virtual float getValue(const edm::ProductID &id, size_t index) const
Definition: helper.py:1
edm::EDGetTokenT< IsoValueMap > inputDoubleToken_
edm::ValueMap< double > IsoValueMap
Definition: SimpleIsolator.h:9
std::string encode() const
Definition: InputTag.cc:165
Definition: HeavyIon.h:7
const_reference_type get(ProductID id, size_t idx) const
Definition: ValueMap.h:139
virtual std::string description() const
virtual void beginEvent(const edm::Event &event, const edm::EventSetup &eventSetup)
Definition: event.py:1