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

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)) {}
T getParameter(std::string const &) const
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:160
template<typename T, typename TProd>
virtual SimpleFlatTableProducerBase< T, TProd >::VariableBase::~VariableBase ( )
inlinevirtual

Definition at line 71 of file SimpleFlatTableProducer.h.

71 {}

Member Function Documentation

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

Member Data Documentation

template<typename T, typename TProd>
std::string SimpleFlatTableProducerBase< T, TProd >::VariableBase::doc_
protected
template<typename T, typename TProd>
std::string SimpleFlatTableProducerBase< T, TProd >::VariableBase::name_
protected
template<typename T, typename TProd>
int SimpleFlatTableProducerBase< T, TProd >::VariableBase::precision_
protected
template<typename T, typename TProd>
nanoaod::FlatTable::ColumnType SimpleFlatTableProducerBase< T, TProd >::VariableBase::type_
protected