CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 to Reflex by Luca Lista, INFN
9  *
10  * \version $Revision: 1.1 $
11  *
12  */
15 
16 namespace reco {
17  namespace parser {
18  struct OrCombiner : public SelectorBase {
20  lhs_( lhs ), rhs_( rhs ) {}
21  virtual bool operator()( const Reflex::Object& o ) const {
22  return (*lhs_)( o ) || (*rhs_)( o );
23  }
24  private:
26  };
27  }
28 }
29 
30 #endif
virtual bool operator()(const Reflex::Object &o) const
return true if the Refle object is selected
Definition: OrCombiner.h:21
OrCombiner(SelectorPtr lhs, SelectorPtr rhs)
Definition: OrCombiner.h:19
boost::shared_ptr< SelectorBase > SelectorPtr
Definition: SelectorPtr.h:17