Jpp
software
JDetector
JPMTRateRange.hh
Go to the documentation of this file.
1
#ifndef __JDETECTOR__JPMTRATERANGE__
2
#define __JDETECTOR__JPMTRATERANGE__
3
4
#include "
JTools/JRange.hh
"
5
6
7
/**
8
* \author mdejong
9
*/
10
11
namespace
JDETECTOR
{}
12
namespace
JPP
{
using namespace
JDETECTOR
; }
13
14
namespace
JDETECTOR
{
15
16
using
JTOOLS::JRange
;
17
18
19
/**
20
* Data structure for range of PMT rates.
21
*/
22
struct
JPMTRateRange
:
23
public
JRange
<double>
24
{
25
/**
26
* Default constructor.
27
*/
28
JPMTRateRange
()
29
{}
30
31
32
/**
33
* Constructor.
34
*
35
* \param Rmin_Hz minimal PMT rate [Hz]
36
* \param Rmax_Hz maximal PMT rate [Hz]
37
*/
38
JPMTRateRange
(
const
double
Rmin_Hz,
39
const
double
Rmax_Hz) :
40
JRange
<double>(Rmin_Hz, Rmax_Hz)
41
{}
42
43
44
/**
45
* Get reference to unique instance of this class object.
46
*
47
* This method returns an object with default values.
48
*
49
* \return reference to this class object
50
*/
51
static
const
JPMTRateRange
&
getInstance
()
52
{
53
static
const
JPMTRateRange
range_Hz(2.5e3, 20e3);
54
55
return
range_Hz;
56
}
57
};
58
}
59
60
#endif
JDETECTOR::JPMTRateRange
Data structure for range of PMT rates.
Definition:
JPMTRateRange.hh:22
JDETECTOR::JPMTRateRange::JPMTRateRange
JPMTRateRange(const double Rmin_Hz, const double Rmax_Hz)
Constructor.
Definition:
JPMTRateRange.hh:38
JTOOLS::JRange
Range of values.
Definition:
JRange.hh:34
JDETECTOR::JPMTRateRange::getInstance
static const JPMTRateRange & getInstance()
Get reference to unique instance of this class object.
Definition:
JPMTRateRange.hh:51
JDETECTOR::JPMTRateRange::JPMTRateRange
JPMTRateRange()
Default constructor.
Definition:
JPMTRateRange.hh:28
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition:
JAAnetToolkit.hh:37
JRange.hh
JDETECTOR
Auxiliary classes and methods for detector calibration.
Definition:
JAnchor.hh:12
Generated by
1.8.16