ATLAS Offline Software
JobOptionTable.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrigConf_JobOptionTable
6 #define TrigConf_JobOptionTable
7 
10 
11 #include <iostream>
12 #include <string>
13 #include <vector>
14 
15 namespace TrigConf {
16 
20  class JobOptionTable : public TrigConfData {
21  public:
22 
25 
27  virtual ~JobOptionTable() override = default;
28 
29  int hltMasterTableId() const { return m_HltMasterTableId; }
30  int superMasterTableId() const { return m_SuperMasterTableId; }
31  int triggerLevel() const { return m_TriggerLevel; }
32 
33  void setHltMasterTableId( int id ) { m_HltMasterTableId = id; }
36 
41  void addJobOption(const JobOption & jo);
42 
43  std::vector<JobOption> & jobOptionVector() { return m_JobOptionVector; }
44  const std::vector<JobOption> & jobOptionVector() const { return m_JobOptionVector; }
45 
47  void print(const std::string& indent="", unsigned int detail=1) const override;
48 
50  void writeToFile(const std::string& filename) const;
51 
53  void sort();
54 
55  private:
59  std::vector<JobOption> m_JobOptionVector;
60  };
61 
62 }
63 
64 #endif
65 
TrigConf::JobOptionTable::superMasterTableId
int superMasterTableId() const
accessor to the super master table configuration key
Definition: JobOptionTable.h:30
TrigConf::JobOptionTable::jobOptionVector
const std::vector< JobOption > & jobOptionVector() const
const accessor to the vector of job options
Definition: JobOptionTable.h:44
TrigConf::JobOptionTable::jobOptionVector
std::vector< JobOption > & jobOptionVector()
accessor to the vector of job options
Definition: JobOptionTable.h:43
TrigConf::JobOptionTable::m_SuperMasterTableId
int m_SuperMasterTableId
HLT master table configuration key
Definition: JobOptionTable.h:56
TrigConf::JobOptionTable::writeToFile
void writeToFile(const std::string &filename) const
writing to file as text
Definition: JobOptionTable.cxx:39
TrigConf::JobOptionTable::m_TriggerLevel
int m_TriggerLevel
trigger level (0-L2, 1-EF)
Definition: JobOptionTable.h:58
TrigConf::JobOptionTable::JobOptionTable
JobOptionTable()
default constructor
Definition: JobOptionTable.cxx:12
TrigConf::JobOptionTable::hltMasterTableId
int hltMasterTableId() const
accessor to the HLT master table configuration key
Definition: JobOptionTable.h:29
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::JobOptionTable
table to hold the complete list of JobOption entries for a single configuration, from which the JobOp...
Definition: JobOptionTable.h:20
TrigConf::JobOptionTable::~JobOptionTable
virtual ~JobOptionTable() override=default
destructor
TrigConf::JobOptionTable::m_JobOptionVector
std::vector< JobOption > m_JobOptionVector
vector of job options
Definition: JobOptionTable.h:59
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::JobOptionTable::setSuperMasterTableId
void setSuperMasterTableId(int id)
setter of the super master table configuration key
Definition: JobOptionTable.h:34
JobOption.h
TrigConf::JobOptionTable::setHltMasterTableId
void setHltMasterTableId(int id)
setter of the HLT master table configuration key
Definition: JobOptionTable.h:33
TrigConfData.h
TrigConf::TrigConfData
Definition: TrigConfData.h:13
TrigConf::JobOptionTable::m_HltMasterTableId
int m_HltMasterTableId
super master table configuration key
Definition: JobOptionTable.h:57
TrigConf::JobOptionTable::triggerLevel
int triggerLevel() const
accessor to the trigger level
Definition: JobOptionTable.h:31
TrigConf::JobOption
hold a single job option (parameter and value)
Definition: JobOption.h:32
TrigConf::JobOptionTable::setTriggerLevel
void setTriggerLevel(int level)
setter of the trigger level
Definition: JobOptionTable.h:35
TrigConf::TrigConfData::id
unsigned int id() const
Definition: TrigConfData.h:21
TrigConf::JobOptionTable::sort
void sort()
sort alphabetically by component and property name
Definition: JobOptionTable.cxx:67
TrigConf::JobOptionTable::addJobOption
void addJobOption(const JobOption &jo)
adds a job option to the table
Definition: JobOptionTable.cxx:19
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