ToolDAQFramework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
FLOWERRecon.h
Go to the documentation of this file.
1 #ifndef FLOWERRecon_H
2 #define FLOWERRecon_H
3 
4 #include <string>
5 #include <iostream>
6 
7 #include "Tool.h"
8 #include "Stopwatch.h"
9 
10 #include "WCSimFLOWER.h"
11 
12 
13 class FLOWERRecon: public Tool {
14 
15 
16  public:
17 
18  FLOWERRecon();
19  bool Initialise(std::string configfile,DataModel &data);
20  bool Execute();
21  bool Finalise();
22 
23 
24  private:
25 
27  WCSimFLOWER * m_flower;
31  std::vector<int> * m_in_PMTIDs;
33  std::vector<float> * m_in_Ts;
35  float m_vertex[3];
36 
38  unsigned int m_nhits_min;
40  unsigned int m_nhits_max;
41 
45  std::string m_input_filter_name;
46 
50  std::string m_detector_name;
53 
57  std::string m_stopwatch_file;
58 
60  int m_verbose;
61 
63  std::stringstream m_ss;
64 
67  void StreamToLog(int level) {
68  Log(m_ss.str(), level, m_verbose);
69  m_ss.str("");
70  }
71 
73  enum LogLevel {FATAL=-1, ERROR=0, WARN=1, INFO=2, DEBUG1=3, DEBUG2=4, DEBUG3=5};
74 
75 };
76 
77 
78 #endif
WCSimFLOWER * m_flower
Instance of FLOWER.
Definition: FLOWERRecon.h:27
util::Stopwatch * m_stopwatch
The stopwatch, if we&#39;re using one.
Definition: FLOWERRecon.h:55
int m_n_working_pmts
Number of working PMTs, taken from config file (defaults to NPMTs in geometry)
Definition: FLOWERRecon.h:48
unsigned int m_nhits_min
Number of hits must be greater than this, else FLOWER won&#39;t be run on this trigger.
Definition: FLOWERRecon.h:38
std::vector< float > * m_in_Ts
Read in the times of all hits in the given trigger.
Definition: FLOWERRecon.h:33
bool Finalise()
bool Initialise(std::string configfile, DataModel &data)
Definition: FLOWERRecon.cpp:6
ReconInfo * m_input_filter
Holds reconstructed vertex information.
Definition: FLOWERRecon.h:43
void StreamToLog(int level)
Definition: FLOWERRecon.h:67
std::stringstream m_ss
For easy formatting of Log messages.
Definition: FLOWERRecon.h:63
LogLevel
Log level enumerations.
Definition: FLOWERRecon.h:73
int m_verbose
Verbosity level, as defined in tool parameter file.
Definition: FLOWERRecon.h:60
unsigned int m_nhits_max
Number of hits must be less than this, else FLOWER won&#39;t be run on this trigger.
Definition: FLOWERRecon.h:40
int m_in_nhits
Read in the total number of hits in the given trigger.
Definition: FLOWERRecon.h:29
bool Execute()
Definition: FLOWERRecon.cpp:78
std::string m_input_filter_name
Which named filter to use? For preselecting which reconstructed vertices will be used by FLOWER...
Definition: FLOWERRecon.h:45
std::string m_stopwatch_file
Image filename to save the histogram to, if required.
Definition: FLOWERRecon.h:57
bool m_overwrite_nearest
Overwrite the precalculated nearest neighbours ROOT file that FLOWER uses?
Definition: FLOWERRecon.h:52
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_detector_name
Name of the detector, used to set default FLOWER parameters.
Definition: FLOWERRecon.h:50
float m_vertex[3]
x,y,z of input reconstructed vertex
Definition: FLOWERRecon.h:35
std::vector< int > * m_in_PMTIDs
Read in the PMT IDs of all hits in the given trigger.
Definition: FLOWERRecon.h:31