LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Base art tool class wrapping a pedestal estimator algorithm. More...
#include "PedAlgoMakerToolBase.h"
Classes | |
struct | Config |
Public Types | |
using | Parameters = art::ToolConfigTable< Config > |
Public Member Functions | |
PedAlgoMakerToolBase (Parameters const ¶ms) | |
Constructor: copies and stores the configuration for the algorithm. More... | |
virtual std::unique_ptr< pmtana::PMTPedestalBase > | makeAlgo () override |
Creates and returns the algorithm from the configuration on construction. More... | |
Protected Attributes | |
Config | fConfig |
Tool configuration cache. More... | |
Base art tool class wrapping a pedestal estimator algorithm.
PedAlgoClass | the pedestal estimator algorithm class being created |
Algorithms of the pedestal estimation mini-framework in larana
follow a factory pattern which is not the one native in art.
This base class provides the backbone to a art tool wrapping one of the pedestal estimator algorithms. The only function of these tools is to create and configure a pedestal estimator algorithm object: the tools do not offer any pedestal estimation functionality by themselves.
Note that these tools all implement a single art tool interface, which is defined as opdet::IPedAlgoMakerTool
.
The current art plugin system will be content with a simple declaration like:
for defining the tool that creates a pmtana::PedAlgoRollingMean
algorithm. This definition needs to live in a source file with an appropriate name (e.g. PedAlgoRollingMeanMaker_tool.cc
), as the source name will be used to identify which library to load at run time.
PedAlgoClass
) requirements The constructor of the pedestal estimator class, PedAlgoClass
, must support one parameter:
PedAlgoClass::PedAlgoClass(fhicl::ParameterSet const& config);
Definition at line 27 of file PedAlgoMakerToolBase.h.
using opdet::PedAlgoMakerToolBase< PedAlgoClass >::Parameters = art::ToolConfigTable<Config> |
Definition at line 78 of file PedAlgoMakerToolBase.h.
opdet::PedAlgoMakerToolBase< PedAlgoClass >::PedAlgoMakerToolBase | ( | Parameters const & | params | ) |
Constructor: copies and stores the configuration for the algorithm.
Definition at line 95 of file PedAlgoMakerToolBase.h.
|
overridevirtual |
Creates and returns the algorithm from the configuration on construction.
Implements opdet::IPedAlgoMakerTool.
Definition at line 101 of file PedAlgoMakerToolBase.h.
References opdet::PedAlgoMakerToolBase< PedAlgoClass >::fConfig, and opdet::PedAlgoMakerToolBase< PedAlgoClass >::Config::PedAlgoPset.
|
protected |
Tool configuration cache.
Definition at line 87 of file PedAlgoMakerToolBase.h.
Referenced by opdet::PedAlgoMakerToolBase< PedAlgoClass >::makeAlgo().