Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
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
10
class
daq_device_random
:
public
daq_device
{
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
23
~daq_device_random
();
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
:
39
subevtdata_ptr
sevt
;
40
unsigned
int
number_of_words
;
41
int
low_range
;
42
int
high_range
;
43
FILE *
rfp
;
44
pulserTriggerHandler
*
th
;
45
46
};
47
48
49
#endif
rcdaq
blob
master
daq_device_random.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:47
using
1.8.2 with
sPHENIX GitHub integration