LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
AlgoCFD.h
Go to the documentation of this file.
1 
15 #ifndef ALGOCFD_H
16 #define ALGOCFD_H
17 
18 #include "PMTPulseRecoBase.h"
19 #include "fhiclcpp/ParameterSet.h"
20 //#include "FhiclLite/PSet.h"
21 
22 namespace pmtana
23 {
24 
29  class AlgoCFD : public PMTPulseRecoBase {
30 
31  public:
32 
34  AlgoCFD(const std::string name="CFD");
35 
37  AlgoCFD(const fhicl::ParameterSet &pset,const std::string name="CFD");
38  //AlgoCFD(const ::fcllite::PSet &pset,const std::string name="CFD");
39 
41  virtual ~AlgoCFD();
42 
44  void Reset();
45 
46  protected:
47 
49  bool RecoPulse(const pmtana::Waveform_t&,
52 
53 
54  const std::map<unsigned,double> LinearZeroPointX(const std::vector<double>& trace);
55 
56  private:
57  float _F;
58  int _D;
59 
60  //int _number_presample;
61  double _peak_thresh;
62  double _start_thresh;
63  double _end_thresh;
64 
65 
66  };
67 
68 }
69 #endif
70  // end of doxygen group
72 
const std::map< unsigned, double > LinearZeroPointX(const std::vector< double > &trace)
Definition: AlgoCFD.cxx:240
std::vector< double > PedestalSigma_t
void Reset()
Implementation of AlgoCFD::reset() method.
Definition: AlgoCFD.cxx:49
double _end_thresh
Definition: AlgoCFD.h:63
virtual ~AlgoCFD()
Default destructor.
Definition: AlgoCFD.cxx:44
M::value_type trace(const M &m)
double _start_thresh
Definition: AlgoCFD.h:62
AlgoCFD(const std::string name="CFD")
Default constructor.
Definition: AlgoCFD.cxx:18
std::vector< short > Waveform_t
double _peak_thresh
Definition: AlgoCFD.h:61
bool RecoPulse(const pmtana::Waveform_t &, const pmtana::PedestalMean_t &, const pmtana::PedestalSigma_t &)
Implementation of AlgoCFD::reco() method.
Definition: AlgoCFD.cxx:56
Class definition file of PMTPulseRecoBase.
std::vector< double > PedestalMean_t