AlgoFixedWindow.h
Go to the documentation of this file.
1 /**
2  * \file AlgoFixedWindow.h
3  *
4  * \ingroup PulseReco
5  *
6  * \brief Class definition file of AlgoFixedWindow
7  *
8  * @author Kazu - Nevis 2013
9  */
10 
11 /** \addtogroup PulseReco
12 
13 @{*/
14 
15 #ifndef ALGOFIXEDWINDOW_H
16 #define ALGOFIXEDWINDOW_H
17 
18 #include "PMTPulseRecoBase.h"
19 #include "fhiclcpp/fwd.h"
21 
22 #include <string>
23 
24 namespace pmtana
25 {
26 
27  /**
28  \class AlgoFixedWindow
29  This class implements fixed_window algorithm to AlgoFixedWindow class.
30  The algorithm defines a pulse in user-specified time window.
31  A typical usage is to set the beginning of the window to be 0 (= start of the waveform)
32  and integrate over the time of interest. By default, the ending is set to index=0, in
33  which case it uses the ending index of the input waveform (i.e. full integration).
34  */
36 
37  public:
38 
39  /// Default ctor
40  AlgoFixedWindow(const std::string name="FixedWindow");
41 
42  /// Alternative ctor
43  AlgoFixedWindow(const fhicl::ParameterSet &pset,const std::string name="FixedWindow");
44  //AlgoFixedWindow(const ::fcllite::PSet &pset,const std::string name="FixedWindow");
45 
46  /// Implementation of AlgoFixedWindow::reset() method
47  void Reset();
48 
49  protected:
50 
51  /// Implementation of AlgoFixedWindow::reco() method
52  bool RecoPulse(const pmtana::Waveform_t&,
55 
56  size_t _index_start; ///< index marker for the beginning of the pulse time window
57  size_t _index_end; ///< index marker for the end of pulse time window
58 
59  };
60 
61 }
62 #endif
63 
64 /** @} */ // end of doxygen group
static QCString name
Definition: declinfo.cpp:673
std::vector< double > PedestalSigma_t
std::string string
Definition: nybbler.cc:12
size_t _index_end
index marker for the end of pulse time window
size_t _index_start
index marker for the beginning of the pulse time window
bool RecoPulse(const pmtana::Waveform_t &, const pmtana::PedestalMean_t &, const pmtana::PedestalSigma_t &)
Implementation of AlgoFixedWindow::reco() method.
std::vector< short > Waveform_t
Class definition file of PMTPulseRecoBase.
AlgoFixedWindow(const std::string name="FixedWindow")
Default ctor.
std::vector< double > PedestalMean_t
void Reset()
Implementation of AlgoFixedWindow::reset() method.