AlgoSSPLeadingEdge.h
Go to the documentation of this file.
1 //=========================================================
2 // AlgoSSPLeadingEdge.h
3 // This class provides the digital output for the
4 // Leading Edge Discrimintator, used in SSP module.
5 //
6 // Vitor Luzio, UFABC, 2017
7 // Based on AlgoSiPM.cxx
8 //=========================================================
9 
10 
11 
12 #ifndef AlgoSSPLeadingEdge_H
13 #define AlgoSSPLeadingEdge_H 1
14 
15 #include "fhiclcpp/ParameterSet.h"
17 #include <vector>
18 
19 namespace pmtana {
20 
22 
23  public:
24 
25  std::vector<int> trg_wvf;
26 
27  // Default constructor
28  AlgoSSPLeadingEdge(const fhicl::ParameterSet &pset,const std::string name="AlgoSSPLeadingEdge");
29 
30  // Default destructor
32 
33  // Implementation of PMTPulseRecoBase::Reset() method
34  void Reset();
35  protected:
36 
37  bool RecoPulse( const pmtana::Waveform_t&,
39  const pmtana::PedestalSigma_t& );
40 
41  // A variable holder for a user-defined absolute ADC threshold value
42  double _adc_thres;
43 
44  // Use this pedestal instead of the one given by the pedestal algorithm
45  double _pedestal;
46 
47  // Dealy window used in the Leading Edge Discriminator algorithm
48  int _dwindow;
49 
50  // Readout window and pre trigger for the SSP Leading Edge Discriminator
51  size_t _rdwindow;
52  size_t _pretrg;
53 
54  };
55 
56 }
57 
58 #endif
59 
bool RecoPulse(const pmtana::Waveform_t &, const pmtana::PedestalMean_t &, const pmtana::PedestalSigma_t &)
static QCString name
Definition: declinfo.cpp:673
std::vector< double > PedestalSigma_t
std::string string
Definition: nybbler.cc:12
void Reset()
A method to be called event-wise to reset parameters.
std::vector< short > Waveform_t
Class definition file of PMTPulseRecoBase.
std::vector< double > PedestalMean_t
AlgoSSPLeadingEdge(const fhicl::ParameterSet &pset, const std::string name="AlgoSSPLeadingEdge")