Jpp test-rotations-old
the software that should make you happy
|
Dynamic position calibration. More...
#include <JDynamics.hh>
Public Types | |
enum | { NUMBER_OF_POINTS = 7 , NUMBER_OF_DEGREES = 2 } |
typedef JACOUSTICS::JGeometry | JGeometry |
typedef JTOOLS::JElement2D< double, JACOUSTICS::JMODEL::JString > | element_type |
typedef JTOOLS::JPolfitFunction1D< NUMBER_OF_POINTS, NUMBER_OF_DEGREES, element_type, JTOOLS::JCollection > | function_type |
typedef JTOOLS::JHashMap< int, function_type > | data_type |
typedef data_type::const_iterator | const_iterator |
typedef data_type::const_reverse_iterator | const_reverse_iterator |
typedef std::pair< T, T > | pair_type |
typedef JRange< T, JComparator_t > | range_type |
typedef JLANG::JClass< T >::argument_type | argument_type |
typedef T | key_type |
typedef T | mapped_type |
Public Member Functions | |
JPosition (const JDetector &detector, const double Tmax_s) | |
Constructor. | |
void | load (JObjectIterator< JACOUSTICS::JEvt > &input) |
Load calibration data. | |
bool | empty () const |
empty | |
size_t | size () const |
size | |
const_iterator | begin () const |
begin of calibration data | |
const_iterator | end () const |
end of calibration data | |
const_reverse_iterator | rbegin () const |
begin of reverse of calibration data | |
const_reverse_iterator | rend () const |
begin of reverse of calibration data | |
double | getCoverage (const JDetector &detector, const double t1_s) const |
Get coverage. | |
const JGeometry & | getGeometry () const |
Get detector geometry. | |
bool | update (JDetector &detector, const double t1_s) |
Calibrate given detector at given UTC time. | |
void | reset () |
Reset. | |
void | set (const double t0_s) |
Set. | |
const JUTCTimeRange & | getUTCTimeRange () const |
Get UTC time range. | |
JUTCTimeRange & | getUTCTimeRange () |
Get UTC time range. | |
void | setUTCTimeRange (const JRange< double > &timerange) |
Set UTC time range. | |
operator pair_type () const | |
Type conversion operator. | |
const range_type & | getRange () const |
Get range. | |
void | setRange (const range_type &range) |
Set range. | |
void | setRange (argument_type x, argument_type y) |
Set lower and upper limit. | |
template<class R > | |
void | setRange (R first, R second) |
Set range. | |
template<class JElement_t , class JAllocator_t > | |
void | setRange (const array_type< JElement_t, JAllocator_t > &buffer) |
Set lower and upper limit according to input data. | |
T | getLowerLimit () const |
Get lower limit. | |
T | getUpperLimit () const |
Get upper limit. | |
void | setLowerLimit (argument_type x) |
Set lower limit. | |
void | setUpperLimit (argument_type y) |
Set upper limit. | |
void | fixLowerLimit (argument_type x) |
Fix lower limit. | |
void | fixUpperLimit (argument_type y) |
Fix upper limit. | |
bool | equals (const range_type &range) const |
Equal method. | |
T | getLength () const |
Get length (difference between upper and lower limit). | |
void | setLength (argument_type length) |
Set length (difference between upper and lower limit). | |
bool | is_valid () const |
Check validity of range. | |
bool | in_range (argument_type x) const |
Test whether value is inside range. | |
bool | operator() (argument_type x) const |
Test whether value is inside range. | |
T | constrain (argument_type x) const |
Constrain value to range. | |
T | mod (argument_type x) const |
Modulo value with respect to range. | |
bool | overlap (const range_type &range) const |
Test overlap with given range. | |
range_type & | include (argument_type x) |
Include given value to range. | |
range_type & | join (const range_type &range) |
Join ranges. | |
range_type & | combine (const range_type &range) |
Combine ranges. | |
range_type & | add (argument_type x) |
Add offset. | |
range_type & | add (const range_type &range) |
Add offsets. | |
range_type & | sub (argument_type x) |
Subtract offset. | |
range_type & | sub (const range_type &range) |
Subtract offsets. | |
range_type & | mul (const double factor) |
Multiply range. | |
JFirst_t & | mul (const JSecond_t &object) |
Multiply with object. | |
range_type & | div (const double factor) |
Divide range. | |
const key_type & | getKey () const |
const mapped_type & | getValue () const |
mapped_type & | getValue () |
Static Public Member Functions | |
static T | getMinimum () |
Get minimum possible value. | |
static T | getMaximum () |
Get maximum possible value. | |
static JRange< T, JComparator_t > | DEFAULT_RANGE () |
Default range. | |
Public Attributes | |
JComparator_t | compare |
Function object for comparisons. | |
T | first |
T | second |
Protected Member Functions | |
template<class R > | |
void | setRange (R first, R second, const JLANG::JBool< false > &option) |
Set range. | |
template<class R > | |
void | setRange (R first, R second, const JLANG::JBool< true > &option) |
Set range. | |
Protected Attributes | |
JGeometry | geometry |
data_type | calibration |
Dynamic position calibration.
Definition at line 311 of file JDynamics.hh.
Definition at line 319 of file JDynamics.hh.
JTOOLS::JElement2D<double, JACOUSTICS::JMODEL::JString> JDYNAMICS::JDynamics::JPosition::element_type |
Definition at line 321 of file JDynamics.hh.
JTOOLS::JPolfitFunction1D<NUMBER_OF_POINTS, NUMBER_OF_DEGREES, element_type, JTOOLS::JCollection> JDYNAMICS::JDynamics::JPosition::function_type |
Definition at line 324 of file JDynamics.hh.
Definition at line 326 of file JDynamics.hh.
Definition at line 328 of file JDynamics.hh.
Definition at line 329 of file JDynamics.hh.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
anonymous enum |
Enumerator | |
---|---|
NUMBER_OF_POINTS | number of points for interpolation |
NUMBER_OF_DEGREES | number of degrees for interpolation |
Definition at line 314 of file JDynamics.hh.
|
inline |
Constructor.
detector | detector |
Tmax_s | applicability period of calibration [s] |
Definition at line 338 of file JDynamics.hh.
|
inline |
Load calibration data.
input | calibration data |
Definition at line 356 of file JDynamics.hh.
|
inline |
empty
Definition at line 376 of file JDynamics.hh.
|
inline |
size
Definition at line 377 of file JDynamics.hh.
|
inline |
begin of calibration data
Definition at line 378 of file JDynamics.hh.
|
inline |
end of calibration data
Definition at line 379 of file JDynamics.hh.
|
inline |
begin of reverse of calibration data
Definition at line 380 of file JDynamics.hh.
|
inline |
begin of reverse of calibration data
Definition at line 381 of file JDynamics.hh.
|
inline |
Get coverage.
detector | detector |
t1_s | UTC time [s] |
Definition at line 391 of file JDynamics.hh.
|
inline |
|
inline |
Calibrate given detector at given UTC time.
detector | detector (I/O) |
t1_s | UTC time [s] |
Definition at line 441 of file JDynamics.hh.
|
inlineinherited |
|
inlineinherited |
Set.
t0_s | UTC time [s] |
Definition at line 117 of file JDynamics.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Set UTC time range.
timerange | UTC time range |
Definition at line 85 of file JUTCTimeRange.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Set range.
range | range |
|
inlineinherited |
|
inlineinherited |
Set range.
The arguments could be values or iterators.
first | first |
second | second |
Definition at line 173 of file JRange.hh.
|
inlineinherited |
Set lower and upper limit according to input data.
buffer | input data |
Definition at line 187 of file JRange.hh.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Equal method.
range | range |
Definition at line 275 of file JRange.hh.
|
inlineinherited |
Get length (difference between upper and lower limit).
|
inlineinherited |
Set length (difference between upper and lower limit).
length | length |
|
inlineinherited |
Check validity of range.
|
inlineinherited |
Test whether value is inside range.
x | value |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Modulo value with respect to range.
x | value |
Definition at line 365 of file JRange.hh.
|
inlineinherited |
|
inlineinherited |
Include given value to range.
The new lower limit is the minimim of the original lower limit and given value and
the new upper limit is the maximum of the original upper limit and given value;
x | value |
Definition at line 397 of file JRange.hh.
|
inlineinherited |
Join ranges.
The new lower limit is the maximim of the two lower limits and
the new upper limit is the minimum of the two upper limits.
This operation results in an equal or smaller range and may result in an unphysical range (i.e. lower limit > upper limit).
range | range |
Definition at line 415 of file JRange.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Add offsets.
The new lower limit is the sum of the two lower limits and
the new upper limit is the sum of the two upper limits.
range | offset |
|
inlineinherited |
|
inlineinherited |
Subtract offsets.
The new lower limit is the difference of the two lower limits and
the new upper limit is the difference of the two upper limits.
range | offset |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inlinestaticinherited |
Get maximum possible value.
|
inlinestaticinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protected |
Definition at line 486 of file JDynamics.hh.
|
protected |
Definition at line 487 of file JDynamics.hh.
|
inherited |
|
inherited |
|
inherited |