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

#include <HanConfigAlgLimit.h>

Inheritance diagram for dqi::HanConfigAlgLimit:
Collaboration diagram for dqi::HanConfigAlgLimit:

Public Member Functions

 HanConfigAlgLimit ()
 
virtual ~HanConfigAlgLimit ()
 
virtual void SetName (std::string name_)
 
virtual const char * GetName () const
 
virtual void SetGreen (float value_)
 
virtual float GetGreen () const
 
virtual void SetRed (float value_)
 
virtual float GetRed () const
 
virtual void PrintIOStream (std::ostream &o) const
 
virtual TSeqCollection * GetList ()
 

Protected Attributes

TObjString m_name
 
Float_t m_greenValue
 
Float_t m_redValue
 

Detailed Description

Definition at line 18 of file HanConfigAlgLimit.h.

Constructor & Destructor Documentation

◆ HanConfigAlgLimit()

dqi::HanConfigAlgLimit::HanConfigAlgLimit ( )

Definition at line 30 of file HanConfigAlgLimit.cxx.

32  : m_name("")
33  , m_greenValue(0.0)
34  , m_redValue(0.0)
35 {
36 }

◆ ~HanConfigAlgLimit()

dqi::HanConfigAlgLimit::~HanConfigAlgLimit ( )
virtual

Definition at line 39 of file HanConfigAlgLimit.cxx.

41 {
42 }

Member Function Documentation

◆ GetGreen()

float dqi::HanConfigAlgLimit::GetGreen ( ) const
virtual

Definition at line 70 of file HanConfigAlgLimit.cxx.

72 {
73  return m_greenValue;
74 }

◆ GetList()

TSeqCollection * dqi::HanConfigAlgLimit::GetList ( )
virtual

Definition at line 102 of file HanConfigAlgLimit.cxx.

104 {
105  TSeqCollection *ret = newTObjArray(this->GetName(), 0, 2);
106 
107  std::ostringstream greenValStr;
108  greenValStr << std::setprecision(4) << this->m_greenValue;
109  ret->Add( newTObjArray("Green",new TObjString( greenValStr.str().c_str() ), 1) );
110 
111  std::ostringstream redValStr;
112  redValStr << std::setprecision(4) << this->m_redValue;
113  ret->Add( newTObjArray("Red",new TObjString( redValStr.str().c_str() ), 1) );
114 
115  return ret;
116 }

◆ GetName()

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

Definition at line 54 of file HanConfigAlgLimit.cxx.

56 {
57  return m_name.GetName();
58 }

◆ GetRed()

float dqi::HanConfigAlgLimit::GetRed ( ) const
virtual

Definition at line 86 of file HanConfigAlgLimit.cxx.

88 {
89  return m_redValue;
90 }

◆ PrintIOStream()

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

Definition at line 94 of file HanConfigAlgLimit.cxx.

96 {
97  o << GetName() << " = { green = " << GetGreen() << ", red = " << GetRed() << " }\n";
98 }

◆ SetGreen()

void dqi::HanConfigAlgLimit::SetGreen ( float  value_)
virtual

Definition at line 62 of file HanConfigAlgLimit.cxx.

64 {
65  m_greenValue = value_;
66 }

◆ SetName()

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

Definition at line 46 of file HanConfigAlgLimit.cxx.

48 {
49  m_name.SetString( name_.c_str() );
50 }

◆ SetRed()

void dqi::HanConfigAlgLimit::SetRed ( float  value_)
virtual

Definition at line 78 of file HanConfigAlgLimit.cxx.

80 {
81  m_redValue = value_;
82 }

Member Data Documentation

◆ m_greenValue

Float_t dqi::HanConfigAlgLimit::m_greenValue
protected

Definition at line 45 of file HanConfigAlgLimit.h.

◆ m_name

TObjString dqi::HanConfigAlgLimit::m_name
protected

Definition at line 44 of file HanConfigAlgLimit.h.

◆ m_redValue

Float_t dqi::HanConfigAlgLimit::m_redValue
protected

Definition at line 46 of file HanConfigAlgLimit.h.


The documentation for this class was generated from the following files:
dqi::HanConfigAlgLimit::m_name
TObjString m_name
Definition: HanConfigAlgLimit.h:44
dqi::HanConfigAlgLimit::GetGreen
virtual float GetGreen() const
Definition: HanConfigAlgLimit.cxx:71
dqi::HanConfigAlgLimit::GetName
virtual const char * GetName() const
Definition: HanConfigAlgLimit.cxx:55
dqi::HanConfigAlgLimit::GetRed
virtual float GetRed() const
Definition: HanConfigAlgLimit.cxx:87
dqi::HanConfigAlgLimit::m_greenValue
Float_t m_greenValue
Definition: HanConfigAlgLimit.h:45
dqi::newTObjArray
TSeqCollection * newTObjArray(const char *name, TObject *obj=0, Int_t size=TCollection::kInitCapacity)
Definition: HanUtils.cxx:27
dqi::HanConfigAlgLimit::m_redValue
Float_t m_redValue
Definition: HanConfigAlgLimit.h:46