All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IBaseline.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////
2 ///
3 /// \file IBaseline.h
4 ///
5 /// \brief This provides an interface for tools which are tasked with
6 /// finding the baselines in input waveforms, primarily ROI's
7 ///
8 /// \author T. Usher
9 ///
10 ////////////////////////////////////////////////////////////////////////
11 
12 #ifndef IBaseline_H
13 #define IBaseline_H
14 
15 #include "fhiclcpp/ParameterSet.h"
16 #include "larcoreobj/SimpleTypesAndConstants/RawTypes.h" // raw::ChannelID_t
18 
19 namespace art
20 {
21  class TFileDirectory;
22 }
23 
24 namespace icarus_tool
25 {
26  class IBaseline
27  {
28  public:
29  virtual ~IBaseline() noexcept = default;
30 
31  virtual void configure(const fhicl::ParameterSet& pset) = 0;
32  virtual void outputHistograms(art::TFileDirectory&) const = 0;
33 
34  // Find the baseline
35  virtual float GetBaseline(std::vector<float> const&, raw::ChannelID_t, size_t, size_t) const = 0;
36  };
37 }
38 
39 #endif
virtual ~IBaseline() noexcept=default
virtual void outputHistograms(art::TFileDirectory &) const =0
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Definition: RawTypes.h:28
Useful definitions.
virtual float GetBaseline(std::vector< float > const &, raw::ChannelID_t, size_t, size_t) const =0
virtual void configure(const fhicl::ParameterSet &pset)=0