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::SelectIndecesInCollection< Object > Struct Template Referenceabstract

#include <ExpressionEvaluatorTemplates.h>

Public Types

using Collection = std::vector< Object const * >
 
using Indices = std::vector< unsigned int >
 

Public Member Functions

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

Detailed Description

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

Definition at line 58 of file ExpressionEvaluatorTemplates.h.

Member Typedef Documentation

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

Definition at line 59 of file ExpressionEvaluatorTemplates.h.

template<typename Object >
using reco::SelectIndecesInCollection< Object >::Indices = std::vector<unsigned int>

Definition at line 60 of file ExpressionEvaluatorTemplates.h.

Constructor & Destructor Documentation

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

Definition at line 71 of file ExpressionEvaluatorTemplates.h.

71 {};

Member Function Documentation

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

Definition at line 62 of file ExpressionEvaluatorTemplates.h.

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

62  {
63  unsigned int i = 0;
64  for (auto const& c : cands) {
65  if (f(*c))
66  inds.push_back(i);
67  ++i;
68  }
69  }
const edm::EventSetup & c