LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
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 #include <cstddef>
6 namespace pmtana {
7 
8  double mean(const std::vector<short>& wf, size_t start=0, size_t nsample=0);
9 
10  double edge_aware_mean(const std::vector<short>& wf, int start, int end);
11 
12  double std(const std::vector<short>& wf, const double ped_mean, size_t start=0, size_t nsample=0);
13 
14  double BinnedMaxOccurrence(const PedestalMean_t& mean_v,const size_t nbins);
15 
16  double BinnedMaxTH1D(const std::vector<double>& v ,int bins);
17 
18  int sign(double val);
19 
20 }
21 
22 #endif
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
Definition: UtilFunc.cxx:44
double BinnedMaxOccurrence(const PedestalMean_t &mean_v, const size_t nbins)
Definition: UtilFunc.cxx:61
double edge_aware_mean(const std::vector< short > &wf, int start, int end)
Definition: UtilFunc.cxx:27
int sign(double val)
Definition: UtilFunc.cxx:106
double mean(const std::vector< short > &wf, size_t start, size_t nsample)
Definition: UtilFunc.cxx:15
std::vector< evd::details::RawDigitInfo_t >::const_iterator end(RawDigitCacheDataClass const &cache)
std::vector< double > PedestalMean_t
double BinnedMaxTH1D(const std::vector< double > &v, int bins)
Definition: UtilFunc.cxx:114