11 , start_bin(start_bin)
14 float start_content = signal.at(start_bin);
15 float end_content = signal.at(end_bin);
16 contents.resize(end_bin-start_bin+1);
18 for (
int i=start_bin; i<=
end_bin; i++){
19 float content = signal.at(i) - ((end_content - start_content)*(i-start_bin)/(end_bin-
start_bin) + start_content);
36 for (
size_t i=0;i!=
contents.size();i++){
46 for (
size_t i=0;i!=
contents.size();i++){
64 if (min_end_bin > min_start_bin){
67 for (
int i=min_start_bin; i<= min_end_bin; i++){
88 if (min_end_bin > min_start_bin){
110 std::vector<std::pair<int,int>> bins;
122 bins.push_back(std::make_pair(start,end));
std::vector< std::pair< int, int > > get_above_threshold(float th)
std::vector< float > contents
double get_average_heights()
decltype(auto) constexpr end(T &&obj)
ADL-aware version of std::end.
std::vector< float > & get_contents()
SignalROI(int plane, int chid, int start_bin, int end_bin, const Waveform::realseq_t &signal)
static int max(int a, int b)
bool overlap(SignalROI *roi)