1 #ifndef larana_OPTICALDETECTOR_UTILFUNC_H 2 #define larana_OPTICALDETECTOR_UTILFUNC_H 11 double mean(
const std::vector<short>& wf,
size_t start = 0,
size_t nsample = 0);
15 double std(
const std::vector<short>& wf,
16 const double ped_mean,
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
double BinnedMaxOccurrence(const PedestalMean_t &mean_v, const size_t nbins)
double edge_aware_mean(const std::vector< short > &wf, int start, int end)
decltype(auto) constexpr end(T &&obj)
ADL-aware version of std::end.
double mean(const std::vector< short > &wf, size_t start, size_t nsample)
std::vector< double > PedestalMean_t
double BinnedMaxTH1D(const std::vector< double > &v, int bins)