ATLAS Offline Software
Loading...
Searching...
No Matches
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
15namespace TrigConf {
16
21 public:
22
25
27 virtual ~JobOptionTable() override = default;
28
29 int hltMasterTableId() const { return m_HltMasterTableId; }
31 int triggerLevel() const { return m_TriggerLevel; }
32
35 void setTriggerLevel( int level ) { m_TriggerLevel = level; }
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
void print(const std::string &indent="", unsigned int detail=1) const override
print method
void setHltMasterTableId(int id)
setter of the HLT 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
int triggerLevel() const
accessor to the trigger level
JobOptionTable()
default constructor
std::vector< JobOption > & jobOptionVector()
accessor to the vector of job options
void sort()
sort alphabetically by component and property name
int m_HltMasterTableId
super master table configuration key
const std::vector< JobOption > & jobOptionVector() const
const accessor to the vector of job options
void setSuperMasterTableId(int id)
setter of the super master table configuration key
int superMasterTableId() const
accessor to the super master table configuration key
std::vector< JobOption > m_JobOptionVector
vector of job options
int m_SuperMasterTableId
HLT master table configuration key.
int m_TriggerLevel
trigger level (0-L2, 1-EF)
void writeToFile(const std::string &filename) const
writing to file as text
virtual ~JobOptionTable() override=default
destructor
int hltMasterTableId() const
accessor to the HLT master table configuration key
hold a single job option (parameter and value)
Definition JobOption.h:32
unsigned int id() const
std::ostream & indent(std::ostream &o, int lvl, int size) const
TrigConfData(const std::string &name="")
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22