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

#include <SupernovaDirectionCalculator.h>

Inheritance diagram for SupernovaDirectionCalculator:

Public Member Functions

 SupernovaDirectionCalculator ()
 
void CalculateDirection (float direction[3], float costheta_cut)
 
bool Execute ()
 
bool Finalise ()
 
double GetEventWeight (double log10_energy)
 Return the weight for the event. More...
 
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

ReconInfom_in_filter
 
std::string m_input_filter_name
 
std::vector< double > m_log10_energy
 Vector of log10(energy) for weight interpolation. 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...
 
std::vector< double > m_weight
 Vector of weights for interpolation. More...
 
bool m_weight_events
 Enable weighting of events. More...
 

Detailed Description

Definition at line 10 of file SupernovaDirectionCalculator.h.

Member Enumeration Documentation

Log level enumerations.

Enumerator
FATAL 
ERROR 
WARN 
INFO 
DEBUG1 
DEBUG2 
DEBUG3 

Definition at line 60 of file SupernovaDirectionCalculator.h.

Constructor & Destructor Documentation

SupernovaDirectionCalculator::SupernovaDirectionCalculator ( )

Definition at line 3 of file SupernovaDirectionCalculator.cpp.

Member Function Documentation

void SupernovaDirectionCalculator::CalculateDirection ( float  direction[3],
float  costheta_cut 
)

Calculate the average SN neutrino direction.

Assumes events with cos(theta) < costheta_cut have no direction information.

Definition at line 142 of file SupernovaDirectionCalculator.cpp.

bool SupernovaDirectionCalculator::Execute ( )

Definition at line 69 of file SupernovaDirectionCalculator.cpp.

bool SupernovaDirectionCalculator::Finalise ( )

Definition at line 104 of file SupernovaDirectionCalculator.cpp.

double SupernovaDirectionCalculator::GetEventWeight ( double  log10_energy)

Return the weight for the event.

Definition at line 120 of file SupernovaDirectionCalculator.cpp.

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

Definition at line 6 of file SupernovaDirectionCalculator.cpp.

void SupernovaDirectionCalculator::StreamToLog ( int  level)
inlineprivate

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

Definition at line 54 of file SupernovaDirectionCalculator.h.

Member Data Documentation

ReconInfo* SupernovaDirectionCalculator::m_in_filter
private

Definition at line 30 of file SupernovaDirectionCalculator.h.

std::string SupernovaDirectionCalculator::m_input_filter_name
private

Definition at line 31 of file SupernovaDirectionCalculator.h.

std::vector<double> SupernovaDirectionCalculator::m_log10_energy
private

Vector of log10(energy) for weight interpolation.

Definition at line 37 of file SupernovaDirectionCalculator.h.

std::stringstream SupernovaDirectionCalculator::m_ss
private

For easy formatting of Log messages.

Definition at line 50 of file SupernovaDirectionCalculator.h.

util::Stopwatch* SupernovaDirectionCalculator::m_stopwatch
private

The stopwatch, if we're using one.

Definition at line 42 of file SupernovaDirectionCalculator.h.

std::string SupernovaDirectionCalculator::m_stopwatch_file
private

Image filename to save the histogram to, if required.

Definition at line 44 of file SupernovaDirectionCalculator.h.

int SupernovaDirectionCalculator::m_verbose
private

Verbosity level, as defined in tool parameter file.

Definition at line 47 of file SupernovaDirectionCalculator.h.

std::vector<double> SupernovaDirectionCalculator::m_weight
private

Vector of weights for interpolation.

Definition at line 39 of file SupernovaDirectionCalculator.h.

bool SupernovaDirectionCalculator::m_weight_events
private

Enable weighting of events.

Definition at line 34 of file SupernovaDirectionCalculator.h.


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