Jpp  18.3.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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  */
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
Data structure for range of PMT rates.
JPMTRateRange(const double Rmin_Hz, const double Rmax_Hz)
Constructor.
JPMTRateRange()
Default constructor.
static const JPMTRateRange & getInstance()
Get reference to unique instance of this class object.
Range of values.
Definition: JRange.hh:38
Auxiliary class to define a range between two values.