Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
framePackets.C File Reference
#include "framePackets.h"
#include "Cframe.h"
#include "Cpacket.h"
#include "packetPublic.h"
#include "framePublic.h"
#include "frameRoutines.h"
#include "packetRoutines.h"
#include "formatError.h"
+ Include dependency graph for framePackets.C:

Go to the source code of this file.

Functions

PACKET_ptr appendEmptyFramePacket (FRAME_ptr frame_ptr, PHDWORD maxFrameLength, UINT packetId)
 
LOGIC_ret isLastFramePacket (FRAME_ptr frame_ptr, PACKET_ptr packet_ptr)
 
PACKET_ptr findFramePacketIndex (FRAME_ptr frame_ptr, UINT index)
 
PACKET_ptr findFirstFramePacket (FRAME_ptr frame_ptr)
 
PACKET_ptr findLastFramePacket (FRAME_ptr frame_ptr)
 
PACKET_ptr findFramePacketId (FRAME_ptr frame_ptr, UINT packetId)
 
PACKET_ptr findNextFramePacketId (FRAME_ptr frame_ptr, PACKET_ptr previousPacket_ptr, UINT packetId)
 
PACKET_ptr findNextFramePacket (FRAME_ptr frame_ptr, PACKET_ptr currentPacket_ptr)
 
VALUE_ret frameNumPackets (FRAME_ptr frame_ptr)
 

Function Documentation

PACKET_ptr appendEmptyFramePacket ( FRAME_ptr  frame_ptr,
PHDWORD  maxFrameLength,
UINT  packetId 
)

Definition at line 44 of file framePackets.C.

View newest version in sPHENIX GitHub at line 44 of file framePackets.C

References extendFrameData(), findFrameDataStart(), FORMAT_ERR_BUFFER_OVERFLOW, makeEmptyPacket(), packetV1HdrLength, ptrFailure, setPacketSuccess(), setUserError(), validFrameHdr(), and valueFailure.

+ Here is the call graph for this function:

PACKET_ptr findFirstFramePacket ( FRAME_ptr  frame_ptr)

Definition at line 146 of file framePackets.C.

View newest version in sPHENIX GitHub at line 146 of file framePackets.C

References findFramePacketIndex().

Referenced by dumpFramePackets(), findLastFramePacket(), and frameNumPackets().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PACKET_ptr findFramePacketId ( FRAME_ptr  frame_ptr,
UINT  packetId 
)

Definition at line 181 of file framePackets.C.

View newest version in sPHENIX GitHub at line 181 of file framePackets.C

References findFrameDataStart(), findNextFramePacket(), getPacketId(), ptrFailure, and validFrameHdr().

Referenced by X_Event::change_id(), A_Event::getFrameEntry(), A_Event::listError(), A_Event::listFrame(), and A_Event::listHistory().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PACKET_ptr findFramePacketIndex ( FRAME_ptr  frame_ptr,
UINT  index 
)

Definition at line 103 of file framePackets.C.

View newest version in sPHENIX GitHub at line 103 of file framePackets.C

References findFrameDataStart(), findNextFramePacket(), index, ptrFailure, validFrameHdr(), and validPacketHdr().

Referenced by X_Event::change_hf(), A_Event::createMap(), findFirstFramePacket(), and A_Event::getPacketList().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PACKET_ptr findLastFramePacket ( FRAME_ptr  frame_ptr)

Definition at line 154 of file framePackets.C.

View newest version in sPHENIX GitHub at line 154 of file framePackets.C

References findFirstFramePacket(), findNextFramePacket(), and ptrFailure.

Referenced by isLastFramePacket().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PACKET_ptr findNextFramePacket ( FRAME_ptr  frame_ptr,
PACKET_ptr  currentPacket_ptr 
)

Definition at line 230 of file framePackets.C.

View newest version in sPHENIX GitHub at line 230 of file framePackets.C

References findFrameDataEnd(), findFrameDataStart(), findPacketEnd(), and ptrFailure.

Referenced by X_Event::change_hf(), A_Event::createMap(), dumpFramePackets(), findFramePacketId(), findFramePacketIndex(), findLastFramePacket(), findNextFramePacketId(), frameNumPackets(), and A_Event::getPacketList().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PACKET_ptr findNextFramePacketId ( FRAME_ptr  frame_ptr,
PACKET_ptr  previousPacket_ptr,
UINT  packetId 
)

Definition at line 207 of file framePackets.C.

View newest version in sPHENIX GitHub at line 207 of file framePackets.C

References findNextFramePacket(), getPacketId(), and ptrFailure.

+ Here is the call graph for this function:

VALUE_ret frameNumPackets ( FRAME_ptr  frame_ptr)

Definition at line 260 of file framePackets.C.

View newest version in sPHENIX GitHub at line 260 of file framePackets.C

References findFirstFramePacket(), findNextFramePacket(), and ptrFailure.

+ Here is the call graph for this function:

LOGIC_ret isLastFramePacket ( FRAME_ptr  frame_ptr,
PACKET_ptr  packet_ptr 
)

Definition at line 80 of file framePackets.C.

View newest version in sPHENIX GitHub at line 80 of file framePackets.C

References FALSE, findLastFramePacket(), validFrameHdr(), and validPacketHdr().

+ Here is the call graph for this function: