Import Geant4 10.7.0.beta source tree
This commit is contained in:
@@ -23,14 +23,13 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// G4HEPEvtInterface
|
||||
//
|
||||
//
|
||||
//
|
||||
// class description:
|
||||
// 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.
|
||||
// It reads an ASCII file which contains particles generated by a
|
||||
// physics generator which supports a /HEPEVT/ common block.
|
||||
//
|
||||
// The format of ASCII file must be equivalent to the following sample
|
||||
// Fortran code:
|
||||
@@ -61,8 +60,10 @@
|
||||
// corresponding set methods of G4VPrimaryGenerator base class, otherwise
|
||||
// zero will be set.
|
||||
|
||||
#ifndef G4HEPEvtInterface_h
|
||||
#define G4HEPEvtInterface_h 1
|
||||
// Author: Makoto Asai, 1997
|
||||
// --------------------------------------------------------------------
|
||||
#ifndef G4HEPEvtInterface_hh
|
||||
#define G4HEPEvtInterface_hh 1
|
||||
|
||||
#include <fstream>
|
||||
#include <vector>
|
||||
@@ -74,20 +75,21 @@
|
||||
class G4PrimaryVertex;
|
||||
class G4Event;
|
||||
|
||||
class G4HEPEvtInterface:public G4VPrimaryGenerator
|
||||
class G4HEPEvtInterface : public G4VPrimaryGenerator
|
||||
{
|
||||
public: // with description
|
||||
G4HEPEvtInterface(const char* evfile, G4int vl=0);
|
||||
// G4HEPEvtInterface(G4String evfile);
|
||||
// Constructors, "evfile" is the file name (with directory path).
|
||||
|
||||
public:
|
||||
|
||||
G4HEPEvtInterface(const char* evfile, G4int vl=0);
|
||||
// Constructor, "evfile" is the file name (with directory path).
|
||||
|
||||
~G4HEPEvtInterface();
|
||||
// Destructor
|
||||
|
||||
void GeneratePrimaryVertex(G4Event* evt);
|
||||
|
||||
private:
|
||||
G4int vLevel;
|
||||
|
||||
G4int vLevel = 0;
|
||||
G4String fileName;
|
||||
std::ifstream inputFile;
|
||||
std::vector<G4HEPEvtParticle*> HPlist;
|
||||
|
||||
Reference in New Issue
Block a user