CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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_
edm::EDGetTokenT< IsoValueMap > inputDoubleToken_
edm::ValueMap< double > IsoValueMap
float getValue(const edm::ProductID &id, size_t index) const override
std::string encode() const
Definition: InputTag.cc:159
void beginEvent(const edm::Event &event, const edm::EventSetup &eventSetup) override