1 #ifndef __JCALIBRATE__JFITTOT__
2 #define __JCALIBRATE__JFITTOT__
10 #include "TFitResult.h"
27 namespace JCALIBRATE {}
28 namespace JPP {
using namespace JCALIBRATE; }
30 namespace JCALIBRATE {
196 range.getLowerLimit(),
197 range.getUpperLimit(),
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];
static Int_t getNumberOfModelParameters()
Get number of model parameters.
JFitToT(const JPMTParameters ¶meters, const JRange< double > &range)
Constructor.
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 const char * FITTOT_GAINSPREAD_PARNAME
JFitToTParameters(const Double_t *data)
Copy constructor.
static const double FITTOT_GAIN_MAX
Default maximal gain.
Double_t gainSpread
PMT gain spread.
static const double FITTOT_GAIN_MIN
Default minimal gain.
Double_t * getModelParameters()
Get model parameters.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
#define MAKE_CSTRING(A)
Make C-string.
Double_t getValue(const Double_t *x, const Double_t *par)
Get rate as a function of the fit parameters.
then usage $script< detector file >< detectorfile > nIf the range of floors is the first detector file is aligned to the second before the comparison nIn this
Parametrisation of time-over-threshold distribution.
then fatal Wrong number of parameters fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER set_variable DETID getDetector D $DETECTOR_ID O string $DIR JPlotPMTParameters a $DETECTOR P $INPUT_FILE o $OUTPUT_FILE d $DEBUG for KEY in TTS_ns QE gain gainSpread
Fit parameters for two-fold coincidence rate due to K40.
const JPMTAnalogueSignalProcessor & getCPU() const
Access method for the analogue signal processor.
JPMTAnalogueSignalProcessor cpu
static const std::string FITTOT_SUFFIX
const Double_t * getModelParameters() const
Get model parameters.
static const char * FITTOT_GAIN_PARNAME
Auxiliary data structure for a parameter index and its value.
JFitToTParameters(const JPMTParameters ¶meters)
Constructor.
static const double FITTOT_GAINSPREAD_MAX
Default maximal gain spread.
PMT analogue signal processor.
z range($ZMAX-$ZMIN)< $MINIMAL_DZ." fi fi typeset -Z 4 STRING typeset -Z 2 FLOOR JPlot1D -f $
then $JPP_DIR examples JDetector JToT o $OUTPUT_FILE n N $NPE P gain
Auxiliary class to define a range between two values.
void setModelParameters(const Double_t *data)
Set model parameters.
void setModelParameter(const int i, const Double_t value)
Set model parameter.
double getIntegralOfTimeOverThresholdProbability(const double Tmin, const double Tmax, const int NPE) const
Get cumulative probability of time-over-threshold distribution.
double getTimeOverThresholdProbability(const double tot_ns, const int NPE) const
Get probability of having a pulse with specific time-over-threshold.
PMT analogue signal processor.
static const double FITTOT_GAINSPREAD_MIN
Default minimal gain spread.
Data structure for PMT parameters.
static const char * FITTOT_NORMALIZATION_PARNAME
TFitResultPtr operator()(TH1 &h1, const std::string &option)
Fit histogram.
static const std::string FITTOT_FNAME