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 #include "fhiclcpp/fwd.h"
21 
22 #include <string>
23 
24 namespace pmtana
25 {
26 
27  /**
28  \class AlgoSlidingWindow
29  This class implements threshold algorithm to AlgoSlidingWindow class.
30  */
32 
33  public:
34 
35  /// Default constructor
36  AlgoSlidingWindow(const std::string name="SlidingWindow");
37 
38  /// Alternative ctor
39  AlgoSlidingWindow(const fhicl::ParameterSet &pset,const std::string name="SlidingWindow");
40  //AlgoSlidingWindow(const ::fcllite::PSet &pset,const std::string name="SlidingWindow");
41 
42  /// Implementation of AlgoSlidingWindow::reset() method
43  void Reset();
44 
45  protected:
46 
47  /// Implementation of AlgoSlidingWindow::reco() method
48  bool RecoPulse(const pmtana::Waveform_t&,
51 
52  /// A boolean to set waveform positive/negative polarity
53  bool _positive;
54 
55  /// A variable holder for a user-defined absolute ADC threshold value
57 
58  /// A variable holder to ensure the minimum pulse width
59  size_t _min_width;
60 
61  /// A variable holder for a multiplicative factor for the pedestal standard deviation to define the threshold.
63  bool _verbose;
65  };
66 
67 }
68 #endif
69 
70 /** @} */ // end of doxygen group
static QCString name
Definition: declinfo.cpp:673
std::vector< double > PedestalSigma_t
float _nsigma
A variable holder for a multiplicative factor for the pedestal standard deviation to define the thres...
std::string string
Definition: nybbler.cc:12
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.
Class definition file of PMTPulseRecoBase.
std::vector< double > PedestalMean_t
size_t _min_width
A variable holder to ensure the minimum pulse width.