1 #ifndef _Q_PULSE_TIMECONSTANTS_HH
2 #define _Q_PULSE_TIMECONSTANTS_HH
11 QPulseTimeConstants(
const std::vector<Diana::QInterval>& riseIntervals,
const std::vector<Diana::QInterval>& decayIntervals);
15 QError Compute(
const Diana::QVector& input,
const int maxpos,
const double baseLine, std::vector<double>& rise, std::vector<double>& decay);
18 std::vector<std::pair<double, int> >
fRise;
19 std::vector<std::pair<double, int> >
fDecay;
21 static bool PairComparatorAsc (
const std::pair<double, int> l,std::pair<double, int> r);
22 static bool PairComparatorDesc (
const std::pair<double, int> l,std::pair<double, int> r);
error class with error type and description
Interval of real numbers.
QPulseTimeConstants(const std::vector< Diana::QInterval > &riseIntervals, const std::vector< Diana::QInterval > &decayIntervals)
std::vector< std::pair< double, int > > fDecay
static bool PairComparatorAsc(const std::pair< double, int > l, std::pair< double, int > r)
static bool PairComparatorDesc(const std::pair< double, int > l, std::pair< double, int > r)
std::vector< std::pair< double, int > > fRise
QError Compute(const Diana::QVector &input, const int maxpos, const double baseLine, std::vector< double > &rise, std::vector< double > &decay)
Interface for vectors in Diana analysis.
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...