#include <QWeightPoint.h>
Public Member Functions | |
QWeightPoint (const std::string name="QWeightPoint") | |
Default constructor. More... | |
~QWeightPoint () | |
Default destructor. More... | |
FlashMatch_t | Match (const QCluster_t &, const Flash_t &) |
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... | |
Protected Member Functions | |
void | _Configure_ (const Config_t &pset) |
Private Attributes | |
double | _x_step_size |
step size in x-direction More... | |
double | _zdiff_max |
allowed diff in z-direction to be considered as a match More... | |
flashmatch::QCluster_t | _tpc_qcluster |
flashmatch::Flash_t | _vis_array |
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... | |
Implementation of flashmatch::BaseFlashHypothesis algorithm class.
Given a TPC object (flashmatch::QCluster_t), it calcultes a list of flash hypothesis
points based on charge deposition and its geometrical position. Each energy deposition
point is weighted by its charge and inverse-squared-x position. As the absolute
x-position is not known by a TPC object, it uses a relative position for each point
w.r.t. the closest point to the wire plane (x=0). The algorithm then assigns an overall
absolute x-position offset in a successive step of _x_step_size value, assigned by a user,
to compute possible flash hypothesis points.
Definition at line 51 of file QWeightPoint.h.
flashmatch::QWeightPoint::QWeightPoint | ( | const std::string | name = "QWeightPoint" | ) |
Default constructor.
Definition at line 10 of file QWeightPoint.cxx.
|
inline |
|
protectedvirtual |
Implements flashmatch::BaseAlgorithm.
Definition at line 16 of file QWeightPoint.cxx.
|
virtual |
CORE FUNCTION: takes in flashmatch::QCluster_t (TPC object) and flashmatch::Flash_t (flash)
and inspect if two are consistent (i.t. matched) or not. Returns flashmatch::FlashMatch_t
which represents the compatibility of two inputs. In particular the algorithm needs to
set the "score" and "QPoint_t" of the return object. The former represents the goodness
of a match with a value larger than 0. Negative value is interpreted as no match.
The latter represents the matched TPC 3D point. The "tpc_id and "flash_id" of the return
object is set by flashmatch::FlashMatchManager, the caller of the algorithm, as it manages
the overall collection of user input flash and TPC objects.
Note it is flashmatch::FlashMatchManager configuration option to allow an assignment of the
same flash to multiple TPC object or not. If not allowed, a match with a higher "score"
in the return object is chosen.
Implements flashmatch::BaseFlashMatch.
Definition at line 23 of file QWeightPoint.cxx.
|
inlinevirtual |
Sets the TPC and Cryo numbers.
Implements flashmatch::BaseFlashMatch.
Definition at line 63 of file QWeightPoint.h.
|
private |
Definition at line 72 of file QWeightPoint.h.
|
private |
Definition at line 73 of file QWeightPoint.h.
|
private |
step size in x-direction
Definition at line 70 of file QWeightPoint.h.
|
private |
allowed diff in z-direction to be considered as a match
Definition at line 71 of file QWeightPoint.h.