CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions
reco::SelectInCollection< Object > Struct Template Referenceabstract

#include <ExpressionEvaluatorTemplates.h>

Public Types

using Collection = std::vector< Object const * >
 

Public Member Functions

virtual void eval (Collection &) const =0
 
template<typename F >
void select (Collection &cands, F f) const
 
virtual ~SelectInCollection ()
 

Detailed Description

template<typename Object>
struct reco::SelectInCollection< Object >

Definition at line 45 of file ExpressionEvaluatorTemplates.h.

Member Typedef Documentation

template<typename Object >
using reco::SelectInCollection< Object >::Collection = std::vector<Object const*>

Definition at line 46 of file ExpressionEvaluatorTemplates.h.

Constructor & Destructor Documentation

template<typename Object >
virtual reco::SelectInCollection< Object >::~SelectInCollection ( )
inlinevirtual

Definition at line 54 of file ExpressionEvaluatorTemplates.h.

54 {};

Member Function Documentation

template<typename Object >
virtual void reco::SelectInCollection< Object >::eval ( Collection ) const
pure virtual
template<typename Object >
template<typename F >
void reco::SelectInCollection< Object >::select ( Collection cands,
F  f 
) const
inline

Definition at line 48 of file ExpressionEvaluatorTemplates.h.

References c, and validate-o2o-wbm::f.

48  {
49  cands.erase(
50  std::remove_if(cands.begin(), cands.end(), [&](typename Collection::value_type const& c) { return !f(*c); }),
51  cands.end());
52  }
const edm::EventSetup & c