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

table to hold the complete list of JobOption entries for a single configuration, from which the JobOptionsCatalogue is built. More...

#include <JobOptionTable.h>

Inheritance diagram for TrigConf::JobOptionTable:
Collaboration diagram for TrigConf::JobOptionTable:

Public Member Functions

 JobOptionTable ()
 default constructor
virtual ~JobOptionTable () override=default
 destructor
int hltMasterTableId () const
 accessor to the HLT master table configuration key
int superMasterTableId () const
 accessor to the super master table configuration key
int triggerLevel () const
 accessor to the trigger level
void setHltMasterTableId (int id)
 setter of the HLT master table configuration key
void setSuperMasterTableId (int id)
 setter of the super master table configuration key
void setTriggerLevel (int level)
 setter of the trigger level
void addJobOption (const JobOption &jo)
 adds a job option to the table
std::vector< JobOption > & jobOptionVector ()
 accessor to the vector of job options
const std::vector< JobOption > & jobOptionVector () const
 const accessor to the vector of job options
void print (const std::string &indent="", unsigned int detail=1) const override
 print method
void writeToFile (const std::string &filename) const
 writing to file as text
void sort ()
 sort alphabetically by component and property name
unsigned int smk () const
unsigned int id () const
const std::string & name () const
const std::string & comment () const
unsigned int version () const
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_SuperMasterTableId
 HLT master table configuration key.
int m_HltMasterTableId
 super master table configuration key
int m_TriggerLevel
 trigger level (0-L2, 1-EF)
std::vector< JobOptionm_JobOptionVector
 vector of job options
unsigned int m_smk
unsigned int m_id
std::string m_name
unsigned int m_version
std::string m_comment

Detailed Description

table to hold the complete list of JobOption entries for a single configuration, from which the JobOptionsCatalogue is built.

Definition at line 20 of file JobOptionTable.h.

Constructor & Destructor Documentation

◆ JobOptionTable()

TrigConf::JobOptionTable::JobOptionTable ( )

default constructor

Definition at line 12 of file JobOptionTable.cxx.

12 :
16{}
int m_HltMasterTableId
super master table configuration key
int m_SuperMasterTableId
HLT master table configuration key.
int m_TriggerLevel
trigger level (0-L2, 1-EF)

◆ ~JobOptionTable()

virtual TrigConf::JobOptionTable::~JobOptionTable ( )
overridevirtualdefault

destructor

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}

◆ addJobOption()

void TrigConf::JobOptionTable::addJobOption ( const JobOption & jo)

adds a job option to the table

Parameters
[in]joJobOption element to be added

Definition at line 19 of file JobOptionTable.cxx.

19 {
20 m_JobOptionVector.push_back(jo);
21}
std::vector< JobOption > m_JobOptionVector
vector of job options

◆ comment()

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

Definition at line 23 of file TrigConfData.h.

23{return m_comment;}

◆ hltMasterTableId()

int TrigConf::JobOptionTable::hltMasterTableId ( ) const
inline

accessor to the HLT master table configuration key

Definition at line 29 of file JobOptionTable.h.

◆ 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

◆ jobOptionVector() [1/2]

std::vector< JobOption > & TrigConf::JobOptionTable::jobOptionVector ( )
inline

accessor to the vector of job options

Definition at line 43 of file JobOptionTable.h.

◆ jobOptionVector() [2/2]

const std::vector< JobOption > & TrigConf::JobOptionTable::jobOptionVector ( ) const
inline

const accessor to the vector of job options

Definition at line 44 of file JobOptionTable.h.

◆ name()

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

Definition at line 22 of file TrigConfData.h.

22{return m_name;}

◆ print()

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

print method

print method

Implements TrigConf::TrigConfData.

Definition at line 24 of file JobOptionTable.cxx.

