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
packet_id4evt.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file packet_id4evt.cc
1
#include "
packet_id4evt.h
"
2
3
Packet_id4evt::Packet_id4evt
(
PACKET_ptr
data
)
4
:
Packet_w4
(data){}
5
6
int
*
Packet_id4evt::decode
(
int
*nwout)
7
{
8
int
*
p
,*
k
;
9
int
olength;
10
int
temp[
MAX_OUTLENGTH
];
11
int
i
;
12
int
dlength
=
getDataLength
();
13
14
int
status
=
decode_id4evt
( temp
15
,(
int
*)
findPacketDataStart
(
packet
)
16
,dlength
17
,
MAX_OUTLENGTH
, &olength);
18
19
if
(status || olength<=0 )
return
NULL;
20
21
p =
new
int
[olength];
22
k =
p
;
23
for
(i =0; i<olength; i++) *k++ = temp[i];
24
*nwout = olength;
25
return
p
;
26
}
27
28
29
30
31
32
33
34
online_distribution
blob
master
newbasic
packet_id4evt.cc
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:28
using
1.8.2 with
sPHENIX GitHub integration