Import Geant4 1.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:28:20 +02:00
parent aaa409b6ee
commit ca1c8cb059
2995 changed files with 106830 additions and 299600 deletions
+43 -6
View File
@@ -1,19 +1,19 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4HEPEvtInterface.hh,v 1.1 1999/01/07 16:06:33 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4HEPEvtInterface.hh,v 1.2.2.1.2.1 1999/12/07 20:47:50 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef G4HEPEvtInterface_h
#define G4HEPEvtInterface_h 1
#include <fstream.h>
#include <rw/tpordvec.h>
#include "g4rw/tpordvec.h"
#include "globals.hh"
#include "G4VPrimaryGenerator.hh"
#include "G4HEPEvtParticle.hh"
@@ -21,11 +21,48 @@
class G4PrimaryVertex;
class G4Event;
// class description:
//
// This is a concrete class of G4VPrimaryGenerator.
// This class object reads an ASCII file which contains particles generated
// by a physics generator which supports /HEPEVT/ common block.
//
// The format of ASCII file must be equivalent to the follwing sample fortran
// code.
//***********************************************************
// SUBROUTINE HEP2G4
//*
//* Output /HEPEVT/ event structure to G4HEPEvtInterface
//*
//***********************************************************
// PARAMETER (NMXHEP=2000)
// COMMON/HEPEVT/NEVHEP,NHEP,ISTHEP(NMXHEP),IDHEP(NMXHEP),
// >JMOHEP(2,NMXHEP),JDAHEP(2,NMXHEP),PHEP(5,NMXHEP),VHEP(4,NMXHEP)
// DOUBLE PRECISION PHEP,VHEP
//*
// WRITE(6,*) NHEP
// DO IHEP=1,NHEP
// WRITE(6,10)
// > ISTHEP(IHEP),IDHEP(IHEP),JDAHEP(1,IHEP),JDAHEP(2,IHEP),
// > PHEP(1,IHEP),PHEP(2,IHEP),PHEP(3,IHEP),PHEP(5,IHEP)
//10 FORMAT(4I5,4(1X,D15.8))
// ENDDO
//*
// RETURN
// END
//
// The position and time of the primary interaction must be set by the corresponding
// set methods of G4VPrimaryGenerator base class, otherwise zero will be set.
//
class G4HEPEvtInterface:public G4VPrimaryGenerator
{
public:
public: // with description
G4HEPEvtInterface(char* evfile);
G4HEPEvtInterface(G4String evfile);
// Constructors, "evfile" is the file name (with directory path).
public:
~G4HEPEvtInterface();
void GeneratePrimaryVertex(G4Event* evt);
@@ -33,7 +70,7 @@ class G4HEPEvtInterface:public G4VPrimaryGenerator
private:
G4String fileName;
ifstream inputFile;
RWTPtrOrderedVector<G4HEPEvtParticle> HPlist;
G4RWTPtrOrderedVector<G4HEPEvtParticle> HPlist;
};
#endif