All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 namespace fhicl { class ParameterSet; }
20 
21 #include "PedAlgoRmsSlider.h"
22 
23 #include <string>
24 
25 namespace pmtana
26 {
27 
28  /**
29  \class PedAlgoUB
30  A class that calculates pedestal mean & standard deviation (here and elsewhere called as "RMS").
31  */
32  class PedAlgoUB : public PMTPedestalBase{
33 
34  public:
35 
36  /// Default constructor
37  PedAlgoUB(const std::string name="PedCD");
38 
39  ///Alternative ctor
40  PedAlgoUB(const fhicl::ParameterSet &pset,
41  //PedAlgoUB(const ::fcllite::PSet &pset,
42  const std::string name = "PedAlgoUB");
43 
44  protected:
45 
46  /// Method to compute a pedestal of the input waveform using "nsample" ADC samples from "start" index.
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 //m PedAlgoRollingMean _beamgatealgo;
55  unsigned int _beam_gate_samples;
56  };
57 }
58 #endif
59 
60 /** @} */ // end of doxygen group
std::vector< double > PedestalSigma_t
PedAlgoRmsSlider _beamgatealgo
Definition: PedAlgoUB.h:54
Class definition file of PMTPedestalBase.
unsigned int _beam_gate_samples
Definition: PedAlgoUB.h:55
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 &quot;nsample&quot; ADC samples from &quot;start&quot; index...
Definition: PedAlgoUB.cxx:33
PedAlgoUB(const std::string name="PedCD")
Default constructor.
Definition: PedAlgoUB.cxx:14
Class definition file of PedAlgoRmsSlider.
then echo fcl name
std::vector< double > PedestalMean_t