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

#include <BaseAlgorithm.h>

Inheritance diagram for flashmatch::BaseAlgorithm:
flashmatch::LoggerFeature flashmatch::BaseFlashFilter flashmatch::BaseFlashHypothesis flashmatch::BaseFlashMatch flashmatch::BaseProhibitAlgo flashmatch::BaseTPCFilter flashmatch::LightPath flashmatch::MaxNPEWindow flashmatch::ChargeAnalytical flashmatch::PhotonLibHypothesis flashmatch::CommonAmps flashmatch::QLLMatch flashmatch::QWeightPoint flashmatch::TimeCompatMatch flashmatch::NPtFilter

Public Member Functions

 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 Member Functions

virtual void _Configure_ (const Config_t &pset)=0
 

Private Attributes

Algorithm_t _type
 Algorithm type. More...
 
std::string _name
 Algorithm name. More...
 

Friends

class FlashMatchManager
 

Detailed Description

Definition at line 28 of file BaseAlgorithm.h.

Constructor & Destructor Documentation

flashmatch::BaseAlgorithm::BaseAlgorithm ( const Algorithm_t  type,
const std::string  name 
)

Default constructor.

Definition at line 8 of file BaseAlgorithm.cxx.

10  , _type(type)
11  , _name(name)
12  {}
LoggerFeature(const std::string logger_name="LoggerFeature")
Default constructor.
Definition: LoggerFeature.h:32
std::string _name
Algorithm name.
Definition: BaseAlgorithm.h:56
const std::string & name() const
Name getter, defined in a logger instance attribute.
Definition: LoggerFeature.h:51
Algorithm_t _type
Algorithm type.
Definition: BaseAlgorithm.h:55
flashmatch::BaseAlgorithm::~BaseAlgorithm ( )
inline

Default destructor.

Definition at line 38 of file BaseAlgorithm.h.

38 {}

Member Function Documentation

virtual void flashmatch::BaseAlgorithm::_Configure_ ( const Config_t pset)
protectedpure virtual
const std::string & flashmatch::BaseAlgorithm::AlgorithmName ( ) const

Algorithm name.

Definition at line 23 of file BaseAlgorithm.cxx.

24  { return _name; }
std::string _name
Algorithm name.
Definition: BaseAlgorithm.h:56
Algorithm_t flashmatch::BaseAlgorithm::AlgorithmType ( ) const

Algorithm type.

Definition at line 14 of file BaseAlgorithm.cxx.

15  { return _type; }
Algorithm_t _type
Algorithm type.
Definition: BaseAlgorithm.h:55
void flashmatch::BaseAlgorithm::Configure ( const Config_t pset)

Function to accept configuration.

Definition at line 17 of file BaseAlgorithm.cxx.

18  {
19  this->set_verbosity((msg::Level_t)(pset.get<unsigned int>("Verbosity",(unsigned int)(msg::kNORMAL))));
20  this->_Configure_(pset);
21  }
void set_verbosity(::flashmatch::msg::Level_t level)
Verbosity level.
Definition: LoggerFeature.h:47
Level_t
Verbosity message level.
virtual void _Configure_(const Config_t &pset)=0

Friends And Related Function Documentation

friend class FlashMatchManager
friend

Definition at line 30 of file BaseAlgorithm.h.

Member Data Documentation

std::string flashmatch::BaseAlgorithm::_name
private

Algorithm name.

Definition at line 56 of file BaseAlgorithm.h.

Algorithm_t flashmatch::BaseAlgorithm::_type
private

Algorithm type.

Definition at line 55 of file BaseAlgorithm.h.


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