1 #ifndef __JCALIBRATE_JCALIBRATEK40__
2 #define __JCALIBRATE_JCALIBRATEK40__
15 namespace JCALIBRATE {}
16 namespace JPP {
using namespace JCALIBRATE; }
18 namespace JCALIBRATE {
30 static const char*
const WS_t =
"WS";
31 static const char*
const WB_t =
"WB";
33 static const char*
const _2S =
".2S";
34 static const char*
const _1B =
".1B";
35 static const char*
const _1L =
".1L";
36 static const char*
const _2R =
".2R";
37 static const char*
const _2F =
".2F";
38 static const char*
const _1D =
".1D";
39 static const char*
const _1F =
".1F";
55 const double epsilon = 1.0e-5) :
74 else if (max(first.first, first.second) == max(second.first, second.second))
75 return min(first.first, first.second) < min(second.first, second.second);
77 return max(first.first, first.second) < max(second.first, second.second);
109 inline double coincidenceP(
double E1,
double E2,
double ED,
int M_min,
int M_max)
112 double P =
exp(-E1) * E1 *
exp(-E2) * E2 *
exp(-ED);
115 for (
int m = 2; m < M_min; m++) {
116 P = P * ( ED/(m-1) + E1/m + E2/m );
122 for (
int m = M_min+1; m <= M_max; m++) {
123 P = P * ( ED/(m-1) + E1/m + E2/m );
JCombinatorics::pair_type pair_type
Data structure for a composite optical module.
static const char *const WB_t
Named bin for value of TMax_ns in JCalibrateK40.
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 echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
double getDot(const pair_type &pair) const
Get cosine of space angle between PMT axes.
static const char *const _1F
Name extension for 1D time offset fit.
static const char *const WS_t
Named bin for time residual bin width.
static const char *const _2F
Name extension for 2F rate fitted.
Auxiliary class to sort pairs of PMT addresses within optical module.
static const char *const _1B
Name extension for 1D background.
double getDot(const JFirst_t &first, const JSecond_t &second)
Get dot product of objects.
static const char *const _2R
Name extension for 2D rate measured.
const JPMT & getPMT(const int index) const
Get PMT.
static const char *const weights_hist_t
Histogram naming.
static const char *const _1L
Name extension for 1D live time.
JPairwiseComparator(const JModule &module, const double epsilon=1.0e-5)
Constructor.
static const char *const W1_overall_t
Named bin for duration of the run.
bool operator()(const pair_type &first, const pair_type &second) const
Comparison of two pairs of PMT addresses.
double coincidenceP(double E1, double E2, double ED, int M_min, int M_max)
Coincidence probability of two PMTs within one module.
static const char *const _1D
Name extension for 1D time offset.
static const char *const _2S
Name extension for 2D counts.
Data structure for optical module.