ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
TrigConfAlg Class Reference

#include <TrigConfAlg.h>

Collaboration diagram for TrigConfAlg:

Public Member Functions

 TrigConfAlg ()
 
 TrigConfAlg (const uint32_t index, const uint32_t position, const std::string &name, const std::string &type, const uint32_t name_id, const uint32_t type_id)
 
 ~TrigConfAlg ()
 
void clearStrings ()
 
const std::string & getName () const
 
const std::string & getType () const
 
uint16_t getIndex () const
 
uint8_t getPosition () const
 
uint32_t getNameId () const
 
uint32_t getTypeId () const
 
void print (std::ostream &os=std::cout) const
 

Private Attributes

uint16_t m_index
 
uint8_t m_position
 
uint32_t m_name_id
 
uint32_t m_type_id
 
std::string m_name
 
std::string m_type
 

Detailed Description

Definition at line 25 of file TrigConfAlg.h.

Constructor & Destructor Documentation

◆ TrigConfAlg() [1/2]

TrigConfAlg::TrigConfAlg ( )

Definition at line 14 of file TrigConfAlg.cxx.

15  :m_index(0),
16  m_position(0),
17  m_name_id(0),
18  m_type_id(0),
19  m_name(),
20  m_type()
21 {
22 }

◆ TrigConfAlg() [2/2]

TrigConfAlg::TrigConfAlg ( const uint32_t  index,
const uint32_t  position,
const std::string &  name,
const std::string &  type,
const uint32_t  name_id,
const uint32_t  type_id 
)

Definition at line 25 of file TrigConfAlg.cxx.

31  :m_index(index),
32  m_position(position),
33  m_name_id(name_id),
34  m_type_id(type_id),
35  m_name(name),
36  m_type(type)
37 {
38  if(position >= 128) {
39  REPORT_MESSAGE_WITH_CONTEXT(MSG::ERROR, "TrigConfAlg") << "Position is too large";
40  }
41  if(index >= 65535) {
42  REPORT_MESSAGE_WITH_CONTEXT(MSG::ERROR, "TrigConfAlg") << "Index is too large";
43  }
44 }

◆ ~TrigConfAlg()

TrigConfAlg::~TrigConfAlg ( )
inline

Definition at line 35 of file TrigConfAlg.h.

35 {}

Member Function Documentation

◆ clearStrings()

void TrigConfAlg::clearStrings ( )

Definition at line 47 of file TrigConfAlg.cxx.

48 {
49  //
50  // Clear all string variables
51  //
52  m_name.clear();
53  m_type.clear();
54 }

◆ getIndex()

uint16_t TrigConfAlg::getIndex ( ) const
inline

Definition at line 42 of file TrigConfAlg.h.

42 { return m_index; }

◆ getName()

const std::string& TrigConfAlg::getName ( ) const
inline

Definition at line 39 of file TrigConfAlg.h.

39 { return m_name; }

◆ getNameId()

uint32_t TrigConfAlg::getNameId ( ) const
inline

Definition at line 44 of file TrigConfAlg.h.

44 { return m_name_id; }

◆ getPosition()

uint8_t TrigConfAlg::getPosition ( ) const
inline

Definition at line 43 of file TrigConfAlg.h.

43 { return m_position; }

◆ getType()

const std::string& TrigConfAlg::getType ( ) const
inline

Definition at line 40 of file TrigConfAlg.h.

40 { return m_type; }

◆ getTypeId()

uint32_t TrigConfAlg::getTypeId ( ) const
inline

Definition at line 45 of file TrigConfAlg.h.

45 { return m_type_id; }

◆ print()

void TrigConfAlg::print ( std::ostream &  os = std::cout) const

Definition at line 57 of file TrigConfAlg.cxx.

58 {
59  os << str(*this) << std::endl;
60 }

Member Data Documentation

◆ m_index

uint16_t TrigConfAlg::m_index
private

Definition at line 51 of file TrigConfAlg.h.

◆ m_name

std::string TrigConfAlg::m_name
private

Definition at line 56 of file TrigConfAlg.h.

◆ m_name_id

uint32_t TrigConfAlg::m_name_id
private

Definition at line 53 of file TrigConfAlg.h.

◆ m_position

uint8_t TrigConfAlg::m_position
private

Definition at line 52 of file TrigConfAlg.h.

◆ m_type

std::string TrigConfAlg::m_type
private

Definition at line 57 of file TrigConfAlg.h.

◆ m_type_id

uint32_t TrigConfAlg::m_type_id
private

Definition at line 54 of file TrigConfAlg.h.


The documentation for this class was generated from the following files:
index
Definition: index.py:1
TrigConfAlg::m_type_id
uint32_t m_type_id
Definition: TrigConfAlg.h:54
TrigConfAlg::m_type
std::string m_type
Definition: TrigConfAlg.h:57
TrigConfAlg::m_name_id
uint32_t m_name_id
Definition: TrigConfAlg.h:53
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
REPORT_MESSAGE_WITH_CONTEXT
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
Definition: Control/AthenaKernel/AthenaKernel/errorcheck.h:345
TrigConfAlg::m_name
std::string m_name
Definition: TrigConfAlg.h:56
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
str
std::string str(const TrigConfAlg &o)
Definition: TrigConfAlg.cxx:63
TrigConfAlg::m_index
uint16_t m_index
Definition: TrigConfAlg.h:51
TrigConfAlg::m_position
uint8_t m_position
Definition: TrigConfAlg.h:52