ATLAS Offline Software
Loading...
Searching...
No Matches
TrigConf::DeadTime Class Reference

#include <DeadTime.h>

Inheritance diagram for TrigConf::DeadTime:
Collaboration diagram for TrigConf::DeadTime:

Public Member Functions

 DeadTime ()
virtual ~DeadTime () override=default
int simple () const
int complex1Level () const
int complex1Rate () const
int complex2Level () const
int complex2Rate () const
void setSimple (int i)
void setComplex1Level (int i)
void setComplex1Rate (int i)
void setComplex2Level (int i)
void setComplex2Rate (int i)
virtual void print (const std::string &indent="", unsigned int detail=1) const override
virtual void writeXML (std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
unsigned int lvl1MasterTableId () const
void setLvl1MasterTableId (unsigned int id)
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)
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

int m_simple
int m_complex1Level
int m_complex1Rate
int m_complex2Level
int m_complex2Rate
unsigned int m_Lvl1MasterId
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 DeadTime.h.

Constructor & Destructor Documentation

◆ DeadTime()

TrigConf::DeadTime::DeadTime ( )

Definition at line 10 of file DeadTime.cxx.

◆ ~DeadTime()

virtual TrigConf::DeadTime::~DeadTime ( )
overridevirtualdefault

Member Function Documentation

◆ __str__()

string TrigConfData::__str__ ( ) const
virtualinherited

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
inlineinherited

Definition at line 23 of file TrigConfData.h.

23{return m_comment;}

◆ complex1Level()

int TrigConf::DeadTime::complex1Level ( ) const
inline

Definition at line 20 of file DeadTime.h.

20{ return m_complex1Level; }

◆ complex1Rate()

int TrigConf::DeadTime::complex1Rate ( ) const
inline

Definition at line 21 of file DeadTime.h.

21{ return m_complex1Rate; }

◆ complex2Level()

int TrigConf::DeadTime::complex2Level ( ) const
inline

Definition at line 22 of file DeadTime.h.

22{ return m_complex2Level; }

◆ complex2Rate()

int TrigConf::DeadTime::complex2Rate ( ) const
inline

Definition at line 23 of file DeadTime.h.

23{ return m_complex2Rate; }

◆ id()

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

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
protectedinherited

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

◆ lvl1MasterTableId()

unsigned int TrigConf::L1DataBaseclass::lvl1MasterTableId ( ) const
inlineinherited

Definition at line 30 of file L1DataBaseclass.h.

30{ return m_Lvl1MasterId; }

◆ name()

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

Definition at line 22 of file TrigConfData.h.

22{return m_name;}

◆ print()

void TrigConf::DeadTime::print ( const std::string & indent = "",
unsigned int detail = 1 ) const
overridevirtual

Implements TrigConf::TrigConfData.

Definition at line 20 of file DeadTime.cxx.

20 {
21 if(detail>=1) {
22 cout << indent << "DeadTime "; printNameIdV("");
23 if(detail>=2) {
24 cout << indent << " simple DT: " << m_simple << endl;
25 cout << indent << " complex1 DT size: " << m_complex1Level << " rate: " << m_complex1Rate << endl;
26 cout << indent << " complex2 DT size: " << m_complex2Level << " rate: " << m_complex2Rate << endl;
27 }
28 }
29}
std::ostream & indent(std::ostream &o, int lvl, int size) const
void printNameIdV(const std::string &indent="") const

◆ printNameIdV()

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

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
const std::string & name() const
const std::string & comment() const
unsigned int version() const

◆ setComment()

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

Definition at line 32 of file TrigConfData.h.

◆ setComplex1Level()

void TrigConf::DeadTime::setComplex1Level ( int i)
inline

Definition at line 27 of file DeadTime.h.

◆ setComplex1Rate()

void TrigConf::DeadTime::setComplex1Rate ( int i)
inline

Definition at line 28 of file DeadTime.h.

28{ m_complex1Rate = i; }

◆ setComplex2Level()

