Default rt-relation class in the TRT: a 3rd degree polynomial.
More...
#include <DinesRtRelation.h>
|
| unsigned char | m_status |
| | status byte
|
| float | m_cal [4] |
| | calibration constants
|
Default rt-relation class in the TRT: a 3rd degree polynomial.
Definition at line 25 of file DinesRtRelation.h.
◆ Status
enumerates status
| Enumerator |
|---|
| Undefined | |
| Calibrated | |
Definition at line 30 of file RtRelation.h.
◆ DinesRtRelation() [1/4]
| TRTCond::DinesRtRelation::DinesRtRelation |
( |
| ) |
|
|
inline |
constructor
Definition at line 29 of file DinesRtRelation.h.
float m_cal[4]
calibration constants
unsigned char m_status
status byte
◆ DinesRtRelation() [2/4]
| TRTCond::DinesRtRelation::DinesRtRelation |
( |
const float * | cal, |
|
|
Status | stat = Calibrated ) |
|
inline |
constructor
Definition at line 31 of file DinesRtRelation.h.
const float * cal() const
return to calibration constants
void set(const float *cal)
set the calibration constants
◆ DinesRtRelation() [3/4]
| TRTCond::DinesRtRelation::DinesRtRelation |
( |
const std::vector< float > & | cal, |
|
|
Status | stat = Calibrated ) |
|
inline |
◆ DinesRtRelation() [4/4]
constructor
Definition at line 37 of file DinesRtRelation.h.
RtRelation()=default
constructors, desctructors, cloners
◆ ~DinesRtRelation()
| virtual TRTCond::DinesRtRelation::~DinesRtRelation |
( |
| ) |
|
|
inlinevirtual |
◆ cal()
| const float * TRTCond::DinesRtRelation::cal |
( |
| ) |
const |
|
inline |
◆ clone()
| virtual RtRelation * TRTCond::DinesRtRelation::clone |
( |
| ) |
const |
|
inlinevirtual |
◆ drdt()
| float TRTCond::DinesRtRelation::drdt |
( |
float | driftime | ) |
const |
|
virtual |
driftvelocity for given drifttime
Implements TRTCond::RtRelation.
Definition at line 33 of file DinesRtRelation.cxx.
34 {
35 double rmin0 =
m_cal[0];
38 double t_const =
m_cal[3];
39
40
42 0.5/std::sqrt((4*rho*rho*std::sin(v*(time-t_const)/(2*rho))*std::sin(v*(time-t_const)/(2*rho))-rmin0*rmin0)/(1-0.25*rmin0*rmin0))*
43 4*
rho*
rho/(1-0.25*rmin0*rmin0)*
44 2*std::sin(v*(time-t_const)/(2*rho))*
45 std::cos(v*(time-t_const)/(2*rho))*
47
49
50 }
virtual float drdt(float driftime) const
driftvelocity for given drifttime
◆ drifttime()
| float TRTCond::DinesRtRelation::drifttime |
( |
float | radius | ) |
const |
|
virtual |
◆ footprint()
| virtual size_t TRTCond::DinesRtRelation::footprint |
( |
| ) |
const |
|
inlinevirtual |
◆ isequal()
| bool TRTCond::DinesRtRelation::isequal |
( |
const RtRelation & | rhs | ) |
const |
|
virtual |
◆ operator=()
assignment operator
Definition at line 10 of file DinesRtRelation.cxx.
11 {
12 if ( this != &rhs){
15 }
16 return *this ;
17 }
◆ operator==() [1/2]
| bool TRTCond::DinesRtRelation::operator== |
( |
const DinesRtRelation & | rhs | ) |
const |
|
inline |
equality operator
Definition at line 47 of file DinesRtRelation.h.
47 {
48 return (&rhs ==
this) || memcmp(
m_cal, rhs.m_cal, 4*
sizeof(
float) )==0 ;
49 }
◆ operator==() [2/2]
| bool TRTCond::RtRelation::operator== |
( |
const RtRelation & | rhs | ) |
const |
|
inlineinherited |
Definition at line 54 of file RtRelation.h.
virtual bool isequal(const RtRelation &rhs) const =0
equality operator
◆ radius()
| float TRTCond::DinesRtRelation::radius |
( |
float | driftime | ) |
const |
|
virtual |
radius for given drifttime
Implements TRTCond::RtRelation.
Definition at line 20 of file DinesRtRelation.cxx.
21 {
22 double rmin0 =
m_cal[0];
25 double t_const =
m_cal[3];
26 double r_squared = (4*
rho*
rho*std::sin(v*(time-t_const)/(2*rho))-rmin0*rmin0)/(1-0.25*rmin0*rmin0);
28 if (r_squared>0)
r = std::sqrt(r_squared);
29
31 }
◆ read()
| std::istream & TRTCond::DinesRtRelation::read |
( |
std::istream & | is | ) |
|
|
virtual |
◆ set()
| void TRTCond::DinesRtRelation::set |
( |
const float * | cal | ) |
|
|
inlineprivate |
◆ setstatus()
| void TRTCond::DinesRtRelation::setstatus |
( |
int | status | ) |
|
|
inlineprivate |
set the status
Definition at line 80 of file DinesRtRelation.h.
virtual int status() const
status flag of (calibrated) rtrelation
◆ status()
| virtual int TRTCond::DinesRtRelation::status |
( |
| ) |
const |
|
inlinevirtual |
◆ write()
| std::ostream & TRTCond::DinesRtRelation::write |
( |
std::ostream & | os | ) |
const |
|
virtual |
◆ m_cal
| float TRTCond::DinesRtRelation::m_cal[4] |
|
private |
◆ m_status
| unsigned char TRTCond::DinesRtRelation::m_status |
|
private |
The documentation for this class was generated from the following files: