#include "hgeantsource.h"

HGeantSource


class description - source file - inheritance tree (.pdf)

class HGeantSource : public HDataSource

Inheritance Chart:
TObject
<-
HDataSource
<-
HGeantSource
 
    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.


    public:
~HGeantSource() Bool_t addGeantReader(HGeantReader* r, Text_t* inputFile) static TClass* Class() virtual Bool_t finalize() virtual const Text_t* getCurrentFileName() const virtual Int_t getCurrentRefId() virtual Int_t getCurrentRunId() EDsState getNextEvent() virtual Bool_t init() virtual TClass* IsA() const virtual Bool_t reinit() virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
TList fReaderList List of active geant readers. THashTable fFileTable Hash table with input files

Class Description

 HGeantSource

  This class is a data source to read the simulated data obtained from
GEANT.

  HGeantSource acts as a container of different HGeantReader objects, which
do the actual work by getting the data from a file and putting those data
in the corresponding categories when their "execute" function is called

  This kind of design, as in HLmdSource, allows the user to specifically
read only those parts of the event in which is interested.


~HGeantSource(void)
Destructor. Deletes the readers

Bool_t addGeantReader(HGeantReader *r,Text_t *inputFile)
This method allows to specify which readers will be used to get the data.
The first input is the actual reader to be used, and the second input is the
name of the file from where this reader will read data; specifying the name
here allows having several readers each of them taking data from a different file.

 The situation of two or more readers taking data from the same file is foreseen,
the user just gives the same name for the input file when adding both readers.

Bool_t init(void)
 calls the init() functions of all readers

Bool_t finalize(void)

EDsState getNextEvent(void)
Tries to read a new event into the HEvent
structure:




Inline Functions


               Bool_t reinit()
                Int_t getCurrentRunId()
                Int_t getCurrentRefId()
        const Text_t* getCurrentFileName() const
              TClass* Class()
              TClass* IsA() const
                 void ShowMembers(TMemberInspector& insp, char* parent)
                 void Streamer(TBuffer& b)
                 void StreamerNVirtual(TBuffer& b)


Author: Manuel Sanchez
Last update: 26/08/99 by R. Holzmann


ROOT page - Class index - Class Hierarchy - Top of the page

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.