#include <calib_barrel_atten.h>
◆ calib_barrel_atten() [1/2]
calib_barrel_atten::calib_barrel_atten |
( |
| ) |
|
|
inline |
◆ calib_barrel_atten() [2/2]
calib_barrel_atten::calib_barrel_atten |
( |
| ) |
|
|
inline |
◆ calculate_funcs() [1/2]
void calib_barrel_atten::calculate_funcs |
( |
const Record * |
r | ) |
|
|
inlinevirtual |
◆ calculate_funcs() [2/2]
void calib_barrel_atten::calculate_funcs |
( |
const Record * |
r | ) |
|
|
inlinevirtual |
◆ calculate_y() [1/2]
void calib_barrel_atten::calculate_y |
( |
const Record * |
r | ) |
|
|
inlinevirtual |
◆ calculate_y() [2/2]
void calib_barrel_atten::calculate_y |
( |
const Record * |
r | ) |
|
|
inlinevirtual |
◆ updateData() [1/2]
void calib_barrel_atten::updateData |
( |
RecordSet *& |
data | ) |
|
|
inlinevirtual |
Implements TofCalib.
Definition at line 43 of file InstallArea/include/tofcalgsec/tofcalgsec/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)
◆ updateData() [2/2]
void calib_barrel_atten::updateData |
( |
RecordSet *& |
data | ) |
|
|
inlinevirtual |
Implements TofCalib.
Definition at line 43 of file Tof/tofcalgsec/tofcalgsec-00-02-21/tofcalgsec/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 }
The documentation for this class was generated from the following files: