Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
eventServer.cc File Reference
#include <iostream>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <pthread.h>
#include <map>
#include "testEventiterator.h"
#include "fileEventiterator.h"
#include "rcdaqEventiterator.h"
#include "oncsEventiterator.h"
+ Include dependency graph for eventServer.cc:

Go to the source code of this file.

Macros

#define coutfl   cout << __FILE__<< " " << __LINE__ << " "
 
#define cerrfl   cerr << __FILE__<< " " << __LINE__ << " "
 
#define PORT   8080
 
#define MAXSIZE   5120
 
#define RCDAQEVENTITERATOR   1
 
#define FILEEVENTITERATOR   2
 
#define TESTEVENTITERATOR   3
 
#define ONCSEVENTITERATOR   4
 

Functions

void exitmsg ()
 
void exithelp ()
 
void * EventLoop (void *arg)
 
int main (int argc, char *argv[])
 

Variables

map< int, Event * > EventMap
 
Eventiteratorit
 
unsigned int depth = 1000
 
int go_on = 1
 
int identify = 0
 
int verbose = 0
 
int repeatcount =1
 
int ittype = RCDAQEVENTITERATOR
 
int sleeptime = 0
 
int old_runnumber = -9999
 
pthread_mutex_t MapSem
 

Macro Definition Documentation

#define cerrfl   cerr << __FILE__<< " " << __LINE__ << " "

Definition at line 4 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 4 of file eventServer.cc

#define coutfl   cout << __FILE__<< " " << __LINE__ << " "

Definition at line 3 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 3 of file eventServer.cc

Referenced by EventLoop().

#define FILEEVENTITERATOR   2

Definition at line 39 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 39 of file eventServer.cc

Referenced by main().

#define MAXSIZE   5120

Definition at line 32 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 32 of file eventServer.cc

Referenced by main().

#define ONCSEVENTITERATOR   4

Definition at line 41 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 41 of file eventServer.cc

Referenced by main().

#define PORT   8080

Definition at line 31 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 31 of file eventServer.cc

Referenced by main().

#define RCDAQEVENTITERATOR   1

Definition at line 38 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 38 of file eventServer.cc

Referenced by main().

#define TESTEVENTITERATOR   3

Definition at line 40 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 40 of file eventServer.cc

Referenced by main().

Function Documentation

void* EventLoop ( void *  arg)

Definition at line 84 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 84 of file eventServer.cc

Referenced by enable_trigger(), and main().

+ Here is the caller graph for this function:

void exithelp ( )

Definition at line 50 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 50 of file eventServer.cc

void exitmsg ( )

Definition at line 43 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 43 of file eventServer.cc

int main ( int  argc,
char *  argv[] 
)

Definition at line 140 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 140 of file eventServer.cc

References Acts::PhysicalConstants::c, depth, EventLoop(), EventMap, exithelp(), exitmsg(), FILEEVENTITERATOR, identify, it, ittype, MapSem, MAXSIZE, n, ONCSEVENTITERATOR, PORT, RCDAQEVENTITERATOR, sleeptime, sockfd, utils::status, TESTEVENTITERATOR, ThreadEvt, and verbose.

+ Here is the call graph for this function:

Variable Documentation

map<int, Event*> EventMap

Definition at line 34 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 34 of file eventServer.cc

Referenced by EventLoop(), and main().

int go_on = 1

Definition at line 72 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 72 of file eventServer.cc

Referenced by EventLoop(), handle_this_child(), main(), daq_device_filenumbers::put_data(), and maxflow_sap::run().

Definition at line 35 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 35 of file eventServer.cc

int ittype = RCDAQEVENTITERATOR

Definition at line 76 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 76 of file eventServer.cc

Referenced by main().

pthread_mutex_t MapSem

Definition at line 80 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 80 of file eventServer.cc

Referenced by EventLoop(), and main().

int old_runnumber = -9999

Definition at line 78 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 78 of file eventServer.cc

Referenced by EventLoop().

int repeatcount =1

Definition at line 75 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 75 of file eventServer.cc

Referenced by main().

int sleeptime = 0

Definition at line 77 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 77 of file eventServer.cc

Referenced by EventLoop(), and main().

int verbose = 0

Definition at line 74 of file eventServer.cc.

View newest version in sPHENIX GitHub at line 74 of file eventServer.cc