The good way of handling temperature from data base. More...
#include <TemperatureMap.hxx>
Public Member Functions | |
TemperatureMap (double *T=0, int NT=0) | |
TemperatureMap (const TemperatureMap &TM) | |
copy constructor More... | |
~TemperatureMap () | |
destructor More... | |
int | AddUsedTemp (double T) |
int | GetNumberOfUsedfTemperatures () |
returns number of used temperatures More... | |
void | SetDeltaTPrecision (double deltaT=50) |
set the temperature precision in K More... | |
double | GetDeltaTPrecision () |
returns the temperature precision More... | |
double | Score (double WantedT, double FoundT) |
returns a score (max=1) More... | |
Private Member Functions | |
void | InitUsedTemperature () |
Init fUsedTemperature to false. More... | |
Private Attributes | |
int | fNumberOfDataBaseTemp |
Number of temperatures in the map. More... | |
double * | fTemperature |
Array of temperatures (the Map) More... | |
bool * | fUsedTemperature |
Array of used temperature corresponding to the map. More... | |
double | fDeltaTPrecision |
Precision to distinguish temperatures. More... | |
The good way of handling temperature from data base.
User set its own temperature map (array) or uses the default on: T[0]=0K, T[1]=300k, T[2]=400k,... T[18]=1900k; A precision parameter (default is 50K) is used to compare the a given temperature T to the map.
TemperatureMap::TemperatureMap | ( | double * | T = 0 , |
int | NT = 0 |
||
) |
Normal constructor. if NT=0, default temperature map is built.
T | : array of temperature (the map) in K |
NT | : size of this array |
TemperatureMap::TemperatureMap | ( | const TemperatureMap & | TM | ) |
copy constructor
TemperatureMap::~TemperatureMap | ( | ) |
destructor
int TemperatureMap::AddUsedTemp | ( | double | T | ) |
return the index of temperature T. Add T as a used temperature and return the index in the map of T (within the precision)
T | : the added temperature [in K] |
|
inline |
returns the temperature precision
int TemperatureMap::GetNumberOfUsedfTemperatures | ( | ) |
returns number of used temperatures
|
private |
Init fUsedTemperature to false.
double TemperatureMap::Score | ( | double | WantedT, |
double | FoundT | ||
) |
returns a score (max=1)
|
inline |
set the temperature precision in K
|
private |
Precision to distinguish temperatures.
|
private |
Number of temperatures in the map.
|
private |
Array of temperatures (the Map)
|
private |
Array of used temperature corresponding to the map.