StRoot
1
|
#include <StDetectorDbInterpolator.h>
Public Member Functions | |
StDetectorDbInterpolator (unsigned int numEntries, unsigned int *times, T *array) | |
Constructor for time interpolator. | |
T | interpolate (unsigned int time) |
Interpolates value based on timestamp. | |
T | getLowerValue (unsigned int time) |
This acts as the interpolator using two arrays. The first array is an sorted unsigned int array of times and the second is a templated array that holds the values corresponding to the times array.
The time array must be sorted in ascending order.
The interpolater either does a straight line interpolation or it can return the value at the first known tme before the user queryed time.
This should never be used by the user and is internal the other memebers in this librbary
Definition at line 19 of file StDetectorDbInterpolator.h.
T StDetectorDbInterpolator< T >::getLowerValue | ( | unsigned int | time | ) |
Gets the lower value of the passed in timestamp So, if there is a value at 1 and 10 and the user enters time 6, the function returns the value at 1
Definition at line 66 of file StDetectorDbInterpolator.h.