ATLAS Offline Software
DebugInfoCollector.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGHLTJETHYPO_DEBUGINFOCOLLECTOR_H
6 #define TRIGHLTJETHYPO_DEBUGINFOCOLLECTOR_H
7 
9 #include "./JetTrigTimer.h"
10 #include <map>
11 #include <vector>
12 
14 
15 public:
16  DebugInfoCollector(const std::string& name="Unknown",
17  bool byTime=true);
18 
20 
21  virtual void collect(const std::string&, const std::string&) override;
22 
23  virtual std::string toString() const override;
24 
25  virtual void write() const override;
26 
27  private:
28 
29  //info : key is a string porovided by callee
30  //value is an vector of (time, message).
31  std::map<std::string, std::vector<std::pair<double, std::string>>> m_info;
32  std::string m_name;
33  bool m_byTime;
34 
36  std::string toStringByMsgKey() const;
37  std::string toStringByTime() const;
38 
39 };
40 #endif
DebugInfoCollector::toString
virtual std::string toString() const override
Definition: DebugInfoCollector.cxx:70
DebugInfoCollector::write
virtual void write() const override
Definition: DebugInfoCollector.cxx:75
DebugInfoCollector::m_timer
JetTrigTimer m_timer
Definition: DebugInfoCollector.h:35
DebugInfoCollector::collect
virtual void collect(const std::string &, const std::string &) override
Definition: DebugInfoCollector.cxx:21
DebugInfoCollector::m_info
std::map< std::string, std::vector< std::pair< double, std::string > > > m_info
Definition: DebugInfoCollector.h:31
ITrigJetHypoInfoCollector
Definition: ITrigJetHypoInfoCollector.h:9
DebugInfoCollector::~DebugInfoCollector
~DebugInfoCollector()
Definition: DebugInfoCollector.cxx:19
DebugInfoCollector::toStringByTime
std::string toStringByTime() const
Definition: DebugInfoCollector.cxx:44
DebugInfoCollector
Definition: DebugInfoCollector.h:13
JetTrigTimer
Definition: JetTrigTimer.h:13
JetTrigTimer.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
ITrigJetHypoInfoCollector.h
DebugInfoCollector::toStringByMsgKey
std::string toStringByMsgKey() const
Definition: DebugInfoCollector.cxx:26
DebugInfoCollector::m_name
std::string m_name
Definition: DebugInfoCollector.h:32
DebugInfoCollector::DebugInfoCollector
DebugInfoCollector(const std::string &name="Unknown", bool byTime=true)
Definition: DebugInfoCollector.cxx:10
DebugInfoCollector::m_byTime
bool m_byTime
Definition: DebugInfoCollector.h:33