#ifndef __JRECONSTRUCTION__JHITW0__ #define __JRECONSTRUCTION__JHITW0__ #include "JTrigger/JHitL0.hh" /** * \author mdejong */ namespace JRECONSTRUCTION {} namespace JPP { using namespace JRECONSTRUCTION; } namespace JRECONSTRUCTION { using JTRIGGER::JHitL0; /** * Auxiliary class for a hit with background rate value. */ class JHitW0 : public JHitL0 { public: /** * Default constructor. */ JHitW0() : JHitL0(), __R(0.0) {} /** * Constructor. * * \param hit hit * \param R_Hz rate [Hz] */ JHitW0(const JHitL0& hit, const double R_Hz) : JHitL0(hit), __R(R_Hz) {} /** * Get rate. * * \return rate [Hz] */ inline double getR() const { return __R; } protected: double __R; }; } #endif