Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
evio_merge_files.cc File Reference
#include <iostream>
#include <fstream>
#include <iomanip>
#include <vector>
#include <signal.h>
#include <time.h>
#include <stdlib.h>

Go to the source code of this file.

Macros

#define _DBG_   cout<<__FILE__<<":"<<__LINE__<<" "
 
#define _DBG__   cout<<__FILE__<<":"<<__LINE__<<endl
 

Functions

void ParseCommandLineArguments (int narg, char *argv[])
 
void Usage (void)
 
void ctrlCHandle (int x)
 
void Process (unsigned int &NEvents, unsigned int &NEvents_read)
 
ifstream::pos_type GetFilesize (const char *filename)
 
int main (int narg, char *argv[])
 

Variables

static vector< char * > INFILENAMES
 
static char * OUTFILENAME = NULL
 
static int QUIT = 0
 
static int BLOCKSIZE = 10485760
 
static bool VERBOSE = false
 

Macro Definition Documentation

#define _DBG_   cout<<__FILE__<<":"<<__LINE__<<" "

Definition at line 18 of file evio_merge_files.cc.

#define _DBG__   cout<<__FILE__<<":"<<__LINE__<<endl

Definition at line 19 of file evio_merge_files.cc.

Function Documentation

void ctrlCHandle ( int  x)
ifstream::pos_type GetFilesize ( const char *  filename)

Definition at line 36 of file evio_merge_files.cc.

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

Definition at line 45 of file evio_merge_files.cc.

References ctrlCHandle(), ParseCommandLineArguments(), and Process().

void ParseCommandLineArguments ( int  narg,
char *  argv[] 
)
void Process ( unsigned int &  NEvents,
unsigned int &  NEvents_read 
)
void Usage ( void  )

Variable Documentation

int BLOCKSIZE = 10485760
static

Definition at line 30 of file evio_merge_files.cc.

vector<char*> INFILENAMES
static

Definition at line 27 of file evio_merge_files.cc.

char* OUTFILENAME = NULL
static

Definition at line 28 of file evio_merge_files.cc.

int QUIT = 0
static

Definition at line 29 of file evio_merge_files.cc.

bool VERBOSE = false
static

Definition at line 31 of file evio_merge_files.cc.