Jpp  pmt_effective_area_update
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Typedefs | Functions | Variables
JCALIBRATE Namespace Reference

Auxiliary classes and methods for PMT calibration. More...

Classes

struct  JPairwiseComparator
 Auxiliary class to sort pairs of PMT addresses within optical module. More...
 
struct  JPMTParameters_t
 Fit parameters for single PMT. More...
 
struct  JFitK40Parameters
 Fit parameters for two-fold coincidence rate due to K40. More...
 
struct  JFitK40_t
 Template definition of two-fold coincidence rate due to K40 and other radioactive decays. More...
 
struct  JFitK40_t< JNullType >
 Template specialisation of two-fold coincidence rate due to K40 and other radioactive decays. More...
 
struct  JFitK40_t< TF2 >
 Template specialisation of two-fold coincidence rate due to K40 and other radioactive decays. More...
 
struct  JFitK40_t< TF1 >
 Template specialisation of two-fold coincidence rate due to K40 and other radioactive decays. More...
 
struct  JFitToTParameters
 Fit parameters for two-fold coincidence rate due to K40. More...
 
struct  JFitToT
 Parametrisation of time-over-threshold distribution. More...
 
struct  JHVInterpolator
 Auxiliary data structure to store high-voltage versus gain data and interpolate the nominal high-voltage. More...
 
struct  JParameters
 Auxiliary class for PMT parameters including threshold. More...
 
struct  JTDC_t
 Auxiliary class for TDC constraints. More...
 

Typedefs

typedef JCombinatorics::pair_type pair_type
 
typedef JFitK40_t< TF2 > JFitK40
 Type definition for backward compatibility. More...
 

Functions

double coincidenceP (double E1, double E2, double ED, int M_min, int M_max)
 Coincidence probability of two PMTs within one module. More...
 

Variables

static const char *const weights_hist_t = "weights_hist"
 Histogram naming. More...
 
static const char *const W1_overall_t = "W1_overall"
 Named bin for duration of the run. More...
 
static const char *const WS_t = "WS"
 Named bin for time residual bin width. More...
 
static const char *const WB_t = "WB"
 Named bin for value of TMax_ns in JCalibrateK40. More...
 
static const char *const _2S = ".2S"
 Name extension for 2D counts. More...
 
static const char *const _1B = ".1B"
 Name extension for 1D background. More...
 
static const char *const _1L = ".1L"
 Name extension for 1D live time. More...
 
static const char *const _2R = ".2R"
 Name extension for 2D rate measured. More...
 
static const char *const _2F = ".2F"
 Name extension for 2F rate fitted. More...
 
static const char *const _1D = ".1D"
 Name extension for 1D time offset. More...
 
static const char *const _1F = ".1F"
 Name extension for 1D time offset fit. More...
 
static const char *const _2SToT = ".2SToT"
 Histogram naming. More...
 
static const double FITK40_QE_MIN = 0.0
 Minimal quantum efficiency [unit]. More...
 
static const double FITK40_QE_MAX = 10.0
 Maximal quantum efficiency [unit]. More...
 
static const double FITK40_TTS_MIN_NS = 0.0
 Minimal transition-time spread [ns]. More...
 
static const double FITK40_TTS_MAX_NS = 3.5
 Maximal transition-time spread [ns]. More...
 
static const std::string FITTOT_SUFFIX = ".1ToT"
 
static const std::string FITTOT_FNAME = "fittot"
 
static const char * FITTOT_GAIN_PARNAME = "gain"
 
static const char * FITTOT_GAINSPREAD_PARNAME = "gainSpread"
 
static const char * FITTOT_NORMALIZATION_PARNAME = "normalization"
 
static const double FITTOT_GAIN_MIN = 0.25
 Default minimal gain. More...
 
static const double FITTOT_GAIN_MAX = 2.00
 Default maximal gain. More...
 
static const double FITTOT_GAINSPREAD_MIN = 0.05
 Default minimal gain spread. More...
 
static const double FITTOT_GAINSPREAD_MAX = 1.00
 Default maximal gain spread. More...
 
static const std::string HVINTERPOLATOR_SUFFIX = ".HVxG"
 
static const char * HVINTERPOLATOR_DATA = "HVINTERPOLATOR_DATA"
 
static const char * HVINTERPOLATOR_RESULT = "HVINTERPOLATOR_RESULT"
 

Detailed Description

Auxiliary classes and methods for PMT calibration.

Author
mdejong
mkarel, bjung
bjung
acreusot

Typedef Documentation

Definition at line 41 of file JCalibrateK40.hh.

Type definition for backward compatibility.

Definition at line 807 of file JFitK40.hh.

Function Documentation

double JCALIBRATE::coincidenceP ( double  E1,
double  E2,
double  ED,
int  M_min,
int  M_max 
)
inline

Coincidence probability of two PMTs within one module.

Parameters
E1expected counts of PMT 1 in certain time interval
E2expected counts of PMT 2 in certain time interval
EDexpected counts on the rest of the DOM, excluding PMT 1 and PMT 2
M_minDOM multiplicity lower limit
M_maxDOM multiplicity upper limit
Returns
coincidence probability of two PMTs in a certain time interval

Definition at line 109 of file JCalibrateK40.hh.

