LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
AlgoSlidingWindow.h
Go to the documentation of this file.
1 
15 #ifndef ALGOSLIDINGWINDOW_H
16 #define ALGOSLIDINGWINDOW_H
17 
18 #include "PMTPulseRecoBase.h"
19 namespace fhicl {
20  class ParameterSet;
21 }
22 
24 
25 #include <string>
26 
27 namespace pmtana {
28 
34 
35  public:
37  AlgoSlidingWindow(const std::string name = "SlidingWindow");
38 
41  std::unique_ptr<pmtana::RiseTimeCalculatorBase> risetimecalculator = nullptr,
42  const std::string name = "SlidingWindow");
43  //AlgoSlidingWindow(const ::fcllite::PSet &pset,const std::string name="SlidingWindow");
44 
46  void Reset();
47 
48  protected:
50  bool RecoPulse(const pmtana::Waveform_t&,
53 
55  bool _positive;
56 
58  float _adc_thres, _tail_adc_thres, _end_adc_thres;
59 
61  size_t _min_width;
62 
64  float _nsigma, _tail_nsigma, _end_nsigma;
65  bool _verbose;
66  size_t _num_presample, _num_postsample;
67  };
68 
69 }
70 #endif
71  // end of doxygen group
std::vector< double > PedestalSigma_t
ntupleExperimental Reset()
parameter set interface
std::vector< short > Waveform_t
bool _positive
A boolean to set waveform positive/negative polarity.
Class definition file of PMTPulseRecoBase.
std::vector< double > PedestalMean_t
size_t _min_width
A variable holder to ensure the minimum pulse width.