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 60 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 62 of file SimpleFlatTableProducer.h.

62  :
63  name_(aname), doc_(cfg.getParameter<std::string>("doc")), type_(atype),
64  precision_(cfg.existsAs<int>("precision") ? cfg.getParameter<int>("precision") : (cfg.existsAs<std::string>("precision") ? -2 : -1))
65  {
66  }
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:161
template<typename T, typename TProd>
virtual SimpleFlatTableProducerBase< T, TProd >::VariableBase::~VariableBase ( )
inlinevirtual

Definition at line 67 of file SimpleFlatTableProducer.h.

67 {}

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