Import Geant4 10.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 11:51:14 +02:00
parent e2d2f9810a
commit 286caacf06
12421 changed files with 730077 additions and 502383 deletions
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4ArrowModel.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
//
// John Allison 15th July 2012
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4AttFilterUtils.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Visualisation attribute filter utility functions.
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4AttValueFilterT.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Templated class for G4AttValue filters.
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4AttributeFilterT.hh 66870 2013-01-14 23:38:59Z adotti $
//
// Generic attribute filter.
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4AxesModel.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
//
// John Allison 3rd April 2001
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4BoundingSphereScene.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
//
// John Allison 7th June 1997
@@ -100,7 +100,6 @@ public:
virtual void AddPrimitive (const G4Square&) {}
virtual void AddPrimitive (const G4Polymarker&) {}
virtual void AddPrimitive (const G4Polyhedron&) {}
virtual void AddPrimitive (const G4NURBS&) {}
private:
void Accrue (const G4VSolid& solid);
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4CallbackModel.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
//
// John Allison 31st December 1997.
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// $Id: G4DigiFilterFactories.hh,v 1.1 2010-05-30 11:24:30 allison Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// $Id: G4DigiFilterFactories.hh 68043 2013-03-13 14:27:49Z gcosmo $
//
//
// Digi filter model factories creating filters
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4DigiModel.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
//
// John Allison 26th August 1998.
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// $Id: G4HitFilterFactories.hh,v 1.1 2006-09-12 18:53:03 tinslay Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// $Id: G4HitFilterFactories.hh 68043 2013-03-13 14:27:49Z gcosmo $
//
//
// Hit filter model factories creating filters
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4HitsModel.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
//
// John Allison 26th August 1998.
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4LogicalVolumeModel.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
//
// John Allison 26th July 1999.
@@ -24,39 +24,43 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4MagneticFieldModel.hh 74097 2013-09-22 16:03:59Z gcosmo $
//
// P. Mora de Freitas et M.Verderi - 19 June 1998.
//
// John Allison 17th August 2013
//
// Class Description:
//
// Model for flavored parallel world volumes. Inherits from
// G4PhysicalVolumeModel; for more information see that class
// description.
// Model that knows how to draw the magnetic field.
#ifndef G4FLAVOREDPARALLELWORLDMODEL_HH
#define G4FLAVOREDPARALLELWORLDMODEL_HH
#ifndef G4MAGNETICFIELDMODEL_HH
#define G4MAGNETICFIELDMODEL_HH
#include "G4PhysicalVolumeModel.hh"
#include "G4VModel.hh"
class G4VFlavoredParallelWorld;
class G4Colour;
class G4Polyhedron;
class G4MagneticFieldModel: public G4VModel {
class G4FlavoredParallelWorldModel : public G4PhysicalVolumeModel {
public: // With description
G4FlavoredParallelWorldModel
(G4VFlavoredParallelWorld* FPW,
G4int soughtDepth = G4PhysicalVolumeModel::UNLIMITED,
const G4Transform3D& modelTransformation = G4Transform3D(),
const G4ModelingParameters* mp = 0);
~G4FlavoredParallelWorldModel ();
G4MagneticFieldModel(G4int nDataPointsPerHalfScene = 10);
virtual ~G4MagneticFieldModel ();
virtual void DescribeYourselfTo (G4VGraphicsScene&);
// The main task of a model is to describe itself to the graphics scene.
private:
G4VFlavoredParallelWorld* theFlavoredParallelWorld;
// Private copy contructor and assignment to forbid use...
G4MagneticFieldModel (const G4MagneticFieldModel&);
G4MagneticFieldModel& operator = (const G4MagneticFieldModel&);
// No. of data points sampled per maximum half scene extent.
// Note that total number of data poinrs sampled can be as high as
// (2*n+1)^3, which can get very big very soon.
G4int fNDataPointsPerMaxHalfScene;
};
#endif
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4ModelApplyCommandsT.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Abstract model messenges. Derived classes should implement
// the "Apply" method
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4ModelColourMap.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Generic variable->G4Colour map, where "variable" is the template
// parameter.
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4ModelCommandUtils.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Jane Tinslay September 2006
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4ModelCommandsT.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Generic model messenges.
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4ModelCompoundCommandsT.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Jane Tinslay September 2006
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4ModelingParameters.hh 77479 2013-11-25 10:01:22Z gcosmo $
//
//
// John Allison 31st December 1997.
@@ -80,6 +80,8 @@ public: // With description
fName(name), fCopyNo(copyNo) {}
const G4String& GetName() const {return fName;}
G4int GetCopyNo() const {return fCopyNo;}
G4bool operator!=(const PVNameCopyNo&) const;
G4bool operator==(const PVNameCopyNo& rhs) const {return !operator!=(rhs);}
private:
G4String fName;
G4int fCopyNo;
@@ -103,6 +105,9 @@ public: // With description
{return fSignifier;}
const PVNameCopyNoPath& GetPVNameCopyNoPath() const
{return fPVNameCopyNoPath;}
G4bool operator!=(const VisAttributesModifier&) const;
G4bool operator==(const VisAttributesModifier& rhs) const
{return !operator!=(rhs);}
private:
G4VisAttributes fVisAtts;
VisAttributesSignifier fSignifier;
@@ -160,15 +165,7 @@ public: // With description
void SetSectionSolid (G4VSolid* pSectionSolid);
void SetCutawaySolid (G4VSolid* pCutawaySolid);
void SetEvent (const G4Event* pEvent);
void SetVisAttributesModifiers(const std::vector<VisAttributesModifier>);
static G4bool PVNameCopyNoPathNotEqual
(const PVNameCopyNoPath&,
const PVNameCopyNoPath&);
static G4bool VAMSNotEqual
(const std::vector<VisAttributesModifier>&,
const std::vector<VisAttributesModifier>&);
void SetVisAttributesModifiers(const std::vector<VisAttributesModifier>&);
friend std::ostream& operator <<
(std::ostream& os, const G4ModelingParameters&);
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4ModelingParameters.icc 77479 2013-11-25 10:01:22Z gcosmo $
//
//
// John Allison 31st December 1997.
@@ -139,7 +139,7 @@ inline void G4ModelingParameters::SetEvent(const G4Event* pEvent) {
}
inline void G4ModelingParameters::SetVisAttributesModifiers
(const std::vector<G4ModelingParameters::VisAttributesModifier> vams) {
(const std::vector<G4ModelingParameters::VisAttributesModifier>& vams) {
fVisAttributesModifiers = vams;
}
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4NullModel.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
//
// John Allison 4th April 1998.
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4PSHitsModel.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
//
// Created: Mar. 31, 2009 Akinori Kimura
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4PhysicalVolumeMassScene.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
//
// John Allison 12th September 2004
@@ -124,7 +124,6 @@ public:
virtual void AddPrimitive (const G4Square&) {}
virtual void AddPrimitive (const G4Polymarker&) {}
virtual void AddPrimitive (const G4Polyhedron&) {}
virtual void AddPrimitive (const G4NURBS&) {}
private:
void AccrueMass (const G4VSolid&);
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4PhysicalVolumeModel.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
//
// John Allison 31st December 1997.
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4PhysicalVolumeSearchScene.hh 68043 2013-03-13 14:27:49Z gcosmo $
//
//
// John Allison 10th August 1998.
@@ -55,7 +55,8 @@ public:
G4PhysicalVolumeSearchScene
(G4PhysicalVolumeModel*,
const G4String& requiredPhysicalVolumeName,
G4int requiredCopyNo);
G4int requiredCopyNo,
G4int verbosity = 99);
virtual ~G4PhysicalVolumeSearchScene ();
void PreAddSolid (const G4Transform3D& objectTransformation,
const G4VisAttributes&);
@@ -96,7 +97,6 @@ public:
virtual void AddPrimitive (const G4Square&) {}
virtual void AddPrimitive (const G4Polymarker&) {}
virtual void AddPrimitive (const G4Polyhedron&) {}
virtual void AddPrimitive (const G4NURBS&) {}
private:
void FindVolume (const G4VSolid&);
@@ -110,6 +110,7 @@ private:
G4VPhysicalVolume* fpFoundPV; // Found physical volume.
G4LogicalVolume* fpFoundLV; // Found logical volume.
G4Transform3D fFoundObjectTransformation; // Found transformation.
G4int fVerbosity;
G4bool fMultipleOccurrence;
};
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4PhysicalVolumeSearchScene.icc 66373 2012-12-18 09:41:34Z gcosmo $
//
//
// John Allison 10th August 1998.
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4ScaleModel.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
//
// John Allison 21st July 2001.
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4TextModel.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
//
// John Allison 3rd April 2001
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4TrajectoriesModel.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
//
// John Allison 26th August 1998.
@@ -54,17 +54,12 @@ class G4TrajectoriesModel: public G4VModel {
public: // With description
G4TrajectoriesModel ();
G4TrajectoriesModel (G4int drawingMode);
virtual ~G4TrajectoriesModel ();
virtual void DescribeYourselfTo (G4VGraphicsScene&);
// The main task of a model is to describe itself to the graphics scene.
G4bool IsDrawingModeSet() const;
G4int GetDrawingMode() const;
void SetDrawingMode(G4int drawingMode);
const G4VTrajectory* GetCurrentTrajectory() const
{return fpCurrentTrajectory;}
@@ -73,8 +68,6 @@ public: // With description
private:
G4bool fDrawingModeSet;
G4int fDrawingMode;
const G4VTrajectory* fpCurrentTrajectory;
G4int fEventID;
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4TrajectoryChargeFilter.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Filter trajectories according to charge. Only registered
// charges will pass the filter.
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4TrajectoryDrawByAttribute.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Jane Tinslay September 2006
//
@@ -50,8 +50,6 @@ public:
virtual ~G4TrajectoryDrawByAttribute();
// Draw the trajectory
virtual void Draw(const G4VTrajectory& trajectory, const G4int& i_mode = 0,
const G4bool& visible = true) const;
virtual void Draw(const G4VTrajectory& trajectory,
const G4bool& visible = true) const;
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4TrajectoryDrawByCharge.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Jane Tinslay, John Allison, Joseph Perl November 2005
//
@@ -56,8 +56,6 @@ public: // With description
virtual ~G4TrajectoryDrawByCharge();
// Draw method
virtual void Draw(const G4VTrajectory& trajectory, const G4int& i_mode = 0,
const G4bool& visible = true) const;
virtual void Draw(const G4VTrajectory& trajectory,
const G4bool& visible = true) const;
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4TrajectoryDrawByOriginVolume.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Class Description:
// Trajectory model which colours a trajectory according to
@@ -49,8 +49,6 @@ public: // With description
virtual ~G4TrajectoryDrawByOriginVolume();
// Draw method
virtual void Draw(const G4VTrajectory& trajectory, const G4int& i_mode = 0,
const G4bool& visible = true) const;
virtual void Draw(const G4VTrajectory& trajectory,
const G4bool& visible = true) const;
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4TrajectoryDrawByParticleID.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Jane Tinslay, John Allison, Joseph Perl November 2005
//
@@ -50,8 +50,6 @@ public: // With description
virtual ~G4TrajectoryDrawByParticleID();
// Draw method
virtual void Draw(const G4VTrajectory& trajectory, const G4int& i_mode = 0,
const G4bool& visible = true) const;
virtual void Draw(const G4VTrajectory& trajectory,
const G4bool& visible = true) const;
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4TrajectoryDrawerUtils.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Jane Tinslay, John Allison, Joseph Perl November 2005
//
@@ -47,15 +47,6 @@ namespace G4TrajectoryDrawerUtils {
void GetPoints(const G4VTrajectory& traj, G4Polyline& trajectoryLine,
G4Polymarker& auxiliaryPoints, G4Polymarker& stepPoints);
/***
// Draw trajectory line and points
void DrawLineAndPoints(const G4VTrajectory& traj, const G4int& i_mode,
const G4Colour& cfg, const G4bool& visible);
***/
// Draw trajectory line and points using G4VisTrajContext object information
void DrawLineAndPoints(const G4VTrajectory& traj, const G4VisTrajContext&, const G4int& i_mode);
// Draw trajectory line and points using G4VisTrajContext object information
void DrawLineAndPoints(const G4VTrajectory& traj, const G4VisTrajContext&);
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// $Id: G4TrajectoryFilterFactories.hh,v 1.4 2006-09-12 18:53:03 tinslay Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
/// $Id: G4TrajectoryFilterFactories.hh 68043 2013-03-13 14:27:49Z gcosmo $
//
//
// Trajectory filter model factories creating filters
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4TrajectoryGenericDrawer.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Jane Tinslay, John Allison, Joseph Perl November 2005
//
@@ -46,11 +46,8 @@ public: // With description
virtual ~G4TrajectoryGenericDrawer();
virtual void Draw(const G4VTrajectory& trajectory, const G4int& i_mode = 0,
const G4bool& visible = true) const;
virtual void Draw(const G4VTrajectory& trajectory,
const G4bool& visible = true) const;
// Draw the trajectory with optional i_mode parameter
virtual void Print(std::ostream& ostr) const;
// Print configuration
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4TrajectoryModelFactories.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Jane Tinslay, John Allison, Joseph Perl October 2005
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4TrajectoryOriginVolumeFilter.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Filter trajectories according to volume name. Only registered
// volumes will pass the filter.
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4TrajectoryParticleFilter.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Filter trajectories according to particle type. Only registered
// particle types will pass the filter.
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4VAttValueFilter.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Abstract base class for G4AttValue filters
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4VModel.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
//
// John Allison 31st December 1997.
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id$
// $Id: G4VModel.icc 66373 2012-12-18 09:41:34Z gcosmo $
//
//
// John Allison 31st December 1997.
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4VModelCommand.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Jane Tinslay, John Allison, Joseph Perl November 2005
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4VModelFactory.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Jane Tinslay, John Allison, Joseph Perl October 2005
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4VTrajectoryModel.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Jane Tinslay, John Allison, Joseph Perl October 2005
//
@@ -52,8 +52,6 @@ public:
virtual ~G4VTrajectoryModel();
// Draw method
virtual void Draw(const G4VTrajectory& trajectory, const G4int& i_mode = 0,
const G4bool& visible = true) const = 0;
virtual void Draw(const G4VTrajectory& trajectory,
const G4bool& visible = true) const = 0;
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4VisTrajContext.hh 66373 2012-12-18 09:41:34Z gcosmo $
//
// Jane Tinslay May 2006
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id$
// $Id: G4VisTrajContext.icc 66373 2012-12-18 09:41:34Z gcosmo $
//
// Jane Tinslay May 2006
//