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

Member Typedef Documentation

◆ Collection

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

Definition at line 32 of file ExpressionEvaluatorTemplates.h.

◆ Mask

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

Definition at line 33 of file ExpressionEvaluatorTemplates.h.

Constructor & Destructor Documentation

◆ ~MaskCollection()

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

Definition at line 41 of file ExpressionEvaluatorTemplates.h.

41 {};

Member Function Documentation

◆ eval()

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

◆ mask()

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

Definition at line 35 of file ExpressionEvaluatorTemplates.h.

35  {
36  mask.resize(cands.size());
38  cands.begin(), cands.end(), mask.begin(), [&](typename Collection::value_type const& c) { return f(*c); });
39  }

References HltBtagPostValidation_cff::c, HLT_2018_cff::cands, f, and HcalDetIdTransform::transform().

f
double f[11][100]
Definition: MuScleFitUtils.cc:78
reco::MaskCollection::mask
void mask(Collection const &cands, Mask &mask, F f) const
Definition: ExpressionEvaluatorTemplates.h:35
HcalDetIdTransform::transform
unsigned transform(const HcalDetId &id, unsigned transformCode)
Definition: HcalDetIdTransform.cc:7
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition: JetExtendedAssociation.h:30
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
HLT_2018_cff.cands
cands
Definition: HLT_2018_cff.py:13762