|
Jpp - the software that should make you happy
|
Auxiliary data structure to store high-voltage versus gain data and interpolate the nominal high-voltage. More...
#include <JHVInterpolator.hh>
Public Member Functions | |
| JHVInterpolator (TMultiGraph &object) | |
| Constructor. More... | |
| void | AddPoint (Double_t HV, Double_t gain, Double_t gainError) |
| Add point to diagram. More... | |
| void | SetPoint (Int_t i, Double_t HV, Double_t gain, Double_t gainError) |
| Set point with index i. More... | |
| const bool | checkHV (const double HV) const |
| Checks whether high-voltage is within range. More... | |
| const bool | checkHV (const double HV1, const double HV2) const |
| Checks whether two high-voltage values are different. More... | |
| const bool | checkGain (const double gain) const |
| Checks if gain is within range. More... | |
| const bool | areIncreasing (const Int_t i, const Int_t j) |
| Checks whether the gains of two points are strictly increasing as function of their absolute high-voltage. More... | |
| const bool | areValid (const Int_t i, const Int_t j) |
| Checks whether two points are valid for inter-/extrapolation. More... | |
| bool | interpolate (const double gainTarget) |
| Inter-/Extrapolate the high-voltage value corresponding to the target gain value. More... | |
| double | getTargetHV (const double gainTarget) |
| Get high-voltage corresponding to given target gain value. More... | |
| double | getTargetHVError (const double gainTarget) |
| Get error estimate on high-voltage corresponding to given target gain value. More... | |
| TGraphErrors * | getData () |
| Get graph with the input data for the interpolation. More... | |
| TGraphErrors * | getResult () |
| Get graph with the interpolation result. More... | |
Static Public Member Functions | |
| static void | setMinHVDistance (const double minDist) |
| Set minimal separation distance for high-voltage. More... | |
| static void | setHVRange (const JRange< double > range) |
| Set valid gain range. More... | |
| static void | setGainRange (const JRange< double > range) |
| Set valid gain range. More... | |
Private Attributes | |
| TMultiGraph * | data |
| HV-versus-gain data. More... | |
Static Private Attributes | |
| static double | dHVmin = 2 * 3.14 |
| Minimal high-voltage difference between two points [V]. More... | |
| static JRange< double > | hvRange = JRange<double>(-1500, -80) |
| Allowed high-voltage range [V]. More... | |
| static JRange< double > | gainRange |
| Allowed gain range. More... | |
Auxiliary data structure to store high-voltage versus gain data and interpolate the nominal high-voltage.
Definition at line 35 of file JHVInterpolator.hh.
|
inline |
Constructor.
| object | TMultiGraph object |
Definition at line 42 of file JHVInterpolator.hh.
|
inline |
Add point to diagram.
| HV | high-voltage [V] |
| gain | gain value |
| gainError | error on gain value |
Definition at line 54 of file JHVInterpolator.hh.
|
inline |
Set point with index i.
| i | index of point |
| HV | high-voltage [V] |
| gain | gain value |
| gainError | error on gain value |
Definition at line 73 of file JHVInterpolator.hh.
|
inline |
Checks whether high-voltage is within range.
| HV | high-voltage [V] |
Definition at line 88 of file JHVInterpolator.hh.
|
inline |
Checks whether two high-voltage values are different.
| HV1 | first high-voltage [V] |
| HV2 | second high-voltage [V] |
Definition at line 102 of file JHVInterpolator.hh.
|
inline |
Checks if gain is within range.
| gain | gain value |
Definition at line 114 of file JHVInterpolator.hh.
|
inline |
Checks whether the gains of two points are strictly increasing as function of their absolute high-voltage.
| i | index of first point |
| j | index of second point |
Definition at line 129 of file JHVInterpolator.hh.
|
inline |
Checks whether two points are valid for inter-/extrapolation.
| i | index of first point |
| j | index of second point |
Definition at line 153 of file JHVInterpolator.hh.
|
inline |
Inter-/Extrapolate the high-voltage value corresponding to the target gain value.
| gainTarget | target gain value for inter-/extrapolation |
Definition at line 181 of file JHVInterpolator.hh.
|
inline |
Get high-voltage corresponding to given target gain value.
| gainTarget | target gain value for inter-/extrapolation |
Definition at line 257 of file JHVInterpolator.hh.
|
inline |
Get error estimate on high-voltage corresponding to given target gain value.
| gainTarget | target gain value for inter-/extrapolation |
Definition at line 281 of file JHVInterpolator.hh.
|
inline |
Get graph with the input data for the interpolation.
Definition at line 303 of file JHVInterpolator.hh.
|
inline |
Get graph with the interpolation result.
Definition at line 335 of file JHVInterpolator.hh.
|
inlinestatic |
Set minimal separation distance for high-voltage.
| minDist | minimal separation distance for high-voltage |
Definition at line 369 of file JHVInterpolator.hh.
|
inlinestatic |
Set valid gain range.
| range | valid high-voltage range [V] |
Definition at line 380 of file JHVInterpolator.hh.
|
inlinestatic |
Set valid gain range.
| range | valid gain range |
Definition at line 391 of file JHVInterpolator.hh.
|
private |
HV-versus-gain data.
Definition at line 399 of file JHVInterpolator.hh.
|
staticprivate |
Minimal high-voltage difference between two points [V].
Default values.
Definition at line 401 of file JHVInterpolator.hh.
Allowed high-voltage range [V].
Definition at line 402 of file JHVInterpolator.hh.
|
staticprivate |
Allowed gain range.
Definition at line 403 of file JHVInterpolator.hh.
1.8.5