ATLAS Offline Software
PrioritySet.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrigConf_PrioritySet
6 #define TrigConf_PrioritySet
7 
8 // STL etc.
9 #include <string>
10 #include <vector>
12 
13 namespace TrigConf {
14  class PrioritySet : public L1DataBaseclass {
15 
16  public:
17 
18  static const unsigned int N_PRIORITIES = 256;
19 
20  PrioritySet();
21  virtual ~PrioritySet() override = default;
22 
23  // Accessors
24  const std::vector<std::string>& priorities() const { return m_Priorities; }
25  void setPriorities(const std::vector<std::string>& vec);
26 
27  virtual void print(const std::string& indent="", unsigned int detail=1) const override;
28 
29  virtual void writeXML(std::ostream & xmlfile, int indentLevel = 0, int indentWidth = 2) const;
30 
31  private:
32  std::vector<std::string> m_Priorities;
33  };
34 }
35 #endif
36 
TrigConf::PrioritySet
Definition: PrioritySet.h:14
TrigConf::PrioritySet::PrioritySet
PrioritySet()
Definition: PrioritySet.cxx:11
TrigConf::PrioritySet::writeXML
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
Writes the Prescale item to the XML file.
Definition: PrioritySet.cxx:38
detail
Definition: extract_histogram_tag.cxx:14
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:12
TrigConf::PrioritySet::m_Priorities
std::vector< std::string > m_Priorities
Definition: PrioritySet.h:32
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::PrioritySet::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition: PrioritySet.cxx:23
TrigConf::PrioritySet::priorities
const std::vector< std::string > & priorities() const
Definition: PrioritySet.h:24
TrigConf::PrioritySet::setPriorities
void setPriorities(const std::vector< std::string > &vec)
Definition: PrioritySet.cxx:16
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition: TrigConfData.cxx:23
TrigConf::L1DataBaseclass
Definition: L1DataBaseclass.h:22
L1DataBaseclass.h
TrigConf::PrioritySet::~PrioritySet
virtual ~PrioritySet() override=default
TrigConf::PrioritySet::N_PRIORITIES
static const unsigned int N_PRIORITIES
Definition: PrioritySet.h:18