1#ifndef __JCALIBRATE__JFITTOT__
2#define __JCALIBRATE__JFITTOT__
10#include "TFitResult.h"
196 range.getLowerLimit(),
197 range.getUpperLimit(),
234 const Int_t NgainSpread = this->
getModelParameter(&JFitToT::JFitToTParameters::gainSpread);
235 const Int_t Nnormalization = this->
getModelParameter(&JFitToT::JFitToTParameters::normalization);
242 h1.FindBin(this->GetXmax()));
247 for (Int_t i = 0; i != GetNpar(); ++i) {
252 const TFitResultPtr result = h1.Fit(
this, option.c_str());
270 Double_t
getValue(
const Double_t* x,
const Double_t* par)
272 const double tot_ns = x[0];
280 const double Whist = par[2];
288 using TF1::operator();
PMT analogue signal processor.
#define MAKE_CSTRING(A)
Make C-string.
Auxiliary class to define a range between two values.
Data structure for PMT parameters.
double gainSpread
gain spread [unit]
Auxiliary classes and methods for PMT calibration.
static const double FITTOT_GAINSPREAD_MAX
Default maximal gain spread.
static const std::string FITTOT_FNAME
static const std::string FITTOT_SUFFIX
static const char * FITTOT_GAIN_PARNAME
static const char * FITTOT_NORMALIZATION_PARNAME
static const double FITTOT_GAIN_MAX
Default maximal gain.
static const char * FITTOT_GAINSPREAD_PARNAME
static const double FITTOT_GAIN_MIN
Default minimal gain.
static const double FITTOT_GAINSPREAD_MIN
Default minimal gain spread.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Fit parameters for two-fold coincidence rate due to K40.
const Double_t * getModelParameters() const
Get model parameters.
void setModelParameters(const Double_t *data)
Set model parameters.
JFitToTParameters(const Double_t *data)
Copy constructor.
static Int_t getNumberOfModelParameters()
Get number of model parameters.
Double_t gainSpread
PMT gain spread.
const Double_t getModelParameter(const int i) const
Get model parameter.
void setModelParameter(const int i, const Double_t value)
Set model parameter.
JFitParameter_t getModelParameter(Double_t JFitToTParameters::*p) const
Get model parameter.
Double_t * getModelParameters()
Get model parameters.
JFitToTParameters(const JPMTParameters ¶meters)
Constructor.
Parametrisation of time-over-threshold distribution.
TFitResultPtr operator()(TH1 &h1, const std::string &option)
Fit histogram.
JPMTAnalogueSignalProcessor cpu
Double_t getValue(const Double_t *x, const Double_t *par)
Get rate as a function of the fit parameters.
JFitToT(const JPMTParameters ¶meters, const JRange< double > &range)
Constructor.
const JPMTAnalogueSignalProcessor & getCPU() const
Access method for the analogue signal processor.
PMT analogue signal processor.
double getTimeOverThresholdProbability(const double tot_ns, const int NPE) const
Get probability of having a pulse with specific time-over-threshold.
double getIntegralOfTimeOverThresholdProbability(const double Tmin, const double Tmax, const int NPE) const
Get cumulative probability of time-over-threshold distribution.
Auxiliary data structure for a parameter index and its value.