Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larana
larana
OpticalDetector
OpHitFinder
PedAlgoRollingMean.h
Go to the documentation of this file.
1
/**
2
* \file PedAlgoRollingMean.h
3
*
4
* \ingroup PulseReco
5
*
6
* \brief Class definition file of PedAlgoRollingMean
7
*
8
* @author Kazu, Vic - Nevis 2015
9
*/
10
11
/** \addtogroup PulseReco
12
13
@{*/
14
15
#ifndef larana_OPTICALDETECTOR_PEDALGOROLLINGMEAN_H
16
#define larana_OPTICALDETECTOR_PEDALGOROLLINGMEAN_H
17
18
#include "
PMTPedestalBase.h
"
19
#include "
fhiclcpp/fwd.h
"
20
#include "
larana/OpticalDetector/OpHitFinder/OpticalRecoTypes.h
"
21
22
#include <string>
23
24
namespace
pmtana
25
{
26
27
/**
28
\class PedAlgoRollingMean
29
A class that calculates pedestal mean & standard deviation (here and elsewhere called as "RMS").
30
*/
31
class
PedAlgoRollingMean
:
public
PMTPedestalBase
{
32
33
public
:
34
35
/// Default constructor
36
PedAlgoRollingMean
(
const
std::string
name
=
"PedRollingMean"
);
37
38
/// Alternative ctor
39
PedAlgoRollingMean
(
const
fhicl::ParameterSet
&pset,
const
std::string
name
=
"PedRollingMean"
);
40
//PedAlgoRollingMean(const ::fcllite::PSet &pset,const std::string name="PedRollingMean");
41
42
protected
:
43
44
/// Method to compute a pedestal of the input waveform using "nsample" ADC samples from "start" index.
45
bool
ComputePedestal
(
const
pmtana::Waveform_t
& wf,
46
pmtana::PedestalMean_t
& mean_v,
47
pmtana::PedestalSigma_t
& sigma_v);
48
49
private
:
50
51
size_t
_sample_size
;
52
float
_max_sigma
;
53
float
_ped_range_max
;
54
float
_ped_range_min
;
55
56
// int _range;
57
// double _divisions;
58
double
_threshold
;
59
double
_diff_threshold
;
60
double
_diff_adc_count
;
61
62
int
_n_presamples
;
63
64
//double _random_shift;
65
66
};
67
}
68
#endif
69
70
/** @} */
// end of doxygen group
name
static QCString name
Definition:
declinfo.cpp:673
pmtana::PedAlgoRollingMean::_max_sigma
float _max_sigma
Definition:
PedAlgoRollingMean.h:52
pmtana::PedestalSigma_t
std::vector< double > PedestalSigma_t
Definition:
OpticalRecoTypes.h:10
string
std::string string
Definition:
nybbler.cc:12
pmtana::PedAlgoRollingMean::ComputePedestal
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:
PedAlgoRollingMean.cxx:50
PMTPedestalBase.h
Class definition file of PMTPedestalBase.
pmtana::PMTPedestalBase
Definition:
PMTPedestalBase.h:28
pmtana::PedAlgoRollingMean::_ped_range_max
float _ped_range_max
Definition:
PedAlgoRollingMean.h:53
pmtana::PedAlgoRollingMean::_ped_range_min
float _ped_range_min
Definition:
PedAlgoRollingMean.h:54
pmtana::Waveform_t
std::vector< short > Waveform_t
Definition:
OpticalRecoTypes.h:8
pmtana::PedAlgoRollingMean::_diff_adc_count
double _diff_adc_count
Definition:
PedAlgoRollingMean.h:60
pmtana::PedAlgoRollingMean::_sample_size
size_t _sample_size
Definition:
PedAlgoRollingMean.h:51
pmtana::PedAlgoRollingMean::_n_presamples
int _n_presamples
Definition:
PedAlgoRollingMean.h:62
pmtana
Definition:
AlgoSSPLeadingEdge.cc:14
pmtana::PedAlgoRollingMean::PedAlgoRollingMean
PedAlgoRollingMean(const std::string name="PedRollingMean")
Default constructor.
Definition:
PedAlgoRollingMean.cxx:16
pmtana::PedAlgoRollingMean::_diff_threshold
double _diff_threshold
Definition:
PedAlgoRollingMean.h:59
fwd.h
OpticalRecoTypes.h
pmtana::PedAlgoRollingMean
Definition:
PedAlgoRollingMean.h:31
pmtana::PedestalMean_t
std::vector< double > PedestalMean_t
Definition:
OpticalRecoTypes.h:9
pmtana::PedAlgoRollingMean::_threshold
double _threshold
Definition:
PedAlgoRollingMean.h:58
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11