#include <BaseFlashMatch.h>
Algorithm base class for matching flashmatch::QCluster_t (TPC object) and
flashmatch::Flash_t (flash). It creates flashmatch::FlashMatch_t which contains
matching infomration.
Definition at line 29 of file BaseFlashMatch.h.
flashmatch::BaseFlashMatch::BaseFlashMatch |
( |
const std::string |
name = "noname" | ) |
|
|
inline |
Default constructor.
Definition at line 35 of file BaseFlashMatch.h.
Algorithm type to match flash hypothesis and reconstructed flash.
BaseAlgorithm(const Algorithm_t type, const std::string name)
Default constructor.
const std::string & name() const
Name getter, defined in a logger instance attribute.
virtual flashmatch::BaseFlashMatch::~BaseFlashMatch |
( |
| ) |
|
|
inlinevirtual |
void flashmatch::BaseFlashMatch::FillEstimate |
( |
const QCluster_t & |
tpc, |
|
|
Flash_t & |
opdet |
|
) |
| const |
Method to simply fill provided reference of flashmatch::Flash_t.
Definition at line 13 of file BaseFlashMatch.cxx.
virtual void FillEstimate(const QCluster_t &, Flash_t &) const =0
Method to simply fill provided reference of flashmatch::Flash_t.
flashmatch::BaseFlashHypothesis * _flash_hypothesis
Method to call flash hypothesis.
Definition at line 8 of file BaseFlashMatch.cxx.
flashmatch::BaseFlashHypothesis * _flash_hypothesis
Flash_t GetEstimate(const QCluster_t &) const
Method to create flashmatch::Flash_t object and return.
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.
Implemented in flashmatch::QLLMatch, flashmatch::QWeightPoint, and flashmatch::CommonAmps.
Definition at line 18 of file BaseFlashMatch.cxx.
flashmatch::BaseFlashHypothesis * _flash_hypothesis
virtual void flashmatch::BaseFlashMatch::SetTPCCryo |
( |
int |
tpc, |
|
|
int |
cryo |
|
) |
| |
|
pure virtual |
int flashmatch::BaseFlashMatch::_cryo = 0 |
|
protected |
int flashmatch::BaseFlashMatch::_tpc = 0 |
|
protected |
The documentation for this class was generated from the following files: