10 #ifndef ICARUSCODE_PMT_OPRECO_ALGORITHMS_PEDALGOFIXED_H
11 #define ICARUSCODE_PMT_OPRECO_ALGORITHMS_PEDALGOFIXED_H
18 #ifndef ICARUS_NO_CONFIGURATION_VALIDATION
19 # include "fhiclcpp/types/Table.h"
20 # include "fhiclcpp/types/OptionalAtom.h"
21 # include "fhiclcpp/types/Atom.h"
22 #endif // ICARUS_NO_CONFIGURATION_VALIDATION
33 #ifdef ICARUS_NO_CONFIGURATION_VALIDATION
34 namespace fhicl {
class ParameterSet; }
35 #else // ICARUS_NO_CONFIGURATION_VALIDATION
37 #endif // ICARUS_NO_CONFIGURATION_VALIDATION
71 unsigned int inputID = std::numeric_limits<unsigned int>::max();
80 #ifndef ICARUS_NO_CONFIGURATION_VALIDATION
82 fhicl::Atom<std::string>
Name {
85 {
"Name of this algorithm [mandatory in the ophit miniframework]" },
90 fhicl::Comment{
"Tag of the data product with input waveforms." }
94 fhicl::Comment{
"Tag of the data product with input pedestal levels." }
96 fhicl::OptionalAtom<std::string>
RMSTag {
99 "Tag of the data product with input pedestal RMS [default: like "
109 #else // !ICARUS_NO_CONFIGURATION_VALIDATION
112 (fhicl::ParameterSet
const& pset, std::string
const&
name =
"PedFixed");
113 #endif // ICARUS_NO_CONFIGURATION_VALIDATION
168 #endif // ICARUSCODE_PMT_OPRECO_ALGORITHMS_PEDALGOFIXED_H
void setParameters(InputSet_t inputSet)
Records the current pedestals and RMS per channel.
std::vector< double > PedestalSigma_t
std::string fPedestalTag
Name of the data source for pedestals.
Pedestal "algorithm" reading the pedestals from somewhere else.
void clearParameters()
Removes the pedestal and RMS records.
fhicl::Table< Config > Parameters
std::pair< InputSet_t const *, std::size_t > findWaveform(pmtana::Waveform_t const &waveform) const
Returns the input set and index of the specified waveform.
Class definition file of PMTPedestalBase.
fhicl::Atom< std::string > WaveformTag
fhicl::OptionalAtom< std::string > RMSTag
fhicl::Atom< std::string > Name
virtual bool ComputePedestal(pmtana::Waveform_t const &waveform, pmtana::PedestalMean_t &mean_v, pmtana::PedestalSigma_t &sigma_v) override
Computes the pedestal of the specified waveform.
std::vector< short > Waveform_t
BEGIN_PROLOG vertical distance to the surface Name
std::string const & pedestalSourceName() const
Returns the name of the configured pedestal source.
std::string const & waveformSourceName() const
Returns the name of the configured waveform source.
fhicl::Atom< std::string > PedestalTag
std::string fRMSTag
Name of the data source for RMS.
PedAlgoFixed(Parameters const ¶ms, std::string const &name="PedFixed")
std::string const & pedestalRMSName() const
Returns the name of the configured RMS source.
std::vector< double > PedestalMean_t
InputSet_t fInput
The set of input waveforms currently registered.
std::string fWaveformTag
Name of the data source for waveforms.