Public Member Functions | Private Attributes

TFaspSource Class Reference

#include <TFaspSource.h>

Public Member Functions

 TFaspSource ()
 TFaspSource (const char *name, const char *args, Int_t port)
 TFaspSource (TGo4UserSourceParameter *par)
virtual ~TFaspSource ()
virtual Int_t Open ()
virtual Int_t Close ()
virtual Bool_t CheckEventClass (TClass *cl)
virtual Bool_t BuildEvent (TGo4EventElement *dest)

Private Attributes

Bool_t fbIsOpen
FILE * fxFile

Detailed Description

Definition at line 33 of file TFaspSource.h.


Constructor & Destructor Documentation

TFaspSource::TFaspSource (  ) 

Definition at line 40 of file TFaspSource.cxx.

TFaspSource::TFaspSource ( const char *  name,
const char *  args,
Int_t  port 
)

Create source specifying values directly

Definition at line 16 of file TFaspSource.cxx.

References Open().

TFaspSource::TFaspSource ( TGo4UserSourceParameter *  par  ) 

Creat source from setup within usersource parameter object

Definition at line 27 of file TFaspSource.cxx.

References Open().

TFaspSource::~TFaspSource (  )  [virtual]

Definition at line 47 of file TFaspSource.cxx.

References Close().


Member Function Documentation

Bool_t TFaspSource::BuildEvent ( TGo4EventElement *  dest  )  [virtual]

This methods actually fills the target event class which is passed as pointer. Uses the latest event which is referenced by fxEvent or fxBuffer. Does _not_ fetch a new event from source, therefore one source event may be used to fill several TFaspEvent classes. To get a new event call NextEvent() before this method.

Definition at line 57 of file TFaspSource.cxx.

References Close(), fxFile, and roc::proc_FASP.

Bool_t TFaspSource::CheckEventClass ( TClass *  cl  )  [virtual]

This method checks if event class is suited for the source

Definition at line 52 of file TFaspSource.cxx.

Int_t TFaspSource::Close (  )  [virtual]

Close the file or connection.

Definition at line 101 of file TFaspSource.cxx.

References fbIsOpen, and fxFile.

Referenced by BuildEvent(), and ~TFaspSource().

Int_t TFaspSource::Open (  )  [virtual]

Open the file or connection.

Open connection/file

Definition at line 85 of file TFaspSource.cxx.

References fbIsOpen, and fxFile.

Referenced by TFaspSource().


Field Documentation

Bool_t TFaspSource::fbIsOpen [private]

Definition at line 64 of file TFaspSource.h.

Referenced by Close(), and Open().

FILE* TFaspSource::fxFile [private]

file that contains the data in ascii format.

Definition at line 67 of file TFaspSource.h.

Referenced by BuildEvent(), Close(), and Open().


The documentation for this class was generated from the following files: