Import Geant4 2.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:42:07 +02:00
parent 103bda00c8
commit e7d7193284
3106 changed files with 171117 additions and 90550 deletions
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4BoundingSphereScene.hh,v 1.6 1999/12/15 14:54:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// $Id: G4BoundingSphereScene.hh,v 1.7 2000/05/15 11:08:49 johna Exp $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// John Allison 7th June 1997
@@ -45,9 +45,7 @@ public:
void AddThis (const G4Polyhedra& s) {Accrue (s);}
void AddThis (const G4VSolid& s) {Accrue (s);}
void PreAddThis (const G4Transform3D& objectTransformation,
const G4VisAttributes&) {
fpObjectTransformation = &objectTransformation;
}
const G4VisAttributes&);
void PostAddThis () {}
G4VisExtent GetBoundingSphereExtent ();
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4FlavoredParallelWorldModel.hh,v 1.5 1999/12/15 14:54:29 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// GEANT4 tag $Name: geant4-02-00 $
//
// P. Mora de Freitas et M.Verderi - 19 June 1998.
//
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4HitsModel.hh,v 1.4 1999/12/15 14:54:29 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// John Allison 26th August 1998.
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4HitsModel.icc,v 1.4 1999/12/15 14:54:29 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// GEANT4 tag $Name: geant4-02-00 $
inline G4String G4HitsModel::GetCurrentTag () const {
return fGlobalTag;
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4LogicalVolumeModel.hh,v 1.3 1999/12/15 14:54:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// $Id: G4LogicalVolumeModel.hh,v 1.4 2000/04/12 13:02:36 johna Exp $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// John Allison 26th July 1999.
@@ -49,6 +49,14 @@ public: // With description
protected:
// This called from G4PhysicalVolumeModel::DescribeAndDescend by the
// virtual function mechanism.
void DescribeSolid
(const G4Transform3D& theAT,
G4VSolid* pSol,
const G4VisAttributes* pVisAttribs,
G4VGraphicsScene& sceneHandler);
/////////////////////////////////////////////////////////
// Data members...
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4ModelingParameters.hh,v 1.5 1999/12/15 14:54:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// John Allison 31st December 1997.
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4ModelingParameters.icc,v 1.3 1999/12/15 14:54:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// John Allison 31st December 1997.
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4NullModel.hh,v 1.4 1999/12/15 14:54:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// John Allison 4th April 1998.
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PhysicalVolumeModel.hh,v 1.8 2000/01/11 17:19:04 johna Exp $
// GEANT4 tag $Name: geant4-01-01 $
// $Id: G4PhysicalVolumeModel.hh,v 1.9 2000/04/12 13:02:03 johna Exp $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// John Allison 31st December 1997.
@@ -93,10 +93,10 @@ protected:
const G4Transform3D&,
G4VGraphicsScene&);
void DescribeSolid (const G4Transform3D& theAT,
G4VSolid* pSol,
const G4VisAttributes* pVisAttribs,
G4VGraphicsScene& sceneHandler);
virtual void DescribeSolid (const G4Transform3D& theAT,
G4VSolid* pSol,
const G4VisAttributes* pVisAttribs,
G4VGraphicsScene& sceneHandler);
G4bool IsThisCulled (const G4LogicalVolume*,
const G4Material*);
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PhysicalVolumeSearchScene.hh,v 1.6 1999/12/15 14:54:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// $Id: G4PhysicalVolumeSearchScene.hh,v 1.7 2000/05/22 07:36:57 johna Exp $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// John Allison 10th August 1998.
@@ -56,7 +56,7 @@ public:
const G4Transform3D& GetFoundTransformation () const;
////////////////////////////////////////////////////////////////
// Functions not used by required by the abstract interface.
// Functions not used but required by the abstract interface.
virtual void BeginPrimitives (const G4Transform3D& objectTransformation) {}
virtual void EndPrimitives () {}
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4PhysicalVolumeSearchScene.icc,v 1.3 1999/12/15 14:54:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// John Allison 10th August 1998.
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4TrajectoriesModel.hh,v 1.4 1999/12/15 14:54:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// John Allison 26th August 1998.
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4TrajectoriesModel.icc,v 1.4 1999/12/15 14:54:31 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// GEANT4 tag $Name: geant4-02-00 $
inline G4String G4TrajectoriesModel::GetCurrentTag () const {
return fGlobalTag;
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VModel.hh,v 1.5 1999/12/15 14:54:31 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// John Allison 31st December 1997.
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G4VModel.icc,v 1.4 1999/12/15 14:54:31 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// John Allison 31st December 1997.
@@ -0,0 +1,80 @@
// This code implementation is the intellectual property of
// 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: G4VTreeGraphicsScene.hh,v 1.1 2000/05/22 07:39:25 johna Exp $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// John Allison 18th May 2000
// An artificial graphics scene to find dump geometry hierarchy.
#ifndef G4VTREEGRAPHICSSCENE_HH
#define G4VTREEGRAPHICSSCENE_HH
#include "G4VGraphicsScene.hh"
#include "G4VisExtent.hh"
#include "G4Box.hh"
#include "G4Cons.hh"
#include "G4Tubs.hh"
#include "G4Trd.hh"
#include "G4Trap.hh"
#include "G4Sphere.hh"
#include "G4Para.hh"
#include "G4Torus.hh"
#include "G4Polycone.hh"
#include "G4Polyhedra.hh"
#include "G4VPhysicalVolume.hh"
#include "G4LogicalVolume.hh"
class G4VTreeGraphicsScene: public G4VGraphicsScene {
public:
G4VTreeGraphicsScene();
virtual ~G4VTreeGraphicsScene ();
void AddThis (const G4Box& s) {Dump (s);}
void AddThis (const G4Cons & s) {Dump (s);}
void AddThis (const G4Tubs& s) {Dump (s);}
void AddThis (const G4Trd& s) {Dump (s);}
void AddThis (const G4Trap& s) {Dump (s);}
void AddThis (const G4Sphere& s) {Dump (s);}
void AddThis (const G4Para& s) {Dump (s);}
void AddThis (const G4Torus& s) {Dump (s);}
void AddThis (const G4Polycone& s) {Dump (s);}
void AddThis (const G4Polyhedra& s) {Dump (s);}
void AddThis (const G4VSolid& s) {Dump (s);}
void PreAddThis (const G4Transform3D& objectTransformation,
const G4VisAttributes&);
void PostAddThis ();
void EstablishSpecials (G4PhysicalVolumeModel&);
G4int GetFoundDepth () const;
G4VPhysicalVolume* GetFoundVolume () const;
const G4Transform3D& GetFoundTransformation () const;
////////////////////////////////////////////////////////////////
// Functions not used but required by the abstract interface.
virtual void BeginPrimitives (const G4Transform3D& objectTransformation) {}
virtual void EndPrimitives () {}
virtual void AddPrimitive (const G4Polyline&) {}
virtual void AddPrimitive (const G4Text&) {}
virtual void AddPrimitive (const G4Circle&) {}
virtual void AddPrimitive (const G4Square&) {}
virtual void AddPrimitive (const G4Polymarker&) {}
virtual void AddPrimitive (const G4Polyhedron&) {}
virtual void AddPrimitive (const G4NURBS&) {}
protected:
void Dump (const G4VSolid&);
G4int fCurrentDepth; // Current depth of geom. hierarchy.
G4VPhysicalVolume* fpCurrentPV; // Current physical volume.
G4LogicalVolume* fpCurrentLV; // Current logical volume.
const G4Transform3D* fpCurrentObjectTransformation;
};
#include "G4VTreeGraphicsScene.icc"
#endif
@@ -0,0 +1,21 @@
// This code implementation is the intellectual property of
// 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: G4VTreeGraphicsScene.icc,v 1.1 2000/05/22 07:39:32 johna Exp $
// GEANT4 tag $Name: geant4-02-00 $
//
//
// John Allison 18th May 2000
// An artificial graphics scene to find dump geometry hierarchy.
inline void G4VTreeGraphicsScene::PreAddThis
(const G4Transform3D& objectTransformation,
const G4VisAttributes&) {
fpCurrentObjectTransformation = &objectTransformation;
}
inline void G4VTreeGraphicsScene::PostAddThis () {}