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
@@ -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: G4VFastSimulationModel.hh,v 1.1 1999/01/07 16:14:04 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: G4VFastSimulationModel.hh,v 1.2.4.1 1999/12/07 20:52:52 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
//---------------------------------------------------------------
@@ -38,55 +38,88 @@ typedef G4LogicalVolume G4Envelope;
// G4VFastSimulationModel class
//
//-------------------------------------------
class G4VFastSimulationModel
{
public:
//------------------------
// Constructor/Destructor
//------------------------
// constructors require at least the model name.
G4VFastSimulationModel(const G4String& aName);
// About the IsUnique flag, by default the envelope can
// be placed n-Times. If the user is sure that it'll be
// placed just one time the IsUnique flag should be set
// TRUE to avoid the G4AffineTransform re-calculations each
// time we reach the envelope.
// Class Description:
// This is the abstract class for the implementation of parameterisations.
// You have to inherit from it to implement your concrete parameterisation
// model.
//
class G4VFastSimulationModel
{
public: // With description
G4VFastSimulationModel(const G4String& aName);
// aName identifies the parameterisation model.
G4VFastSimulationModel(const G4String& aName, G4Envelope*,
G4bool IsUnique=FALSE);
// This constructor allows you to get a quick "getting started".
// In addition to the model name, this constructor accepts a G4LogicalVolume
// pointer. This volume will automatically becomes the envelope, and the
// needed G4FastSimulationManager object is constructed if necessary giving
// it the G4LogicalVolume pointer and the boolean value. If it already
// exists, the model is simply added to this manager. However the
// G4VFastSimulationModel object will not keep track of the envelope given
// in the constructor.
// The boolean argument is there for optimization purpose: if you know that
// the G4LogicalVolume envelope is placed only once you can turn this
// boolean value to "true" (an automated mechanism is foreseen here.)
~G4VFastSimulationModel() {};
public: // Without description
virtual ~G4VFastSimulationModel() {};
public: // With description
//
//----------------------------------------------
// Interface IsApplicable virtual method for the
// G4FastSimulationManager
//----------------------------------------------
virtual G4bool IsApplicable(const G4ParticleDefinition&) = 0;
// In your implementation, you have to return "true" when your model is
// applicable to the G4ParticleDefinition passed to this method. The
// G4ParticleDefinition provides all intrisic particle informations (mass,
// charge, spin, name ...).
//
//----------------------------------------------
// Interface trigger virtual method for the
// G4FastSimulationManager
//----------------------------------------------
virtual G4bool ModelTrigger(const G4FastTrack &) = 0;
// You have to return "true" when the dynamics conditions to trigger your
// parameterisation are fulfiled. The G4FastTrack provides you access to
// the current G4Track, gives simple access to envelope related features
// (G4LogicalVolume, G4VSolid, G4AffineTransform references between the
// global and the envelope local coordinates systems) and simple access to
// the position, momentum expressed in the envelope coordinate system.
// Using those quantities and the G4VSolid methods, you can for example
// easily check how far you are from the envelope boundary.
// -- Pure virtual DoIt() method : the FastSimulationModel
// properly said. The user has to compute the detector
// response and to manage the particle changes state:
// -- * change position/momentum or kill the primary
// -- * create secondaries
virtual void DoIt(const G4FastTrack&, G4FastStep&) = 0;
// Your parameterisation properly said. The G4FastTrack reference provides
// input informations. The final state of the particles after parameterisation
// has to be returned through the G4FastStep reference. This final state is
// described has "requests" the tracking will apply after your
// parameterisation has been invoked.
// ---------------------------
// -- Idem for AtRest methods:
// ---------------------------
// -- A default dummy implementation is provided.
virtual
G4bool AtRestModelTrigger(const G4FastTrack& fastTrack) {return false;}
// You have to return "true" when the dynamics conditions to trigger your
// parameterisation are fulfiled. The G4FastTrack provides you access to
// the current G4Track, gives simple access to envelope related features
// (G4LogicalVolume, G4VSolid, G4AffineTransform references between the
// global and the envelope local coordinates systems) and simple access to
// the position, momentum expressed in the envelope coordinate system.
// Using those quantities and the G4VSolid methods, you can for example
// easily check how far you are from the envelope boundary.
virtual
void AtRestDoIt (const G4FastTrack& fastTrack, G4FastStep& fastStep) {}
// Your parameterisation properly said. The G4FastTrack reference provides
// input informations. The final state of the particles after parameterisation
// has to be returned through the G4FastStep reference. This final state is
// described has "requests" the tracking will apply after your
// parameterisation has been invoked.
public: // Without description
// Useful public methods :
const G4String GetName() const;
G4bool operator == ( const G4VFastSimulationModel&) const;