Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
JTRIGGER::JGetRiseTime Struct Reference

Auxiliary class for rise time evaluation. More...

#include <JGetRiseTime.hh>

Inheritance diagram for JTRIGGER::JGetRiseTime:
std::vector< double >

Public Member Functions

 JGetRiseTime ()
 Default constructor. More...
 
double operator() (const double tot) const
 Get time of analogue signal to rise to discriminator threshold (so-called time slewing). More...
 

Static Public Member Functions

static double p0 ()
 
static double p1 ()
 
static double p2 ()
 
static double p3 ()
 

Detailed Description

Auxiliary class for rise time evaluation.

\[ \Delta t = p_0 \exp(p_1 \sqrt{x} + p_2 x) ~+~ p_3 \]

where $\Delta t$ (ns) is the time it takes the analogue pulse to rise to the discriminator threshold and $x$ the time over threshold (ns).

Definition at line 30 of file JGetRiseTime.hh.

Constructor & Destructor Documentation

JTRIGGER::JGetRiseTime::JGetRiseTime ( )
inline

Default constructor.

Definition at line 36 of file JGetRiseTime.hh.

37  {
38  for (int i = 0; i <= 256; ++i) {
39 
40  const double tot = i;
41  const double t1 = p0() * exp(p1()*sqrt(tot) + p2()*tot) + p3();
42 
43  this->push_back(t1);
44  }
45  }
static double p1()
Definition: JGetRiseTime.hh:68
static double p0()
Definition: JGetRiseTime.hh:67
static double p3()
Definition: JGetRiseTime.hh:70
static double p2()
Definition: JGetRiseTime.hh:69

Member Function Documentation

double JTRIGGER::JGetRiseTime::operator() ( const double  tot) const
inline

Get time of analogue signal to rise to discriminator threshold (so-called time slewing).

Parameters
tottime over threshold [ns]
Returns
rise time [ns]

Definition at line 54 of file JGetRiseTime.hh.

55  {
56  int i = (int) tot;
57 
58  if (i < 0)
59  return *(this->begin());
60  else if (i >= (int) this->size())
61  return *(this->rbegin());
62  else
63  return (*this)[i];
64  }
static double JTRIGGER::JGetRiseTime::p0 ( )
inlinestatic

Definition at line 67 of file JGetRiseTime.hh.

67 { return 7.70824; }
static double JTRIGGER::JGetRiseTime::p1 ( )
inlinestatic

Definition at line 68 of file JGetRiseTime.hh.

68 { return 0.00879447; }
static double JTRIGGER::JGetRiseTime::p2 ( )
inlinestatic

Definition at line 69 of file JGetRiseTime.hh.

69 { return -0.0621101; }
static double JTRIGGER::JGetRiseTime::p3 ( )
inlinestatic

Definition at line 70 of file JGetRiseTime.hh.

70 { return -1.90226; }

The documentation for this struct was generated from the following file: