All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UtilFunc.h
Go to the documentation of this file.
1 #ifndef larana_OPTICALDETECTOR_UTILFUNC_H
2 #define larana_OPTICALDETECTOR_UTILFUNC_H
3 
4 #include "OpticalRecoTypes.h"
5 
6 #include <cstddef>
7 #include <vector>
8 
9 namespace pmtana {
10 
11  double mean(const std::vector<short>& wf, size_t start=0, size_t nsample=0);
12 
13  double edge_aware_mean(const std::vector<short>& wf, int start, int end);
14 
15  double std(const std::vector<short>& wf, const double ped_mean, size_t start=0, size_t nsample=0);
16 
17  double BinnedMaxOccurrence(const PedestalMean_t& mean_v,const size_t nbins);
18 
19  double BinnedMaxTH1D(const std::vector<double>& v ,int bins);
20 
21  int sign(double val);
22 
23 }
24 
25 #endif
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
Definition: UtilFunc.cxx:42
double BinnedMaxOccurrence(const PedestalMean_t &mean_v, const size_t nbins)
Definition: UtilFunc.cxx:59
double edge_aware_mean(const std::vector< short > &wf, int start, int end)
Definition: UtilFunc.cxx:25
auto end(FixedBins< T, C > const &) noexcept
Definition: FixedBins.h:585
int sign(double val)
Definition: UtilFunc.cxx:104
double mean(const std::vector< short > &wf, size_t start, size_t nsample)
Definition: UtilFunc.cxx:13
std::vector< double > PedestalMean_t
double BinnedMaxTH1D(const std::vector< double > &v, int bins)
Definition: UtilFunc.cxx:112