ATLAS Offline Software
Loading...
Searching...
No Matches
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
15public:
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;
34
36 std::string toStringByMsgKey() const;
37 std::string toStringByTime() const;
38
39};
40#endif
virtual void collect(const std::string &, const std::string &) override
std::map< std::string, std::vector< std::pair< double, std::string > > > m_info
DebugInfoCollector(const std::string &name="Unknown", bool byTime=true)
virtual std::string toString() const override
std::string toStringByMsgKey() const
std::string toStringByTime() const
virtual void write() const override