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
FLOWERRecon Class Reference

#include <FLOWERRecon.h>

Inheritance diagram for FLOWERRecon:

Public Member Functions

 FLOWERRecon ()
 
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

std::string m_detector_name
 Name of the detector, used to set default FLOWER parameters. More...
 
WCSimFLOWER * m_flower
 Instance of FLOWER. More...
 
int m_in_nhits
 Read in the total number of hits in the given trigger. More...
 
std::vector< int > * m_in_PMTIDs
 Read in the PMT IDs of all hits in the given trigger. More...
 
std::vector< float > * m_in_Ts
 Read in the times of all hits in the given trigger. More...
 
ReconInfom_input_filter
 Holds reconstructed vertex information. More...
 
std::string m_input_filter_name
 Which named filter to use? For preselecting which reconstructed vertices will be used by FLOWER. More...
 
int m_n_working_pmts
 Number of working PMTs, taken from config file (defaults to NPMTs in geometry) More...
 
unsigned int m_nhits_max
 Number of hits must be less than this, else FLOWER won't be run on this trigger. More...
 
unsigned int m_nhits_min
 Number of hits must be greater than this, else FLOWER won't be run on this trigger. More...
 
bool m_overwrite_nearest
 Overwrite the precalculated nearest neighbours ROOT file that FLOWER uses? 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...
 
float m_vertex [3]
 x,y,z of input reconstructed vertex More...
 

Detailed Description

Definition at line 13 of file FLOWERRecon.h.

Member Enumeration Documentation

enum FLOWERRecon::LogLevel
private

Log level enumerations.

Enumerator
FATAL 
ERROR 
WARN 
INFO 
DEBUG1 
DEBUG2 
DEBUG3 

Definition at line 73 of file FLOWERRecon.h.

Constructor & Destructor Documentation

FLOWERRecon::FLOWERRecon ( )

Definition at line 3 of file FLOWERRecon.cpp.

Member Function Documentation

bool FLOWERRecon::Execute ( )

Definition at line 78 of file FLOWERRecon.cpp.

bool FLOWERRecon::Finalise ( )

Definition at line 147 of file FLOWERRecon.cpp.

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

Definition at line 6 of file FLOWERRecon.cpp.

void FLOWERRecon::StreamToLog ( int  level)
inlineprivate

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

Definition at line 67 of file FLOWERRecon.h.

Member Data Documentation

std::string FLOWERRecon::m_detector_name
private

Name of the detector, used to set default FLOWER parameters.

Definition at line 50 of file FLOWERRecon.h.

WCSimFLOWER* FLOWERRecon::m_flower
private

Instance of FLOWER.

Definition at line 27 of file FLOWERRecon.h.

int FLOWERRecon::m_in_nhits
private

Read in the total number of hits in the given trigger.

Definition at line 29 of file FLOWERRecon.h.

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

Read in the PMT IDs of all hits in the given trigger.

Definition at line 31 of file FLOWERRecon.h.

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

Read in the times of all hits in the given trigger.

Definition at line 33 of file FLOWERRecon.h.

ReconInfo* FLOWERRecon::m_input_filter
private

Holds reconstructed vertex information.

Definition at line 43 of file FLOWERRecon.h.

std::string FLOWERRecon::m_input_filter_name
private

Which named filter to use? For preselecting which reconstructed vertices will be used by FLOWER.

Definition at line 45 of file FLOWERRecon.h.

int FLOWERRecon::m_n_working_pmts
private

Number of working PMTs, taken from config file (defaults to NPMTs in geometry)

Definition at line 48 of file FLOWERRecon.h.

unsigned int FLOWERRecon::m_nhits_max
private

Number of hits must be less than this, else FLOWER won't be run on this trigger.

Definition at line 40 of file FLOWERRecon.h.

unsigned int FLOWERRecon::m_nhits_min
private

Number of hits must be greater than this, else FLOWER won't be run on this trigger.

Definition at line 38 of file FLOWERRecon.h.

bool FLOWERRecon::m_overwrite_nearest
private

Overwrite the precalculated nearest neighbours ROOT file that FLOWER uses?

Definition at line 52 of file FLOWERRecon.h.

std::stringstream FLOWERRecon::m_ss
private

For easy formatting of Log messages.

Definition at line 63 of file FLOWERRecon.h.

util::Stopwatch* FLOWERRecon::m_stopwatch
private

The stopwatch, if we're using one.

Definition at line 55 of file FLOWERRecon.h.

std::string FLOWERRecon::m_stopwatch_file
private

Image filename to save the histogram to, if required.

Definition at line 57 of file FLOWERRecon.h.

int FLOWERRecon::m_verbose
private

Verbosity level, as defined in tool parameter file.

Definition at line 60 of file FLOWERRecon.h.

float FLOWERRecon::m_vertex[3]
private

x,y,z of input reconstructed vertex

Definition at line 35 of file FLOWERRecon.h.


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