All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AlgoSlidingWindow.h
Go to the documentation of this file.
1 /**
2  * \file AlgoSlidingWindow.h
3  *
4  * \ingroup PulseReco
5  *
6  * \brief Class definition file of AlgoSlidingWindow
7  *
8  * @author Kazu - Nevis 2013
9  */
10 
11 /** \addtogroup PulseReco
12 
13 @{*/
14 
15 #ifndef ALGOSLIDINGWINDOW_H
16 #define ALGOSLIDINGWINDOW_H
17 
18 #include "PMTPulseRecoBase.h"
19 namespace fhicl { class ParameterSet; }
20 
22 
23 #include <string>
24 
25 namespace pmtana
26 {
27 
28  /**
29  \class AlgoSlidingWindow
30  This class implements threshold algorithm to AlgoSlidingWindow class.
31  */
33 
34  public:
35 
36  /// Default constructor
37  AlgoSlidingWindow(const std::string name="SlidingWindow");
38 
39  /// Alternative ctor
40  AlgoSlidingWindow(const fhicl::ParameterSet &pset,
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 
45  /// Implementation of AlgoSlidingWindow::reset() method
46  void Reset();
47 
48  protected:
49 
50  /// Implementation of AlgoSlidingWindow::reco() method
51  bool RecoPulse(const pmtana::Waveform_t&,
54 
55  /// A boolean to set waveform positive/negative polarity
56  bool _positive;
57 
58  /// A variable holder for a user-defined absolute ADC threshold value
60 
61  /// A variable holder to ensure the minimum pulse width
62  size_t _min_width;
63 
64  /// A variable holder for a multiplicative factor for the pedestal standard deviation to define the threshold.
66  bool _verbose;
68 
69  };
70 
71 }
72 #endif
73 
74 /** @} */ // end of doxygen group
std::vector< double > PedestalSigma_t
float _nsigma
A variable holder for a multiplicative factor for the pedestal standard deviation to define the thres...
AlgoSlidingWindow(const std::string name="SlidingWindow")
Default constructor.
bool RecoPulse(const pmtana::Waveform_t &, const pmtana::PedestalMean_t &, const pmtana::PedestalSigma_t &)
Implementation of AlgoSlidingWindow::reco() method.
std::vector< short > Waveform_t
bool _positive
A boolean to set waveform positive/negative polarity.
void Reset()
Implementation of AlgoSlidingWindow::reset() method.
float _adc_thres
A variable holder for a user-defined absolute ADC threshold value.
then echo fcl name
Class definition file of PMTPulseRecoBase.
std::vector< double > PedestalMean_t
size_t _min_width
A variable holder to ensure the minimum pulse width.