Import Geant4 9.6.0 source tree
This commit is contained in:
+12
-8
@@ -23,11 +23,13 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file persistency/gdml/G02/include/G02ChamberParameterisation.hh
|
||||
/// \brief Definition of the G02ChamberParameterisation class
|
||||
//
|
||||
// $Id: ChamberParameterisation.hh,v 1.1 2008-08-27 10:30:18 gcosmo Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
// Class ChamberParameterisation
|
||||
// $Id$
|
||||
//
|
||||
// Class G02ChamberParameterisation
|
||||
//
|
||||
// A parameterisation that describes a series of boxes along Z
|
||||
// The boxes have equal width; their lengths are a linear equation.
|
||||
@@ -35,8 +37,8 @@
|
||||
//
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#ifndef ChamberParameterisation_H
|
||||
#define ChamberParameterisation_H 1
|
||||
#ifndef G02ChamberParameterisation_H
|
||||
#define G02ChamberParameterisation_H 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VPVParameterisation.hh"
|
||||
@@ -60,18 +62,20 @@ class G4Polyhedra;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class ChamberParameterisation : public G4VPVParameterisation
|
||||
/// Chamber parametrisation used in the GDML read/write example
|
||||
|
||||
class G02ChamberParameterisation : public G4VPVParameterisation
|
||||
{
|
||||
public:
|
||||
|
||||
ChamberParameterisation(G4int NoChambers,
|
||||
G02ChamberParameterisation(G4int NoChambers,
|
||||
G4double startZ,
|
||||
G4double spacing,
|
||||
G4double widthChamber,
|
||||
G4double lengthInitial,
|
||||
G4double lengthFinal );
|
||||
|
||||
virtual ~ChamberParameterisation();
|
||||
virtual ~G02ChamberParameterisation();
|
||||
|
||||
void ComputeTransformation (const G4int copyNo,
|
||||
G4VPhysicalVolume* physVol) const;
|
||||
+21
-17
@@ -23,18 +23,20 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file persistency/gdml/G02/include/G02DetectorConstruction.hh
|
||||
/// \brief Definition of the G02DetectorConstruction class
|
||||
//
|
||||
// $Id: DetectorConstruction.hh,v 1.1 2008-08-27 10:30:18 gcosmo Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
// Class DetectorConstruction
|
||||
// $Id$
|
||||
//
|
||||
// Class G02DetectorConstruction
|
||||
//
|
||||
// A detector construction class loading the geometry from GDML files.
|
||||
//
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#ifndef DetectorConstruction_H
|
||||
#define DetectorConstruction_H 1
|
||||
#ifndef G02DetectorConstruction_H
|
||||
#define G02DetectorConstruction_H 1
|
||||
|
||||
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
@@ -44,18 +46,20 @@
|
||||
|
||||
#include "globals.hh"
|
||||
|
||||
class DetectorMessenger;
|
||||
class G02DetectorMessenger;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class DetectorConstruction : public G4VUserDetectorConstruction
|
||||
/// Detector construction used in GDML read/write example
|
||||
|
||||
class G02DetectorConstruction : public G4VUserDetectorConstruction
|
||||
{
|
||||
public:
|
||||
|
||||
// Constructor and destructor
|
||||
//
|
||||
DetectorConstruction();
|
||||
~DetectorConstruction();
|
||||
G02DetectorConstruction();
|
||||
~G02DetectorConstruction();
|
||||
|
||||
// Construction of SubDetectors
|
||||
//
|
||||
@@ -81,29 +85,29 @@ class DetectorConstruction : public G4VUserDetectorConstruction
|
||||
|
||||
private:
|
||||
|
||||
G4Material* Air ;
|
||||
G4Material* Aluminum ;
|
||||
G4Material* Pb;
|
||||
G4Material* Xenon;
|
||||
G4Material* fAir ;
|
||||
G4Material* fAluminum ;
|
||||
G4Material* fPb;
|
||||
G4Material* fXenon;
|
||||
|
||||
// GDMLparser
|
||||
//
|
||||
G4GDMLParser parser;
|
||||
G4GDMLParser fParser;
|
||||
|
||||
// Reading and Writing Settings
|
||||
//
|
||||
G4String fReadFile;
|
||||
G4String fWriteFile;
|
||||
G4String fStepFile;
|
||||
G4int writingChoice;
|
||||
G4int fWritingChoice;
|
||||
|
||||
// Detector Messenger
|
||||
//
|
||||
DetectorMessenger* detectorMessenger;
|
||||
G02DetectorMessenger* fDetectorMessenger;
|
||||
|
||||
// World Dimentions
|
||||
//
|
||||
G4double expHall_x;
|
||||
G4double fExpHall_x;
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
+18
-14
@@ -23,47 +23,51 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file persistency/gdml/G02/include/G02DetectorMessenger.hh
|
||||
/// \brief Definition of the G02DetectorMessenger class
|
||||
//
|
||||
// $Id: DetectorMessenger.hh,v 1.1 2008-08-27 10:30:18 gcosmo Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
// Class DetectorMessenger
|
||||
// $Id$
|
||||
//
|
||||
// Class G02DetectorMessenger
|
||||
//
|
||||
// Utility messenger for defining run-time commands relative to the example.
|
||||
//
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#ifndef DetectorMessenger_h
|
||||
#define DetectorMessenger_h 1
|
||||
#ifndef G02DetectorMessenger_h
|
||||
#define G02DetectorMessenger_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4UImessenger.hh"
|
||||
|
||||
class DetectorConstruction;
|
||||
class G02DetectorConstruction;
|
||||
class G4UIdirectory;
|
||||
class G4UIcmdWithAString;
|
||||
class G4UIcmdWithAnInteger;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class DetectorMessenger: public G4UImessenger
|
||||
/// Detector messenger class used in GDML read/write example
|
||||
|
||||
class G02DetectorMessenger: public G4UImessenger
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
DetectorMessenger( DetectorConstruction* );
|
||||
~DetectorMessenger();
|
||||
G02DetectorMessenger( G02DetectorConstruction* );
|
||||
~G02DetectorMessenger();
|
||||
|
||||
void SetNewValue( G4UIcommand*, G4String );
|
||||
void SetNewValue( G4UIcommand*, G4int );
|
||||
|
||||
private:
|
||||
|
||||
DetectorConstruction* theDetector;
|
||||
G4UIdirectory* theDetectorDir;
|
||||
G4UIcmdWithAString* theReadCommand;
|
||||
G4UIcmdWithAString* theWriteCommand;
|
||||
G4UIcmdWithAString* theStepCommand;
|
||||
G02DetectorConstruction* fTheDetector;
|
||||
G4UIdirectory* fTheDetectorDir;
|
||||
G4UIcmdWithAString* fTheReadCommand;
|
||||
G4UIcmdWithAString* fTheWriteCommand;
|
||||
G4UIcmdWithAString* fTheStepCommand;
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
+14
-10
@@ -23,18 +23,20 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file persistency/gdml/G02/include/G02PrimaryGeneratorAction.hh
|
||||
/// \brief Definition of the G02PrimaryGeneratorAction class
|
||||
//
|
||||
// $Id: PrimaryGeneratorAction.hh,v 1.1 2008-08-27 10:30:18 gcosmo Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
// Class PrimaryGeneratorAction
|
||||
// $Id$
|
||||
//
|
||||
// Class G02PrimaryGeneratorAction
|
||||
//
|
||||
// Simple primary-generator action class.
|
||||
//
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#ifndef PrimaryGeneratorAction_h
|
||||
#define PrimaryGeneratorAction_h 1
|
||||
#ifndef G02PrimaryGeneratorAction_h
|
||||
#define G02PrimaryGeneratorAction_h 1
|
||||
|
||||
#include "G4ParticleTable.hh"
|
||||
#include "G4ParticleGun.hh"
|
||||
@@ -44,14 +46,16 @@
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
/// Primary generator action used in GDML read/write example
|
||||
|
||||
class G02PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
{
|
||||
public:
|
||||
|
||||
// Constructor and destructor
|
||||
//
|
||||
PrimaryGeneratorAction();
|
||||
~PrimaryGeneratorAction();
|
||||
G02PrimaryGeneratorAction();
|
||||
~G02PrimaryGeneratorAction();
|
||||
|
||||
// Used by Geant4 to generate the primary particles of the event
|
||||
//
|
||||
@@ -59,8 +63,8 @@ class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
|
||||
private:
|
||||
|
||||
G4ParticleGun* particleGun;
|
||||
G4ParticleTable * particleTable;
|
||||
G4ParticleGun* fParticleGun;
|
||||
G4ParticleTable * fParticleTable;
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
+12
-8
@@ -23,18 +23,20 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
/// \file persistency/gdml/G02/include/G02RunAction.hh
|
||||
/// \brief Definition of the G02RunAction class
|
||||
//
|
||||
// $Id: RunAction.hh,v 1.2 2008-12-18 12:57:00 gunter Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
// Class RunAction
|
||||
// $Id$
|
||||
//
|
||||
// Class G02RunAction
|
||||
//
|
||||
// Simple run action class.
|
||||
//
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#ifndef RunAction_h
|
||||
#define RunAction_h 1
|
||||
#ifndef G02RunAction_h
|
||||
#define G02RunAction_h 1
|
||||
|
||||
#include <iostream>
|
||||
|
||||
@@ -45,12 +47,14 @@ class G4Run;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class RunAction : public G4UserRunAction
|
||||
/// Run action used in GDML read/write example
|
||||
|
||||
class G02RunAction : public G4UserRunAction
|
||||
{
|
||||
public:
|
||||
|
||||
RunAction();
|
||||
~RunAction();
|
||||
G02RunAction();
|
||||
~G02RunAction();
|
||||
|
||||
void BeginOfRunAction(const G4Run*);
|
||||
void EndOfRunAction(const G4Run*);
|
||||
Reference in New Issue
Block a user