LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 // STL
19 #include "PMTPedestalBase.h"
20 #include "fhiclcpp/ParameterSet.h"
21 //#include "FhiclLite/PSet.h"
22 
23 namespace pmtana
24 {
25 
31 
32  public:
33 
35  PedAlgoRollingMean(const std::string name="PedRollingMean");
36 
38  PedAlgoRollingMean(const fhicl::ParameterSet &pset,const std::string name="PedRollingMean");
39  //PedAlgoRollingMean(const ::fcllite::PSet &pset,const std::string name="PedRollingMean");
40 
42  virtual ~PedAlgoRollingMean();
43 
44  protected:
45 
47  bool ComputePedestal( const pmtana::Waveform_t& wf,
48  pmtana::PedestalMean_t& mean_v,
49  pmtana::PedestalSigma_t& sigma_v);
50 
51  private:
52 
53  size_t _sample_size;
54  float _max_sigma;
57 
58  // int _range;
59  // double _divisions;
60  double _threshold;
62  double _diff_adc_count;
63 
65 
66  //double _random_shift;
67 
68  };
69 }
70 #endif
71  // end of doxygen group
std::vector< double > PedestalSigma_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...
Class definition file of PMTPedestalBase.
std::vector< short > Waveform_t
PedAlgoRollingMean(const std::string name="PedRollingMean")
Default constructor.
std::vector< double > PedestalMean_t
virtual ~PedAlgoRollingMean()
Default destructor.