1 #ifndef __JCALIBRATE__JFITTOT__ 
    2 #define __JCALIBRATE__JFITTOT__ 
   10 #include "TFitResult.h" 
   21 namespace JCALIBRATE {}
 
   22 namespace JPP { 
using namespace JCALIBRATE; }
 
   24 namespace JCALIBRATE {
 
  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());
 
  258     static Double_t 
getValue(
const Double_t* x, 
const Double_t* par)
 
  260       static const int NPE = 1;
 
  262       const Double_t 
W         = par[0];
 
  266       const Double_t tot_ns = x[0];
 
static Int_t getNumberOfModelParameters()
Get number of model parameters. 
 
JFitParameter_t getModelParameter(Double_t JFitToTParameters::*p) const 
Get model parameter. 
 
const Double_t getModelParameter(const int i) const 
Get model parameter. 
 
double gainSpread
gain spread [unit] 
 
static JPMTAnalogueSignalProcessor & getInstance()
Get unique instance of PMT analogue signal processor. 
 
JFitToTParameters(const Double_t *data)
Copy constructor. 
 
static const double FITTOT_GAIN_MAX
Maximal gain [unit]. 
 
Double_t gainSpread
PMT gain spread. 
 
const double TIME_OVER_THRESHOLD_NS
Specification for time-over-threshold corresponding to a one photo-electron pulse. 
 
static const double FITTOT_GAIN_MIN
Minimal gain [unit]. 
 
void setPMTParameters(const JPMTParameters ¶meters)
Set PMT parameters. 
 
Double_t * getModelParameters()
Get model parameters. 
 
double getNPE(const double tot_ns, const double eps=1.0e-3) const 
Get number of photo-electrons. 
 
Parametrisation of time-over-threshold distribution. 
 
Fit parameters for two-fold coincidence rate due to K40. 
 
const Double_t * getModelParameters() const 
Get model parameters. 
 
static Double_t getValue(const Double_t *x, const Double_t *par)
Get rate as a function of the fit parameters. 
 
Auxiliary data structure for a parameter index and its value. 
 
static const double FITTOT_TOT_MIN_NS
Minimal time-over-threshold [ns]. 
 
JFitToTParameters(const JPMTParameters ¶meters)
Constructor. 
 
static const double FITTOT_GAINSPREAD_MAX
Maximal gain spread [unit]. 
 
bool setParameter(TF1 &f1, const JFitParameter_t ¶meter)
Set fit parameter. 
 
virtual double getProbability(const double npe, const int NPE) const 
Get probability for given charge. 
 
bool setParLimits(TF1 &f1, const Int_t index, Double_t xmin, Double_t xmax)
Set fit parameter limits. 
 
PMT analogue signal processor. 
 
void setModelParameters(const Double_t *data)
Set model parameters. 
 
JFitToT(const JPMTParameters ¶meters, const double xmin, const double xmax)
Constructor. 
 
PMT analogue signal processor. 
 
static const double FITTOT_GAINSPREAD_MIN
Minimal gain spread [unit]. 
 
Data structure for PMT parameters. 
 
virtual double getDerivative(const double npe) const 
Get derivative of number of photo-electrons to time-over-threshold. 
 
TFitResultPtr operator()(TH1 &h1, const std::string &option)
Fit histogram.