ROOT logo
Podd » (UNKNOWN) » Decoder::THaCodaFile

class Decoder::THaCodaFile: public Decoder::THaCodaData


  THaCodaFile
  File of CODA data

  CODA data file, and facilities to open, close, read,
  write, filter CODA data to disk files, etc.

  This is largely a wrapper around the JLAB EVIO library.

  author  Robert Michaels (rom@jlab.org)


Function Members (Methods)

public:
virtual~THaCodaFile()
voidaddEvListFilt(Int_t event_to_filt)
voidaddEvTypeFilt(Int_t evtype_to_filt)
static TClass*Class()
virtual Int_tcodaClose()
virtual Int_tcodaOpen(const char* filename, Int_t mode = 1)
virtual Int_tcodaOpen(const char* filename, const char* rw, Int_t mode = 1)
virtual Int_tcodaRead()
Int_tcodaWrite(const UInt_t* evbuffer)
Int_tfilterToFile(const char* output_file)
virtual Int_tDecoder::THaCodaData::getBuffSize() const
virtual UInt_t*Decoder::THaCodaData::getEvBuffer()
virtual TClass*IsA() const
virtual boolisOpen() const
voidsetMaxEvFilt(Int_t max_event)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
Decoder::THaCodaFileTHaCodaFile()
Decoder::THaCodaFileTHaCodaFile(const char* filename, const char* rw = "r")
protected:
static Int_tDecoder::THaCodaData::ReturnCode(Int_t evio_retcode)
private:
voidinit(const char* fname = "")
voidinitFilter()
Decoder::THaCodaFile&operator=(const Decoder::THaCodaFile& fn)
voidstaterr(const char* tried_to, Int_t status)
Decoder::THaCodaFileTHaCodaFile(const Decoder::THaCodaFile& fn)

Data Members

private:
TArrayIevlist
TArrayIevtypes
Int_tffirst
Int_thandle
Int_tmax_to_filt
Int_tmaxflist
Int_tmaxftype

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

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