All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NoBaseline_tool.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file NoBaseline.cc
3 /// \author T. Usher
4 ////////////////////////////////////////////////////////////////////////
5 
6 #include <cmath>
8 #include "art/Utilities/ToolMacros.h"
9 #include "art_root_io/TFileService.h"
10 #include "messagefacility/MessageLogger/MessageLogger.h"
11 #include "cetlib_except/exception.h"
12 
13 #include <fstream>
14 
15 namespace icarus_tool
16 {
17 
18 class NoBaseline : public IBaseline
19 {
20 public:
21  explicit NoBaseline(const fhicl::ParameterSet& pset);
22 
23  ~NoBaseline();
24 
25  void configure(const fhicl::ParameterSet& pset) override;
26  void outputHistograms(art::TFileDirectory&) const override;
27 
28  float GetBaseline(const std::vector<float>&, raw::ChannelID_t, size_t, size_t) const override;
29 
30 private:
31 };
32 
33 //----------------------------------------------------------------------
34 // Constructor.
35 NoBaseline::NoBaseline(const fhicl::ParameterSet& pset)
36 {
37  configure(pset);
38 }
39 
41 {
42 }
43 
44 void NoBaseline::configure(const fhicl::ParameterSet& pset)
45 {
46  return;
47 }
48 
49 
50 float NoBaseline::GetBaseline(const std::vector<float>& holder,
51  raw::ChannelID_t channel,
52  size_t roiStart,
53  size_t roiLen) const
54 {
55  return 0.;
56 }
57 
58 void NoBaseline::outputHistograms(art::TFileDirectory& histDir) const
59 {
60  return;
61 }
62 
63 DEFINE_ART_CLASS_TOOL(NoBaseline)
64 }
float GetBaseline(const std::vector< float > &, raw::ChannelID_t, size_t, size_t) const override
This provides an interface for tools which are tasked with finding the baselines in input waveforms...
void configure(const fhicl::ParameterSet &pset) override
NoBaseline(const fhicl::ParameterSet &pset)
void outputHistograms(art::TFileDirectory &) const override
unsigned int ChannelID_t
Type representing the ID of a readout channel.
Definition: RawTypes.h:28