ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
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 More...
 
virtual ~JobOptionTable () override=default
 destructor More...
 
int hltMasterTableId () const
 accessor to the HLT master table configuration key
More...
 
int superMasterTableId () const
 accessor to the super master table configuration key More...
 
int triggerLevel () const
 accessor to the trigger level More...
 
void setHltMasterTableId (int id)
 setter of the HLT master table configuration key More...
 
void setSuperMasterTableId (int id)
 setter of the super master table configuration key More...
 
void setTriggerLevel (int level)
 setter of the trigger level More...
 
void addJobOption (const JobOption &jo)
 adds a job option to the table More...
 
std::vector< JobOption > & jobOptionVector ()
 accessor to the vector of job options More...
 
const std::vector< JobOption > & jobOptionVector () const
 const accessor to the vector of job options More...
 
void print (const std::string &indent="", unsigned int detail=1) const override
 print method More...
 
void writeToFile (const std::string &filename) const
 writing to file as text More...
 
void sort ()
 sort alphabetically by component and property name More...
 
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
More...
 
int m_HltMasterTableId
 super master table configuration key More...
 
int m_TriggerLevel
 trigger level (0-L2, 1-EF) More...
 
std::vector< JobOptionm_JobOptionVector
 vector of job options More...
 
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 {}

◆ ~JobOptionTable()

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

destructor

Member Function Documentation

◆ __str__()

string TrigConfData::__str__ ( ) const
virtualinherited

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

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 }

◆ 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 }

◆ 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 }

◆ 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 }

◆ setComment()

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

Definition at line 32 of file TrigConfData.h.

32 { m_comment = c;}

◆ 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.

31 { m_version = version;}

◆ 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 }

◆ 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:
TrigConf::TrigConfData::m_id
unsigned int m_id
Definition: TrigConfData.h:45
TrigConf::TrigConfData::m_name
std::string m_name
Definition: TrigConfData.h:46
TrigConf::TrigConfData::name
const std::string & name() const
Definition: TrigConfData.h:22
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
TrigConf::TrigConfData::comment
const std::string & comment() const
Definition: TrigConfData.h:23
TrigConf::JobOptionTable::m_SuperMasterTableId
int m_SuperMasterTableId
HLT master table configuration key
Definition: JobOptionTable.h:56
TrigConf::JobOptionTable::m_TriggerLevel
int m_TriggerLevel
trigger level (0-L2, 1-EF)
Definition: JobOptionTable.h:58
LB_AnalMapSplitter.of
of
Definition: LB_AnalMapSplitter.py:48
TrigConf::JobOptionTable::print
void print(const std::string &indent="", unsigned int detail=1) const override
print method
Definition: JobOptionTable.cxx:24
detail
Definition: extract_histogram_tag.cxx:14
TrigConf::TrigConfData::m_version
unsigned int m_version
Definition: TrigConfData.h:47
TrigConf::JobOptionTable::m_JobOptionVector
std::vector< JobOption > m_JobOptionVector
vector of job options
Definition: JobOptionTable.h:59
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
lumiFormat.i
int i
Definition: lumiFormat.py:92
TrigConf::TrigConfData::m_comment
std::string m_comment
Definition: TrigConfData.h:48
TrigConf::TrigConfData::version
unsigned int version() const
Definition: TrigConfData.h:24
TrigConf::JobOptionTable::m_HltMasterTableId
int m_HltMasterTableId
super master table configuration key
Definition: JobOptionTable.h:57
TrigConf::TrigConfData::id
unsigned int id() const
Definition: TrigConfData.h:21
TrigConf::TrigConfData::m_smk
unsigned int m_smk
Definition: TrigConfData.h:44
Base_Fragment.width
width
Definition: Sherpa_i/share/common/Base_Fragment.py:59
std::sort
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
Definition: DVL_algorithms.h:623
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:24
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition: TrigConfData.cxx:23
python.compressB64.c
def c
Definition: compressB64.py:93