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 {
7  namespace helper {
8  class SimpleIsolator : public BaseIsolator {
9  public:
12  SimpleIsolator(const edm::ParameterSet &conf, edm::ConsumesCollector &iC, bool withCut);
13  ~SimpleIsolator() override {}
14  void beginEvent(const edm::Event &event, const edm::EventSetup &eventSetup) override;
15  void endEvent() override;
16 
17  std::string description() const override { return input_.encode(); }
18 
19  protected:
22  float getValue(const edm::ProductID &id, size_t index) const override { return handle_->get(id, index); }
23  }; // class SimpleIsolator
24  } // namespace helper
25 } // namespace pat
26 
27 #endif
std::string description() const override
edm::Handle< IsoValueMap > handle_
Definition: helper.py:1
edm::EDGetTokenT< IsoValueMap > inputDoubleToken_
std::string encode() const
Definition: InputTag.cc:159
edm::ValueMap< double > IsoValueMap
float getValue(const edm::ProductID &id, size_t index) const override
Definition: HeavyIon.h:7
void beginEvent(const edm::Event &event, const edm::EventSetup &eventSetup) override
Definition: event.py:1