CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
VariableBase Class Reference

#include <SimpleFlatTableProducer.h>

Inheritance diagram for VariableBase:
ExtVariable< ObjType > Variable< ObjType > ValueMapVariable< ObjType, TIn, ValType > FuncVariable< ObjType, StringFunctor, ValType >

Public Member Functions

const std::string & name () const
 
 VariableBase (const std::string &aname, const edm::ParameterSet &cfg)
 
virtual ~VariableBase ()
 

Protected Attributes

std::string doc_
 
std::string name_
 
int precision_
 

Detailed Description

Definition at line 16 of file SimpleFlatTableProducer.h.

Constructor & Destructor Documentation

VariableBase::VariableBase ( const std::string &  aname,
const edm::ParameterSet cfg 
)
inline

Definition at line 18 of file SimpleFlatTableProducer.h.

19  : name_(aname),
20  doc_(cfg.getParameter<std::string>("doc")),
21  precision_(cfg.existsAs<int>("precision") ? cfg.getParameter<int>("precision")
22  : (cfg.existsAs<std::string>("precision") ? -2 : -1)) {}
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:171
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
virtual VariableBase::~VariableBase ( )
inlinevirtual

Definition at line 23 of file SimpleFlatTableProducer.h.

23 {}

Member Function Documentation

const std::string& VariableBase::name ( void  ) const
inline

Member Data Documentation

std::string VariableBase::doc_
protected
std::string VariableBase::name_
protected
int VariableBase::precision_
protected