ATLAS Offline Software
Loading...
Searching...
No Matches
TrigConfAlg Class Reference

#include <TrigConfAlg.h>

Collaboration diagram for TrigConfAlg:

Public Member Functions

 TrigConfAlg ()=default
 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)
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) const
void print () 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 ( )
default

◆ 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 13 of file TrigConfAlg.cxx.

19 :m_index(index),
20 m_position(position),
21 m_name_id(name_id),
22 m_type_id(type_id),
23 m_name(name),
24 m_type(type)
25{
26 if(position >= 128) {
27 REPORT_MESSAGE_WITH_CONTEXT(MSG::ERROR, "TrigConfAlg") << "Position is too large";
28 }
29 if(index >= 65535) {
30 REPORT_MESSAGE_WITH_CONTEXT(MSG::ERROR, "TrigConfAlg") << "Index is too large";
31 }
32}
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
uint8_t m_position
Definition TrigConfAlg.h:53
uint16_t m_index
Definition TrigConfAlg.h:52
std::string m_type
Definition TrigConfAlg.h:58
std::string m_name
Definition TrigConfAlg.h:57
uint32_t m_type_id
Definition TrigConfAlg.h:55
uint32_t m_name_id
Definition TrigConfAlg.h:54

Member Function Documentation

◆ clearStrings()

void TrigConfAlg::clearStrings ( )

Definition at line 35 of file TrigConfAlg.cxx.

36{
37 //
38 // Clear all string variables
39 //
40 m_name.clear();
41 m_type.clear();
42}

◆ 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() [1/2]

void TrigConfAlg::print ( ) const

Definition at line 50 of file TrigConfAlg.cxx.

51{
52 std::cout << str(*this) << std::endl;
53}

◆ print() [2/2]

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

Definition at line 45 of file TrigConfAlg.cxx.

46{
47 os << str(*this) << std::endl;
48}

Member Data Documentation

◆ m_index

uint16_t TrigConfAlg::m_index {}
private

Definition at line 52 of file TrigConfAlg.h.

52{}; // Unique algorithm index in current configuration

◆ m_name

std::string TrigConfAlg::m_name
private

Definition at line 57 of file TrigConfAlg.h.

◆ m_name_id

uint32_t TrigConfAlg::m_name_id {}
private

Definition at line 54 of file TrigConfAlg.h.

54{}; // Hash id of name_alg

◆ m_position

uint8_t TrigConfAlg::m_position {}
private

Definition at line 53 of file TrigConfAlg.h.

53{}; // Algorithm position within sequence

◆ m_type

std::string TrigConfAlg::m_type
private

Definition at line 58 of file TrigConfAlg.h.

◆ m_type_id

uint32_t TrigConfAlg::m_type_id {}
private

Definition at line 55 of file TrigConfAlg.h.

55{}; // Hash id of type_alg

The documentation for this class was generated from the following files: