class THaCodaFile: public THaCodaData


  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)


Function Members (Methods)

public:
THaCodaFile()
THaCodaFile(const char* filename, const char* rw = "r")
virtual~THaCodaFile()
voidaddEvListFilt(int event_to_filt)
voidaddEvTypeFilt(int evtype_to_filt)
static TClass*Class()
virtual intcodaClose()
virtual intcodaOpen(const char* filename, int mode = 1)
virtual intcodaOpen(const char* filename, const char* rw, int mode = 1)
virtual intcodaRead()
intcodaWrite(const int* evbuffer)
intfilterToFile(const char* output_file)
virtual intTHaCodaData::getBuffSize() const
virtual int*getEvBuffer()
virtual TClass*IsA() const
virtual boolisOpen() const
voidsetMaxEvFilt(int max_event)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
private:
THaCodaFile(const THaCodaFile& fn)
voidinit(const char* fname = "")
voidinitFilter()
THaCodaFile&operator=(const THaCodaFile& fn)
voidstaterr(const char* tried_to, int status)

Data Members

protected:
int*THaCodaData::evbufferRaw data
TStringTHaCodaData::filename
private:
TArrayIevlist
TArrayIevtypes
intffirst
void*handle
intmax_to_filt
intmaxflist
intmaxftype

Class Charts

Inheritance Chart:
THaCodaData
THaCodaFile

Function documentation

THaCodaFile(const THaCodaFile& fn)
 Default constructor. Do nothing (must open file separately).
THaCodaFile(const char* filename, const char* rw = "r")
 Standard constructor
~THaCodaFile()
Destructor
int codaOpen(const char* filename, int mode = 1)
int codaOpen(const char* filename, const char* rw, int mode = 1)
int codaClose()
 Close the file. Do nothing if file not opened.
int codaRead()
 codaRead: Reads data from file, stored in evbuffer.
 Must be called once per event.
int codaWrite(const int* evbuffer)
 codaWrite: Writes data from 'evbuf' to file
int* getEvBuffer()
 Here's how to get raw event buffer, evbuffer, after codaRead call
bool isOpen()
int filterToFile(const char* output_file)
 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).
void addEvTypeFilt(int evtype_to_filt)
 Function to set up filtering by event type
void addEvListFilt(int event_to_filt)
 Function to set up filtering by list of event numbers
void setMaxEvFilt(int max_event)
 Function to set up the max number of events to filter
void staterr(const char* tried_to, int status)
 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.
void init(const char* fname = "")
void initFilter()
THaCodaFile(const THaCodaFile& fn)
THaCodaFile& operator=(const THaCodaFile& fn)

Last change: Sat Nov 7 21:26:43 2009
Last generated: 2009-11-07 21:26

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.