CMS 3D CMS Logo

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

◆ Collection

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

Definition at line 59 of file ExpressionEvaluatorTemplates.h.

◆ Indices

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

Definition at line 60 of file ExpressionEvaluatorTemplates.h.

Constructor & Destructor Documentation

◆ ~SelectIndecesInCollection()

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

Definition at line 71 of file ExpressionEvaluatorTemplates.h.

71 {};

Member Function Documentation

◆ eval()

template<typename Object >
virtual void reco::SelectIndecesInCollection< Object >::eval ( Collection const &  ,
Indices  
) const
pure virtual

◆ select()

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