Hall-D Software
alpha
|
#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 |
#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.
void ctrlCHandle | ( | int | x | ) |
uint64_t FindEventNumber | ( | evioDOMTree * | evt, |
uint64_t & | block_size | ||
) |
int main | ( | int | narg, |
char * | argv[] | ||
) |
Definition at line 47 of file evio_cull_events.cc.
References ctrlCHandle(), EVENTS_TO_KEEP, EVENTS_TO_SKIP, ParseCommandLineArguments(), Process(), and SPECIFIC_EVENT_TO_KEEP.
void ParseCommandLineArguments | ( | int | narg, |
char * | argv[] | ||
) |
Definition at line 75 of file evio_cull_events.cc.
References BUFFER_SIZE, EVENT_TO_KEEP_MODE, EVENTS_TO_KEEP, EVENTS_TO_SKIP, INFILENAMES, OUTFILENAME, SPECIFIC_EVENT_TO_KEEP, SPECIFIC_OFFSET_TO_KEEP, sprintf(), and Usage().
void Process | ( | unsigned int & | NEvents, |
unsigned int & | NEvents_read | ||
) |
Definition at line 180 of file evio_cull_events.cc.
References block_size, BUFFER_SIZE, e, EVENTS_TO_KEEP, EVENTS_TO_SKIP, FindEventNumber(), INFILENAMES, OUTFILENAME, QUIT, and SPECIFIC_EVENT_TO_KEEP.
Referenced by main(), DSelector_Z2pi_trees::Process(), DSelector_Z2pi_trees2::Process(), and DSelector_p2pi_trees::Process().
void Usage | ( | void | ) |
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().