BrGeantData
class description - source file - inheritance tree
class BrGeantData : public TObject
public:
BrGeantData BrGeantData(BrGeantData&)
BrGeantData BrGeantData(Char_t* filename)
BrGeantData BrGeantData()
void ~BrGeantData()
TClass* Class()
virtual Bool_t Close()
virtual BrEvent* GetNextEvent()
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 Streamer(TBuffer& b)
private:
Bool_t rHeader ! Header read mark
Int_t fEventCounter ! Event counter
Char_t fFileName[256] ! File name for ASCII file containing raw hits
ifstream* fFilePointer File pointer to STREAM file
Int_t fNumberOfVolumes Number of GEANT volumes
GeantVolume fVolume[50] Geant Volumes in STREAM file
BrGeantData provides an interface to GBRAHMS output
BrGeantData()
Constructor. Set fFilePointer and fEventCounter to NULL
BrGeantData(Char_t *filename)
Constructor. Set fFilePointer and fEventCounter to NULL
and open the file pointed to by *filename. Open also
reads the file header.
This is a problem. A constructor cannot return a type and thus not
assign any reasonable value.
Bool_t Open(Char_t *fname)
Open the ASCII data file *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
Bool_t Close()
Close the file pointed to by fFilePointer. Returns
kFALSE if no file was open.
Bool_t ReadStreamHeader()
BrEvent* GetNextEvent()
Reads one event from the stream i/o data file. A BrEvent
object is created and the hitlist and tracklist for
this object is filled with data read from the file.
Releasing the memory for this event is the responsibility
of the function/macro calling GetNextEvent()
The memory
is completely released by a call to the BrEvent destructor
(e.g. delete event;)
Inline Functions
Bool_t GetrHeader()
void SetrHeader(Bool_t rHead)
TClass* Class()
TClass* IsA()
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
BrGeantData BrGeantData(BrGeantData&)
void ~BrGeantData()
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.