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.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file daq_device.cc
1
2
// device_i.cc
3
/* This defines the device class.
4
* This module inherits
5
* its fsm from the activecomponent class
6
* Its static implementation is inherited from the component class
7
*
8
* created June 9,1997
9
*
10
* author:
11
*
12
* module = %M% date = %D% Version = %I%
13
* modifications:
14
* none
15
*/
16
17
18
#include <iostream>
19
#include "
daq_device.h
"
20
21
22
daq_device::daq_device
()
23
{
24
25
}
26
27
28
29
daq_device::~daq_device
()
30
{
31
}
32
33
34
int
daq_device::formatPacketHdr
(
int
* adr)
35
{
36
packetdata_ptr
sevt = (
packetdata_ptr
) adr;
37
38
sevt->
sub_length
= 6;
39
40
// sevt->hdrversion = 1;
41
// sevt->hdrlength = 6;
42
// sevt->status = 0;
43
44
sevt->
hdrinfo
= 0x01060000;
45
46
sevt->
sub_id
=0;
47
48
sevt->
debug_length
=0;
49
sevt->
error_length
=0;
50
51
// sevt->structure =0;
52
// sevt->numDescWds =1;
53
// sevt->endianism=2;
54
// sevt->sub_padding=0;
55
56
sevt->
structureinfo
= 0x00010200;
57
58
sevt->
sub_type
=4;
59
sevt->
sub_decoding
=0;
60
return
0;
61
}
62
63
rcdaq
blob
master
daq_device.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:47
using
1.8.2 with
sPHENIX GitHub integration