ToolDAQFramework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
BONSAI Class Reference

#include <BONSAI.h>

Inheritance diagram for BONSAI:

Public Member Functions

 BONSAI ()
 
bool Execute ()
 
bool Finalise ()
 
bool Initialise (std::string configfile, DataModel &data)
 

Private Types

enum  LogLevel {
  FATAL =-1, ERROR =0, WARN =1, INFO =2,
  DEBUG1 =3, DEBUG2 =4, DEBUG3 =5
}
 Log level enumerations. More...
 

Private Member Functions

void StreamToLog (int level)
 

Private Attributes

WCSimBonsai * m_bonsai
 This is the class that runs the BONSAI low-energy reconstruction algorithm. More...
 
int m_in_nhits
 Number of hits in a trigger. More...
 
std::vector< int > * m_in_PMTIDs
 PMT IDs of hits in a trigger. More...
 
std::vector< float > * m_in_Qs
 Charges of hits in a trigger. More...
 
std::vector< float > * m_in_Ts
 Times of hits in a trigger. More...
 
unsigned int m_nhits_max
 Above this number of hits in a trigger, don't run BONSAI. Equality is run. Set in config file. More...
 
unsigned int m_nhits_min
 Below this number of hits in a trigger, don't run BONSAI. Equality is run. Set in config file. More...
 
std::stringstream m_ss
 For easy formatting of Log messages. More...
 
util::Stopwatchm_stopwatch
 The stopwatch, if we're using one. More...
 
std::string m_stopwatch_file
 Image filename to save the histogram to, if required. More...
 
int m_verbose
 Verbosity level, as defined in tool parameter file. More...
 

Detailed Description

Definition at line 14 of file BONSAI.h.

Member Enumeration Documentation

enum BONSAI::LogLevel
private

Log level enumerations.

Enumerator
FATAL 
ERROR 
WARN 
INFO 
DEBUG1 
DEBUG2 
DEBUG3 

Definition at line 61 of file BONSAI.h.

Constructor & Destructor Documentation

BONSAI::BONSAI ( )

Definition at line 3 of file BONSAI.cpp.

Member Function Documentation

bool BONSAI::Execute ( )

Definition at line 52 of file BONSAI.cpp.

bool BONSAI::Finalise ( )

Definition at line 166 of file BONSAI.cpp.

bool BONSAI::Initialise ( std::string  configfile,
DataModel data 
)

Definition at line 5 of file BONSAI.cpp.

void BONSAI::StreamToLog ( int  level)
inlineprivate

Print the current value of the streamer at the set log level, then clear the streamer

Definition at line 55 of file BONSAI.h.

Member Data Documentation

WCSimBonsai* BONSAI::m_bonsai
private

This is the class that runs the BONSAI low-energy reconstruction algorithm.

Definition at line 27 of file BONSAI.h.

int BONSAI::m_in_nhits
private

Number of hits in a trigger.

Definition at line 29 of file BONSAI.h.

std::vector<int>* BONSAI::m_in_PMTIDs
private

PMT IDs of hits in a trigger.

Definition at line 31 of file BONSAI.h.

std::vector<float>* BONSAI::m_in_Qs
private

Charges of hits in a trigger.

Definition at line 35 of file BONSAI.h.

std::vector<float>* BONSAI::m_in_Ts
private

Times of hits in a trigger.

Definition at line 33 of file BONSAI.h.

unsigned int BONSAI::m_nhits_max
private

Above this number of hits in a trigger, don't run BONSAI. Equality is run. Set in config file.

Definition at line 40 of file BONSAI.h.

unsigned int BONSAI::m_nhits_min
private

Below this number of hits in a trigger, don't run BONSAI. Equality is run. Set in config file.

Definition at line 38 of file BONSAI.h.

std::stringstream BONSAI::m_ss
private

For easy formatting of Log messages.

Definition at line 51 of file BONSAI.h.

util::Stopwatch* BONSAI::m_stopwatch
private

The stopwatch, if we're using one.

Definition at line 43 of file BONSAI.h.

std::string BONSAI::m_stopwatch_file
private

Image filename to save the histogram to, if required.

Definition at line 45 of file BONSAI.h.

int BONSAI::m_verbose
private

Verbosity level, as defined in tool parameter file.

Definition at line 48 of file BONSAI.h.


The documentation for this class was generated from the following files: