LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 
19 
20 #include "PMTPedestalBase.h"
21 namespace fhicl {
22  class ParameterSet;
23 }
24 
25 #include <string>
26 
27 namespace pmtana {
28 
33  class PedAlgoEdges : public PMTPedestalBase {
34 
35  public:
37  PedAlgoEdges(const std::string name = "PedEdges");
38 
40  PedAlgoEdges(const fhicl::ParameterSet& pset, const std::string name = "PedEdges");
41  //PedAlgoEdges(const ::fcllite::PSet &pset,const std::string name="PedEdges");
42 
44  enum PED_METHOD {
45  kHEAD = 0,
47  kBOTH
48  };
49 
50  protected:
52  bool ComputePedestal(const pmtana::Waveform_t& wf,
53  pmtana::PedestalMean_t& mean_v,
54  pmtana::PedestalSigma_t& sigma_v);
55 
56  private:
57  size_t _nsample_front;
58  size_t _nsample_tail;
60  };
61 }
62 #endif
63  // end of doxygen group
Use last N samples.
Definition: PedAlgoEdges.h:46
std::vector< double > PedestalSigma_t
PED_METHOD _method
Methods.
Definition: PedAlgoEdges.h:59
Class definition file of PMTPedestalBase.
parameter set interface
std::vector< short > Waveform_t
PED_METHOD
enum to define algorithm options
Definition: PedAlgoEdges.h:44
size_t _nsample_tail
ADC sample in tail to be used
Definition: PedAlgoEdges.h:58
size_t _nsample_front
ADC sample in front to be used
Definition: PedAlgoEdges.h:57
std::vector< double > PedestalMean_t