18 std::vector<std::vector<double> >
GetWeight(art::Event&
e) {
20 for (
unsigned int inu=0;inu<wgh.size();inu++) {
21 double avgwgh=std::accumulate(wgh[inu].
begin(),wgh[inu].
end(),0.0)/wgh[inu].size();
24 *std::min_element(wgh[inu].
begin(),wgh[inu].
end()));
26 *std::max_element(wgh[inu].
begin(),wgh[inu].
end()));
44 #endif // _WEIGHT_T_H_
double std(const std::vector< short > &wf, const double ped_mean, size_t start, size_t nsample)
std::vector< std::vector< double > > GetWeight(art::Event &e)
std::string fWeightCalcType
auto end(FixedBins< T, C > const &) noexcept
auto begin(FixedBins< T, C > const &) noexcept
virtual std::vector< std::vector< double > > GetWeight(art::Event &e)=0