CMS 3D CMS Logo

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

◆ Collection

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

Definition at line 46 of file ExpressionEvaluatorTemplates.h.

Constructor & Destructor Documentation

◆ ~SelectInCollection()

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

Definition at line 54 of file ExpressionEvaluatorTemplates.h.

54 {};

Member Function Documentation

◆ eval()

template<typename Object >
virtual void reco::SelectInCollection< Object >::eval ( Collection ) const
pure virtual

◆ select()

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 HltBtagPostValidation_cff::c, HLT_2022v15_cff::cands, and 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  }
double f[11][100]