BrGeantInput


class description - source file - inheritance tree

class BrGeantInput : public BrIOModule


    public:
BrGeantInput BrGeantInput(Char_t* filename) BrGeantInput BrGeantInput(BrGeantInput&) BrGeantInput BrGeantInput() void ~BrGeantInput() TClass* Class() virtual Bool_t Close() virtual void Event(BrEvent* event) Int_t GetNumberOfVolumes() Bool_t GetrHeader() virtual TClass* IsA() virtual Bool_t Open(Char_t* fname) virtual Bool_t ReadStreamHeader() void SetrHeader(Bool_t rHead) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void SkipEvent(Int_t numevt) virtual void Streamer(TBuffer& b) void SwapLong(int* buffer, int nb)

Data Members

private:
Bool_t rHeader ! Header read mark Bool_t fByteSwap Flag for ByteSwap Int_t fEventCounter ! Event counter Char_t fFileName[256] ! File name for ASCII file containing raw hits Int_t fFileDescriptor file descriptor Int_t fNumberOfVolumes ! Number of GEANT volumes GeantVol fVolume[30] ! Geant Volumes in STREAM file

Class Description

                                                            
 BrGeantInput provides an interface to GBRAHMS output       

 The class is derived from the general input/output class
 and falls natural into the hierachi of module classes,
 which the BrGeantData does not.
 In terms of functionality it is very similar



BrGeantInput()
  Constructor. Set fFilePointer and fEventCounter to NULL
  In root environment use the named constructor normally.

BrGeantInput(Char_t *Name) : BrIOModule(Name, Name)
 Constructor. Set fFilePointer and fEventCounter to NULL
 name becomes Name and Title for the Module.
 No data file is opened this has to be done in
 the Open() method.


~BrGeantInput()
  Destructor for BrGeantInput. Close the file if open.


Bool_t Open(Char_t *fname)
 Open the C stream file with fname. Returns kFALSE
 if the file can't be opened.
 Otherwise the fFileName data member is set to the
 corresponding filepointer. The file header is read
 and the volume information is stored in the intrinsic arrays


Bool_t Close()
 Close the file Opened by the object. Return
 kFALSE if no file was open.

Bool_t ReadStreamHeader()
 read the volume information from the header.
 At this time it is only used to define the Names
 of the hit structures. The information is not used by other parts
 of the reconstruction even though one could imagine that
 the code could 'inquire' on volume information for a specific
 detector.
 This is not implemented. A better way will alos be to have a general
 method for passing geometries around.


void SkipEvent(Int_t numevt)

void Event(BrEvent* event)
 Reads one event from the C-stream  data file.The BrEvent
 object has hitlist and tracklist added to the Event.

 This object is filled with data read from the file.
  It is the responsibility of the calling program to have created the
  event.

 Releasing the memory for this event is the responsibility
 of the function/macro calling Event();

void SwapLong(int *buffer,int nb)



Inline Functions


               Int_t GetNumberOfVolumes()
              Bool_t GetrHeader()
                void SetrHeader(Bool_t rHead)
             TClass* Class()
             TClass* IsA()
                void ShowMembers(TMemberInspector& insp, char* parent)
                void Streamer(TBuffer& b)
        BrGeantInput BrGeantInput(BrGeantInput&)


ROOT page - Class index - 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.