LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
PedAlgoEdges.h
Go to the documentation of this file.
1 
15 #ifndef larana_OPTICALDETECTOR_PEDALGOEDGES_H
16 #define larana_OPTICALDETECTOR_PEDALGOEDGES_H
17 
18 // STL
19 #include "PMTPedestalBase.h"
20 #include "fhiclcpp/ParameterSet.h"
21 //#include "FhiclLite/PSet.h"
22 
23 namespace pmtana
24 {
25 
30  class PedAlgoEdges : public PMTPedestalBase{
31 
32  public:
33 
35  PedAlgoEdges(const std::string name="PedEdges");
36 
38  PedAlgoEdges(const fhicl::ParameterSet &pset,const std::string name="PedEdges");
39  //PedAlgoEdges(const ::fcllite::PSet &pset,const std::string name="PedEdges");
40 
42  virtual ~PedAlgoEdges();
43 
45  enum PED_METHOD{
46  kHEAD = 0,
49  };
50  protected:
51 
53  bool ComputePedestal( const pmtana::Waveform_t& wf,
54  pmtana::PedestalMean_t& mean_v,
55  pmtana::PedestalSigma_t& sigma_v);
56 
57  private:
58  size_t _nsample_front;
59  size_t _nsample_tail;
61 
62  };
63 }
64 #endif
65  // end of doxygen group
Use last N samples.
Definition: PedAlgoEdges.h:47
virtual ~PedAlgoEdges()
Default destructor.
std::vector< double > PedestalSigma_t
PED_METHOD _method
Methods.
Definition: PedAlgoEdges.h:60
Class definition file of PMTPedestalBase.
PedAlgoEdges(const std::string name="PedEdges")
Default constructor.
std::vector< short > Waveform_t
PED_METHOD
enum to define algorithm options
Definition: PedAlgoEdges.h:45
Calculate both and use the one with smaller RMS.
Definition: PedAlgoEdges.h:48
Use first N samples.
Definition: PedAlgoEdges.h:46
size_t _nsample_tail
ADC sample in tail to be used
Definition: PedAlgoEdges.h:59
size_t _nsample_front
ADC sample in front to be used
Definition: PedAlgoEdges.h:58
std::vector< double > PedestalMean_t
bool ComputePedestal(const pmtana::Waveform_t &wf, pmtana::PedestalMean_t &mean_v, pmtana::PedestalSigma_t &sigma_v)
Method to compute a pedestal of the input waveform using "nsample" ADC samples from "start" index...