8 if(configfile!=
"") m_variables.Initialise(configfile);
15 bool use_stopwatch =
false;
16 m_variables.Get(
"use_stopwatch", use_stopwatch);
44 Log(
"ERROR: Cannot use the full RecoInfo object to store filtered events",
ERROR,
m_verbose);
48 Log(
"ERROR: Can't use the same filter for input and output. TODO add ReconInfo::RemoveRecon() methods and change logic here in ReconFilter to deal with it",
ERROR,
m_verbose);
52 Log(
"ERROR: output_filter_name must be unique (needs to be a blank canvas). TODO add ReconInfo::RemoveRecon() methods and change logic here in ReconFilter to deal with it",
ERROR,
m_verbose);
57 std::string reconstruction_algorithm_str;
59 m_variables.Get(
"reconstruction_algorithm", reconstruction_algorithm_str);
62 Log(
"ERROR: The reconstruction_algorithm parameter you have chosen is not defined. Please choose a valid option",
ERROR,
m_verbose);
67 Log(
"WARN: No fMinReconLikelihood parameter found. Using a value of 0",
WARN,
m_verbose);
71 Log(
"WARN: No fMinReconTimeLikelihood parameter found. Using a value of 0",
WARN,
m_verbose);
75 Log(
"WARN: No max_r_pos parameter found. Using a value of 3500 (cm)",
WARN,
m_verbose);
79 Log(
"WARN: No max_z_pos parameter found. Using a value of 2700 (cm)",
WARN,
m_verbose);
90 const int N = m_data->RecoInfo.GetNRecons();
91 for(
int irecon = 0; irecon < N; irecon++) {
114 ss <<
"INFO: ReconFilter has reduced number of reconstructed events from "
std::string Result(std::string method_name, std::string output_file="")
Pos3D GetVertex(int irecon)
double fMinReconLikelihood
double fMinReconTimeLikelihood
Reconstructer_t GetReconstructer(int irecon)
void Start()
Start the stopwatch.
StopwatchTimes Stop()
Stop the stopwatch, returning the CPU time.
void AddReconFrom(ReconInfo *in, const int irecon)
void StreamToLog(int level)
std::string fOutputFilterName
static Reconstructer_t ReconstructerFromString(std::string s)
double GetGoodnessOfFit(int irecon)
bool Initialise(std::string configfile, DataModel &data)
util::Stopwatch * m_stopwatch
The stopwatch, if we're using one.
std::string fInputFilterName
Reconstructer_t fReconstructionAlgorithm
double GetGoodnessOfTimeFit(int irecon)
void Log(const std::string &message, const int message_level)
Format messages in the same way as for tools.
std::string m_stopwatch_file
Image filename to save the histogram to, if required.