Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
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
namespace
fhicl {
class
ParameterSet; }
20
21
#include "
larana/OpticalDetector/OpHitFinder/OpticalRecoTypes.h
"
22
23
#include <string>
24
25
namespace
pmtana
26
{
27
28
/**
29
\class PedAlgoRollingMean
30
A class that calculates pedestal mean & standard deviation (here and elsewhere called as "RMS").
31
*/
32
class
PedAlgoRollingMean
:
public
PMTPedestalBase
{
33
34
public
:
35
36
/// Default constructor
37
PedAlgoRollingMean
(
const
std::string
name
=
"PedRollingMean"
);
38
39
/// Alternative ctor
40
PedAlgoRollingMean
(
const
fhicl::ParameterSet &pset,
const
std::string
name
=
"PedRollingMean"
);
41
//PedAlgoRollingMean(const ::fcllite::PSet &pset,const std::string name="PedRollingMean");
42
43
protected
:
44
45
/// Method to compute a pedestal of the input waveform using "nsample" ADC samples from "start" index.
46
bool
ComputePedestal
(
const
pmtana::Waveform_t
& wf,
47
pmtana::PedestalMean_t
& mean_v,
48
pmtana::PedestalSigma_t
& sigma_v);
49
50
private
:
51
52
size_t
_sample_size
;
53
float
_max_sigma
;
54
float
_ped_range_max
;
55
float
_ped_range_min
;
56
57
// int _range;
58
// double _divisions;
59
double
_threshold
;
60
double
_diff_threshold
;
61
double
_diff_adc_count
;
62
63
int
_n_presamples
;
64
65
//double _random_shift;
66
67
};
68
}
69
#endif
70
71
/** @} */
// end of doxygen group
pmtana::PedAlgoRollingMean::_max_sigma
float _max_sigma
Definition:
PedAlgoRollingMean.h:53
pmtana::PedestalSigma_t
std::vector< double > PedestalSigma_t
Definition:
OpHitFinder/OpticalRecoTypes.h:10
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:54
pmtana::PedAlgoRollingMean::_ped_range_min
float _ped_range_min
Definition:
PedAlgoRollingMean.h:55
pmtana::Waveform_t
std::vector< short > Waveform_t
Definition:
OpHitFinder/OpticalRecoTypes.h:8
pmtana::PedAlgoRollingMean::_diff_adc_count
double _diff_adc_count
Definition:
PedAlgoRollingMean.h:61
pmtana::PedAlgoRollingMean::_sample_size
size_t _sample_size
Definition:
PedAlgoRollingMean.h:52
pmtana::PedAlgoRollingMean::_n_presamples
int _n_presamples
Definition:
PedAlgoRollingMean.h:63
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:60
OpticalRecoTypes.h
pmtana::PedAlgoRollingMean
Definition:
PedAlgoRollingMean.h:32
name
then echo fcl name
Definition:
sbndpoms_genfclwithrunnumber_maker.sh:220
pmtana::PedestalMean_t
std::vector< double > PedestalMean_t
Definition:
OpHitFinder/OpticalRecoTypes.h:9
pmtana::PedAlgoRollingMean::_threshold
double _threshold
Definition:
PedAlgoRollingMean.h:59
Generated by
1.8.5