#include "hdatasource.h"

HDataSource


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

class HDataSource : public TObject

Inheritance Chart:
TObject
<-
HDataSource
<-
HDirectSource
HGeantSource
HldSource
<-
HldFileSourceBase
<-
HldFileSource
<-
HldRFIOFileSource
HSUHldFileInfo
HldGrepFileSource
HldRemoteSource
HldSockRemoteSource
 [more...]
 
    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.


    public:
~HDataSource() static TClass* Class() virtual Bool_t finalize() virtual const Text_t* getCurrentFileName() const virtual Int_t getCurrentRefId() virtual Int_t getCurrentRunId() virtual EDsState getNextEvent(Bool_t doUnpack = kTRUE) virtual Bool_t init() virtual TClass* IsA() const HDataSource& operator=(const HDataSource&) virtual Bool_t reinit() virtual Bool_t rewind() void setEventAddress(HEvent** ev) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual EDsState skipEvents(Int_t nEv) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
HEvent** fEventAddr ! Address of the event to fill

Class Description

HDataSource

  This is an abstract base class. Its derived classes provide the data needed
 for the reconstruction, reading them from different sources.

  The main method of this class is getNextEvent() which is responsible of
 reading data from the source (file...) and put them into the event pointed
 by fEventAddr

  The return value is:
      kDsOk --------> no error.
      kDsEndFile ---> file's end.
      kDsEndData ---> data's end.
      kDsError -----> error.

  Another important method is init(). In this method the data source must
 setup all what it needs to run (get pointers to the target categories, and
 if the returned pointer is NULL, create those categories ...).


  Within the whole framework, the data sources (classes inherited from
 HDataSource) are the responsible for reading the event's data before its
 proccessing.


void setEventAddress(HEvent **ev)
 Used to give the data source the address of the event it must fill in
 Input:
  ev --> Address of a pointer to the event that will be filled in by the
         data source

EDsState skipEvents(Int_t n)



Inline Functions


                 void ~HDataSource()
             EDsState getNextEvent(Bool_t doUnpack = kTRUE)
               Bool_t init()
               Bool_t reinit()
               Bool_t finalize()
               Bool_t rewind()
                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)
         HDataSource& operator=(const HDataSource&)


Author: Manuel Sanchez
Last update: 9/10/1998 by Manuel Sanchez
Copyright GENP (Univ. Santiago de Compostela)


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.