//////////////////////////////////////////////////////////////////// /// \class RAT:AnalogSignal /// /// \brief Class to provide a common interface for analog signals /// /// \author Eric Marzec /// /// REVISION HISTORY:\n /// 1 Jun 2016 : Eric Marzec --- Created file /// /// /// \details /// This acts as a base class for any analog signal. As of its inception /// it is useful mostly for allowing a TriggerSum type to be passed through /// an MTCA transformation followed by a TUBii transformation followed by a /// CAEN digitization while allowing all of those transformations to remain /// agnostic to what sort of signal they're transforming. Just like real life. /// //////////////////////////////////////////////////////////////////// #ifndef __RAT_AnalogSignal__ #define __RAT_AnalogSignal__ namespace RAT { class AnalogSignal { public: virtual ~AnalogSignal(){}; virtual double GetHeight(double time) =0; void SetNoiseAmplitude(float noise){fNoiseAmplitude=noise;}; float GetNoiseAmplitude(){return fNoiseAmplitude;}; protected: float fNoiseAmplitude; }; } // namespace RAT #endif