1 #ifndef __SimFastTiming_FastTimingCommon_MTDShapeBase_h__ 2 #define __SimFastTiming_FastTimingCommon_MTDShapeBase_h__ 14 typedef std::vector<double>
DVec ;
20 double operator() (
double aTime )
const override ;
27 const float threshold1,
28 const float threshold2)
const;
37 unsigned int timeIndex(
double aTime )
const;
41 virtual void fillShape( DVec& aVec )
const = 0;
47 const double&
x1,
const double&
x2,
48 const double& y1,
const double& y2)
const;
const double qNSecPerBin_
Electronic response of the preamp.
unsigned int timeIndex(double aTime) const
unsigned int indexOfMax() const
static constexpr unsigned int kNBinsPerNSec
double operator()(double aTime) const override
static constexpr unsigned int k1NSecBinsTotal
std::array< float, 3 > timeAtThr(const float scale, const float threshold1, const float threshold2) const
static constexpr unsigned int kReadoutTimeInterval
double timeToRise() const override
double linear_interpolation(const double &y, const double &x1, const double &x2, const double &y1, const double &y2) const
std::vector< double > DVec
virtual void fillShape(DVec &aVec) const =0