LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
PedAlgoUB.h
Go to the documentation of this file.
1 
15 #ifndef larana_OPTICALDETECTOR_PEDALGOUB_H
16 #define larana_OPTICALDETECTOR_PEDALGOUB_H
17 
18 // STL
19 #include "PMTPedestalBase.h"
20 #include "fhiclcpp/ParameterSet.h"
21 //m #include "PedAlgoRollingMean.h"
22 #include "PedAlgoRmsSlider.h"
23 //#include "FhiclLite/PSet.h"
24 
25 namespace pmtana
26 {
27 
32  class PedAlgoUB : public PMTPedestalBase{
33 
34  public:
35 
37  PedAlgoUB(const std::string name="PedCD");
38 
40  PedAlgoUB(const fhicl::ParameterSet &pset,
41  //PedAlgoUB(const ::fcllite::PSet &pset,
42  const std::string name = "PedAlgoUB");
43 
45  virtual ~PedAlgoUB();
46 
47  protected:
48 
50  bool ComputePedestal( const pmtana::Waveform_t& wf,
51  pmtana::PedestalMean_t& mean_v,
52  pmtana::PedestalSigma_t& sigma_v);
53 
54  private:
55 
56 //m PedAlgoRollingMean _beamgatealgo;
58  unsigned int _beam_gate_samples;
59  };
60 }
61 #endif
62  // end of doxygen group
std::vector< double > PedestalSigma_t
PedAlgoRmsSlider _beamgatealgo
Definition: PedAlgoUB.h:57
virtual ~PedAlgoUB()
Default destructor.
Definition: PedAlgoUB.cxx:36
Class definition file of PMTPedestalBase.
unsigned int _beam_gate_samples
Definition: PedAlgoUB.h:58
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:41
PedAlgoUB(const std::string name="PedCD")
Default constructor.
Definition: PedAlgoUB.cxx:17
Class definition file of PedAlgoRmsSlider.
std::vector< double > PedestalMean_t