32 #include <boost/cstdint.hpp>
53 std::vector<double> &
breaks
69 breaks_.assign( breaks.begin(), breaks.end() );
101 std::vector<int32_t> & idx,
102 std::vector<double> & dist
116 dist[0] = dat2 - dat1;
120 for(
int64_t i = 0; it1 != (it2+1) ; i++, it1++){
121 idx[i] = ub1 + i - 1;
124 dist[i] = *(it1) - dat1;
128 dist[i] = *(it1) - *(it1-1);
132 dist[i] = dat2 - *(it1-1);
std::size_t operator()(double dat) const
Bin1D(std::vector< double > &breaks)
void breaks(double minMass, double maxMass, TMassComparator tmassComp, std::vector< double > &breaks, bool exact=false)
Segment mass range according to Mass Compare functor could be used to histogram a dataset or to compu...
const std::vector< double > & getBreaks() const
std::vector< double > breaks_
void setBreaks(const std::vector< double > &breaks)
void getBreaks(std::vector< double > &breaks) const
bool inRange(double dat) const
void operator()(double dat1, double dat2, std::vector< int32_t > &idx, std::vector< double > &dist) const