Import Geant4 1.1.0 source tree
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: BuildBoxWorld.hh,v 1.1.8.1 1999/12/07 20:47:55 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: BuildBoxWorld.hh,v 1.2 1999/12/15 14:49:45 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#ifndef BUILDBOXWORLD_HH
|
||||
#define BUILDBOXWORLD_HH
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: BuildCalorimeter.hh,v 1.1.8.1 1999/12/07 20:47:55 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: BuildCalorimeter.hh,v 1.2 1999/12/15 14:49:45 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#ifndef BUILDCALORIMETER_HH
|
||||
#define BUILDCALORIMETER_HH
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.1 1999/01/08 16:31:32 gunter Exp $
|
||||
# $Id: GNUmakefile,v 1.2 2000/02/29 09:46:21 gcosmo Exp $
|
||||
# ----------------------------------------------------------------
|
||||
# Makes test program in environment variable G4TARGET.
|
||||
# ----------------------------------------------------------------
|
||||
@@ -23,12 +23,16 @@ INCFLAGS := -I$(G4BASE)/geometry/management/include \
|
||||
-I$(G4BASE)/global/management/include \
|
||||
-I$(G4BASE)/global/HEPRandom/include \
|
||||
-I$(G4BASE)/global/HEPGeometry/include \
|
||||
-I$(G4BASE)/materials/include \
|
||||
-I$(G4BASE)/materials/include \
|
||||
-I$(G4BASE)/graphics_reps/include
|
||||
|
||||
LDLIBS := -lG4materials \
|
||||
-lG4geometry \
|
||||
-lG4global \
|
||||
-lG4graphics_reps
|
||||
LDLIBS := \
|
||||
-lG4csg \
|
||||
-lG4volumes \
|
||||
-lG4magneticfield \
|
||||
-lG4geometrymng \
|
||||
-lG4materials \
|
||||
-lG4graphics_reps \
|
||||
-lG4globman
|
||||
|
||||
include $(G4INSTALL)/config/binmake.gmk
|
||||
|
||||
@@ -5,16 +5,16 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: Shoot.hh,v 1.1.8.1 1999/12/07 20:47:55 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: Shoot.hh,v 1.3 2000/02/29 09:45:59 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#ifndef SHOOT_HH
|
||||
#define SHOOT_HH
|
||||
|
||||
#include "G4Timer.hh"
|
||||
#include "G4VPhysicalVolume.hh"
|
||||
#include "G4Navigator.hh"
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "G4Timer.hh"
|
||||
#include "G4ios.hh"
|
||||
|
||||
void Shoot(const G4int numShoot,
|
||||
@@ -48,7 +48,7 @@ void Shoot(const G4int numShoot,
|
||||
};
|
||||
}
|
||||
timer.Stop();
|
||||
G4cout << "Shots = " << numShoot << " " << timer << endl;
|
||||
G4cout << "Shots = " << numShoot << " " << timer << G4endl;
|
||||
}
|
||||
|
||||
void ShootVerbose(G4VPhysicalVolume *pTopNode,
|
||||
@@ -59,20 +59,19 @@ void ShootVerbose(G4VPhysicalVolume *pTopNode,
|
||||
G4double safety,Step;
|
||||
G4Navigator myNav;
|
||||
G4ThreeVector partLoc;
|
||||
G4VPhysicalVolume *located;
|
||||
G4VPhysicalVolume *located=0;
|
||||
|
||||
myNav.SetWorldVolume(pTopNode);
|
||||
|
||||
partLoc=pSource;
|
||||
// located=myNav.LocateGlobalPointAndSetup(partLoc,false);
|
||||
located=myNav.LocateGlobalPointAndSetup(partLoc,true);
|
||||
located=myNav.LocateGlobalPointAndSetup(partLoc);
|
||||
while (located)
|
||||
{
|
||||
Step=myNav.ComputeStep(partLoc,pVec,physStep,safety);
|
||||
G4cout << "Physical Location=" << located->GetName()
|
||||
<< " #" << located->GetCopyNo() << endl
|
||||
<< " #" << located->GetCopyNo() << G4endl
|
||||
<< " Step=" << Step << " Safety=" << safety
|
||||
<< " ---->" << endl;
|
||||
<< " ---->" << G4endl;
|
||||
|
||||
partLoc+=Step*pVec;
|
||||
myNav.SetGeometricallyLimitedStep();
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: calorimeter.cc,v 1.1.8.1 1999/12/07 20:47:55 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: calorimeter.cc,v 1.2 1999/12/15 14:49:45 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// calorimeter
|
||||
//
|
||||
@@ -37,10 +37,10 @@ int main()
|
||||
G4VPhysicalVolume *myTopNode;
|
||||
G4Timer timer;
|
||||
|
||||
G4cout << " Calorimeter Performance Test - P.Kent 21.08.95" << endl
|
||||
<< "Using calorimeter from CERN School of Computing '95" << endl;
|
||||
G4cout << " Calorimeter Performance Test - P.Kent 21.08.95" << G4endl
|
||||
<< "Using calorimeter from CERN School of Computing '95" << G4endl;
|
||||
#ifndef NDEBUG
|
||||
G4cout << "WARNING: *** ASSERTs are compiled IN ***" << endl;
|
||||
G4cout << "WARNING: *** ASSERTs are compiled IN ***" << G4endl;
|
||||
#endif
|
||||
|
||||
myTopNode=BuildCalorimeter(); // Build the geometry
|
||||
@@ -56,13 +56,13 @@ int main()
|
||||
{
|
||||
G4cout << "Optimisation OFF";
|
||||
}
|
||||
G4cout << " Geometry close took " << timer << endl;
|
||||
G4cout << " Geometry close took " << timer << G4endl;
|
||||
|
||||
#ifdef G4GEOMETRY_VERBOSE
|
||||
G4cout << endl << "Voxels for:"
|
||||
<< G4LogicalVolumeStore::GetInstance()->at(1)->GetName() << endl
|
||||
G4cout << G4endl << "Voxels for:"
|
||||
<< G4LogicalVolumeStore::GetInstance()->at(1)->GetName() << G4endl
|
||||
<< *G4LogicalVolumeStore::GetInstance()->at(1)->GetVoxelHeader()
|
||||
<< endl;
|
||||
<< G4endl;
|
||||
#endif
|
||||
G4SmartVoxelHeader* top=G4LogicalVolumeStore::GetInstance()
|
||||
->at(1)->GetVoxelHeader();
|
||||
@@ -72,27 +72,27 @@ int main()
|
||||
switch (top->GetAxis())
|
||||
{
|
||||
case kXAxis:
|
||||
G4cout << "X" << endl;
|
||||
G4cout << "X" << G4endl;
|
||||
break;
|
||||
case kYAxis:
|
||||
G4cout << "Y" << endl;
|
||||
G4cout << "Y" << G4endl;
|
||||
break;
|
||||
case kZAxis:
|
||||
G4cout << "Z" << endl;
|
||||
G4cout << "Z" << G4endl;
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
G4cout << endl << "Shooting from " << origin << " along " << vx << endl;
|
||||
G4cout << G4endl << "Shooting from " << origin << " along " << vx << G4endl;
|
||||
ShootVerbose(myTopNode,origin,vx);
|
||||
Shoot(numShoot,myTopNode,origin,vx);
|
||||
|
||||
G4cout << endl << "Shooting from " << origin << " along " << vy << endl;
|
||||
G4cout << G4endl << "Shooting from " << origin << " along " << vy << G4endl;
|
||||
ShootVerbose(myTopNode,origin,vy);
|
||||
Shoot(numShoot,myTopNode,origin,vy);
|
||||
|
||||
G4cout << endl << "Shooting from " << origin << " along " << vxy << endl;
|
||||
G4cout << G4endl << "Shooting from " << origin << " along " << vxy << G4endl;
|
||||
ShootVerbose(myTopNode,origin,vxy);
|
||||
Shoot(numShoot,myTopNode,origin,vxy);
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Box.cc,v 1.1.8.1 1999/12/07 20:47:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4Box.cc,v 1.2 1999/12/15 14:49:45 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// Implementation for G4Box class
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Box.hh,v 1.1.8.1 1999/12/07 20:47:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4Box.hh,v 1.2 1999/12/15 14:49:45 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// class G4Box
|
||||
//
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Box_fastfabs.cc,v 1.1.8.1 1999/12/07 20:47:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4Box_fastfabs.cc,v 1.2 1999/12/15 14:49:45 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// Implementation for G4Box class
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4RotationMatrix.hh,v 1.1.8.1 1999/12/07 20:47:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4RotationMatrix.hh,v 1.2 1999/12/15 14:49:45 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// Rotation Matrix class, converted from CLHEP:
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4RotationMatrix.icc,v 1.1.8.1 1999/12/07 20:47:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4RotationMatrix.icc,v 1.2 1999/12/15 14:49:45 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// Inline functions for class G4RotationMatrix
|
||||
// Converted from CLHEP:
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ThreeVector.hh,v 1.1.8.1 1999/12/07 20:47:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4ThreeVector.hh,v 1.3 1999/12/15 17:17:14 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// ThreeVector class, converted from CLHEP:
|
||||
@@ -20,8 +20,7 @@
|
||||
|
||||
#include "globals.hh"
|
||||
#include "geomdefs.hh"
|
||||
|
||||
class ostream;
|
||||
#include "g4std/iostream"
|
||||
|
||||
class G4ThreeVector {
|
||||
|
||||
@@ -152,7 +151,7 @@ private:
|
||||
|
||||
};
|
||||
|
||||
ostream & operator << (ostream &, const G4ThreeVector &);
|
||||
G4std::ostream & operator << (G4std::ostream &, const G4ThreeVector &);
|
||||
// output to a stream
|
||||
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ThreeVector.icc,v 1.1.8.1 1999/12/07 20:47:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4ThreeVector.icc,v 1.2 1999/12/15 14:49:46 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// Inline functions for class G4ThreeVector
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: boxtoincpp.cc,v 1.1.8.1 1999/12/07 20:47:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: boxtoincpp.cc,v 1.2 1999/12/15 14:49:46 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#include "G4ios.hh"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: geomdefs.hh,v 1.1.8.1 1999/12/07 20:47:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: geomdefs.hh,v 1.2 1999/12/15 14:49:46 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
// Constants, typedefs, enums for Geometry Section
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: globals.hh,v 1.1.8.1 1999/12/07 20:47:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: globals.hh,v 1.3 1999/12/15 14:49:46 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
// Global Constants and typedefs
|
||||
@@ -26,7 +26,7 @@ typedef int G4int;
|
||||
|
||||
// Typedefs to decouple from library classes
|
||||
//#include <rw/cstring.h>
|
||||
//typedef RWCString G4String;
|
||||
//typedef G4String G4String;
|
||||
|
||||
// Boolean - define G4_HAVE_BOOL if bool type available
|
||||
#ifdef G4_HAVE_BOOL
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: replicaCal.cc,v 1.1.8.1 1999/12/07 20:47:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: replicaCal.cc,v 1.2 1999/12/15 14:49:45 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
//
|
||||
@@ -106,9 +106,9 @@ int main()
|
||||
G4VPhysicalVolume *myTopNode;
|
||||
G4Timer timer;
|
||||
|
||||
G4cout << " Replication Performance Test - P.Kent 26.09.96" << endl;
|
||||
G4cout << " Replication Performance Test - P.Kent 26.09.96" << G4endl;
|
||||
#ifndef NDEBUG
|
||||
G4cout << "WARNING: *** ASSERTs are compiled IN ***" << endl;
|
||||
G4cout << "WARNING: *** ASSERTs are compiled IN ***" << G4endl;
|
||||
#endif
|
||||
|
||||
myTopNode=BuildReplicaCal(NULL); // Build the geometry
|
||||
@@ -124,9 +124,9 @@ int main()
|
||||
{
|
||||
G4cout << "Optimisation OFF";
|
||||
}
|
||||
G4cout << " Geometry close took " << timer << endl;
|
||||
G4cout << " Geometry close took " << timer << G4endl;
|
||||
|
||||
G4cout << endl << "Shooting from " << pos << " along " << dir << endl;
|
||||
G4cout << G4endl << "Shooting from " << pos << " along " << dir << G4endl;
|
||||
ShootVerbose(myTopNode,pos,dir);
|
||||
Shoot(numShoot,myTopNode,pos,dir);
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: shooter.cc,v 1.1.8.1 1999/12/07 20:47:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: shooter.cc,v 1.2 1999/12/15 14:49:45 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// shooter - perform test shots through simple box world.
|
||||
//
|
||||
@@ -29,23 +29,23 @@ int main()
|
||||
G4ThreeVector vy(0,1,0);
|
||||
G4VPhysicalVolume *myTopNode;
|
||||
|
||||
G4cout << "Simple BoxWorld Performance Test - P.Kent 21.08.95" << endl;
|
||||
G4cout << "Simple BoxWorld Performance Test - P.Kent 21.08.95" << G4endl;
|
||||
#ifndef NDEBUG
|
||||
G4cout << "WARNING: *** ASSERTs are compiled IN ***" << endl;
|
||||
G4cout << "WARNING: *** ASSERTs are compiled IN ***" << G4endl;
|
||||
#endif
|
||||
|
||||
myTopNode=BuildBoxWorld(); // Build the geometry
|
||||
G4GeometryManager::GetInstance()->CloseGeometry();
|
||||
|
||||
G4cout << endl << "Shooting from " << origin << " along " << vx << endl;
|
||||
G4cout << G4endl << "Shooting from " << origin << " along " << vx << G4endl;
|
||||
ShootVerbose(myTopNode,origin,vx);
|
||||
Shoot(numShoot,myTopNode,origin,vx);
|
||||
|
||||
G4cout << endl << "Shooting from " << origin << " along " << vy << endl;
|
||||
G4cout << G4endl << "Shooting from " << origin << " along " << vy << G4endl;
|
||||
ShootVerbose(myTopNode,origin,vy);
|
||||
Shoot(numShoot,myTopNode,origin,vy);
|
||||
|
||||
G4cout << endl << "Shooting from " << pMX << " along " << vx << endl;
|
||||
G4cout << G4endl << "Shooting from " << pMX << " along " << vx << G4endl;
|
||||
ShootVerbose(myTopNode,pMX,vx);
|
||||
Shoot(numShoot,myTopNode,pMX,vx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user