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

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)
 
uint64_t FindEventNumber (evioDOMTree *evt, uint64_t &block_size)
 
int main (int narg, char *argv[])
 

Variables

vector< char * > INFILENAMES
 
char * OUTFILENAME = NULL
 
int QUIT = 0
 
unsigned int EVENTS_TO_SKIP = 0
 
unsigned int EVENTS_TO_KEEP = 1
 
unsigned int SPECIFIC_OFFSET_TO_KEEP = 0
 
unsigned int SPECIFIC_EVENT_TO_KEEP = 0
 
unsigned int BUFFER_SIZE = 20000000
 
bool EVENT_TO_KEEP_MODE = false
 

Macro Definition Documentation

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

Definition at line 21 of file evio_cull_events.cc.

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

Definition at line 22 of file evio_cull_events.cc.

Function Documentation

void ctrlCHandle ( int  x)

Definition at line 167 of file evio_cull_events.cc.

References QUIT.

Referenced by main().

uint64_t FindEventNumber ( evioDOMTree *  evt,
uint64_t &  block_size 
)

Definition at line 269 of file evio_cull_events.cc.

References event_num.

Referenced by Process().

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

Variable Documentation

unsigned int BUFFER_SIZE = 20000000

Definition at line 39 of file evio_cull_events.cc.

Referenced by ParseCommandLineArguments(), and Process().

bool EVENT_TO_KEEP_MODE = false

Definition at line 40 of file evio_cull_events.cc.

Referenced by ParseCommandLineArguments(), Process_r(), and Process_s().

unsigned int EVENTS_TO_KEEP = 1

Definition at line 36 of file evio_cull_events.cc.

Referenced by main(), ParseCommandLineArguments(), Process(), Process_r(), and Process_s().

unsigned int EVENTS_TO_SKIP = 0

Definition at line 35 of file evio_cull_events.cc.

Referenced by main(), ParseCommandLineArguments(), Process(), Process_r(), and Process_s().

vector<char*> INFILENAMES

Definition at line 32 of file evio_cull_events.cc.

Referenced by ParseCommandLineArguments(), Process(), Process_r(), and Process_s().

char* OUTFILENAME = NULL

Definition at line 33 of file evio_cull_events.cc.

Referenced by main(), ParseCommandLineArguments(), Process(), Process_r(), and Process_s().

int QUIT = 0

Definition at line 34 of file evio_cull_events.cc.

Referenced by ctrlCHandle(), main(), Process(), Process_r(), and Process_s().

unsigned int SPECIFIC_EVENT_TO_KEEP = 0

Definition at line 38 of file evio_cull_events.cc.

Referenced by main(), ParseCommandLineArguments(), Process(), Process_r(), and Process_s().

unsigned int SPECIFIC_OFFSET_TO_KEEP = 0

Definition at line 37 of file evio_cull_events.cc.

Referenced by ParseCommandLineArguments().