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.

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  }

References HltBtagPostValidation_cff::c, HLT_FULL_cff::cands, and f.

f
double f[11][100]
Definition: MuScleFitUtils.cc:78
HLT_FULL_cff.cands
cands
Definition: HLT_FULL_cff.py:15142
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition: JetExtendedAssociation.h:30
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31