Analysis Software
Documentation for sPHENIX simulation software
 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 
23 {
24 
25 }
26 
27 
28 
30 {
31 }
32 
33 
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