Import Geant4 1.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:28:20 +02:00
parent aaa409b6ee
commit ca1c8cb059
2995 changed files with 106830 additions and 299600 deletions
+10 -10
View File
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4SteppingManager.hh,v 1.3 1999/04/16 02:14:50 tsasaki Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4SteppingManager.hh,v 1.6.4.1.2.1 1999/12/07 20:53:03 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
//---------------------------------------------------------------
@@ -25,7 +25,7 @@
//---------------------------------------------------------------
// modified for new ParticleChange 12 Mar. 1998 H.Kurashige
#include <rw/tvordvec.h> // Include from 'RogueWave'
#include "g4rw/tvordvec.h" // Include from 'RogueWave'
class G4SteppingManager;
@@ -52,18 +52,18 @@ class G4VSensitiveDetector;
#include "G4UserSteppingAction.hh" // Include from 'tracking'
#include "G4Step.hh" // Include from 'tracking'
#include "G4StepPoint.hh" // Include from 'tracking'
#include "G4SteppingVerbose.hh" // Include from 'tracking'
#include "G4VSteppingVerbose.hh" // Include from 'tracking'
#include "G4VTouchable.hh" // Include from 'geometry'
#include "G4TouchableHistory.hh" // Include from 'geometry'
// must be changed in elegant way
static const G4int SIZEofSelectedDoIt=100;
// RogueWave Tools.h++
typedef RWTValOrderedVector<G4int>
typedef G4RWTValOrderedVector<G4int>
G4SelectedAtRestDoItVector;
typedef RWTValOrderedVector<G4int>
typedef G4RWTValOrderedVector<G4int>
G4SelectedAlongStepDoItVector;
typedef RWTValOrderedVector<G4int>
typedef G4RWTValOrderedVector<G4int>
G4SelectedPostStepDoItVector;
@@ -163,8 +163,8 @@ class G4SteppingManager
G4double GetphysIntLength();
G4ForceCondition GetfCondition();
G4GPILSelection GetfGPILSelection();
//
G4bool KillVerbose;
//---------
private:
//---------
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4SteppingManager.icc,v 1.2 1999/03/24 04:42:35 tsasaki Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4SteppingManager.icc,v 1.3.6.1 1999/12/07 20:53:04 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
//---------------------------------------------------------------
+5 -114
View File
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4SteppingVerbose.hh,v 1.3 1999/03/24 04:42:47 tsasaki Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4SteppingVerbose.hh,v 1.6.6.1 1999/12/07 20:53:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
//---------------------------------------------------------------
@@ -28,35 +28,16 @@ class G4SteppingVerbose;
#ifndef G4SteppingVerose_h
#define G4SteppingVerose_h 1
#include <rw/tvordvec.h> // Include from 'RogueWave'
#include "G4ios.hh"
#include <iomanip.h>
#include "globals.hh" // Include from 'global'
class G4Navigator;
class G4VPhysicalVolume;
#include "G4VSensitiveDetector.hh" // Include from 'hits/digi'
#include "G4ProcessManager.hh" // Include from 'piim'
class G4SteppingManager; // Include from 'tracking'
#include "G4Track.hh" // Include from 'tracking'
#include "G4TrackVector.hh" // Include from 'tracking'
class G4Track;
#include "G4StepStatus.hh" // Include from 'tracking'
class G4UserSteppingAction;
class G4StepPoint;
class G4VTouchable;
#include "G4VSteppingVerbose.hh"
class G4SteppingVerbose : public G4VSteppingVerbose {
public:
// Constructor/Destructor
// G4SteppingVerbose();
G4SteppingVerbose(G4SteppingManager* const );
G4SteppingVerbose();
~G4SteppingVerbose();
//
void NewStep();
void CopyState();
void AtRestDoItInvoked();
void AlongStepDoItAllDone();
void PostStepDoItAllDone();
@@ -74,99 +55,9 @@ public:
void VerboseParticleChange();
void ShowStep() const;
//
// Member data
private:
G4SteppingManager* fManager;
G4UserSteppingAction* fUserSteppingAction;
G4SteppingVerbose* fVerbose;
G4double PhysicalStep;
G4double GeometricalStep;
G4double CorrectedStep;
G4bool PreStepPointIsGeom;
G4bool FirstStep;
G4StepStatus fStepStatus;
G4double TempInitVelocity;
G4double TempVelocity;
G4double Mass;
G4double sumEnergyChange;
G4VParticleChange* fParticleChange;
G4Track* fTrack;
G4TrackVector* fSecondary;
G4Step* fStep;
G4StepPoint* fPreStepPoint;
G4StepPoint* fPostStepPoint;
G4VPhysicalVolume* fCurrentVolume;
G4VSensitiveDetector* fSensitive;
G4VProcess* fCurrentProcess;
// The pointer to the process of which DoIt or
// GetPhysicalInteractionLength has been just executed.
G4ProcessVector* fAtRestDoItVector;
G4ProcessVector* fAlongStepDoItVector;
G4ProcessVector* fPostStepDoItVector;
G4ProcessVector* fAtRestGetPhysIntVector;
G4ProcessVector* fAlongStepGetPhysIntVector;
G4ProcessVector* fPostStepGetPhysIntVector;
size_t MAXofAtRestLoops;
size_t MAXofAlongStepLoops;
size_t MAXofPostStepLoops;
G4double currentMinimumStep;
G4double numberOfInteractionLengthLeft;
size_t fAtRestDoItProcTriggered;
size_t fAlongStepDoItProcTriggered;
size_t fPostStepDoItProcTriggered;
G4int fN2ndariesAtRestDoIt;
G4int fN2ndariesAlongStepDoIt;
G4int fN2ndariesPostStepDoIt;
// These are the numbers of secondaries generated by the process
// just executed.
G4Navigator *fNavigator;
G4int verboseLevel;
typedef RWTValOrderedVector<G4int>
G4SelectedAtRestDoItVector;
typedef RWTValOrderedVector<G4int>
G4SelectedAlongStepDoItVector;
typedef RWTValOrderedVector<G4int>
G4SelectedPostStepDoItVector;
G4SelectedAtRestDoItVector *fSelectedAtRestDoItVector;
G4SelectedAlongStepDoItVector *fSelectedAlongStepDoItVector;
G4SelectedPostStepDoItVector *fSelectedPostStepDoItVector;
G4double fPreviousStepSize;
G4VTouchable* fTouchable1;
G4VTouchable* fTouchable2;
G4bool fIsTouchable1Free;
G4bool fIsTouchable2Free;
G4SteppingControl StepControlFlag;
G4double physIntLength;
G4ForceCondition fCondition;
G4GPILSelection fGPILSelection;
// Above three variables are for the method
// DefinePhysicalStepLength(). To pass these information to
// the method Verbose, they are kept at here. Need a more
// elegant mechanism.
};
#endif
+5 -5
View File
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4TrackVector.hh,v 1.2 1999/03/24 04:43:04 tsasaki Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4TrackVector.hh,v 1.3.4.1.2.1 1999/12/07 20:53:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
//---------------------------------------------------------------
@@ -27,11 +27,11 @@
#ifndef G4TrackVector_h
#define G4TrackVector_h 1
#include <rw/tpordvec.h> // Include from 'RogueWave'
#include "g4rw/tpordvec.h" // Include from 'RogueWave'
#include "G4Track.hh" // Include form 'tracking'
///////////////////////////////////////////////////
typedef RWTPtrOrderedVector<G4Track> G4TrackVector;
typedef G4RWTPtrOrderedVector<G4Track> G4TrackVector;
///////////////////////////////////////////////////
#endif
+3 -3
View File
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4TrackingManager.hh,v 1.3 1999/04/15 08:47:07 asaim Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4TrackingManager.hh,v 1.4.6.1 1999/12/07 20:53:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
//---------------------------------------------------------------
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4TrackingMessenger.hh,v 1.2 1999/03/24 04:44:17 tsasaki Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4TrackingMessenger.hh,v 1.4.6.1 1999/12/07 20:53:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
//---------------------------------------------------------------
+5 -5
View File
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4Trajectory.hh,v 1.5 1999/05/25 21:04:22 stesting Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4Trajectory.hh,v 1.6.4.1.2.1 1999/12/07 20:53:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
//---------------------------------------------------------------
@@ -38,7 +38,7 @@ class G4Trajectory;
#include "G4Allocator.hh"
#include <stdlib.h> // Include from 'system'
#include "G4ios.hh" // Include from 'system'
#include <rw/tpordvec.h> // RWTValOrderedVector
#include "g4rw/tpordvec.h" // G4RWTValOrderedVector
#include "globals.hh" // Include from 'global'
#include "G4ParticleDefinition.hh" // Include from 'particle+matter'
#include "G4TrajectoryPoint.hh" // Include from 'tracking'
@@ -96,7 +96,7 @@ class G4Trajectory : public G4VTrajectory
private:
//---------
RWTPtrOrderedVector<G4VTrajectoryPoint>* positionRecord;
G4RWTPtrOrderedVector<G4VTrajectoryPoint>* positionRecord;
G4int fTrackID;
G4int fParentID;
G4String ParticleName;
+3 -3
View File
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4TrajectoryPoint.hh,v 1.3 1999/04/15 08:47:08 asaim Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4TrajectoryPoint.hh,v 1.4.6.1 1999/12/07 20:53:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
//---------------------------------------------------------------
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4UserSteppingAction.hh,v 1.3 1999/04/15 08:47:09 asaim Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4UserSteppingAction.hh,v 1.4.6.1 1999/12/07 20:53:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
//---------------------------------------------------------------
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4UserTrackingAction.hh,v 1.3 1999/04/15 08:47:10 asaim Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4UserTrackingAction.hh,v 1.4.6.1 1999/12/07 20:53:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
//---------------------------------------------------------------
+145 -23
View File
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4VSteppingVerbose.hh,v 1.1 1999/03/24 04:45:47 tsasaki Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4VSteppingVerbose.hh,v 1.2.4.1.2.1 1999/12/07 20:53:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
//---------------------------------------------------------------
@@ -26,32 +26,154 @@
#ifndef G4VSteppingVerbose_h
#define G4VSteppingVerbose_h
class G4SteppingManager;
#include "globals.hh" // Include from 'global'
class G4Navigator;
class G4VPhysicalVolume;
class G4VSensitiveDetector;
class G4VProcess;
class G4ProcessVector;
class G4SteppingManager; // Include from 'tracking'
class G4Track;
#include "G4TrackVector.hh" // Include from 'tracking'
#include "G4StepStatus.hh" // Include from 'track'
class G4UserSteppingAction;
class G4StepPoint;
class G4VTouchable;
class G4VParticleChange;
#include "G4ForceCondition.hh" //enum 'track'
#include "G4GPILSelection.hh" //enum 'track'
class G4VSteppingVerbose{
public:
// Constructor/Destructor
G4VSteppingVerbose();
G4VSteppingVerbose(G4SteppingManager*);
protected: // to force 'singleton'
G4VSteppingVerbose();
public:
virtual ~G4VSteppingVerbose();
//
public:
//
static void SetInstance(G4VSteppingVerbose* Instance)
{
fInstance = Instance;
}
static G4VSteppingVerbose* GetInstance()
{
return fInstance;
}
//
virtual void NewStep() = 0;
virtual void CopyState() = 0;
virtual void AtRestDoItInvoked() = 0;
virtual void AlongStepDoItAllDone() = 0;
virtual void PostStepDoItAllDone() = 0;
virtual void AlongStepDoItOneByOne() = 0;
virtual void PostStepDoItOneByOne() = 0;
virtual void StepInfo() = 0;
virtual void TrackingStarted() = 0;
virtual void DPSLStarted() = 0;
virtual void DPSLUserLimit() = 0;
virtual void DPSLPostStep() = 0;
virtual void DPSLAlongStep() = 0;
// virtual void DPSLAlongStepDoItOneByOne() = 0;
// virtual void DPSLPostStepDoItOneByOne() = 0;
virtual void VerboseTrack() = 0;
virtual void VerboseParticleChange() = 0;
virtual void NewStep() = 0;
void CopyState();
void SetManager(G4SteppingManager* const);
virtual void AtRestDoItInvoked() = 0;
virtual void AlongStepDoItAllDone() = 0;
virtual void PostStepDoItAllDone() = 0;
virtual void AlongStepDoItOneByOne() = 0;
virtual void PostStepDoItOneByOne() = 0;
virtual void StepInfo() = 0;
virtual void TrackingStarted() = 0;
virtual void DPSLStarted() = 0;
virtual void DPSLUserLimit() = 0;
virtual void DPSLPostStep() = 0;
virtual void DPSLAlongStep() = 0;
virtual void VerboseTrack() = 0;
virtual void VerboseParticleChange() = 0;
// Member data
protected: // pointer to the instance
static G4VSteppingVerbose* fInstance;
protected:
G4SteppingManager* fManager;
G4UserSteppingAction* fUserSteppingAction;
G4double PhysicalStep;
G4double GeometricalStep;
G4double CorrectedStep;
G4bool PreStepPointIsGeom;
G4bool FirstStep;
G4StepStatus fStepStatus;
G4double TempInitVelocity;
G4double TempVelocity;
G4double Mass;
G4double sumEnergyChange;
G4VParticleChange* fParticleChange;
G4Track* fTrack;
G4TrackVector* fSecondary;
G4Step* fStep;
G4StepPoint* fPreStepPoint;
G4StepPoint* fPostStepPoint;
G4VPhysicalVolume* fCurrentVolume;
G4VSensitiveDetector* fSensitive;
G4VProcess* fCurrentProcess;
// The pointer to the process of which DoIt or
// GetPhysicalInteractionLength has been just executed.
G4ProcessVector* fAtRestDoItVector;
G4ProcessVector* fAlongStepDoItVector;
G4ProcessVector* fPostStepDoItVector;
G4ProcessVector* fAtRestGetPhysIntVector;
G4ProcessVector* fAlongStepGetPhysIntVector;
G4ProcessVector* fPostStepGetPhysIntVector;
size_t MAXofAtRestLoops;
size_t MAXofAlongStepLoops;
size_t MAXofPostStepLoops;
G4double currentMinimumStep;
G4double numberOfInteractionLengthLeft;
size_t fAtRestDoItProcTriggered;
size_t fAlongStepDoItProcTriggered;
size_t fPostStepDoItProcTriggered;
G4int fN2ndariesAtRestDoIt;
G4int fN2ndariesAlongStepDoIt;
G4int fN2ndariesPostStepDoIt;
// These are the numbers of secondaries generated by the process
// just executed.
G4Navigator *fNavigator;
G4int verboseLevel;
typedef G4RWTValOrderedVector<G4int>
G4SelectedAtRestDoItVector;
typedef G4RWTValOrderedVector<G4int>
G4SelectedAlongStepDoItVector;
typedef G4RWTValOrderedVector<G4int>
G4SelectedPostStepDoItVector;
G4SelectedAtRestDoItVector *fSelectedAtRestDoItVector;
G4SelectedAlongStepDoItVector *fSelectedAlongStepDoItVector;
G4SelectedPostStepDoItVector *fSelectedPostStepDoItVector;
G4double fPreviousStepSize;
G4VTouchable* fTouchable1;
G4VTouchable* fTouchable2;
G4bool fIsTouchable1Free;
G4bool fIsTouchable2Free;
G4SteppingControl StepControlFlag;
G4double physIntLength;
G4ForceCondition fCondition;
G4GPILSelection fGPILSelection;
// Above three variables are for the method
// DefinePhysicalStepLength(). To pass these information to
// the method Verbose, they are kept at here. Need a more
// elegant mechanism.
};
#endif
+3 -3
View File
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4VTrajectory.hh,v 1.1 1999/04/15 08:47:10 asaim Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4VTrajectory.hh,v 1.2.6.1 1999/12/07 20:53:06 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
//---------------------------------------------------------------
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// 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: G4VTrajectoryPoint.hh,v 1.1 1999/04/15 08:47:11 asaim Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4VTrajectoryPoint.hh,v 1.2.6.1 1999/12/07 20:53:06 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
#ifndef G4VTrajectoryPoint_h