JSFReadGenerator


class description - source file - inheritance tree

class JSFReadGenerator : public JSFGenerator


    public:
JSFReadGenerator(const char* name = "JSFReadGenerator", const char* title = "JSFReadGenerator") JSFReadGenerator(const JSFReadGenerator&) ~JSFReadGenerator() virtual Bool_t BeginRun(Int_t run) static TClass* Class() virtual Bool_t EndRun() Char_t* GetDataFileName() Int_t GetUnit() virtual TClass* IsA() const virtual Bool_t Process(Int_t event) void SetDataFileName(Char_t* name) void SetUnit(Int_t nunit) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
Int_t fUnit Fortran logical unit number to output SIMDST data. Char_t fDataFileName[256] ! File name of output file. Char_t fFormat[32] Input binary data format.

Class Description

 JSFReadGenerator

 Read a generator data file, and stored into JSFGeneratorParticle class

 Currently, HEPEVT format file is supported.

 HEPEVT format:  This file is accessed by subroutines in readgenutil.F.
 The file is a Fortran binary file.  and should be created as follows.

 INTEGER*4 NENDIAN
 INTEGER*4 NVERS
 INTEGER*4 NEVHEP
 INTEGER*4 NHEP
 INTEGER*4 ISTHEP(NMXHEP), IDHEP(NMXHEP)
 INTEGER*4 JMOHEP(2,NMXHEP), JDAHEP(2,NMXHEP)
 REAL*8    PHEP(5,NMXHEP), VHEP(4,NMXHEP)

   IU=1
   NENDIAN=1296651082
   WRITE(IU) NENDIAN, NVERS, NEVHEP, NHEP, (ITHEP(K),K=1,NHEP),
  .          (IDHEP(K),K=1,NHEP),
  .          (JMOHEP(1,K),JMOHEP(2,K),K=1,NHEP),
  .          (JDAHEP(1,K),JDAHEP(2,K),K=1,NHEP),
  .          ((PHEP(J,K),J=1,5),K=1,NHEP),
  .          ((VHEP(J,K),J=1,5),K=1,NHEP)

 (Update)
   16-Apr-2000 A.Miyamoto  Put bug fixes written by I.Nakamura in ReadOneRecord()

   31-Jan-2000 A.Miyamoto  Mange jmohep[i][0]=0 and isthep[i]=1 | 2 case in ReadOneRecord()
   21-Jan-2003 A.Miyamoto  Create ReadHepEvent method.

$Id: JSFReadGenerator.cxx,v 1.7 2003/01/22 00:17:20 miyamoto Exp $



JSFReadGenerator(const char *name, const char *title) : JSFGenerator(name,title)

Bool_t BeginRun(Int_t nrun)

Bool_t EndRun()

Bool_t Process(Int_t nev)

void Streamer(TBuffer &R__b)
 Stream an object of class JSFReadGenerator.

void Streamer(TBuffer &R__b)
 Stream an object of class JSFReadGenerator.



Inline Functions


                   Int_t GetUnit()
                 Char_t* GetDataFileName()
                    void SetUnit(Int_t nunit)
                    void SetDataFileName(Char_t* name)
                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void StreamerNVirtual(TBuffer& b)
        JSFReadGenerator JSFReadGenerator(const JSFReadGenerator&)
                    void ~JSFReadGenerator()


Last update: Tue Jan 20 15:54:26 2004


ROOT page - Home 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.