Belle II Software development
ShaperDSP_t::sv123shift_t Struct Reference

struct to encapsulate the electronic response from energy deposit
More...

#include <shaperdsp.h>

Inheritance diagram for ShaperDSP_t::sv123shift_t:
ShaperDSP_t::shaperdspshift_t

Public Member Functions

 sv123shift_t ()
 default constructor
 
 sv123shift_t (double _t, const ShaperDSP_t &_p)
 constructor from a ShaperDSP class
 
void init (double, const ShaperDSP_t &)
 initialise
 
sv123shift_toperator+= (const sv123shift_t &)
 increment operator
 
sv123shift_t operator+ (const sv123shift_t &) const
 addition operator
 
bool validshift (const sv123shift_t &x) const
 check for a valid shift
 

Public Attributes

double t
 time

 
double s0
 sin of the first Bessel stage

 
double c0
 cos of the first Bessel stage

 
double s1
 sin of the second Bessel stage

 
double c1
 cos of the second Bessel stage

 
double e0
 exponent factor for first Bessel stage

 
double e1
 exponent factor for second Bessel stage

 
double es
 first exponent factor for tail part of the signal.
 
double ed
 second exponent factor for tail part of the signal.
 

Detailed Description

struct to encapsulate the electronic response from energy deposit

Definition at line 30 of file shaperdsp.h.

Constructor & Destructor Documentation

◆ sv123shift_t() [1/2]

sv123shift_t ( )
inline

default constructor

Definition at line 50 of file shaperdsp.h.

◆ sv123shift_t() [2/2]

sv123shift_t ( double  _t,
const ShaperDSP_t _p 
)
inline

constructor from a ShaperDSP class

Definition at line 51 of file shaperdsp.h.

Member Function Documentation

◆ init()

void init ( double  _t,
const ShaperDSP_t _p 
)

initialise

Definition at line 30 of file shaperdsp.cc.

31{
32 t = _t;
33 sincos(t * _p._dw0, &s0, &c0);
34 sincos(t * _p._dw1, &s1, &c1);
35 e0 = exp(-t * _p._dks0);
36 e1 = exp(-t * _p._dks1);
37 es = exp(-t * _p._ds);
38 ed = exp(-t * _p._dd);
39}
double _dw0
circular frequency of the first Bessel stage
Definition: shaperdsp.h:90
double _dks1
decrement of the second Bessel stage
Definition: shaperdsp.h:96
double _dw1
circular frequency of the second Bessel stage
Definition: shaperdsp.h:92
double _ds
inverse scintillation decay time
Definition: shaperdsp.h:98
double _dd
inverse time of the differential stage
Definition: shaperdsp.h:100
double _dks0
decrement of the first Bessel stage
Definition: shaperdsp.h:94
double e0
exponent factor for first Bessel stage
Definition: shaperdsp.h:42
double es
first exponent factor for tail part of the signal.
Definition: shaperdsp.h:46
double c0
cos of the first Bessel stage
Definition: shaperdsp.h:36
double s1
sin of the second Bessel stage
Definition: shaperdsp.h:38
double ed
second exponent factor for tail part of the signal.
Definition: shaperdsp.h:48
double c1
cos of the second Bessel stage
Definition: shaperdsp.h:40
double s0
sin of the first Bessel stage
Definition: shaperdsp.h:34
double e1
exponent factor for second Bessel stage
Definition: shaperdsp.h:44

◆ operator+()

ShaperDSP_t::sv123shift_t operator+ ( const sv123shift_t r) const

addition operator

Definition at line 62 of file shaperdsp.cc.

63{
65 a.t = t + r.t;
66
67 a.c0 = r.c0 * c0 - r.s0 * s0;
68 a.s0 = r.c0 * s0 + r.s0 * c0;
69 a.c1 = r.c1 * c1 - r.s1 * s1;
70 a.s1 = r.c1 * s1 + r.s1 * c1;
71
72 a.e0 = e0 * r.e0;
73 a.e1 = e1 * r.e1;
74 a.es = es * r.es;
75 a.ed = ed * r.ed;
76 return a;
77}
sv123shift_t()
default constructor
Definition: shaperdsp.h:50

◆ operator+=()

ShaperDSP_t::sv123shift_t & operator+= ( const sv123shift_t r)

increment operator

Definition at line 41 of file shaperdsp.cc.

42{
43 t += r.t;
44
45 double c0r = r.c0 * c0 - r.s0 * s0;
46 double s0r = r.c0 * s0 + r.s0 * c0;
47 c0 = c0r;
48 s0 = s0r;
49
50 double c1r = r.c1 * c1 - r.s1 * s1;
51 double s1r = r.c1 * s1 + r.s1 * c1;
52 c1 = c1r;
53 s1 = s1r;
54
55 e0 *= r.e0;
56 e1 *= r.e1;
57 es *= r.es;
58 ed *= r.ed;
59 return *this;
60}

◆ validshift()

bool validshift ( const sv123shift_t x) const
inline

check for a valid shift

Definition at line 55 of file shaperdsp.h.

Member Data Documentation

◆ c0

double c0

cos of the first Bessel stage

Definition at line 36 of file shaperdsp.h.

◆ c1

double c1

cos of the second Bessel stage

Definition at line 40 of file shaperdsp.h.

◆ e0

double e0

exponent factor for first Bessel stage

Definition at line 42 of file shaperdsp.h.

◆ e1

double e1

exponent factor for second Bessel stage

Definition at line 44 of file shaperdsp.h.

◆ ed

double ed

second exponent factor for tail part of the signal.

Time of the differential stage

Definition at line 48 of file shaperdsp.h.

◆ es

double es

first exponent factor for tail part of the signal.

Scintillation decay time

Definition at line 46 of file shaperdsp.h.

◆ s0

double s0

sin of the first Bessel stage

Definition at line 34 of file shaperdsp.h.

◆ s1

double s1

sin of the second Bessel stage

Definition at line 38 of file shaperdsp.h.

◆ t

double t

time

Definition at line 32 of file shaperdsp.h.


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