AlgoSiPM.h
Go to the documentation of this file.
1 //=============================================================================
2 // AlgoSiPM.h
3 // This is a hit finding algorithm that makes an optical hit out of
4 // everything above threshold, but uses only the first peak to assign hit time
5 //
6 // Gleb Sinev, Duke, 2015
7 // Based on AlgoTreshold.h
8 //=============================================================================
9 
10 #ifndef ALGOSIPM_H
11 #define ALGOSIPM_H
12 
13 #include "fhiclcpp/fwd.h"
14 
15 #include "PMTPulseRecoBase.h"
17 
18 #include <string>
19 
20 namespace pmtana {
21 
22  class AlgoSiPM : public PMTPulseRecoBase {
23 
24  public:
25 
26  AlgoSiPM(const fhicl::ParameterSet &pset,const std::string name="AlgoSiPM");
27 
28  // Implementation of PMTPulseRecoBase::Reset() method
29  void Reset();
30 
31  // A method to set user-defined ADC threshold value
32  // void SetADCThreshold(double v) {_adc_thres = v;};
33 
34  // A method to set a multiplication factor to the pedestal standard deviation
35  // which is used as one of two input values to define a threshold
36  // void SetNSigma(double v) {_nsigma = v;};
37 
38  protected:
39 
40  bool RecoPulse( const pmtana::Waveform_t&,
42  const pmtana::PedestalSigma_t& );
43 
44  // A variable holder for a user-defined absolute ADC threshold value
45  double _adc_thres;
46 
47  // Minimum width for a hit to be recorded
49 
50  // Start recording hit information after this threshold is reached
51  double _2nd_thres;
52 
53  // Use this pedestal instead of the one given by the pedestal algorithm
54  double _pedestal;
55 
56  // A variable holder for a multiplicative factor for the pedestal
57  // standard deviation to define the threshold
58  // double _nsigma;
59 
60  };
61 
62 }
63 
64 #endif
static QCString name
Definition: declinfo.cpp:673
double _adc_thres
Definition: AlgoSiPM.h:45
std::vector< double > PedestalSigma_t
double _2nd_thres
Definition: AlgoSiPM.h:51
std::string string
Definition: nybbler.cc:12
bool RecoPulse(const pmtana::Waveform_t &, const pmtana::PedestalMean_t &, const pmtana::PedestalSigma_t &)
Definition: AlgoSiPM.cxx:36
std::vector< short > Waveform_t
AlgoSiPM(const fhicl::ParameterSet &pset, const std::string name="AlgoSiPM")
Definition: AlgoSiPM.cxx:12
Class definition file of PMTPulseRecoBase.
void Reset()
A method to be called event-wise to reset parameters.
Definition: AlgoSiPM.cxx:28
std::vector< double > PedestalMean_t
double _pedestal
Definition: AlgoSiPM.h:54