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