CMS 3D CMS Logo

List of all members | Public Member Functions
ValueMapVariable< ObjType, TIn, ValType > Class Template Reference

#include <SimpleFlatTableProducer.h>

Inheritance diagram for ValueMapVariable< ObjType, TIn, ValType >:
ValueMapVariableBase< ObjType, TIn, ValType > ExtVariable< ObjType > VariableBase

Public Member Functions

ValType eval (const edm::Handle< edm::ValueMap< TIn >> &vmap, const edm::Ptr< ObjType > &op) const override
 
 ValueMapVariable (const std::string &aname, const edm::ParameterSet &cfg, edm::ConsumesCollector &&cc, bool skipNonExistingSrc=false)
 
- Public Member Functions inherited from ValueMapVariableBase< ObjType, TIn, ValType >
void fill (const edm::Event &iEvent, std::vector< edm::Ptr< ObjType >> selptrs, nanoaod::FlatTable &out) const override
 
 ValueMapVariableBase (const std::string &aname, const edm::ParameterSet &cfg, edm::ConsumesCollector &&cc, bool skipNonExistingSrc=false)
 
- Public Member Functions inherited from ExtVariable< ObjType >
 ExtVariable (const std::string &aname, const edm::ParameterSet &cfg)
 
- Public Member Functions inherited from VariableBase
const std::string & name () const
 
 VariableBase (const std::string &aname, const edm::ParameterSet &cfg)
 
virtual ~VariableBase ()
 

Additional Inherited Members

- Protected Attributes inherited from ValueMapVariableBase< ObjType, TIn, ValType >
const bool skipNonExistingSrc_
 
edm::EDGetTokenT< edm::ValueMap< TIn > > token_
 
- Protected Attributes inherited from VariableBase
std::string doc_
 
std::string name_
 
int precision_
 

Detailed Description

template<typename ObjType, typename TIn, typename ValType = TIn>
class ValueMapVariable< ObjType, TIn, ValType >

Definition at line 117 of file SimpleFlatTableProducer.h.

Constructor & Destructor Documentation

◆ ValueMapVariable()

template<typename ObjType , typename TIn , typename ValType = TIn>
ValueMapVariable< ObjType, TIn, ValType >::ValueMapVariable ( const std::string &  aname,
const edm::ParameterSet cfg,
edm::ConsumesCollector &&  cc,
bool  skipNonExistingSrc = false 
)
inline

Member Function Documentation

◆ eval()

template<typename ObjType , typename TIn , typename ValType = TIn>
ValType ValueMapVariable< ObjType, TIn, ValType >::eval ( const edm::Handle< edm::ValueMap< TIn >> &  vmap,
const edm::Ptr< ObjType > &  op 
) const
inlineoverridevirtual

Implements ValueMapVariableBase< ObjType, TIn, ValType >.

Definition at line 124 of file SimpleFlatTableProducer.h.

References findAndChange::op, and heppy_batch::val.

124  {
125  ValType val = (*vmap)[op];
126  return val;
127  }