AlgoThreshold.h
Go to the documentation of this file.
1 /**
2  * \file AlgoThreshold.h
3  *
4  * \ingroup PulseReco
5  *
6  * \brief Class definition file of AlgoThreshold
7  *
8  * @author Kazu - Nevis 2013
9  */
10 
11 /** \addtogroup PulseReco
12 
13 @{*/
14 
15 #ifndef ALGOTHRESHOLD_H
16 #define ALGOTHRESHOLD_H
17 
18 #include "PMTPulseRecoBase.h"
19 #include "fhiclcpp/fwd.h"
21 
22 #include <string>
23 
24 namespace pmtana
25 {
26 
27  /**
28  \class AlgoThreshold
29  This class implements threshold algorithm to AlgoThreshold 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 constructor
40  AlgoThreshold(const std::string name="AlgoThreshold");
41 
42  /// Alternative constructor
43  AlgoThreshold(const fhicl::ParameterSet &pset,const std::string name="AlgoThreshold");
44  //AlgoThreshold(const ::fcllite::PSet &pset,const std::string name="AlgoThreshold");
45 
46  /// Implementation of AlgoThreshold::reset() method
47  void Reset();
48 
49  protected:
50 
51  /// Implementation of AlgoThreshold::reco() method
52  bool RecoPulse(const pmtana::Waveform_t& wf,
53  const pmtana::PedestalMean_t& mean_v,
54  const pmtana::PedestalSigma_t& sigma_v);
55 
56  /// A variable holder for a user-defined absolute ADC threshold value
57  //double _adc_thres;
60 
61  /// A variable holder for a multiplicative factor for the pedestal standard deviation to define the threshold.
62  //double _nsigma;
63  double _nsigma_start;
64  double _nsigma_end;
65 
66 
67  };
68 
69 }
70 #endif
71 
72 /** @} */ // end of doxygen group
static QCString name
Definition: declinfo.cpp:673
std::vector< double > PedestalSigma_t
std::string string
Definition: nybbler.cc:12
AlgoThreshold(const std::string name="AlgoThreshold")
Default constructor.
void Reset()
Implementation of AlgoThreshold::reset() method.
std::vector< short > Waveform_t
bool RecoPulse(const pmtana::Waveform_t &wf, const pmtana::PedestalMean_t &mean_v, const pmtana::PedestalSigma_t &sigma_v)
Implementation of AlgoThreshold::reco() method.
double _nsigma_start
A variable holder for a multiplicative factor for the pedestal standard deviation to define the thres...
Definition: AlgoThreshold.h:63
Class definition file of PMTPulseRecoBase.
std::vector< double > PedestalMean_t
double _start_adc_thres
A variable holder for a user-defined absolute ADC threshold value.
Definition: AlgoThreshold.h:58