ToolDAQFramework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
test_vertices_reconstruction.h
Go to the documentation of this file.
1 #ifndef test_vertices_reconstruction_H
2 #define test_vertices_reconstruction_H
3 
4 #include <string>
5 #include <iostream>
6 
7 #include "Tool.h"
8 #include "Stopwatch.h"
9 
10 
16 class test_vertices_reconstruction: public Tool {
17 
18 
19  public:
20 
22  bool Initialise(std::string configfile,DataModel &data);
23  bool Execute();
24  bool Finalise();
25 
26 
27  private:
28 
29 
33  std::vector<int> * m_in_PMTIDs;
35  std::vector<float> * m_in_Ts;
37  std::vector<float> * m_in_Qs;
38 
40  unsigned int m_nhits_max;
41 
45  std::string m_stopwatch_file;
46 
48  int m_verbose;
49 
51  std::stringstream m_ss;
52 
55  void StreamToLog(int level) {
56  Log(m_ss.str(), level, m_verbose);
57  m_ss.str("");
58  }
59 
61  enum LogLevel {FATAL=-1, ERROR=0, WARN=1, INFO=2, DEBUG1=3, DEBUG2=4, DEBUG3=5};
62 
63 
64 };
65 
66 
67 #endif
std::vector< float > * m_in_Qs
Charges of hits in a trigger.
bool Execute()
Executre function used to perform Tool perpose.
bool Initialise(std::string configfile, DataModel &data)
Initialise Function for setting up Tool resorces.
util::Stopwatch * m_stopwatch
The stopwatch, if we&#39;re using one.
bool Finalise()
Finalise funciton used to clean up resorces.
int m_verbose
Verbosity level, as defined in tool parameter file.
std::vector< int > * m_in_PMTIDs
PMT IDs of hits in a trigger.
unsigned int m_nhits_max
Above this number of hits in a trigger, don&#39;t run BONSAI. Equality is run. Set in config file...
std::vector< float > * m_in_Ts
Times of hits in a trigger.
std::string m_stopwatch_file
Image filename to save the histogram to, if required.
int m_in_nhits
Number of hits in a trigger.
test_vertices_reconstruction()
Simple constructor.
void Log(const std::string &message, const int message_level)
Format messages in the same way as for tools.
Definition: Utilities.cpp:276
std::stringstream m_ss
For easy formatting of Log messages.