THaCodaFile File of CODA data CODA data file, and facilities to open, close, read, write, filter CODA data to disk files, etc. A lot of this relies on the "evio.cpp" code from DAQ group which is a C++ rendition of evio.c that we have used for years, but here are some useful added features. author Robert Michaels (rom@jlab.org)
THaCodaFile() | |
THaCodaFile(const char* filename, const char* rw = "r") | |
virtual | ~THaCodaFile() |
void | addEvListFilt(int event_to_filt) |
void | addEvTypeFilt(int evtype_to_filt) |
static TClass* | Class() |
virtual int | codaClose() |
virtual int | codaOpen(const char* filename, int mode = 1) |
virtual int | codaOpen(const char* filename, const char* rw, int mode = 1) |
virtual int | codaRead() |
int | codaWrite(const int* evbuffer) |
int | filterToFile(const char* output_file) |
virtual int | THaCodaData::getBuffSize() const |
virtual int* | getEvBuffer() |
virtual TClass* | IsA() const |
virtual bool | isOpen() const |
void | setMaxEvFilt(int max_event) |
virtual void | ShowMembers(TMemberInspector& insp, char* parent) |
virtual void | Streamer(TBuffer& b) |
void | StreamerNVirtual(TBuffer& b) |
THaCodaFile(const THaCodaFile& fn) | |
void | init(const char* fname = "") |
void | initFilter() |
THaCodaFile& | operator=(const THaCodaFile& fn) |
void | staterr(const char* tried_to, int status) |
int* | THaCodaData::evbuffer | Raw data |
TString | THaCodaData::filename |
Inheritance Chart: | |||||||||
|
A call to filterToFile filters from present file to output_file using filter criteria defined by evtypes, evlist, and max_to_filt which are loaded by public methods of this class. If no conditions were loaded, it makes a copy of the input file (i.e. no filtering).
staterr gives the non-expert user a reasonable clue of what the status returns from evio mean. Note: severe errors can cause job to exit(0) and the user has to pay attention to why.