CMS 3D CMS Logo

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
 
virtual ~MaskCollection ()
 

Detailed Description

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

Definition at line 32 of file ExpressionEvaluatorTemplates.h.

Member Typedef Documentation

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

Definition at line 33 of file ExpressionEvaluatorTemplates.h.

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

Definition at line 34 of file ExpressionEvaluatorTemplates.h.

Constructor & Destructor Documentation

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

Definition at line 41 of file ExpressionEvaluatorTemplates.h.

41 {};

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 36 of file ExpressionEvaluatorTemplates.h.

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

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