110  {
111  // first, always calculate the probability for 2-fold multiplicity
112  double P = exp(-E1) * E1 * exp(-E2) * E2 * exp(-ED);
113 
114  // second, calculate the probability of multiplicity at lower limit
115  for (int m = 2; m < M_min; m++) {
116  P = P * ( ED/(m-1) + E1/m + E2/m );
117  }
118 
119  // third, add the probabilities of multiplicities upto upper limit
120  double P_sum = P;
121 
122  for (int m = M_min+1; m <= M_max; m++) {
123  P = P * ( ED/(m-1) + E1/m + E2/m );
124  P_sum = P_sum + P;
125  }
126 
127  return P_sum;
128  }
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable STRING $argv[2] set_array QUANTILES set_variable FORMULA *[0] exp(-0.5 *(x-[1])*(x-[1])/([2]*[2]))" set_variable MODULE `getModule -a $DETECTOR -L "$STRING 0"` typeset -Z 4 STRING JOpera1D -f hydrophone.root
then $DIR JPlotNPE PDG P
Definition: JPlotNPE-PDG.sh:62

Variable Documentation

const char* const JCALIBRATE::weights_hist_t = "weights_hist"
static

Histogram naming.

Name of histogram with normalisation constants.

Definition at line 27 of file JCalibrateK40.hh.

const char* const JCALIBRATE::W1_overall_t = "W1_overall"
static

Named bin for duration of the run.

Definition at line 29 of file JCalibrateK40.hh.

const char* const JCALIBRATE::WS_t = "WS"
static

Named bin for time residual bin width.

Definition at line 30 of file JCalibrateK40.hh.

const char* const JCALIBRATE::WB_t = "WB"
static

Named bin for value of TMax_ns in JCalibrateK40.

Definition at line 31 of file JCalibrateK40.hh.

const char* const JCALIBRATE::_2S = ".2S"
static

Name extension for 2D counts.

Definition at line 33 of file JCalibrateK40.hh.

const char* const JCALIBRATE::_1B = ".1B"
static

Name extension for 1D background.

Definition at line 34 of file JCalibrateK40.hh.

const char* const JCALIBRATE::_1L = ".1L"
static

Name extension for 1D live time.

Definition at line 35 of file JCalibrateK40.hh.

const char* const JCALIBRATE::_2R = ".2R"
static

Name extension for 2D rate measured.

Definition at line 36 of file JCalibrateK40.hh.

const char* const JCALIBRATE::_2F = ".2F"
static

Name extension for 2F rate fitted.

Definition at line 37 of file JCalibrateK40.hh.

const char* const JCALIBRATE::_1D = ".1D"
static

Name extension for 1D time offset.

Definition at line 38 of file JCalibrateK40.hh.

const char* const JCALIBRATE::_1F = ".1F"
static

Name extension for 1D time offset fit.

Definition at line 39 of file JCalibrateK40.hh.

const char* const JCALIBRATE::_2SToT = ".2SToT"
static

Histogram naming.

Name extension for 2D counts

Definition at line 16 of file JCalibrateToT.hh.

const double JCALIBRATE::FITK40_QE_MIN = 0.0
static

Minimal quantum efficiency [unit].

Definition at line 37 of file JFitK40.hh.

const double JCALIBRATE::FITK40_QE_MAX = 10.0
static

Maximal quantum efficiency [unit].

Definition at line 38 of file JFitK40.hh.

const double JCALIBRATE::FITK40_TTS_MIN_NS = 0.0
static

Minimal transition-time spread [ns].

Definition at line 39 of file JFitK40.hh.

const double JCALIBRATE::FITK40_TTS_MAX_NS = 3.5
static

Maximal transition-time spread [ns].

Definition at line 40 of file JFitK40.hh.

const std::string JCALIBRATE::FITTOT_SUFFIX = ".1ToT"
static

Definition at line 36 of file JFitToT.hh.

const std::string JCALIBRATE::FITTOT_FNAME = "fittot"
static

Definition at line 37 of file JFitToT.hh.

const char* JCALIBRATE::FITTOT_GAIN_PARNAME = "gain"
static

Definition at line 39 of file JFitToT.hh.

const char* JCALIBRATE::FITTOT_GAINSPREAD_PARNAME = "gainSpread"
static

Definition at line 40 of file JFitToT.hh.

const char* JCALIBRATE::FITTOT_NORMALIZATION_PARNAME = "normalization"
static

Definition at line 41 of file JFitToT.hh.

const double JCALIBRATE::FITTOT_GAIN_MIN = 0.25
static

Default minimal gain.

Definition at line 43 of file JFitToT.hh.

const double JCALIBRATE::FITTOT_GAIN_MAX = 2.00
static

Default maximal gain.

Definition at line 44 of file JFitToT.hh.

const double JCALIBRATE::FITTOT_GAINSPREAD_MIN = 0.05
static

Default minimal gain spread.

Definition at line 46 of file JFitToT.hh.

const double JCALIBRATE::FITTOT_GAINSPREAD_MAX = 1.00
static

Default maximal gain spread.

Definition at line 47 of file JFitToT.hh.

const std::string JCALIBRATE::HVINTERPOLATOR_SUFFIX = ".HVxG"
static

Definition at line 27 of file JHVInterpolator.hh.

const char* JCALIBRATE::HVINTERPOLATOR_DATA = "HVINTERPOLATOR_DATA"
static

Definition at line 29 of file JHVInterpolator.hh.

const char* JCALIBRATE::HVINTERPOLATOR_RESULT = "HVINTERPOLATOR_RESULT"
static

Definition at line 30 of file JHVInterpolator.hh.