Jpp
|
Parametrisation of time-over-threshold distribution. More...
#include <JFitToT.hh>
Public Member Functions | |
JFitToT (const JPMTParameters ¶meters, const JRange_t &range) | |
Constructor. More... | |
void | fitInit (TH1 &h1, const double gradientThreshold=-0.005) |
Fit initializer. More... | |
TFitResultPtr | operator() (TH1 &h1, const double minWeight, const std::string &option) |
Fit histogram. More... | |
Double_t | getValue (Double_t *x, Double_t *par) |
Get rate as a function of the fit parameters. More... | |
const double | getInitGain () const |
Retrieve initial gain. More... | |
const double | getInitGainSpread () const |
Retrieve initial gainspread. More... | |
const Double_t * | getModelParameters () const |
Get model parameters. More... | |
Double_t * | getModelParameters () |
Get model parameters. More... | |
void | setModelParameter (const int i, const Double_t value) |
Set model parameter. More... | |
void | setModelParameters (const Double_t *data) |
Set model parameters. More... | |
const Double_t | getModelParameter (const int i) const |
Get model parameter. More... | |
JFitParameter_t | getModelParameter (Double_t JFitToTParameters::*p) const |
Get model parameter. More... | |
Static Public Member Functions | |
static Int_t | getNumberOfModelParameters () |
Get number of model parameters. More... | |
Public Attributes | |
Double_t | gain |
PMT gain. More... | |
Double_t | gainSpread |
PMT gain spread. More... | |
Static Private Member Functions | |
static JPMTAnalogueSignalProcessor & | getInstance () |
Get unique instance of PMT analogue signal processor. More... | |
Private Attributes | |
JRange_t | fitRange |
fit-range [ns] More... | |
double | WfitRange |
Cumulative weight within fit-range. More... | |
double | init_gain |
Initial input value for gain. More... | |
double | init_gainSpread |
Initial input value for gainSpread. More... | |
const int | NPE |
True number of photo-electrons. More... | |
Parametrisation of time-over-threshold distribution.
Note that for use in ROOT fit operations, the member method JFitToT::getValue is static.
Definition at line 173 of file JFitToT.hh.
|
inline |
Constructor.
parameters | parameters |
range | abscissa range |
Definition at line 184 of file JFitToT.hh.
|
inline |
Fit initializer.
h1 | ROOT 1D-histogram |
gradientThreshold | treshold gradient for search of maximum |
Definition at line 213 of file JFitToT.hh.
|
inline |
Fit histogram.
Note that the PMT parameters which are part of the model are reset before the fit according the status of each PMT and the obtained fit parameters are copied back to the model parameters after the fit.
h1 | ROOT 1D-histogram |
minWeight | minimum histogram weight in fit-range |
option | fit option |
Definition at line 297 of file JFitToT.hh.
|
inline |
Get rate as a function of the fit parameters.
x | pointer to abscissa values |
par | pointer to parameter values |
Definition at line 329 of file JFitToT.hh.
|
inline |
Retrieve initial gain.
Definition at line 352 of file JFitToT.hh.
|
inline |
Retrieve initial gainspread.
Definition at line 362 of file JFitToT.hh.
|
inlinestaticprivate |
Get unique instance of PMT analogue signal processor.
Definition at line 374 of file JFitToT.hh.
|
inlinestaticinherited |
Get number of model parameters.
Definition at line 82 of file JFitToT.hh.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Set model parameter.
i | parameter index |
value | parameter value |
Definition at line 116 of file JFitToT.hh.
|
inlineinherited |
Set model parameters.
data | pointer to parameters |
Definition at line 127 of file JFitToT.hh.
|
inlineinherited |
Get model parameter.
i | parameter index |
Definition at line 141 of file JFitToT.hh.
|
inlineinherited |
Get model parameter.
p | pointer to data member |
Definition at line 153 of file JFitToT.hh.
|
private |
fit-range [ns]
Definition at line 381 of file JFitToT.hh.
|
private |
Cumulative weight within fit-range.
Definition at line 382 of file JFitToT.hh.
|
private |
Initial input value for gain.
Definition at line 384 of file JFitToT.hh.
|
private |
Initial input value for gainSpread.
Definition at line 385 of file JFitToT.hh.
|
private |
True number of photo-electrons.
Definition at line 387 of file JFitToT.hh.
|
inherited |
PMT gain.
Definition at line 163 of file JFitToT.hh.
|
inherited |
PMT gain spread.
Definition at line 164 of file JFitToT.hh.