ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
dqi::HanConfigAlgPar Class Reference

#include <HanConfigAlgPar.h>

Inheritance diagram for dqi::HanConfigAlgPar:
Collaboration diagram for dqi::HanConfigAlgPar:

Public Member Functions

 HanConfigAlgPar ()
 
virtual ~HanConfigAlgPar ()
 
virtual void SetName (std::string name_)
 
virtual const char * GetName () const
 
virtual void SetValue (float value_)
 
virtual float GetValue () const
 
virtual void PrintIOStream (std::ostream &o) const
 
virtual TList * GetList ()
 

Protected Attributes

TObjString m_name
 
Float_t m_value
 

Detailed Description

Definition at line 18 of file HanConfigAlgPar.h.

Constructor & Destructor Documentation

◆ HanConfigAlgPar()

dqi::HanConfigAlgPar::HanConfigAlgPar ( )

Definition at line 29 of file HanConfigAlgPar.cxx.

31  : m_name("")
32  , m_value(0.0)
33 {
34 }

◆ ~HanConfigAlgPar()

dqi::HanConfigAlgPar::~HanConfigAlgPar ( )
virtual

Definition at line 37 of file HanConfigAlgPar.cxx.

39 {
40 }

Member Function Documentation

◆ GetList()

TList * dqi::HanConfigAlgPar::GetList ( )
virtual

Definition at line 83 of file HanConfigAlgPar.cxx.

85 {
86  TList *ret = new TList();
87 
88  std::ostringstream parValStr;
89  parValStr << std::setprecision(4) << this->m_value;
90  ret->SetName( this->GetName() );
91  ret->Add( new TObjString(parValStr.str().c_str()) );
92 
93  return ret;
94 }

◆ GetName()

const char * dqi::HanConfigAlgPar::GetName ( ) const
virtual

Definition at line 52 of file HanConfigAlgPar.cxx.

54 {
55  return m_name.GetName();
56 }

◆ GetValue()

float dqi::HanConfigAlgPar::GetValue ( ) const
virtual

Definition at line 68 of file HanConfigAlgPar.cxx.

70 {
71  return m_value;
72 }

◆ PrintIOStream()

void dqi::HanConfigAlgPar::PrintIOStream ( std::ostream &  o) const
virtual

Definition at line 76 of file HanConfigAlgPar.cxx.

78 {
79  o << GetName() << " = " << GetValue() << "\n";
80 }

◆ SetName()

void dqi::HanConfigAlgPar::SetName ( std::string  name_)
virtual

Definition at line 44 of file HanConfigAlgPar.cxx.

46 {
47  m_name.SetString( name_.c_str() );
48 }

◆ SetValue()

void dqi::HanConfigAlgPar::SetValue ( float  value_)
virtual

Definition at line 60 of file HanConfigAlgPar.cxx.

62 {
63  m_value = value_;
64 }

Member Data Documentation

◆ m_name

TObjString dqi::HanConfigAlgPar::m_name
protected

Definition at line 41 of file HanConfigAlgPar.h.

◆ m_value

Float_t dqi::HanConfigAlgPar::m_value
protected

Definition at line 42 of file HanConfigAlgPar.h.


The documentation for this class was generated from the following files:
dqi::HanConfigAlgPar::GetName
virtual const char * GetName() const
Definition: HanConfigAlgPar.cxx:53
dqi::HanConfigAlgPar::m_value
Float_t m_value
Definition: HanConfigAlgPar.h:42
dqi::HanConfigAlgPar::m_name
TObjString m_name
Definition: HanConfigAlgPar.h:41
dqi::HanConfigAlgPar::GetValue
virtual float GetValue() const
Definition: HanConfigAlgPar.cxx:69