ToolDAQFramework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
ReconDataOut.h
Go to the documentation of this file.
1 #ifndef ReconDataOut_H
2 #define ReconDataOut_H
3 
4 #include <string>
5 #include <iostream>
6 
7 #include "Tool.h"
8 #include "TimeDelta.h"
9 #include "TTree.h"
10 #include "TFile.h"
11 #include "Stopwatch.h"
12 
13 class ReconDataOut: public Tool {
14 
15 
16  public:
17 
18  ReconDataOut();
19  bool Initialise(std::string configfile,DataModel &data);
20  bool Execute();
21  bool Finalise();
22 
23 
24  private:
25 
27  std::string fInputFilterName;
28 
29  std::string fOutFilename;
30  TFile fOutFile;
31  TTree * fTreeRecon;
32 
34  int fRTNHits;
35  double fRTEnergy;
37  double fRTTime;
38  double fRTVertex[4]; //x,y,z
40  double fRTDirectionEuler[3]; // theta (zenith), phi (azimuth), alpha
41  double fRTCherenkovCone[2]; // cos(Cherenkov angle), ellipticity
45 
46  int fEvtNum;
47 
51  std::string m_stopwatch_file;
52 
53  int m_verbose;
54 
55  std::stringstream ss;
56 
57  void StreamToLog(int level) {
58  Log(ss.str(), level, m_verbose);
59  ss.str("");
60  }
61 
62  enum LogLevel {FATAL=-1, ERROR=0, WARN=1, INFO=2, DEBUG1=3, DEBUG2=4, DEBUG3=5};
63 
64 
65 
66 
67 };
68 
69 
70 #endif
enum EReconstructers Reconstructer_t
TFile fOutFile
Definition: ReconDataOut.h:30
Reconstructer_t fRTReconstructer
Definition: ReconDataOut.h:36
double fRTTime
Definition: ReconDataOut.h:37
std::string fOutFilename
Definition: ReconDataOut.h:29
double fRTGoodnessOfTimeFit
Definition: ReconDataOut.h:44
double fRTDirectionEuler[3]
Definition: ReconDataOut.h:40
ReconInfo * fInFilter
Definition: ReconDataOut.h:26
std::string m_stopwatch_file
Image filename to save the histogram to, if required.
Definition: ReconDataOut.h:51
double fRTDirectionLikelihood
Definition: ReconDataOut.h:42
std::stringstream ss
Definition: ReconDataOut.h:55
double fRTCherenkovCone[2]
Definition: ReconDataOut.h:41
bool Initialise(std::string configfile, DataModel &data)
Definition: ReconDataOut.cpp:6
void StreamToLog(int level)
Definition: ReconDataOut.h:57
std::string fInputFilterName
Definition: ReconDataOut.h:27
void Log(const std::string &message, const int message_level)
Format messages in the same way as for tools.
Definition: Utilities.cpp:276
util::Stopwatch * m_stopwatch
The stopwatch, if we&#39;re using one.
Definition: ReconDataOut.h:49
TTree * fTreeRecon
Definition: ReconDataOut.h:31
bool fRTHasDirection
Definition: ReconDataOut.h:39
double fRTEnergy
Definition: ReconDataOut.h:35
double fRTVertex[4]
Definition: ReconDataOut.h:38
double fRTGoodnessOfFit
Definition: ReconDataOut.h:43