CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
SimpleFlatTableProducerBase< T, TProd >::VariableBase Class Reference

#include <SimpleFlatTableProducer.h>

Inheritance diagram for SimpleFlatTableProducerBase< T, TProd >::VariableBase:
SimpleFlatTableProducerBase< T, TProd >::Variable SimpleFlatTableProducerBase< T, TProd >::FuncVariable< StringFunctor, ValType >

Public Member Functions

const std::string & name () const
 
const nanoaod::FlatTable::ColumnTypetype () const
 
 VariableBase (const std::string &aname, nanoaod::FlatTable::ColumnType atype, const edm::ParameterSet &cfg)
 
virtual ~VariableBase ()
 

Protected Attributes

std::string doc_
 
std::string name_
 
int precision_
 
nanoaod::FlatTable::ColumnType type_
 

Detailed Description

template<typename T, typename TProd>
class SimpleFlatTableProducerBase< T, TProd >::VariableBase

Definition at line 63 of file SimpleFlatTableProducer.h.

Constructor & Destructor Documentation

◆ VariableBase()

template<typename T, typename TProd>
SimpleFlatTableProducerBase< T, TProd >::VariableBase::VariableBase ( const std::string &  aname,
nanoaod::FlatTable::ColumnType  atype,
const edm::ParameterSet cfg 
)
inline

Definition at line 65 of file SimpleFlatTableProducer.h.

66  : name_(aname),
67  doc_(cfg.getParameter<std::string>("doc")),
68  type_(atype),
69  precision_(cfg.existsAs<int>("precision") ? cfg.getParameter<int>("precision")
70  : (cfg.existsAs<std::string>("precision") ? -2 : -1)) {}

◆ ~VariableBase()

template<typename T, typename TProd>
virtual SimpleFlatTableProducerBase< T, TProd >::VariableBase::~VariableBase ( )
inlinevirtual

Definition at line 71 of file SimpleFlatTableProducer.h.

71 {}

Member Function Documentation

◆ name()

template<typename T, typename TProd>
const std::string& SimpleFlatTableProducerBase< T, TProd >::VariableBase::name ( void  ) const
inline

◆ type()

template<typename T, typename TProd>
const nanoaod::FlatTable::ColumnType& SimpleFlatTableProducerBase< T, TProd >::VariableBase::type ( ) const
inline

Member Data Documentation

◆ doc_

template<typename T, typename TProd>
std::string SimpleFlatTableProducerBase< T, TProd >::VariableBase::doc_
protected

Definition at line 76 of file SimpleFlatTableProducer.h.

◆ name_

template<typename T, typename TProd>
std::string SimpleFlatTableProducerBase< T, TProd >::VariableBase::name_
protected

◆ precision_

template<typename T, typename TProd>
int SimpleFlatTableProducerBase< T, TProd >::VariableBase::precision_
protected

◆ type_

template<typename T, typename TProd>
nanoaod::FlatTable::ColumnType SimpleFlatTableProducerBase< T, TProd >::VariableBase::type_
protected
SimpleFlatTableProducerBase::VariableBase::type_
nanoaod::FlatTable::ColumnType type_
Definition: SimpleFlatTableProducer.h:77
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SimpleFlatTableProducerBase::VariableBase::name_
std::string name_
Definition: SimpleFlatTableProducer.h:76
looper.cfg
cfg
Definition: looper.py:297
SimpleFlatTableProducerBase::VariableBase::precision_
int precision_
Definition: SimpleFlatTableProducer.h:78
SimpleFlatTableProducerBase::VariableBase::doc_
std::string doc_
Definition: SimpleFlatTableProducer.h:76