#include <CommonAmps.h>
Public Member Functions | |
CommonAmps (const std::string name="CommonAmps") | |
Default constructor. More... | |
~CommonAmps () | |
Default destructor. More... | |
FlashMatch_t | Match (const QCluster_t &, const Flash_t &) |
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... | |
virtual void | SetTPCCryo (int tpc, int cryo)=0 |
Sets the TPC and Cryo numbers. 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 | |
float | _percent |
float | _score |
float | _x_step_size |
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.
The goal of this algorithm is to compare the most prominent pieces of opflash spectra, and spectra produced by photon library given QCluster points. Tpc_point calculated as in QWeightPoint and stored based on the best match amplitudes.
Only works with Photon Library currently
Definition at line 32 of file CommonAmps.h.
flashmatch::CommonAmps::CommonAmps | ( | const std::string | name = "CommonAmps" | ) |
Default constructor.
Definition at line 13 of file CommonAmps.cxx.
|
inline |
|
protectedvirtual |
|
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 27 of file CommonAmps.cxx.
|
private |
Definition at line 50 of file CommonAmps.h.
|
private |
Definition at line 51 of file CommonAmps.h.
|
private |
Definition at line 53 of file CommonAmps.h.
|
private |
Definition at line 54 of file CommonAmps.h.
|
private |
Definition at line 52 of file CommonAmps.h.