#include <QLLMatch.h>
Public Types | |
enum | QLLMode_t { kChi2, kLLHD, kSimpleLLHD } |
Public Member Functions | |
QLLMatch () | |
Default ctor throws exception (singleton) More... | |
~QLLMatch () | |
Default destructor. More... | |
FlashMatch_t | Match (const QCluster_t &, const Flash_t &) |
Core function: execute matching. More... | |
const Flash_t & | ChargeHypothesis (const double) |
const Flash_t & | Measurement () const |
double | QLL (const flashmatch::Flash_t &, const flashmatch::Flash_t &) |
void | Record (const double x) |
void | OneStep () |
double | CallMinuit (const QCluster_t &tpc, const Flash_t &pmt, const bool init_x0=true) |
const std::vector< double > & | HistoryLLHD () const |
const std::vector< double > & | HistoryChi2 () const |
const std::vector< double > & | HistoryX () const |
void | SetTPCCryo (int tpc, int cryo) |
Sets the TPC and Cryo numbers. More... | |
Public Member Functions inherited from flashmatch::BaseFlashMatch | |
BaseFlashMatch (const std::string name="noname") | |
Default constructor. More... | |
virtual | ~BaseFlashMatch () |
Default destructor. More... | |
Flash_t | GetEstimate (const QCluster_t &) const |
Method to call flash hypothesis. More... | |
void | FillEstimate (const QCluster_t &, Flash_t &) const |
Method to simply fill provided reference of flashmatch::Flash_t. More... | |
Public Member Functions inherited from flashmatch::BaseAlgorithm | |
BaseAlgorithm (const Algorithm_t type, const std::string name) | |
Default constructor. More... | |
~BaseAlgorithm () | |
Default destructor. More... | |
void | Configure (const Config_t &pset) |
Function to accept configuration. More... | |
Algorithm_t | AlgorithmType () const |
Algorithm type. More... | |
const std::string & | AlgorithmName () const |
Algorithm name. More... | |
Public Member Functions inherited from flashmatch::LoggerFeature | |
LoggerFeature (const std::string logger_name="LoggerFeature") | |
Default constructor. More... | |
LoggerFeature (const LoggerFeature &original) | |
Default copy constructor. More... | |
virtual | ~LoggerFeature () |
Default destructor. More... | |
const flashmatch::logger & | logger () const |
Logger getter. More... | |
void | set_verbosity (::flashmatch::msg::Level_t level) |
Verbosity level. More... | |
const std::string & | name () const |
Name getter, defined in a logger instance attribute. More... | |
Static Public Member Functions | |
static QLLMatch * | GetME (std::string name="") |
Singleton shared instance getter. More... | |
Protected Member Functions | |
void | _Configure_ (const Config_t &pset) |
Private Member Functions | |
QLLMatch (const std::string) | |
Valid ctor hidden (singleton) More... | |
FlashMatch_t | PESpectrumMatch (const QCluster_t &pt_v, const Flash_t &flash, const bool init_x0) |
FlashMatch_t | OnePMTMatch (const Flash_t &flash) |
Private Attributes | |
QLLMode_t | _mode |
Minimizer mode. More... | |
bool | _record |
Boolean switch to record minimizer history. More... | |
double | _normalize |
Noramalize hypothesis PE spectrum. More... | |
std::vector< double > | _penalty_threshold_v |
std::vector< double > | _penalty_value_v |
double | _pe_hypothesis_threshold |
double | _pe_observation_threshold |
flashmatch::QCluster_t | _raw_trk |
QPoint_t | _raw_xmin_pt |
QPoint_t | _raw_xmax_pt |
flashmatch::QCluster_t | _var_trk |
flashmatch::Flash_t | _hypothesis |
Hypothesis PE distribution over PMTs. More... | |
flashmatch::Flash_t | _measurement |
Flash PE distribution over PMTs. More... | |
double | _current_chi2 |
double | _current_llhd |
std::vector< double > | _minimizer_record_chi2_v |
Minimizer record chi2 value. More... | |
std::vector< double > | _minimizer_record_llhd_v |
Minimizer record llhd value. More... | |
std::vector< double > | _minimizer_record_x_v |
Minimizer record X values. More... | |
double | _reco_x_offset |
reconstructed X offset (from wire-plane to min-x point) More... | |
double | _reco_x_offset_err |
reconstructed X offset w/ error More... | |
double | _qll |
Minimizer return value. More... | |
bool | _converged |
TMinuit * | _minuit_ptr |
double | _migrad_tolerance |
int | _num_steps |
double | _recox_penalty_threshold |
double | _recoz_penalty_threshold |
double | _onepmt_score_threshold |
double | _onepmt_xdiff_threshold |
double | _onepmt_pesum_threshold |
double | _onepmt_pefrac_threshold |
double | _vol_xmax |
double | _vol_xmin |
std::vector< double > | _xpos_v |
std::vector< double > | _ypos_v |
std::vector< double > | _zpos_v |
float | _construct_hypo_time |
Keeps track of the total time spent constructing hypotheses. More... | |
Static Private Attributes | |
static QLLMatch * | _me = nullptr |
Additional Inherited Members | |
Protected Attributes inherited from flashmatch::BaseFlashMatch | |
int | _tpc = 0 |
The TPC number to use. More... | |
int | _cryo = 0 |
The Cryostat number to use. More... | |
User defined class QLLMatch ... these comments are used to generate doxygen documentation!
Definition at line 49 of file QLLMatch.h.
Enumerator | |
---|---|
kChi2 | |
kLLHD | |
kSimpleLLHD |
Definition at line 53 of file QLLMatch.h.
|
private |
Valid ctor hidden (singleton)
Definition at line 15 of file QLLMatch.cxx.
flashmatch::QLLMatch::QLLMatch | ( | ) |
Default ctor throws exception (singleton)
Definition at line 19 of file QLLMatch.cxx.
|
inline |
|
protectedvirtual |
Implements flashmatch::BaseAlgorithm.
Definition at line 22 of file QLLMatch.cxx.
double flashmatch::QLLMatch::CallMinuit | ( | const QCluster_t & | tpc, |
const Flash_t & | pmt, | ||
const bool | init_x0 = true |
||
) |
Definition at line 409 of file QLLMatch.cxx.
const Flash_t & flashmatch::QLLMatch::ChargeHypothesis | ( | const double | xoffset | ) |
Definition at line 239 of file QLLMatch.cxx.
|
inlinestatic |
Singleton shared instance getter.
Definition at line 68 of file QLLMatch.h.
|
inline |
Definition at line 106 of file QLLMatch.h.
|
inline |
Definition at line 105 of file QLLMatch.h.
|
inline |
Definition at line 107 of file QLLMatch.h.
|
virtual |
Core function: execute matching.
Implements flashmatch::BaseFlashMatch.
Definition at line 74 of file QLLMatch.cxx.
const Flash_t & flashmatch::QLLMatch::Measurement | ( | ) | const |
Definition at line 291 of file QLLMatch.cxx.
|
private |
Definition at line 112 of file QLLMatch.cxx.
|
inline |
Definition at line 97 of file QLLMatch.h.
|
private |
Definition at line 180 of file QLLMatch.cxx.
double flashmatch::QLLMatch::QLL | ( | const flashmatch::Flash_t & | hypothesis, |
const flashmatch::Flash_t & | measurement | ||
) |
Definition at line 293 of file QLLMatch.cxx.
|
inline |
Definition at line 88 of file QLLMatch.h.
|
virtual |
Sets the TPC and Cryo numbers.
Implements flashmatch::BaseFlashMatch.
Definition at line 64 of file QLLMatch.cxx.
|
private |
Keeps track of the total time spent constructing hypotheses.
Definition at line 166 of file QLLMatch.h.
|
private |
Definition at line 149 of file QLLMatch.h.
|
private |
Definition at line 139 of file QLLMatch.h.
|
private |
Definition at line 140 of file QLLMatch.h.
|
private |
Hypothesis PE distribution over PMTs.
Definition at line 136 of file QLLMatch.h.
|
staticprivate |
Definition at line 121 of file QLLMatch.h.
|
private |
Flash PE distribution over PMTs.
Definition at line 137 of file QLLMatch.h.
|
private |
Definition at line 152 of file QLLMatch.h.
|
private |
Minimizer record chi2 value.
Definition at line 141 of file QLLMatch.h.
|
private |
Minimizer record llhd value.
Definition at line 142 of file QLLMatch.h.
|
private |
Minimizer record X values.
Definition at line 143 of file QLLMatch.h.
|
private |
Definition at line 151 of file QLLMatch.h.
|
private |
Minimizer mode.
Definition at line 123 of file QLLMatch.h.
|
private |
Noramalize hypothesis PE spectrum.
Definition at line 125 of file QLLMatch.h.
|
private |
Definition at line 153 of file QLLMatch.h.
|
private |
Definition at line 161 of file QLLMatch.h.
|
private |
Definition at line 160 of file QLLMatch.h.
|
private |
Definition at line 158 of file QLLMatch.h.
|
private |
Definition at line 159 of file QLLMatch.h.
|
private |
Definition at line 129 of file QLLMatch.h.
|
private |
Definition at line 130 of file QLLMatch.h.
|
private |
Definition at line 127 of file QLLMatch.h.
|
private |
Definition at line 128 of file QLLMatch.h.
|
private |
Minimizer return value.
Definition at line 147 of file QLLMatch.h.
|
private |
Definition at line 132 of file QLLMatch.h.
|
private |
Definition at line 134 of file QLLMatch.h.
|
private |
Definition at line 133 of file QLLMatch.h.
|
private |
reconstructed X offset (from wire-plane to min-x point)
Definition at line 145 of file QLLMatch.h.
|
private |
reconstructed X offset w/ error
Definition at line 146 of file QLLMatch.h.
|
private |
Boolean switch to record minimizer history.
Definition at line 124 of file QLLMatch.h.
|
private |
Definition at line 155 of file QLLMatch.h.
|
private |
Definition at line 156 of file QLLMatch.h.
|
private |
Definition at line 135 of file QLLMatch.h.
|
private |
Definition at line 163 of file QLLMatch.h.
|
private |
Definition at line 163 of file QLLMatch.h.
|
private |
Definition at line 164 of file QLLMatch.h.
|
private |
Definition at line 164 of file QLLMatch.h.
|
private |
Definition at line 164 of file QLLMatch.h.