AlgoCFD.h
Go to the documentation of this file.
1 /**
2  * \file AlgoCFD.h
3  *
4  * \ingroup PulseReco
5  *
6  * \brief Class definition file of AlgoCFD
7  *
8  * @author vic - Nevis 2015
9  */
10 
11 /** \addtogroup PulseReco
12 
13 @{*/
14 
15 #ifndef ALGOCFD_H
16 #define ALGOCFD_H
17 
18 #include "PMTPulseRecoBase.h"
19 #include "fhiclcpp/fwd.h"
21 
22 #include <map>
23 #include <string>
24 #include <vector>
25 
26 namespace pmtana
27 {
28 
29  /**
30  \class AlgoCFD
31  This class implements threshold algorithm to AlgoCFD class.
32  */
33  class AlgoCFD : public PMTPulseRecoBase {
34 
35  public:
36 
37  /// Default constructor
38  AlgoCFD(const std::string name="CFD");
39 
40  /// Alternative ctor
41  AlgoCFD(const fhicl::ParameterSet &pset,const std::string name="CFD");
42  //AlgoCFD(const ::fcllite::PSet &pset,const std::string name="CFD");
43 
44  /// Implementation of AlgoCFD::reset() method
45  void Reset();
46 
47  protected:
48 
49  /// Implementation of AlgoCFD::reco() method
50  bool RecoPulse(const pmtana::Waveform_t&,
53 
54 
55  const std::map<unsigned,double> LinearZeroPointX(const std::vector<double>& trace);
56 
57  private:
58  float _F;
59  int _D;
60 
61  //int _number_presample;
62  double _peak_thresh;
63  double _start_thresh;
64  double _end_thresh;
65 
66 
67  };
68 
69 }
70 #endif
71 
72 /** @} */ // end of doxygen group
static QCString name
Definition: declinfo.cpp:673
const std::map< unsigned, double > LinearZeroPointX(const std::vector< double > &trace)
Definition: AlgoCFD.cxx:234
std::vector< double > PedestalSigma_t
void Reset()
Implementation of AlgoCFD::reset() method.
Definition: AlgoCFD.cxx:43
std::string string
Definition: nybbler.cc:12
double _end_thresh
Definition: AlgoCFD.h:64
M::value_type trace(const M &m)
double _start_thresh
Definition: AlgoCFD.h:63
AlgoCFD(const std::string name="CFD")
Default constructor.
Definition: AlgoCFD.cxx:17
std::vector< short > Waveform_t
double _peak_thresh
Definition: AlgoCFD.h:62
bool RecoPulse(const pmtana::Waveform_t &, const pmtana::PedestalMean_t &, const pmtana::PedestalSigma_t &)
Implementation of AlgoCFD::reco() method.
Definition: AlgoCFD.cxx:50
Class definition file of PMTPulseRecoBase.
std::vector< double > PedestalMean_t