Import Geant4 0.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:09:25 +02:00
parent b97f8d0df7
commit aaa409b6ee
2922 changed files with 55107 additions and 81674 deletions
+14 -10
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4o.cc,v 2.3 1998/09/16 12:08:41 barrand Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4o.cc,v 1.3 1999/05/18 10:56:53 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
/*
#define DEBUG
@@ -15,20 +15,21 @@
#include <stdio.h>
#include <string.h>
/*GEANT4*/
// Geant4 :
#include <G4VPhysicalVolume.hh>
#include <G4LogicalVolume.hh>
#include <G4PhysicalVolumeStore.hh>
#include <G4PhysicalVolumeModel.hh>
#include <G4ModelingParameters.hh>
#include <G4RunManager.hh>
#include <G4Trajectory.hh>
/*For G4UI.*/
// For G4UI :
#include <G4UImanager.hh>
//#include <G4ParticleTblMessenger.hh>
#include <G4ParticleTable.hh>
/*Co*/
// Co :
#include <CPrinter.h>
#include <CMemory.h>
#include <CString.h>
@@ -39,11 +40,11 @@
#include <OShell.h>
#include <OProcess.h>
/*Go*/
// Go :
#include <Go.h>
#include <GoTypes.h>
/*G4o*/
// G4o :
#include <G4oScene.hh>
#include <G4oDrawer.hh>
#include <G4o.h>
@@ -215,7 +216,8 @@ ONode RepresentPhysicalVolume (
Class.g4oScene->SetNodeName (string);
CStringDelete (string);
G4ModelingParameters mParams (G4ModelingParameters::wireframe,
G4ModelingParameters mParams (0,
G4ModelingParameters::wireframe,
true, // Global culling.
true, // Cull invisible volumes.
false, // Density culling.
@@ -281,7 +283,8 @@ int GetTrajectoryProperty (
G4TrajectoryContainer* trajectoryContainer = event->GetTrajectoryContainer();
if(trajectoryContainer==NULL) return 0;
G4Trajectory* trajectory = (*trajectoryContainer)[(size_t)a_obj-1];
G4Trajectory* trajectory =
(G4Trajectory*)((*trajectoryContainer)[(size_t)a_obj-1]);
if(strcmp(name,"identifier")==0) {
*((Ulong*)a_addr) = (Ulong)a_obj;
@@ -323,7 +326,8 @@ ONode RepresentTrajectory (
ONode node = ONodeCreateF (11+64,"Trajectory/%lu",a_obj);
drawer->SetNode (node);
G4Trajectory* trajectory = (*trajectoryContainer)[(size_t)a_obj-1];
G4Trajectory* trajectory =
(G4Trajectory*)((*trajectoryContainer)[(size_t)a_obj-1]);
trajectory->DrawTrajectory(0);
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4oDrawer.cc,v 2.2 1998/09/16 12:08:44 barrand Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4oDrawer.cc,v 1.2 1999/04/16 10:03:36 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
/*
From geant4/visualization/management/src/G4VisManager.cc.
+30 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4oScene.cc,v 2.2 1998/07/12 02:37:06 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4oScene.cc,v 1.2 1999/04/16 10:03:38 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
/* +---------------------- Copyright notice -------------------------------+ */
/* | Copyright (C) 1995, Guy Barrand, LAL Orsay, (barrand@lal.in2p3.fr) | */
@@ -42,6 +42,8 @@
#include <G4Sphere.hh>
#include <G4Para.hh>
#include <G4Torus.hh>
#include <G4Polycone.hh>
#include <G4Polyhedra.hh>
#include <G4Polyhedron.hh>
#include <G4Polyline.hh>
#include <G4Transform3D.hh>
@@ -206,6 +208,32 @@ void G4oScene::AddThis (
AddPolyhedron (torus.CreatePolyhedron());
}
/***************************************************************************/
void G4oScene::AddThis (
const G4Polycone& polycone
)
/***************************************************************************/
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
/*.........................................................................*/
#ifdef DEBUG
printf ("debug : polycone.\n");
#endif
AddPolyhedron (polycone.CreatePolyhedron());
}
/***************************************************************************/
void G4oScene::AddThis (
const G4Polyhedra& polyhedra
)
/***************************************************************************/
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
/*.........................................................................*/
#ifdef DEBUG
printf ("debug : polyhedra.\n");
#endif
AddPolyhedron (polyhedra.CreatePolyhedron());
}
/***************************************************************************/
void G4oScene::AddThis (
const G4VSolid& solid
)
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4oState.cc,v 2.2 1998/07/13 17:29:32 urbi Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: G4oState.cc,v 1.2 1999/04/16 10:03:39 barrand Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//#define DEBUG