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  ~SimpleIsolator() override {}
13  void beginEvent(const edm::Event &event, const edm::EventSetup &eventSetup) override ;
14  void endEvent() override ;
15 
16  std::string description() const override { return input_.encode(); }
17  protected:
20  float getValue(const edm::ProductID &id, size_t index) const override {
21  return handle_->get(id, index);
22  }
23 }; // class SimpleIsolator
24 } } // namespaces
25 
26 #endif
edm::Handle< IsoValueMap > handle_
Definition: helper.py:1
edm::EDGetTokenT< IsoValueMap > inputDoubleToken_
edm::ValueMap< double > IsoValueMap
Definition: SimpleIsolator.h:9
std::string encode() const
Definition: InputTag.cc:159
Definition: HeavyIon.h:7
std::string description() const override
const_reference_type get(ProductID id, size_t idx) const
Definition: ValueMap.h:140
float getValue(const edm::ProductID &id, size_t index) const override
void beginEvent(const edm::Event &event, const edm::EventSetup &eventSetup) override
Definition: event.py:1