Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:29:38

0001 
0002 // Copyright 2020, Jefferson Science Associates, LLC.
0003 // Subject to the terms in the LICENSE file found in the top-level directory.
0004 
0005 
0006 #ifndef _RandomSource_h_
0007 #define  _RandomSource_h_
0008 
0009 #include <JANA/JEventSource.h>
0010 #include <JANA/JEventSourceGeneratorT.h>
0011 
0012 class RandomSource : public JEventSource {
0013 
0014     int m_max_emit_freq_hz = 100;
0015 
0016 public:
0017     RandomSource();
0018 
0019     virtual ~RandomSource() = default;
0020 
0021     void Open() override;
0022 
0023     Result Emit(JEvent&) override;
0024 
0025     void Close() override;
0026     
0027     static std::string GetDescription();
0028 
0029 };
0030 
0031 template <>
0032 double JEventSourceGeneratorT<RandomSource>::CheckOpenable(std::string);
0033 
0034 #endif // _RandomSource_h_
0035