54 void DumpHits(std::vector<SubSample> &samples);
100 template<
typename Range,
typename Function>
std::string m_calibration_file_name
File name for file containg calibration information.
bool Finalise()
Clean up resources.
float short_time_t
Type for relative hit times within a SubSample. Unit = ns.
util::Stopwatch * m_stopwatch
The stopwatch, if we're using one.
void DumpHit(const int &PMTid, float &charge, TimeDelta::short_time_t &time, bool &masked)
bool Initialise(std::string configfile, DataModel &data)
std::string m_stopwatch_file_name
Image filename to save the histogram to, if required.
std::map< PMTChannelID, calibrationData > calibrationInformation
Calibration data store.
LogLevel
Log level enumerations.
Calibrate()
Constructor. Sets validCalibrationDataFound false.
void DumpHits(std::vector< SubSample > &samples)
void ApplyCalibration(std::vector< SubSample > &samples)
void readCalibration(std::string calibrationFileName)
bool Execute()
Applly the calibration to the contents of m_data . Calls ApplyCalibration to do the work...
void StreamToLog(int level)
void Log(const std::string &message, const int message_level)
Format messages in the same way as for tools.
Calibration data format for use at run time.
static bool validCalibrationDataFound
Remember whether a valid calibration data file has been read in or not.
std::stringstream m_ss
For easy formatting of Log messages.
int m_verbose
Verbosity level, as defined in tool parameter file.
Function for_each(Range &range, Function f)