Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
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
11namespace JDETECTOR {}
12namespace JPP { using namespace JDETECTOR; }
13
14namespace JDETECTOR {
15
16 using JTOOLS::JRange;
17
18
19 /**
20 * Data structure for range of PMT rates.
21 */
23 public JRange<double>
24 {
25 /**
26 * Default constructor.
27 */
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
Auxiliary class to define a range between two values.
Range of values.
Definition JRange.hh:42
file Auxiliary data structures and methods for detector calibration.
Definition JAnchor.hh:12
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Data structure for range of PMT rates.
JPMTRateRange(const double Rmin_Hz, const double Rmax_Hz)
Constructor.
static const JPMTRateRange & getInstance()
Get reference to unique instance of this class object.
JPMTRateRange()
Default constructor.