#ifndef __JDETECTOR__JPMTRATERANGE__ #define __JDETECTOR__JPMTRATERANGE__ #include "JTools/JRange.hh" /** * \author mdejong */ namespace JDETECTOR {} namespace JPP { using namespace JDETECTOR; } namespace JDETECTOR { using JTOOLS::JRange; /** * Data structure for range of PMT rates. */ struct JPMTRateRange : public JRange { /** * Default constructor. */ JPMTRateRange() {} /** * Constructor. * * \param Rmin_Hz minimal PMT rate [Hz] * \param Rmax_Hz maximal PMT rate [Hz] */ JPMTRateRange(const double Rmin_Hz, const double Rmax_Hz) : JRange(Rmin_Hz, Rmax_Hz) {} /** * Get reference to unique instance of this class object. * * This method returns an object with default values. * * \return reference to this class object */ static const JPMTRateRange& getInstance() { static const JPMTRateRange range_Hz(2.5e3, 20e3); return range_Hz; } }; } #endif