CMS 3D CMS Logo

OrCombiner.h
Go to the documentation of this file.
1 #ifndef CommonTools_Utils_OrCombiner_h
2 #define CommonTools_Utils_OrCombiner_h
3 /* \class reco::parser::OrCombiner
4  *
5  * logical OR combiner
6  *
7  * \author original version: Chris Jones, Cornell,
8  * adapted by Luca Lista, INFN
9  *
10  * \version $Revision: 1.2 $
11  *
12  */
15 
16 namespace reco {
17  namespace parser {
18  struct OrCombiner : public SelectorBase {
19  OrCombiner(SelectorPtr lhs, SelectorPtr rhs) : lhs_(lhs), rhs_(rhs) {}
20  bool operator()(const edm::ObjectWithDict& o) const override { return (*lhs_)(o) || (*rhs_)(o); }
21 
22  private:
24  };
25  } // namespace parser
26 } // namespace reco
27 
28 #endif
OrCombiner(SelectorPtr lhs, SelectorPtr rhs)
Definition: OrCombiner.h:19
fixed size matrix
bool operator()(const edm::ObjectWithDict &o) const override
return true if the object is selected
Definition: OrCombiner.h:20
std::shared_ptr< SelectorBase > SelectorPtr
Definition: SelectorPtr.h:18