CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 { 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
edm::EDGetTokenT< IsoValueMap > inputDoubleToken_
edm::ValueMap< double > IsoValueMap
Definition: SimpleIsolator.h:9
std::string encode() const
Definition: InputTag.cc:164
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
virtual std::string description() const
virtual void beginEvent(const edm::Event &event, const edm::EventSetup &eventSetup)