test
CMS 3D CMS Logo

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

#include <ExpressionEvaluatorTemplates.h>

Public Types

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

Public Member Functions

virtual void eval (Collection const &, Mask &) const =0
 
template<typename F >
void mask (Collection const &cands, Mask &mask, F f) const
 

Detailed Description

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

Definition at line 29 of file ExpressionEvaluatorTemplates.h.

Member Typedef Documentation

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

Definition at line 30 of file ExpressionEvaluatorTemplates.h.

template<typename Object >
using reco::MaskCollection< Object >::Mask = std::vector<bool>

Definition at line 31 of file ExpressionEvaluatorTemplates.h.

Member Function Documentation

template<typename Object >
virtual void reco::MaskCollection< Object >::eval ( Collection const &  ,
Mask  
) const
pure virtual
template<typename Object >
template<typename F >
void reco::MaskCollection< Object >::mask ( Collection const &  cands,
Mask mask,
F  f 
) const
inline

Definition at line 33 of file ExpressionEvaluatorTemplates.h.

References EnergyCorrector::c, f, and create_public_lumi_plots::transform.

33  {
34  mask.resize(cands.size());
35  std::transform(cands.begin(),cands.end(),mask.begin(), [&](typename Collection::value_type const & c){ return f(*c);});
36  }
void mask(Collection const &cands, Mask &mask, F f) const
double f[11][100]