LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
PedAlgoRollingMean.h
Go to the documentation of this file.
1 
15 #ifndef larana_OPTICALDETECTOR_PEDALGOROLLINGMEAN_H
16 #define larana_OPTICALDETECTOR_PEDALGOROLLINGMEAN_H
17 
18 #include "PMTPedestalBase.h"
19 namespace fhicl {
20  class ParameterSet;
21 }
22 
24 
25 #include <string>
26 
27 namespace pmtana {
28 
34 
35  public:
37  PedAlgoRollingMean(const std::string name = "PedRollingMean");
38 
40  PedAlgoRollingMean(const fhicl::ParameterSet& pset, const std::string name = "PedRollingMean");
41  //PedAlgoRollingMean(const ::fcllite::PSet &pset,const std::string name="PedRollingMean");
42 
43  protected:
45  bool ComputePedestal(const pmtana::Waveform_t& wf,
46  pmtana::PedestalMean_t& mean_v,
47  pmtana::PedestalSigma_t& sigma_v);
48 
49  private:
50  size_t _sample_size;
51  float _max_sigma;
54 
55  // int _range;
56  // double _divisions;
57  double _threshold;
60 
62 
63  //double _random_shift;
64  };
65 }
66 #endif
67  // end of doxygen group
std::vector< double > PedestalSigma_t
Class definition file of PMTPedestalBase.
parameter set interface
std::vector< short > Waveform_t
std::vector< double > PedestalMean_t