Parametrisation of time-over-threshold distribution.
More...
#include <JFitToT.hh>
Parametrisation of time-over-threshold distribution.
Note that for use in ROOT fit operations, the member method JFitToT::getValue is static.
Definition at line 153 of file JFitToT.hh.
◆ JFitToT()
JCALIBRATE::JFitToT::JFitToT |
( |
const JPMTParameters & |
parameters, |
|
|
const double |
xmin, |
|
|
const double |
xmax |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
parameters | parameters |
xmin | minimal x |
xmax | maximal x |
Definition at line 164 of file JFitToT.hh.
◆ operator()()
TFitResultPtr JCALIBRATE::JFitToT::operator() |
( |
TH1 & |
h1, |
|
|
const std::string & |
option |
|
) |
| |
|
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.
- Parameters
-
h1 | ROOT 1D-histogram |
option | fit option |
Definition at line 191 of file JFitToT.hh.
196 Double_t x0 = numeric_limits<Double_t>::max();
200 for (Int_t i = 1; i <= h1.GetXaxis()->GetNbins(); ++i) {
202 const Double_t x = h1.GetBinCenter (i);
203 const Double_t y = h1.GetBinContent(i);
205 if (x >= this->
Xmin &&
227 this->SetRange(xmin, xmax);
242 const TFitResultPtr
result = h1.Fit(
this, option.c_str());
◆ getValue()
static Double_t JCALIBRATE::JFitToT::getValue |
( |
const Double_t * |
x, |
|
|
const Double_t * |
par |
|
) |
| |
|
inlinestatic |
Get rate as a function of the fit parameters.
- Parameters
-
x | pointer to abscissa values |
par | pointer to parameter values |
- Returns
- rate distribution at specified time-over-threshold [Hz/ns]
Definition at line 258 of file JFitToT.hh.
260 static const int NPE = 1;
262 const Double_t
W = par[0];
266 const Double_t tot_ns = x[0];
◆ getInstance()
Get unique instance of PMT analogue signal processor.
- Returns
- reference to PMT analogue signal processor.
Definition at line 279 of file JFitToT.hh.
281 static JPMTAnalogueSignalProcessor object;
◆ getNumberOfModelParameters()
static Int_t JCALIBRATE::JFitToTParameters::getNumberOfModelParameters |
( |
| ) |
|
|
inlinestaticinherited |
Get number of model parameters.
- Returns
- number of parameters
Definition at line 73 of file JFitToT.hh.
◆ getModelParameters() [1/2]
const Double_t* JCALIBRATE::JFitToTParameters::getModelParameters |
( |
| ) |
const |
|
inlineinherited |
Get model parameters.
- Returns
- pointer to parameters
Definition at line 84 of file JFitToT.hh.
◆ getModelParameters() [2/2]
Double_t* JCALIBRATE::JFitToTParameters::getModelParameters |
( |
| ) |
|
|
inlineinherited |
Get model parameters.
- Returns
- pointer to parameters
Definition at line 95 of file JFitToT.hh.
◆ setModelParameters()
void JCALIBRATE::JFitToTParameters::setModelParameters |
( |
const Double_t * |
data | ) |
|
|
inlineinherited |
Set model parameters.
- Parameters
-
data | pointer to parameters |
Definition at line 106 of file JFitToT.hh.
◆ getModelParameter() [1/2]
const Double_t JCALIBRATE::JFitToTParameters::getModelParameter |
( |
const int |
i | ) |
const |
|
inlineinherited |
Get model parameter.
- Parameters
-
- Returns
- parameter value
Definition at line 120 of file JFitToT.hh.
◆ getModelParameter() [2/2]
JFitParameter_t JCALIBRATE::JFitToTParameters::getModelParameter |
( |
Double_t JFitToTParameters::* |
p | ) |
const |
|
inlineinherited |
Get model parameter.
- Parameters
-
- Returns
- parameter index and value
Definition at line 132 of file JFitToT.hh.
◆ Xmin
double JCALIBRATE::JFitToT::Xmin |
|
private |
◆ Xmax
double JCALIBRATE::JFitToT::Xmax |
|
private |
Double_t JCALIBRATE::JFitToTParameters::W |
|
inherited |
◆ gain
Double_t JCALIBRATE::JFitToTParameters::gain |
|
inherited |
◆ gainSpread
Double_t JCALIBRATE::JFitToTParameters::gainSpread |
|
inherited |
The documentation for this struct was generated from the following file:
static const double FITTOT_GAINSPREAD_MIN
Minimal gain spread [unit].
static Double_t getValue(const Double_t *x, const Double_t *par)
Get rate as a function of the fit parameters.
const double TIME_OVER_THRESHOLD_NS
Specification for time-over-threshold corresponding to a one photo-electron pulse.
void setPMTParameters(const JPMTParameters ¶meters)
Set PMT parameters.
double gainSpread
gain spread [unit]
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
static const double FITTOT_GAIN_MAX
Maximal gain [unit].
Double_t gainSpread
PMT gain spread.
static const double FITTOT_GAIN_MIN
Minimal gain [unit].
static Int_t getNumberOfModelParameters()
Get number of model parameters.
bool setParLimits(TF1 &f1, const Int_t index, Double_t xmin, Double_t xmax)
Set fit parameter limits.
JFitToTParameters(const JPMTParameters ¶meters)
Constructor.
virtual double getProbability(const double npe, const int NPE) const
Get probability for given charge.
static const double FITTOT_GAINSPREAD_MAX
Maximal gain spread [unit].
double getNPE(const double tot_ns, const double eps=1.0e-3) const
Get number of photo-electrons.
bool setParameter(TF1 &f1, const JFitParameter_t ¶meter)
Set fit parameter.
virtual double getDerivative(const double npe) const
Get derivative of number of photo-electrons to time-over-threshold.
static JPMTAnalogueSignalProcessor & getInstance()
Get unique instance of PMT analogue signal processor.
const Double_t * getModelParameters() const
Get model parameters.
void setModelParameters(const Double_t *data)
Set model parameters.
const Double_t getModelParameter(const int i) const
Get model parameter.
static const double FITTOT_TOT_MIN_NS
Minimal time-over-threshold [ns].