All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BaseAlgorithm.cxx
Go to the documentation of this file.
1 #ifndef OPT0FINDER_BASEALGORITHM_CXX
2 #define OPT0FINDER_BASEALGORITHM_CXX
3 
4 #include "BaseAlgorithm.h"
5 #include "OpT0FinderException.h"
6 namespace flashmatch {
7 
9  : LoggerFeature(name)
10  , _type(type)
11  , _name(name)
12  {}
13 
15  { return _type; }
16 
18  {
19  this->set_verbosity((msg::Level_t)(pset.get<unsigned int>("Verbosity",(unsigned int)(msg::kNORMAL))));
20  this->_Configure_(pset);
21  }
22 
23  const std::string& BaseAlgorithm::AlgorithmName() const
24  { return _name; }
25 
26 }
27 
28 #endif
void set_verbosity(::flashmatch::msg::Level_t level)
Verbosity level.
Definition: LoggerFeature.h:47
Algorithm_t
Enumerator for different types of algorithm.
BaseAlgorithm(const Algorithm_t type, const std::string name)
Default constructor.
Class def header for a class BaseAlgorithm.
fhicl::ParameterSet Config_t
Configuration object.
Definition: FMWKInterface.h:31
const std::string & AlgorithmName() const
Algorithm name.
std::string _name
Algorithm name.
Definition: BaseAlgorithm.h:56
Class def header for exception classes in OpT0Finder package.
Algorithm_t AlgorithmType() const
Algorithm type.
void Configure(const Config_t &pset)
Function to accept configuration.
Level_t
Verbosity message level.
virtual void _Configure_(const Config_t &pset)=0
then echo fcl name
Algorithm_t _type
Algorithm type.
Definition: BaseAlgorithm.h:55