Import Geant4 9.1.0 source tree
This commit is contained in:
+20
-21
@@ -23,32 +23,31 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// -*- C++ -*-
|
||||
// $Id: g4rwDetectorConstruction.hh,v 1.3 2006/06/29 17:21:41 gunter Exp $
|
||||
#ifndef g4rwDetectorConstruction_H
|
||||
#define g4rwDetectorConstruction_H 1
|
||||
//
|
||||
// $Id: DetectorConstruction.hh,v 1.2 2007/11/20 09:42:57 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
|
||||
class G4VPhysicalVolume;
|
||||
#ifndef _DETECTORCONSTRUCTION_H_
|
||||
#define _DETECTORCONSTRUCTION_H_
|
||||
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
|
||||
#include "Saxana/SAXProcessor.h"
|
||||
#include "Saxana/ProcessingConfigurator.h"
|
||||
class DetectorConstruction : public G4VUserDetectorConstruction {
|
||||
private:
|
||||
G4VPhysicalVolume *World;
|
||||
public:
|
||||
|
||||
DetectorConstruction(G4VPhysicalVolume *setWorld = 0) {
|
||||
|
||||
World = setWorld;
|
||||
}
|
||||
|
||||
class gogdmlDetectorConstruction : public G4VUserDetectorConstruction
|
||||
{
|
||||
public:
|
||||
gogdmlDetectorConstruction();
|
||||
~gogdmlDetectorConstruction();
|
||||
|
||||
public:
|
||||
G4VPhysicalVolume* Construct();
|
||||
|
||||
private:
|
||||
SAXProcessor sxp;
|
||||
ProcessingConfigurator config;
|
||||
G4VPhysicalVolume* fWorld;
|
||||
G4VPhysicalVolume *Construct() {
|
||||
|
||||
return World;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
+16
-16
@@ -23,27 +23,27 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// -*- C++ -*-
|
||||
// $Id: g4rwPhysicsList.hh,v 1.3 2006/06/29 17:21:43 gunter Exp $
|
||||
//
|
||||
// $Id: PhysicsList.hh,v 1.2 2007/11/20 09:42:57 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
|
||||
#ifndef gogdmlPhysicsList_h
|
||||
#define gogdmlPhysicsList_h 1
|
||||
#ifndef _PHYSICSLIST_H_
|
||||
#define _PHYSICSLIST_H_
|
||||
|
||||
#include "G4VUserPhysicsList.hh"
|
||||
#include "G4ParticleTypes.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class gogdmlPhysicsList: public G4VUserPhysicsList
|
||||
{
|
||||
public:
|
||||
gogdmlPhysicsList();
|
||||
~gogdmlPhysicsList();
|
||||
|
||||
protected:
|
||||
// Construct particle and physics process
|
||||
void ConstructParticle();
|
||||
void ConstructProcess();
|
||||
void SetCuts();
|
||||
|
||||
class PhysicsList: public G4VUserPhysicsList {
|
||||
public:
|
||||
PhysicsList();
|
||||
~PhysicsList();
|
||||
protected:
|
||||
void ConstructParticle();
|
||||
void ConstructProcess();
|
||||
void SetCuts();
|
||||
};
|
||||
|
||||
#endif
|
||||
+17
-18
@@ -24,33 +24,32 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: g4rwPrimaryGeneratorAction.hh,v 1.2 2006/06/29 17:21:45 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// $Id: PrimaryGeneratorAction.hh,v 1.2 2007/11/20 09:42:57 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
// Comments
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
#ifndef gogdmlPrimaryGeneratorAction_h
|
||||
#define gogdmlPrimaryGeneratorAction_h 1
|
||||
#ifndef _PRIMARYGENERATORACTION_H_
|
||||
#define _PRIMARYGENERATORACTION_H_
|
||||
|
||||
#include "G4VUserPrimaryGeneratorAction.hh"
|
||||
|
||||
class G4ParticleGun;
|
||||
class G4Event;
|
||||
#include "G4Event.hh"
|
||||
#include "G4ParticleGun.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class gogdmlPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
{
|
||||
public:
|
||||
gogdmlPrimaryGeneratorAction();
|
||||
~gogdmlPrimaryGeneratorAction();
|
||||
//class G4ParticleGun;
|
||||
//class G4Event;
|
||||
|
||||
public:
|
||||
void GeneratePrimaries(G4Event* anEvent);
|
||||
class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction {
|
||||
public:
|
||||
PrimaryGeneratorAction();
|
||||
~PrimaryGeneratorAction();
|
||||
|
||||
private:
|
||||
void GeneratePrimaries(G4Event* anEvent);
|
||||
private:
|
||||
G4ParticleGun* particleGun;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user