ToolDAQFramework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
ReconReset.h
Go to the documentation of this file.
1 #ifndef ReconReset_H
2 #define ReconReset_H
3 
4 #include <string>
5 #include <iostream>
6 
7 #include "Tool.h"
8 #include "Stopwatch.h"
9 
10 class ReconReset: public Tool {
11 
12 
13  public:
14 
15  ReconReset();
16  bool Initialise(std::string configfile,DataModel &data);
17  bool Execute();
18  bool Finalise();
19 
20 
21  private:
22 
23 
27  std::string m_stopwatch_file;
28 
29  int m_verbose;
30 
31  std::stringstream ss;
32 
33  void StreamToLog(int level) {
34  Log(ss.str(), level, m_verbose);
35  ss.str("");
36  }
37 
38  enum LogLevel {FATAL=-1, ERROR=0, WARN=1, INFO=2, DEBUG1=3, DEBUG2=4, DEBUG3=5};
39 
40 
41 };
42 
43 
44 #endif
util::Stopwatch * m_stopwatch
The stopwatch, if we&#39;re using one.
Definition: ReconReset.h:25
bool Execute()
Definition: ReconReset.cpp:32
std::stringstream ss
Definition: ReconReset.h:31
bool Initialise(std::string configfile, DataModel &data)
Definition: ReconReset.cpp:6
int m_verbose
Definition: ReconReset.h:29
void StreamToLog(int level)
Definition: ReconReset.h:33
void Log(const std::string &message, const int message_level)
Format messages in the same way as for tools.
Definition: Utilities.cpp:276
std::string m_stopwatch_file
Image filename to save the histogram to, if required.
Definition: ReconReset.h:27
bool Finalise()
Definition: ReconReset.cpp:53