ATLAS Offline Software
Loading...
Searching...
No Matches
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
14namespace TrigConf {
15
27 class HLTMonitoring final : public DataStructure {
28 public:
29
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
96CLASS_DEF( TrigConf::HLTMonitoring , 250972509, 1 )
97
98#include "AthenaKernel/CondCont.h"
100
101#endif
102#endif
103
104#endif
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
const ptree & data() const
Access to the underlying data, if needed.
DataStructure()
Default constructor, leading to an uninitialized configuration object.
boost::property_tree::ptree ptree
HLT monitoring configuration.
const std::map< std::string, std::map< std::string, std::vector< std::string > > > & signatures() const
std::vector< std::string > signatureNames() const
names of the monitored signatures
unsigned int smk() const
setter and getter for the supermasterkey
virtual void clear() override
Clearing the configuration data.
unsigned int m_smk
the supermasterkey
std::size_t size() const
Accessor to the number of HLT monitoring chains.
virtual void update() override
Update the internal data after modification of the data object.
virtual ~HLTMonitoring() override=default
Destructor.
void setSMK(unsigned int psk)
HLTMonitoring(HLTMonitoring &&)=default
std::vector< std::string > chainsBySignatureAndTarget(const std::string &signature, const std::string &target) const
monitored chains by signature for a given target
void printMonConfig(bool full=false) const
print overview of L1 Menu
const std::set< std::string > & targets() const
names of targets
std::set< std::string > m_targets
names of monitoring targets like shifter, t0, online
std::map< std::string, std::map< std::string, std::vector< std::string > > > m_signatures
internal storage of the information
HLTMonitoring(const HLTMonitoring &)=default
virtual std::string className() const override
A string that is the name of the class.
Forward iterator to traverse the main components of the trigger configuration.
Definition Config.h:22