void TrigConf::DeadTime::setComplex2Level ( int i)
inline

Definition at line 29 of file DeadTime.h.

29{ m_complex2Level = i; }

◆ setComplex2Rate()

void TrigConf::DeadTime::setComplex2Rate ( int i)
inline

Definition at line 30 of file DeadTime.h.

30{ m_complex2Rate = i; }

◆ setId()

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

Definition at line 29 of file TrigConfData.h.

29{ m_id=id; }

◆ setLvl1MasterTableId()

void TrigConf::L1DataBaseclass::setLvl1MasterTableId ( unsigned int id)
inlineinherited

Definition at line 31 of file L1DataBaseclass.h.

31{ m_Lvl1MasterId = id; }

◆ setName()

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

Definition at line 30 of file TrigConfData.h.

30{ m_name = name;}

◆ setSimple()

void TrigConf::DeadTime::setSimple ( int i)
inline

Definition at line 26 of file DeadTime.h.

26{ m_simple = i; }

◆ setSMK()

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

Definition at line 28 of file TrigConfData.h.

28{m_smk=id;}

◆ setSuperMasterTableId()

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

Definition at line 27 of file TrigConfData.h.

27{m_smk=id;}

◆ setVersion()

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

Definition at line 31 of file TrigConfData.h.

◆ simple()

int TrigConf::DeadTime::simple ( ) const
inline

Definition at line 19 of file DeadTime.h.

19{ return m_simple; }

◆ smk()

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

Definition at line 20 of file TrigConfData.h.

20{return m_smk;}

◆ superMasterTableId()

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

Definition at line 19 of file TrigConfData.h.

19{return (int)m_smk;}

◆ version()

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

Definition at line 24 of file TrigConfData.h.

24{return m_version;}

◆ writeXML()

void TrigConf::DeadTime::writeXML ( std::ostream & xmlfile,
int indentLevel = 0,
int indentWidth = 2 ) const
virtual

Definition at line 32 of file DeadTime.cxx.

32 {
33 indent(xmlfile,indentLevel, indentWidth)
34 << "<Deadtime complex1_level=\"" << m_complex1Level
35 << "\" complex1_rate=\"" << m_complex1Rate
36 << "\" complex2_level=\"" << m_complex2Level
37 << "\" complex2_rate=\"" << m_complex2Rate
38 << "\" name=\"" << name()
39 << "\" simple=\"" << m_simple << "\"/>"
40 << endl;
41}
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29

Member Data Documentation

◆ m_comment

std::string TrigConf::TrigConfData::m_comment
privateinherited

Definition at line 48 of file TrigConfData.h.

◆ m_complex1Level

int TrigConf::DeadTime::m_complex1Level
private

Definition at line 37 of file DeadTime.h.

◆ m_complex1Rate

int TrigConf::DeadTime::m_complex1Rate
private

Definition at line 38 of file DeadTime.h.

◆ m_complex2Level

int TrigConf::DeadTime::m_complex2Level
private

Definition at line 39 of file DeadTime.h.

◆ m_complex2Rate

int TrigConf::DeadTime::m_complex2Rate
private

Definition at line 40 of file DeadTime.h.

◆ m_id

unsigned int TrigConf::TrigConfData::m_id
privateinherited

Definition at line 45 of file TrigConfData.h.

◆ m_Lvl1MasterId

unsigned int TrigConf::L1DataBaseclass::m_Lvl1MasterId
privateinherited

Definition at line 35 of file L1DataBaseclass.h.

◆ m_name

std::string TrigConf::TrigConfData::m_name
privateinherited

Definition at line 46 of file TrigConfData.h.

◆ m_simple

int TrigConf::DeadTime::m_simple
private

Definition at line 36 of file DeadTime.h.

◆ m_smk

unsigned int TrigConf::TrigConfData::m_smk
privateinherited

Definition at line 44 of file TrigConfData.h.

◆ m_version

unsigned int TrigConf::TrigConfData::m_version
privateinherited

Definition at line 47 of file TrigConfData.h.


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