Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
daq_device_random.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file daq_device_random.h
1 #ifndef __DAQ_DEVICE_RANDOM__
2 #define __DAQ_DEVICE_RANDOM__
3 
4 
5 #include <daq_device.h>
6 #include <pulserTriggerHandler.h>
7 #include <stdio.h>
8 
9 
11 
12 
13 public:
14 
15  daq_device_random (const int eventtype
16  , const int subeventid
17  , const int n_words=32
18  , const int low=0
19  , const int high=2047
20  , const int trigger_enabled=0);
21 
22 
24 
25 
26  void identify(std::ostream& os = std::cout) const;
27 
28  int max_length(const int etype) const;
29 
30  // functions to do the work
31 
32  int put_data(const int etype, int * adr, const int length);
33 
34  int init();
35 
36  int rearm( const int etype);
37 
38 protected:
40  unsigned int number_of_words;
41  int low_range;
43  FILE *rfp;
45 
46 };
47 
48 
49 #endif