1 #ifndef __JTRIGGER__JGETRISETIME__
2 #define __JTRIGGER__JGETRISETIME__
17 namespace JPP {
using namespace JTRIGGER; }
38 for (
int i = 0; i <= 256; ++i) {
41 const double t1 =
p0() * exp(
p1()*sqrt(tot) +
p2()*tot) +
p3();
59 return *(this->begin());
60 else if (i >= (
int) this->size())
61 return *(this->rbegin());
67 static double p0() {
return 7.70824; }
68 static double p1() {
return 0.00879447; }
69 static double p2() {
return -0.0621101; }
70 static double p3() {
return -1.90226; }
JGetRiseTime()
Default constructor.
Compiler version dependent expressions, macros, etc.
static const JGetRiseTime getRiseTime
Function object for rise time evaluation.
Auxiliary class for rise time evaluation.
double operator()(const double tot) const
Get time of analogue signal to rise to discriminator threshold (so-called time slewing).