CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LogicalBinaryOperator.h
Go to the documentation of this file.
1 #ifndef CommonTools_Utils_LogicalBinaryOperator_h
2 #define CommonTools_Utils_LogicalBinaryOperator_h
3 /* \class reco::parser::LogicalBinaryOperator
4  *
5  * logical AND 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  template <typename Op>
21  rhs_ = selStack.back();
22  selStack.pop_back();
23  lhs_ = selStack.back();
24  selStack.pop_back();
25  }
26  bool operator()(const edm::ObjectWithDict &o) const override;
27 
28  private:
29  Op op_;
31  };
32 
33  template <>
35  template <>
37  } // namespace parser
38 } // namespace reco
39 
40 #endif
bool operator()(const edm::ObjectWithDict &o) const override
return true if the object is selected
std::vector< SelectorPtr > SelectorStack
Definition: SelectorStack.h:18
LogicalBinaryOperator(SelectorStack &selStack)
std::shared_ptr< SelectorBase > SelectorPtr
Definition: SelectorPtr.h:18