ATLAS Offline Software
HLTMonitoring.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGCONFDATA_HLTMONITORING_H
6 #define TRIGCONFDATA_HLTMONITORING_H
7 
10 
11 #include <map>
12 #include <set>
13 
14 namespace TrigConf {
15 
27  class HLTMonitoring final : public DataStructure {
28  public:
29 
31  HLTMonitoring();
32 
36  HLTMonitoring(const ptree & data);
37  HLTMonitoring(const HLTMonitoring&) = default;
39 
41  virtual ~HLTMonitoring() override = default;
42 
43  // class name
44  virtual std::string className() const override {
45  return "HLTMonitoring";
46  }
47 
49  std::size_t size() const;
50 
52  unsigned int smk() const;
53  void setSMK(unsigned int psk);
54 
56  std::vector<std::string> signatureNames() const;
57 
59  const std::set<std::string> & targets() const;
60 
61  const std::map<std::string, std::map<std::string, std::vector<std::string>>> & signatures() const;
62 
67  std::vector<std::string> chainsBySignatureAndTarget(const std::string & signature, const std::string & target) const;
68 
70  void printMonConfig(bool full = false) const;
71 
73  virtual void clear() override;
74 
75  private:
76 
78  virtual void update() override { load(); };
79  void load();
80 
82  unsigned int m_smk {0};
83 
85  std::map<std::string, std::map<std::string, std::vector<std::string>>> m_signatures{};
86 
88  std::set<std::string> m_targets{};
89  };
90 }
91 
92 #ifndef TRIGCONF_STANDALONE
93 #ifndef XAOD_STANDALONE
94 
95 #include "AthenaKernel/CLASS_DEF.h"
96 CLASS_DEF( TrigConf::HLTMonitoring , 250972509, 1 )
97 
98 #include "AthenaKernel/CondCont.h"
100 
101 #endif
102 #endif
103 
104 #endif
TrigConf::DataStructure::data
const ptree & data() const
Access to the underlying data, if needed.
Definition: DataStructure.h:83
TrigConf::HLTMonitoring::m_signatures
std::map< std::string, std::map< std::string, std::vector< std::string > > > m_signatures
internal storage of the information
Definition: HLTMonitoring.h:85
TrigConf::HLTMonitoring::signatures
const std::map< std::string, std::map< std::string, std::vector< std::string > > > & signatures() const
Definition: HLTMonitoring.cxx:56
TrigConf::HLTMonitoring::HLTMonitoring
HLTMonitoring()
Constructor.
Definition: HLTMonitoring.cxx:12
TrigConf::HLTMonitoring::setSMK
void setSMK(unsigned int psk)
Definition: HLTMonitoring.cxx:99
TrigConf::HLTMonitoring::~HLTMonitoring
virtual ~HLTMonitoring() override=default
Destructor.
TrigConf::HLTMonitoring::m_targets
std::set< std::string > m_targets
names of monitoring targets like shifter, t0, online
Definition: HLTMonitoring.h:88
TrigConf::HLTMonitoring::size
std::size_t size() const
Accessor to the number of HLT monitoring chains.
Definition: HLTMonitoring.cxx:82
TrigConf::HLTMonitoring::chainsBySignatureAndTarget
std::vector< std::string > chainsBySignatureAndTarget(const std::string &signature, const std::string &target) const
monitored chains by signature for a given target
Definition: HLTMonitoring.cxx:71
TrigConf::HLTMonitoring::update
virtual void update() override
Update the internal data after modification of the data object.
Definition: HLTMonitoring.h:78
TrigConf::HLTMonitoring::targets
const std::set< std::string > & targets() const
names of targets
Definition: HLTMonitoring.cxx:51
TrigConf::HLTMonitoring::HLTMonitoring
HLTMonitoring(HLTMonitoring &&)=default
TrigConf::HLTMonitoring::load
void load()
Definition: HLTMonitoring.cxx:22
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::HLTMonitoring::signatureNames
std::vector< std::string > signatureNames() const
names of the monitored signatures
Definition: HLTMonitoring.cxx:61
TrigConf::HLTMonitoring::m_smk
unsigned int m_smk
the supermasterkey
Definition: HLTMonitoring.h:82
TrigConf::HLTMonitoring::HLTMonitoring
HLTMonitoring(const HLTMonitoring &)=default
CONDCONT_DEF
CONDCONT_DEF(TrigConf::HLTMonitoring, 50201204)
TrigConf::HLTMonitoring::clear
virtual void clear() override
Clearing the configuration data.
Definition: HLTMonitoring.cxx:87
TrigConf::HLTMonitoring::smk
unsigned int smk() const
setter and getter for the supermasterkey
Definition: HLTMonitoring.cxx:94
ConstIter.h
TrigConf::DataStructure
Base class for Trigger configuration data and wrapper around underlying representation.
Definition: DataStructure.h:37
find_data.full
full
Definition: find_data.py:27
TrigConf::HLTMonitoring
HLT monitoring configuration.
Definition: HLTMonitoring.h:27
TrigConf::HLTMonitoring::className
virtual std::string className() const override
A string that is the name of the class.
Definition: HLTMonitoring.h:44
copySelective.target
string target
Definition: copySelective.py:37
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
TrigConf::HLTMonitoring::printMonConfig
void printMonConfig(bool full=false) const
print overview of L1 Menu
Definition: HLTMonitoring.cxx:104
DataStructure.h
TrigConf::DataStructure::ptree
boost::property_tree::ptree ptree
Definition: DataStructure.h:40
CLASS_DEF.h
macros to associate a CLID to a type