LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
PMTPedestalBase.h
Go to the documentation of this file.
1 
14 #ifndef larana_OPTICALDETECTOR_PMTPEDESTALBASE_H
15 #define larana_OPTICALDETECTOR_PMTPEDESTALBASE_H
16 
17 // STL
18 #include "OpticalRecoTypes.h"
19 #include <string>
20 
21 namespace pmtana
22 {
23 
29 
30  public:
31 
33  PMTPedestalBase(std::string name="noname");
34 
36  virtual ~PMTPedestalBase();
37 
39  const std::string& Name() const;
40 
42  bool Evaluate(const pmtana::Waveform_t& wf);
43 
45  double Mean(size_t i) const;
46 
48  double Sigma(size_t i) const;
49 
51  const pmtana::PedestalMean_t& Mean() const;
52 
54  const pmtana::PedestalSigma_t& Sigma() const;
55 
56  protected:
57 
63  pmtana::PedestalMean_t& mean_v,
64  pmtana::PedestalSigma_t& sigma_v) = 0;
65 
66  private:
67 
69  std::string _name;
70 
73 
76  };
77 }
78 #endif
79  // end of doxygen group
std::string _name
Name.
std::vector< double > PedestalSigma_t
PMTPedestalBase(std::string name="noname")
Default constructor.
const std::string & Name() const
Name getter.
pmtana::PedestalMean_t _mean_v
A variable holder for pedestal mean value.
virtual ~PMTPedestalBase()
Default destructor.
bool Evaluate(const pmtana::Waveform_t &wf)
Method to compute a pedestal.
virtual bool ComputePedestal(const ::pmtana::Waveform_t &wf, pmtana::PedestalMean_t &mean_v, pmtana::PedestalSigma_t &sigma_v)=0
std::vector< short > Waveform_t
pmtana::PedestalSigma_t _sigma_v
A variable holder for pedestal standard deviation.
const pmtana::PedestalSigma_t & Sigma() const
Getter of the pedestal standard deviation.
std::vector< double > PedestalMean_t
const pmtana::PedestalMean_t & Mean() const
Getter of the pedestal mean value.