All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IOpHitFinder.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////
2 ///
3 /// \file IOpHitFinder.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 IOpHitFinder_H
13 #define IOpHitFinder_H
14 
15 #include "fhiclcpp/ParameterSet.h"
18 
19 namespace art
20 {
21  class TFileDirectory;
22 }
23 
24 namespace light
25 {
26  using OpHitVec = std::vector<recob::OpHit>;
27 
29  {
30  public:
31  virtual ~IOpHitFinder() noexcept = default;
32 
33  virtual void configure(const fhicl::ParameterSet& pset) = 0;
34  virtual void outputHistograms(art::TFileDirectory&) const = 0;
35 
36  // Find the baseline
37  virtual void FindOpHits(const raw::OpDetWaveform&, OpHitVec&) const = 0;
38  };
39 }
40 
41 #endif
virtual ~IOpHitFinder() noexcept=default
virtual void outputHistograms(art::TFileDirectory &) const =0
virtual void configure(const fhicl::ParameterSet &pset)=0
virtual void FindOpHits(const raw::OpDetWaveform &, OpHitVec &) const =0
std::vector< recob::OpHit > OpHitVec
Definition: IOpHitFinder.h:26