ATLAS Offline Software
PrioritySet.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 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::string p[], const unsigned int size);
26  void setPriorities(const std::vector<std::string>& vec);
27 
28  virtual void print(const std::string& indent="", unsigned int detail=1) const override;
29 
30  virtual void writeXML(std::ostream & xmlfile, int indentLevel = 0, int indentWidth = 2) const;
31 
32  private:
33  std::vector<std::string> m_Priorities;
34  };
35 }
36 #endif
37 
TrigConf::PrioritySet
Definition: PrioritySet.h:14
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
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:45
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:33
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
TrigConf::PrioritySet::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition: PrioritySet.cxx:30
TrigConf::PrioritySet::priorities
const std::vector< std::string > & priorities() const
Definition: PrioritySet.h:24
TrigConf::PrioritySet::setPriorities
void setPriorities(const std::string p[], const unsigned int size)
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