All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
flashmatch::BaseFlashHypothesis Class Referenceabstract

#include <BaseFlashHypothesis.h>

Inheritance diagram for flashmatch::BaseFlashHypothesis:
flashmatch::BaseAlgorithm flashmatch::LoggerFeature flashmatch::ChargeAnalytical flashmatch::PhotonLibHypothesis

Public Member Functions

 BaseFlashHypothesis (const std::string name="noname")
 Default constructor. More...
 
 ~BaseFlashHypothesis ()
 Default destructor. More...
 
Flash_t GetEstimate (const QCluster_t &) const
 Method to create flashmatch::Flash_t object and return. More...
 
virtual void FillEstimate (const QCluster_t &, Flash_t &) const =0
 Method to simply fill provided reference of flashmatch::Flash_t. More...
 
void SetChannelMask (std::vector< int > ch_mask)
 Sets the channels to use. More...
 
void SetUncoatedPMTs (std::vector< int > ch_uncoated)
 Sets the channels sensitive to visible light. More...
 
void SetSemiAnalyticalModel (std::unique_ptr< SemiAnalyticalModel > model)
 Sets the semi analytical model. 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::loggerlogger () 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 Attributes

std::vector< int > _channel_mask
 The list of channels to use. More...
 
std::vector< int > _uncoated_pmt_list
 A list of opdet sensitive to visible (reflected) light. More...
 
std::unique_ptr
< SemiAnalyticalModel
_semi_model
 

Additional Inherited Members

- Protected Member Functions inherited from flashmatch::BaseAlgorithm
virtual void _Configure_ (const Config_t &pset)=0
 

Detailed Description

Definition at line 29 of file BaseFlashHypothesis.h.

Constructor & Destructor Documentation

flashmatch::BaseFlashHypothesis::BaseFlashHypothesis ( const std::string  name = "noname")
inline

Default constructor.

Definition at line 34 of file BaseFlashHypothesis.h.

36  {}
Algorithm type to make QCluster_t =&gt; Flash_t hypothesis.
const std::string & name() const
Name getter, defined in a logger instance attribute.
Definition: LoggerFeature.h:51
flashmatch::BaseFlashHypothesis::~BaseFlashHypothesis ( )
inline

Default destructor.

Definition at line 39 of file BaseFlashHypothesis.h.

39 {}

Member Function Documentation

virtual void flashmatch::BaseFlashHypothesis::FillEstimate ( const QCluster_t ,
Flash_t  
) const
pure virtual

Method to simply fill provided reference of flashmatch::Flash_t.

Implemented in flashmatch::ChargeAnalytical, and flashmatch::PhotonLibHypothesis.

Flash_t flashmatch::BaseFlashHypothesis::GetEstimate ( const QCluster_t tpc) const

Method to create flashmatch::Flash_t object and return.

Definition at line 8 of file BaseFlashHypothesis.cxx.

9  {
10  Flash_t res;
11  //res.pe_v.resize(OpDetXArray().size());
12 
13  FillEstimate(tpc,res);
14  return res;
15  }
virtual void FillEstimate(const QCluster_t &, Flash_t &) const =0
Method to simply fill provided reference of flashmatch::Flash_t.
void flashmatch::BaseFlashHypothesis::SetChannelMask ( std::vector< int >  ch_mask)
inline

Sets the channels to use.

Definition at line 48 of file BaseFlashHypothesis.h.

48 { _channel_mask = ch_mask; }
std::vector< int > _channel_mask
The list of channels to use.
void flashmatch::BaseFlashHypothesis::SetSemiAnalyticalModel ( std::unique_ptr< SemiAnalyticalModel model)
inline

Sets the semi analytical model.

Definition at line 55 of file BaseFlashHypothesis.h.

55 { _semi_model = std::move(model); }
std::unique_ptr< SemiAnalyticalModel > _semi_model
void flashmatch::BaseFlashHypothesis::SetUncoatedPMTs ( std::vector< int >  ch_uncoated)
inline

Sets the channels sensitive to visible light.

Definition at line 51 of file BaseFlashHypothesis.h.

51 { _uncoated_pmt_list = ch_uncoated; }
std::vector< int > _uncoated_pmt_list
A list of opdet sensitive to visible (reflected) light.

Member Data Documentation

std::vector<int> flashmatch::BaseFlashHypothesis::_channel_mask
protected

The list of channels to use.

Definition at line 60 of file BaseFlashHypothesis.h.

std::unique_ptr<SemiAnalyticalModel> flashmatch::BaseFlashHypothesis::_semi_model
protected

Definition at line 64 of file BaseFlashHypothesis.h.

std::vector<int> flashmatch::BaseFlashHypothesis::_uncoated_pmt_list
protected

A list of opdet sensitive to visible (reflected) light.

Definition at line 61 of file BaseFlashHypothesis.h.


The documentation for this class was generated from the following files: