Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fakeFrame.C File Reference
#include <stdlib.h>
#include <stdio.h>
#include <malloc.h>
#include "phenixOnline.h"
#include "fakeFrame.h"
#include "Cframe.h"
#include "CframeV1.h"
#include "packetRoutines.h"
#include "frameRoutines.h"
#include "framePublic.h"
#include "formatIO.h"
+ Include dependency graph for fakeFrame.C:

Go to the source code of this file.

Macros

#define BUFFER_SIZE   65536
 

Functions

int fakeFrame (PHDWORD *frame_ptr, int bufferSize, UINT sourceId, ALIGNBLK alignBlk, int number_of_packets, int packet_ids[], int packet_lengths[], int historySize, int errorSize)
 
int splitFakeFrame (PHDWORD *frame_ptr, int total_frame_size, int length_of_buffer, PHDWORD *start_of_buffer[])
 

Macro Definition Documentation

#define BUFFER_SIZE   65536

Definition at line 35 of file fakeFrame.C.

View newest version in sPHENIX GitHub at line 35 of file fakeFrame.C

Referenced by Prototype2DSTReader::build_tree(), Prototype4DSTReader::build_tree(), Prototype3DSTReader::build_tree(), PHG4DSTReader::build_tree(), and fakeFrame().

Function Documentation

int fakeFrame ( PHDWORD frame_ptr,
int  bufferSize,
UINT  sourceId,
ALIGNBLK  alignBlk,
int  number_of_packets,
int  packet_ids[],
int  packet_lengths[],
int  historySize,
int  errorSize 
)

Definition at line 37 of file fakeFrame.C.

View newest version in sPHENIX GitHub at line 37 of file fakeFrame.C

References BUFFER_SIZE, Debug_Output, dwordClear, check_license::err(), extendFrameDataNopad(), findFrameEnd(), getFrameDataLength(), getFrameLength(), i, j, makeFrameHdr(), makeUnstructPacket(), printf(), setAlignBlock(), storeFrameHistory(), and storePacketHits().

+ Here is the call graph for this function:

int splitFakeFrame ( PHDWORD frame_ptr,
int  total_frame_size,
int  length_of_buffer,
PHDWORD start_of_buffer[] 
)

Definition at line 139 of file fakeFrame.C.

View newest version in sPHENIX GitHub at line 139 of file fakeFrame.C

References i, and j.