ToolDAQFramework
|
#include <SupernovaDirectionCalculator.h>
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 | |
ReconInfo * | m_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::Stopwatch * | m_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... | |
Definition at line 10 of file SupernovaDirectionCalculator.h.
|
private |
Log level enumerations.
Enumerator | |
---|---|
FATAL | |
ERROR | |
WARN | |
INFO | |
DEBUG1 | |
DEBUG2 | |
DEBUG3 |
Definition at line 60 of file SupernovaDirectionCalculator.h.
SupernovaDirectionCalculator::SupernovaDirectionCalculator | ( | ) |
Definition at line 3 of file SupernovaDirectionCalculator.cpp.
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.
|
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.
|
private |
Definition at line 30 of file SupernovaDirectionCalculator.h.
|
private |
Definition at line 31 of file SupernovaDirectionCalculator.h.
|
private |
Vector of log10(energy) for weight interpolation.
Definition at line 37 of file SupernovaDirectionCalculator.h.
|
private |
For easy formatting of Log messages.
Definition at line 50 of file SupernovaDirectionCalculator.h.
|
private |
The stopwatch, if we're using one.
Definition at line 42 of file SupernovaDirectionCalculator.h.
|
private |
Image filename to save the histogram to, if required.
Definition at line 44 of file SupernovaDirectionCalculator.h.
|
private |
Verbosity level, as defined in tool parameter file.
Definition at line 47 of file SupernovaDirectionCalculator.h.
|
private |
Vector of weights for interpolation.
Definition at line 39 of file SupernovaDirectionCalculator.h.
|
private |
Enable weighting of events.
Definition at line 34 of file SupernovaDirectionCalculator.h.