24 {
25 if(detail>=1) {
26 cout << indent << "=============================================" << endl;
27 cout << indent << "JobOptionTable" << endl;
28 cout << indent << " Super MasterTable Id = " << m_SuperMasterTableId << endl;
29 cout << indent << " HLT MasterTable Id = " << m_HltMasterTableId << endl;
30 cout << indent << " Number of parameters = " << m_JobOptionVector.size() << endl;
31 cout << indent << "=============================================" << endl;
32 if(detail>=3)
33 for(unsigned int i=0; i < m_JobOptionVector.size();i++)
35 }
36}
void print(const std::string &indent="", unsigned int detail=1) const override
print method
std::ostream & indent(std::ostream &o, int lvl, int size) 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.

◆ setHltMasterTableId()

void TrigConf::JobOptionTable::setHltMasterTableId ( int id)
inline

setter of the HLT master table configuration key

Definition at line 33 of file JobOptionTable.h.

◆ setId()

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

Definition at line 29 of file TrigConfData.h.

29{ m_id=id; }

◆ setName()

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

Definition at line 30 of file TrigConfData.h.

30{ m_name = name;}

◆ setSMK()

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

Definition at line 28 of file TrigConfData.h.

28{m_smk=id;}

◆ setSuperMasterTableId()

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

setter of the super master table configuration key

Definition at line 34 of file JobOptionTable.h.

◆ setTriggerLevel()

void TrigConf::JobOptionTable::setTriggerLevel ( int level)
inline

setter of the trigger level

Definition at line 35 of file JobOptionTable.h.

◆ setVersion()

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

Definition at line 31 of file TrigConfData.h.

◆ smk()

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

Definition at line 20 of file TrigConfData.h.

20{return m_smk;}

◆ sort()

void TrigConf::JobOptionTable::sort ( )

sort alphabetically by component and property name

Definition at line 67 of file JobOptionTable.cxx.

67 {
68 std::sort(m_JobOptionVector.begin(), m_JobOptionVector.end(), JOLessThan());
69}
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.

◆ superMasterTableId()

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

accessor to the super master table configuration key

Definition at line 30 of file JobOptionTable.h.

◆ triggerLevel()

int TrigConf::JobOptionTable::triggerLevel ( ) const
inline

accessor to the trigger level

Definition at line 31 of file JobOptionTable.h.

◆ version()

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

Definition at line 24 of file TrigConfData.h.

24{return m_version;}

◆ writeToFile()

void TrigConf::JobOptionTable::writeToFile ( const std::string & filename) const

writing to file as text

write to file method

Definition at line 39 of file JobOptionTable.cxx.

39 {
40 ofstream of;
41 of.open (filename.c_str());
42 of << "=============================================" << endl;
43 of << "JobOptionTable" << endl;
44 of << " Super MasterTable Id = " << m_SuperMasterTableId << endl;
45 of << " HLT MasterTable Id = " << m_HltMasterTableId << endl;
46 of << " Number of parameters = " << m_JobOptionVector.size() << endl;
47 of << "=============================================" << endl;
48 for(unsigned int i=0; i < m_JobOptionVector.size();i++) {
49 of << m_JobOptionVector[i] << endl;
50 }
51 of.close();
52
53}

Member Data Documentation

◆ m_comment

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

Definition at line 48 of file TrigConfData.h.

◆ m_HltMasterTableId

int TrigConf::JobOptionTable::m_HltMasterTableId
private

super master table configuration key

Definition at line 57 of file JobOptionTable.h.

◆ m_id

unsigned int TrigConf::TrigConfData::m_id
privateinherited

Definition at line 45 of file TrigConfData.h.

◆ m_JobOptionVector

std::vector<JobOption> TrigConf::JobOptionTable::m_JobOptionVector
private

vector of job options

Definition at line 59 of file JobOptionTable.h.

◆ m_name

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

Definition at line 46 of file TrigConfData.h.

◆ m_smk

unsigned int TrigConf::TrigConfData::m_smk
privateinherited

Definition at line 44 of file TrigConfData.h.

◆ m_SuperMasterTableId

int TrigConf::JobOptionTable::m_SuperMasterTableId
private

HLT master table configuration key.

Definition at line 56 of file JobOptionTable.h.

◆ m_TriggerLevel

int TrigConf::JobOptionTable::m_TriggerLevel
private

trigger level (0-L2, 1-EF)

Definition at line 58 of file JobOptionTable.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: