1 #ifndef CommonTools_Utils_BinarySelector_h
2 #define CommonTools_Utils_BinarySelector_h
16 #include <boost/shared_ptr.hpp>
22 boost::shared_ptr<ComparisonBase> cmp,
23 boost::shared_ptr<ExpressionBase> rhs ) :
26 return cmp_->compare(
lhs_->value( o ),
rhs_->value( o ) );
28 boost::shared_ptr<ExpressionBase>
lhs_;
29 boost::shared_ptr<ComparisonBase>
cmp_;
30 boost::shared_ptr<ExpressionBase>
rhs_;
boost::shared_ptr< ExpressionBase > lhs_
boost::shared_ptr< ComparisonBase > cmp_
boost::shared_ptr< ExpressionBase > rhs_
BinarySelector(boost::shared_ptr< ExpressionBase > lhs, boost::shared_ptr< ComparisonBase > cmp, boost::shared_ptr< ExpressionBase > rhs)
virtual bool operator()(const edm::ObjectWithDict &o) const
return true if the object is selected