#include "hldsource.h"

HldSource


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

class HldSource : public HDataSource

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


    protected:
void decodeHeader(HEventHeader* dest) public:
virtual ~HldSource() void addUnpacker(HldUnpack* unpacker) static TClass* Class() EDsState dumpEvt() virtual Bool_t finalize() Bool_t finalizeUnpacker() Bool_t getDecodingStyle() virtual EDsState getNextEvent(Bool_t doUnpack = kTRUE) Bool_t initUnpacker() virtual TClass* IsA() const HldSource& operator=(const HldSource&) virtual Bool_t reinit() virtual Bool_t rewind() EDsState scanEvt() EDsState scanIt(HldEvt* evt) void setDump() void setOldDecodingStyle(Bool_t decodingStyle = kTRUE) void setScanned(Bool_t scanned = kTRUE) EDsState showIt(HldEvt* evt) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
Bool_t isDumped Bool_t isScanned Bool_t oldDecodingStyle TList* fUnpackerList ! List of the unpackers used to extract data HldEvt* fReadEvent ! Buffer where the data is first read.

Class Description

HLdSource

  Base class for a "data source" which delivery LMD data.
  The derived class HldFileSource reads the data from a file on disk and
  the derived class HldRemoteSource getrs the data directly from the
  Data Adquisition.

  The data in the file need to be unpacked. The user must specify the list
  of unpackers (see HldUnpack) to use, this way the user can select which
  parts of the data will be retrieved. That also give support to the case of
  LMD files not containing all the possible types of data (Rich data,
  Mdc data...)

  An example would be:
  HLmdFileSource *lmdSource=new HLmdFileSource();
  lmdSource->addUnpacker(new HRichUnpacker);

  This way you only get the Rich data in the files specified in the runtime
  database



~HldSource(void)
Destructor for a LMD data source

void addUnpacker(HldUnpack *unpacker)
 adds an unpacker to the list of unpackers for a LMD source

Bool_t initUnpacker(void)
Calls the init() function for each unpacker.

Bool_t reinit(void)
Calls the reinit() function for each unpacker.

Bool_t finalizeUnpacker(void)
Calls the init() function for each unpacker.

Bool_t finalize(void)

void decodeHeader(HEventHeader *dest)
Decodes the event's header

EDsState scanIt(HldEvt *evt)
 dump the whole evt on the screen

EDsState showIt(HldEvt *evt)
 Scan the event.
printf("*******************************************************************n");

EDsState dumpEvt(void)

EDsState scanEvt(void)



Inline Functions


           EDsState getNextEvent(Bool_t doUnpack = kTRUE)
             Bool_t rewind()
             Bool_t getDecodingStyle()
               void setOldDecodingStyle(Bool_t decodingStyle = kTRUE)
               void setScanned(Bool_t scanned = kTRUE)
               void setDump()
            TClass* Class()
            TClass* IsA() const
               void ShowMembers(TMemberInspector& insp, char* parent)
               void Streamer(TBuffer& b)
               void StreamerNVirtual(TBuffer& b)
         HldSource& operator=(const HldSource&)


Author: Manuel Sanchez
Last update: 16/9/2003 by R. Holzmann
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.