| 
    Jpp
    16.0.2
    
   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) const | 
| 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) const | 
| Checks whether two points are valid for inter-/extrapolation.  More... | |
| bool | interpolateHV (const double gainTarget) | 
| Inter-/Extrapolate the high-voltage value corresponding to the target gain value.  More... | |
| double | getHV () const | 
| Get interpolated high-voltage.  More... | |
| double | getHVError () const | 
| Get error estimate on interpolated high-voltage.  More... | |
| TGraphErrors * | getData () const | 
| Get graph with the input data for the interpolation.  More... | |
| TGraphErrors * | getResult () const | 
| 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 37 of file JHVInterpolator.hh.
      
  | 
  inline | 
Constructor.
| object | TMultiGraph object | 
Definition at line 44 of file JHVInterpolator.hh.
      
  | 
  inline | 
Add point to diagram.
| HV | high-voltage [V] | 
| gain | gain value | 
| gainError | error on gain value | 
Definition at line 74 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 93 of file JHVInterpolator.hh.
      
  | 
  inline | 
Checks whether high-voltage is within range.
| HV | high-voltage [V] | 
Definition at line 108 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 122 of file JHVInterpolator.hh.
      
  | 
  inline | 
Checks if gain is within range.
| gain | gain value | 
Definition at line 134 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 149 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 173 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 201 of file JHVInterpolator.hh.
      
  | 
  inline | 
Get interpolated high-voltage.
Definition at line 276 of file JHVInterpolator.hh.
      
  | 
  inline | 
Get error estimate on interpolated high-voltage.
Definition at line 297 of file JHVInterpolator.hh.
      
  | 
  inline | 
Get graph with the input data for the interpolation.
Definition at line 317 of file JHVInterpolator.hh.
      
  | 
  inline | 
Get graph with the interpolation result.
Definition at line 341 of file JHVInterpolator.hh.
      
  | 
  inlinestatic | 
Set minimal separation distance for high-voltage.
| minDist | minimal separation distance for high-voltage | 
Definition at line 365 of file JHVInterpolator.hh.
      
  | 
  inlinestatic | 
Set valid gain range.
| range | valid high-voltage range [V] | 
Definition at line 376 of file JHVInterpolator.hh.
      
  | 
  inlinestatic | 
Set valid gain range.
| range | valid gain range | 
Definition at line 387 of file JHVInterpolator.hh.
      
  | 
  private | 
HV-versus-gain data.
Definition at line 395 of file JHVInterpolator.hh.
      
  | 
  staticprivate | 
Minimal high-voltage difference between two points [V].
Default values.
Definition at line 397 of file JHVInterpolator.hh.
Allowed high-voltage range [V].
Definition at line 398 of file JHVInterpolator.hh.
      
  | 
  staticprivate | 
Allowed gain range.
Definition at line 399 of file JHVInterpolator.hh.
 1.8.5