ATLAS Offline Software
Loading...
Searching...
No Matches
TrigConf::TrigConfData Class Referenceabstract

#include <TrigConfData.h>

Inherited by TrigConf::HLTChain, TrigConf::HLTFrame, TrigConf::HLTPrescaleSet, TrigConf::HLTSequence, TrigConf::HLTStreamTag, TrigConf::HLTTriggerElement, TrigConf::JobOption, TrigConf::JobOptionTable, TrigConf::L1DataBaseclass, and TrigConf::TriggerItem.

Collaboration diagram for TrigConf::TrigConfData:

Public Member Functions

 TrigConfData (const std::string &name="")
virtual ~TrigConfData ()=default
int superMasterTableId () const
unsigned int smk () const
unsigned int id () const
const std::string & name () const
const std::string & comment () const
unsigned int version () const
void setSuperMasterTableId (int id)
void setSMK (int id)
void setId (unsigned int id)
void setName (const std::string &name)
void setVersion (unsigned int version)
void setComment (const std::string &c)
virtual void print (const std::string &indent="", unsigned int detail=1) const =0
void printNameIdV (const std::string &indent="") const
virtual std::string __str__ () const

Protected Member Functions

std::ostream & indent (std::ostream &o, int lvl, int size) const

Private Attributes

unsigned int m_smk
unsigned int m_id
std::string m_name
unsigned int m_version
std::string m_comment

Detailed Description

Definition at line 13 of file TrigConfData.h.

Constructor & Destructor Documentation

◆ TrigConfData()

TrigConfData::TrigConfData ( const std::string & name = "")

Definition at line 14 of file TrigConfData.cxx.

14 :
15 m_smk(0),
16 m_id(0),
17 m_name(name),
18 m_version(0),
19 m_comment("")
20{}
const std::string & name() const

◆ ~TrigConfData()

virtual TrigConf::TrigConfData::~TrigConfData ( )
virtualdefault

Member Function Documentation

◆ __str__()

string TrigConfData::__str__ ( ) const
virtual

Reimplemented in TrigConf::HLTChain, TrigConf::HLTPrescaleSet, TrigConf::HLTSequence, and TrigConf::TriggerItem.

Definition at line 50 of file TrigConfData.cxx.

50 {
51 stringstream s;
52 s << *this;
53 return s.str();
54}

◆ comment()

const std::string & TrigConf::TrigConfData::comment ( ) const
inline

Definition at line 23 of file TrigConfData.h.

23{return m_comment;}

◆ id()

unsigned int TrigConf::TrigConfData::id ( ) const
inline

Definition at line 21 of file TrigConfData.h.

21{return m_id;}

◆ indent()

std::ostream & TrigConfData::indent ( std::ostream & o,
int lvl,
int size ) const
protected

Definition at line 23 of file TrigConfData.cxx.

23 {
24 int width = lvl*size;
25 if(width==0) return o;
26 o << setw(lvl*size) << " ";
27 return o;
28}
const double width

◆ name()

const std::string & TrigConf::TrigConfData::name ( ) const
inline

Definition at line 22 of file TrigConfData.h.

22{return m_name;}

◆ print()

◆ printNameIdV()

void TrigConfData::printNameIdV ( const std::string & indent = "") const

Definition at line 31 of file TrigConfData.cxx.

31 {
32 cout << indent << name();
33 if(id()>0 || version()>0)
34 cout << " (id=" << id() << "/v=" << version() << ")";
35 cout << endl;
36 if(comment()!="")
37 cout << indent << "Comment: " << comment() << endl;
38}
unsigned int id() const
std::ostream & indent(std::ostream &o, int lvl, int size) const
const std::string & comment() const
unsigned int version() const

◆ setComment()

void TrigConf::TrigConfData::setComment ( const std::string & c)
inline

Definition at line 32 of file TrigConfData.h.

◆ setId()

void TrigConf::TrigConfData::setId ( unsigned int id)
inline

Definition at line 29 of file TrigConfData.h.

29{ m_id=id; }

◆ setName()

void TrigConf::TrigConfData::setName ( const std::string & name)
inline

Definition at line 30 of file TrigConfData.h.

30{ m_name = name;}

◆ setSMK()

void TrigConf::TrigConfData::setSMK ( int id)
inline

Definition at line 28 of file TrigConfData.h.

28{m_smk=id;}

◆ setSuperMasterTableId()

void TrigConf::TrigConfData::setSuperMasterTableId ( int id)
inline

Definition at line 27 of file TrigConfData.h.

27{m_smk=id;}

◆ setVersion()

void TrigConf::TrigConfData::setVersion ( unsigned int version)
inline

Definition at line 31 of file TrigConfData.h.

◆ smk()

unsigned int TrigConf::TrigConfData::smk ( ) const
inline

Definition at line 20 of file TrigConfData.h.

20{return m_smk;}

◆ superMasterTableId()

int TrigConf::TrigConfData::superMasterTableId ( ) const
inline

Definition at line 19 of file TrigConfData.h.

19{return (int)m_smk;}

◆ version()

unsigned int TrigConf::TrigConfData::version ( ) const
inline

Definition at line 24 of file TrigConfData.h.

24{return m_version;}

Member Data Documentation

◆ m_comment

std::string TrigConf::TrigConfData::m_comment
private

Definition at line 48 of file TrigConfData.h.

◆ m_id

unsigned int TrigConf::TrigConfData::m_id
private

Definition at line 45 of file TrigConfData.h.

◆ m_name

std::string TrigConf::TrigConfData::m_name
private

Definition at line 46 of file TrigConfData.h.

◆ m_smk

unsigned int TrigConf::TrigConfData::m_smk
private

Definition at line 44 of file TrigConfData.h.

◆ m_version

unsigned int TrigConf::TrigConfData::m_version
private

Definition at line 47 of file TrigConfData.h.


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