All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ROIFinderNOP_tool.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file ROIFinder.cc
3 /// \author T. Usher
4 ////////////////////////////////////////////////////////////////////////
5 
6 #include <cmath>
8 #include "art/Utilities/ToolMacros.h"
9 #include "messagefacility/MessageLogger/MessageLogger.h"
10 
11 #include <fstream>
12 
13 namespace icarus_tool
14 {
15 
16 class ROIFinderNOP : public IROIFinder
17 {
18 public:
19  explicit ROIFinderNOP(const fhicl::ParameterSet& pset);
20 
21  ~ROIFinderNOP();
22 
23  void configure(const fhicl::ParameterSet& pset) override;
24  void initializeHistograms(art::TFileDirectory&) const override;
25  size_t plane() const override {return fPlane;}
26 
27  void FindROIs(const Waveform&, size_t, size_t, double, CandidateROIVec&) const override;
28 
29 private:
30  // Member variables from the fhicl file
31  size_t fPlane; ///< Tool can be plane dependent
32 };
33 
34 //----------------------------------------------------------------------
35 // Constructor.
36 ROIFinderNOP::ROIFinderNOP(const fhicl::ParameterSet& pset)
37 {
38  configure(pset);
39 }
40 
42 {
43 }
44 
45 void ROIFinderNOP::configure(const fhicl::ParameterSet& pset)
46 {
47  fPlane = pset.get< size_t >("Plane");
48 
49  return;
50 }
51 
52 void ROIFinderNOP::FindROIs(const Waveform& waveform, size_t channel, size_t cnt, double rmsNoise, CandidateROIVec& roiVec) const
53 {
54  // We just make the entire waveform an "ROI"
55  roiVec.clear();
56  roiVec.emplace_back(size_t(0),waveform.size()-1);
57 
58  return;
59 }
60 
61 void ROIFinderNOP::initializeHistograms(art::TFileDirectory& histDir) const
62 {
63  return;
64 }
65 
66 DEFINE_ART_CLASS_TOOL(ROIFinderNOP)
67 }
size_t fPlane
Tool can be plane dependent.
void configure(const fhicl::ParameterSet &pset) override
ROIFinderNOP(const fhicl::ParameterSet &pset)
void initializeHistograms(art::TFileDirectory &) const override
void FindROIs(const Waveform &, size_t, size_t, double, CandidateROIVec &) const override
size_t plane() const override