All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PedAlgoRollingMean.h
Go to the documentation of this file.
1 /**
2  * \file PedAlgoRollingMean.h
3  *
4  * \ingroup PulseReco
5  *
6  * \brief Class definition file of PedAlgoRollingMean
7  *
8  * @author Kazu, Vic - Nevis 2015
9  */
10 
11 /** \addtogroup PulseReco
12 
13 @{*/
14 
15 #ifndef larana_OPTICALDETECTOR_PEDALGOROLLINGMEAN_H
16 #define larana_OPTICALDETECTOR_PEDALGOROLLINGMEAN_H
17 
18 #include "PMTPedestalBase.h"
19 namespace fhicl { class ParameterSet; }
20 
22 
23 #include <string>
24 
25 namespace pmtana
26 {
27 
28  /**
29  \class PedAlgoRollingMean
30  A class that calculates pedestal mean & standard deviation (here and elsewhere called as "RMS").
31  */
33 
34  public:
35 
36  /// Default constructor
37  PedAlgoRollingMean(const std::string name="PedRollingMean");
38 
39  /// Alternative ctor
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:
44 
45  /// Method to compute a pedestal of the input waveform using "nsample" ADC samples from "start" index.
46  bool ComputePedestal( const pmtana::Waveform_t& wf,
47  pmtana::PedestalMean_t& mean_v,
48  pmtana::PedestalSigma_t& sigma_v);
49 
50  private:
51 
52  size_t _sample_size;
53  float _max_sigma;
56 
57  // int _range;
58  // double _divisions;
59  double _threshold;
62 
64 
65  //double _random_shift;
66 
67  };
68 }
69 #endif
70 
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 &quot;nsample&quot; ADC samples from &quot;start&quot; index...
Class definition file of PMTPedestalBase.
std::vector< short > Waveform_t
PedAlgoRollingMean(const std::string name="PedRollingMean")
Default constructor.
then echo fcl name
std::vector< double > PedestalMean_t