#include <calib_barrel_atten.h>
Definition at line 8 of file calib_barrel_atten.h.
◆ calib_barrel_atten()
calib_barrel_atten::calib_barrel_atten |
( |
| ) |
|
|
inline |
◆ calculate_funcs()
void calib_barrel_atten::calculate_funcs |
( |
const Record * | r | ) |
|
|
inlinevirtual |
Implements TofCalib.
Definition at line 14 of file calib_barrel_atten.h.
14 {
15 double z = r->
zrhit();
16 double q1 = r->
qleft();
18
19 if( q1>0.0 && q2>0.0 ) {
22 }
23 else {
26 }
27
28 return;
29 }
◆ calculate_y()
void calib_barrel_atten::calculate_y |
( |
const Record * | r | ) |
|
|
inlinevirtual |
◆ updateData()
void calib_barrel_atten::updateData |
( |
RecordSet *& | data | ) |
|
|
inlinevirtual |
Implements TofCalib.
Definition at line 43 of file calib_barrel_atten.h.
43 {
44 if(
data->size() > 0 ) {
45 std::vector<Record*>::iterator
iter =
data->begin();
47 double z = (*iter)->zrhit();
48 double sintheta = (*iter)->theta();
49 double q1 = (*iter)->qleft();
50 double q2 = (*iter)->qright();
51 double latten = 1.0/
X[0];
52 double a1overa2 =
exp(
X[1]);
53 double q0 = sintheta*(q1*
exp((115.0-z)/latten)+q2*
exp((115.0+z)/latten))/(1.0+a1overa2);
54 (*iter)->setQ0( q0 );
55 }
56 }
57 return;
58 }
EvtComplex exp(const EvtComplex &c)
The documentation for this class was generated from the following file: