FairRoot/PandaRoot
PndEmcExpPulseshape.cxx
Go to the documentation of this file.
1 //-----------------------------------------------------------
2 // Description:
3 // Exponential pulseshape
4 //-----------------------------------------------------------
5 
6 
7 // This Class' Header ------------------
8 #include "PndEmcExpPulseshape.h"
9 
10 // C/C++ Headers ----------------------
11 #include "assert.h"
12 #include "math.h"
13 
14 // Collaborating Class Headers --------
15 
16 
17 // Class Member definitions -----------
18 
20  : fTdif(Tdif)
21 {
22 }
23 
24 double
26  const double amp, const double toffset) const {
27  return general_solution(t,amp,toffset);
28 }
29 
30 double
32  const double amp,
33  const double toffset) const
34 {
35  double dt=t-toffset;
36  if(dt<0) return 0; // piecewise definition!
37  return amp*exp(-dt/fTdif);
38 }
friend F32vec4 exp(const F32vec4 &a)
Definition: P4_F32vec4.h:109
double general_solution(const double t, const double amp, const double toffset) const
virtual double operator()(const double t, const double amp, const double toffset) const
TTree * t
Definition: bump_analys.C:13