File indexing completed on 2025-08-02 08:21:01
0001 #ifndef __DAQ_DEVICE_RANDOM__
0002 #define __DAQ_DEVICE_RANDOM__
0003
0004
0005 #include <daq_device.h>
0006 #include <pulserTriggerHandler.h>
0007 #include <stdio.h>
0008
0009
0010 class daq_device_random: public daq_device {
0011
0012
0013 public:
0014
0015 daq_device_random (const int eventtype
0016 , const int subeventid
0017 , const int n_words=32
0018 , const int low=0
0019 , const int high=2047
0020 , const int trigger_enabled=0);
0021
0022
0023 ~daq_device_random();
0024
0025
0026 void identify(std::ostream& os = std::cout) const;
0027
0028 int max_length(const int etype) const;
0029
0030
0031
0032 int put_data(const int etype, int * adr, const int length);
0033
0034 int init();
0035
0036 int rearm( const int etype);
0037
0038 protected:
0039 subevtdata_ptr sevt;
0040 unsigned int number_of_words;
0041 int low_range;
0042 int high_range;
0043 FILE *rfp;
0044 pulserTriggerHandler *th;
0045
0046 };
0047
0048
0049 #endif