PedAlgoUB.h
Go to the documentation of this file.
1 /**
2  * \file PedAlgoUB.h
3  *
4  * \ingroup PulseReco
5  *
6  * \brief Class definition file of PedAlgoUB
7  *
8  * @author Kazu, Vic - Nevis 2013
9  */
10 
11 /** \addtogroup PulseReco
12 
13 @{*/
14 
15 #ifndef larana_OPTICALDETECTOR_PEDALGOUB_H
16 #define larana_OPTICALDETECTOR_PEDALGOUB_H
17 
18 #include "PMTPedestalBase.h"
19 #include "fhiclcpp/fwd.h"
20 #include "PedAlgoRmsSlider.h"
21 
22 #include <string>
23 
24 namespace pmtana
25 {
26 
27  /**
28  \class PedAlgoUB
29  A class that calculates pedestal mean & standard deviation (here and elsewhere called as "RMS").
30  */
31  class PedAlgoUB : public PMTPedestalBase{
32 
33  public:
34 
35  /// Default constructor
36  PedAlgoUB(const std::string name="PedCD");
37 
38  ///Alternative ctor
39  PedAlgoUB(const fhicl::ParameterSet &pset,
40  //PedAlgoUB(const ::fcllite::PSet &pset,
41  const std::string name = "PedAlgoUB");
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 //m PedAlgoRollingMean _beamgatealgo;
54  unsigned int _beam_gate_samples;
55  };
56 }
57 #endif
58 
59 /** @} */ // end of doxygen group
static QCString name
Definition: declinfo.cpp:673
std::vector< double > PedestalSigma_t
PedAlgoRmsSlider _beamgatealgo
Definition: PedAlgoUB.h:53
std::string string
Definition: nybbler.cc:12
Class definition file of PMTPedestalBase.
unsigned int _beam_gate_samples
Definition: PedAlgoUB.h:54
std::vector< short > Waveform_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...
Definition: PedAlgoUB.cxx:33
PedAlgoUB(const std::string name="PedCD")
Default constructor.
Definition: PedAlgoUB.cxx:14
Class definition file of PedAlgoRmsSlider.
std::vector< double > PedestalMean_t