LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
AlgoThreshold.h
Go to the documentation of this file.
1 
15 #ifndef ALGOTHRESHOLD_H
16 #define ALGOTHRESHOLD_H
17 
18 #include "PMTPulseRecoBase.h"
19 #include "fhiclcpp/ParameterSet.h"
20 //#include "FhiclLite/PSet.h"
21 
22 namespace pmtana
23 {
24 
34 
35  public:
36 
38  AlgoThreshold(const std::string name="AlgoThreshold");
39 
41  AlgoThreshold(const fhicl::ParameterSet &pset,const std::string name="AlgoThreshold");
42  //AlgoThreshold(const ::fcllite::PSet &pset,const std::string name="AlgoThreshold");
43 
45  virtual ~AlgoThreshold();
46 
48  void Reset();
49 
50  protected:
51 
53  bool RecoPulse(const pmtana::Waveform_t& wf,
54  const pmtana::PedestalMean_t& mean_v,
55  const pmtana::PedestalSigma_t& sigma_v);
56 
58  //double _adc_thres;
61 
63  //double _nsigma;
64  double _nsigma_start;
65  double _nsigma_end;
66 
67 
68  };
69 
70 }
71 #endif
72  // end of doxygen group
std::vector< double > PedestalSigma_t
virtual ~AlgoThreshold()
Default destructor.
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:64
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:59