Import Geant4 10.7.0 source tree

This commit is contained in:
Gabriele Cosmo
2020-12-04 12:30:43 +01:00
parent 67ba86d073
commit dab42d2018
3770 changed files with 226369 additions and 286486 deletions
@@ -29,7 +29,7 @@
#ifndef G4PSCellFlux_h
#define G4PSCellFlux_h 1
#include "G4VPrimitiveScorer.hh"
#include "G4VPrimitivePlotter.hh"
#include "G4THitsMap.hh"
class G4VSolid;
@@ -49,11 +49,13 @@ class G4VSolid;
// Created: 2005-11-14 Tsukasa ASO, Akinori Kimura.
// 2010-07-22 Introduce Unit specification.
// 2010-07-22 Add weighted option
// 2020-10-06 Use G4VPrimitivePlotter and fill 1-D histo of kinetic energy (x)
// vs. cell flux * track weight (y) (Makoto Asai)
//
///////////////////////////////////////////////////////////////////////////////
class G4PSCellFlux : public G4VPrimitiveScorer
class G4PSCellFlux : public G4VPrimitivePlotter
{
public: // with description
G4PSCellFlux(G4String name, G4int depth=0);
@@ -29,11 +29,12 @@
#ifndef G4PSCylinderSurfaceCurrent_h
#define G4PSCylinderSurfaceCurrent_h 1
#include "G4VPrimitiveScorer.hh"
#include "G4VPrimitivePlotter.hh"
#include "G4THitsMap.hh"
#include "G4Tubs.hh"
#include "G4PSDirectionFlag.hh"
////////////////////////////////////////////////////////////////////////////////
// (Description)
// This is a primitive scorer class for scoring Surface Current.
@@ -51,10 +52,12 @@
//
// Created: 2007-03-21 Tsukasa ASO
// 2010-07-22 Introduce Unit specification.
// 2020-10-06 Use G4VPrimitivePlotter and fill 1-D histo of kinetic energy (x)
// vs. surface current * track weight (y) (Makoto Asai)
//
///////////////////////////////////////////////////////////////////////////////
class G4PSCylinderSurfaceCurrent : public G4VPrimitiveScorer
class G4PSCylinderSurfaceCurrent : public G4VPrimitivePlotter
{
public: // with description
@@ -29,7 +29,7 @@
#ifndef G4PSCylinderSurfaceFlux_h
#define G4PSCylinderSurfaceFlux_h 1
#include "G4VPrimitiveScorer.hh"
#include "G4VPrimitivePlotter.hh"
#include "G4THitsMap.hh"
#include "G4Tubs.hh"
#include "G4PSDirectionFlag.hh"
@@ -52,10 +52,12 @@
// Created: 2007-03-29 Tsukasa ASO
// 2010-07-22 Introduce Unit specification.
// 2010-07-22 Add weighted and divideByArea options
// 2020-10-06 Use G4VPrimitivePlotter and fill 1-D histo of kinetic energy (x)
// vs. surface flux * track weight (y) (Makoto Asai)
//
///////////////////////////////////////////////////////////////////////////////
class G4PSCylinderSurfaceFlux : public G4VPrimitiveScorer
class G4PSCylinderSurfaceFlux : public G4VPrimitivePlotter
{
public: // with description
G4PSCylinderSurfaceFlux(G4String name,G4int direction, G4int depth=0);
@@ -29,7 +29,7 @@
#ifndef G4PSDoseDeposit_h
#define G4PSDoseDeposit_h 1
#include "G4VPrimitiveScorer.hh"
#include "G4VPrimitivePlotter.hh"
#include "G4THitsMap.hh"
////////////////////////////////////////////////////////////////////////////////
@@ -38,10 +38,12 @@
//
// Created: 2005-11-14 Tsukasa ASO, Akinori Kimura.
// 2010-07-22 Introduce Unit specification.
// 2020-10-06 Use G4VPrimitivePlotter and fill 1-D histo of dose deposit (x)
// vs. weight (y) (Makoto Asai)
//
///////////////////////////////////////////////////////////////////////////////
class G4PSDoseDeposit : public G4VPrimitiveScorer
class G4PSDoseDeposit : public G4VPrimitivePlotter
{
public: // with description
G4PSDoseDeposit(G4String name, G4int depth=0);
@@ -29,7 +29,7 @@
#ifndef G4PSEnergyDeposit_h
#define G4PSEnergyDeposit_h 1
#include "G4VPrimitiveScorer.hh"
#include "G4VPrimitivePlotter.hh"
#include "G4THitsMap.hh"
////////////////////////////////////////////////////////////////////////////////
@@ -39,9 +39,12 @@
// Created: 2005-11-14 Tsukasa ASO, Akinori Kimura
// 2010-07-22 Introduce Unit specification.
//
// 2020-09-03 Use G4VPrimitivePlotter and fill 1-D histo of energy deposit (x)
// vs. track weight (y) (Makoto Asai)
//
///////////////////////////////////////////////////////////////////////////////
class G4PSEnergyDeposit : public G4VPrimitiveScorer
class G4PSEnergyDeposit : public G4VPrimitivePlotter
{
public: // with description
@@ -29,7 +29,7 @@
#ifndef G4PSFlatSurfaceCurrent_h
#define G4PSFlatSurfaceCurrent_h 1
#include "G4VPrimitiveScorer.hh"
#include "G4VPrimitivePlotter.hh"
#include "G4THitsMap.hh"
#include "G4Box.hh"
@@ -53,10 +53,12 @@
// 17-Nov-2005 T.Aso, Bug fix for area definition.
// 31-Mar-2007 T.Aso, Add option for normalizing by the area.
// 2010-07-22 Introduce Unit specification.
// 2020-10-06 Use G4VPrimitivePlotter and fill 1-D histo of kinetic energy (x)
// vs. Surface Current * track weight (y) (Makoto Asai)
//
///////////////////////////////////////////////////////////////////////////////
class G4PSFlatSurfaceCurrent : public G4VPrimitiveScorer
class G4PSFlatSurfaceCurrent : public G4VPrimitivePlotter
{
public: // with description
@@ -29,7 +29,7 @@
#ifndef G4PSFlatSurfaceFlux_h
#define G4PSFlatSurfaceFlux_h 1
#include "G4VPrimitiveScorer.hh"
#include "G4VPrimitivePlotter.hh"
#include "G4THitsMap.hh"
#include "G4Box.hh"
#include "G4PSDirectionFlag.hh"
@@ -56,9 +56,11 @@
// 29-Mar-2007 T.Aso, Bug fix for momentum direction at outgoing flux.
// 2010-07-22 Introduce Unit specification.
// 2010-07-22 Add weighted and divideByArea options
// 2020-10-06 Use G4VPrimitivePlotter and fill 1-D histo of kinetic energy (x)
// vs. cell flux * track weight (Makoto Asai)
///////////////////////////////////////////////////////////////////////////////
class G4PSFlatSurfaceFlux : public G4VPrimitiveScorer
class G4PSFlatSurfaceFlux : public G4VPrimitivePlotter
{
public: // with description
G4PSFlatSurfaceFlux(G4String name,G4int direction, G4int depth=0);
@@ -29,7 +29,7 @@
#ifndef G4PSMinKinEAtGeneration_h
#define G4PSMinKinEAtGeneration_h 1
#include "G4VPrimitiveScorer.hh"
#include "G4VPrimitivePlotter.hh"
#include "G4THitsMap.hh"
////////////////////////////////////////////////////////////////////////////////
@@ -39,12 +39,14 @@
//
// Created: 2005-11-17 Tsukasa ASO, Akinori Kimura.
// 2010-07-22 Introduce Unit specification.
// 2020-10-06 Use G4VPrimitivePlotter and fill 1-D histo of kinetic energy (x)
// vs. track weight (y) (Makoto Asai)
//
//
///////////////////////////////////////////////////////////////////////////////
class G4PSMinKinEAtGeneration : public G4VPrimitiveScorer
class G4PSMinKinEAtGeneration : public G4VPrimitivePlotter
{
public: // with description
@@ -29,7 +29,7 @@
#ifndef G4PSNofSecondary_h
#define G4PSNofSecondary_h 1
#include "G4VPrimitiveScorer.hh"
#include "G4VPrimitivePlotter.hh"
#include "G4THitsMap.hh"
#include "G4ParticleTable.hh"
@@ -44,12 +44,14 @@
// particleDef is not set, it accepts all secondaies.
// But onece user sets it, it accepts only the particle.
// 2010-07-22 Introduce Unit specification.
//
// 2020-10-06 Use G4VPrimitivePlotter and fill 1-D histo of kinetic
// energy of the secondary in MeV (x) vs. track weight (y)
// (Makoto Asai)
//
///////////////////////////////////////////////////////////////////////////////
class G4PSNofSecondary : public G4VPrimitiveScorer
class G4PSNofSecondary : public G4VPrimitivePlotter
{
public: // with description
@@ -29,7 +29,7 @@
#ifndef G4PSNofStep_h
#define G4PSNofStep_h 1
#include "G4VPrimitiveScorer.hh"
#include "G4VPrimitivePlotter.hh"
#include "G4THitsMap.hh"
////////////////////////////////////////////////////////////////////////////////
@@ -38,11 +38,13 @@
//
// Created: 2005-11-14 Tsukasa ASO, Akinori Kimura.
// 2010-07-22 Introduce Unit specification.
// 2020-10-06 Use G4VPrimitivePlotter and fill 1-D histo of step length
// in mm vs. number of steps (not weighted) (Makoto Asai)
//
///////////////////////////////////////////////////////////////////////////////
class G4PSNofStep : public G4VPrimitiveScorer
class G4PSNofStep : public G4VPrimitivePlotter
{
public: // with description
@@ -29,7 +29,7 @@
#ifndef G4PSPassageCellCurrent_h
#define G4PSPassageCellCurrent_h 1
#include "G4VPrimitiveScorer.hh"
#include "G4VPrimitivePlotter.hh"
#include "G4THitsMap.hh"
////////////////////////////////////////////////////////////////////////////////
@@ -41,11 +41,13 @@
// Created: 2005-11-14 Tsukasa ASO, Akinori Kimura.
// 2010-07-22 Introduce Unit specification.
// 2010-07-22 Add weighted option
// 2020-10-06 Use G4VPrimitivePlotter and fill 1-D histo of kinetic energy (x)
// vs. current * track weight (y) (Makoto Asai)
//
///////////////////////////////////////////////////////////////////////////////
class G4PSPassageCellCurrent : public G4VPrimitiveScorer
class G4PSPassageCellCurrent : public G4VPrimitivePlotter
{
public: // with description
@@ -29,7 +29,7 @@
#ifndef G4PSPassageCellFlux_h
#define G4PSPassageCellFlux_h 1
#include "G4VPrimitiveScorer.hh"
#include "G4VPrimitivePlotter.hh"
#include "G4THitsMap.hh"
////////////////////////////////////////////////////////////////////////////////
@@ -45,10 +45,12 @@
// Created: 2005-11-14 Tsukasa ASO, Akinori Kimura.
// 2010-07-22 Introduce Unit specification.
// 2010-07-22 Add weighted option
// 2020-10-06 Use G4VPrimitivePlotter and fill 1-D histo of kinetic energy (x)
// vs. cell flux * track weight (y) (Makoto Asai)
//
///////////////////////////////////////////////////////////////////////////////
class G4PSPassageCellFlux : public G4VPrimitiveScorer
class G4PSPassageCellFlux : public G4VPrimitivePlotter
{
public: // with description
@@ -29,7 +29,7 @@
#ifndef G4PSPassageTrackLength_h
#define G4PSPassageTrackLength_h 1
#include "G4VPrimitiveScorer.hh"
#include "G4VPrimitivePlotter.hh"
#include "G4THitsMap.hh"
////////////////////////////////////////////////////////////////////////////////
@@ -40,10 +40,12 @@
//
// Created: 2005-11-14 Tsukasa ASO, Akinori Kimura.
// 2010-07-22 Introduce Unit specification.
// 2020-10-06 Use G4VPrimitivePlotter and fill 1-D histo of track length
// vs. number of tracks (not weighted) (Makoto Asai)
//
///////////////////////////////////////////////////////////////////////////////
class G4PSPassageTrackLength : public G4VPrimitiveScorer
class G4PSPassageTrackLength : public G4VPrimitivePlotter
{
public: // with description
@@ -29,7 +29,7 @@
#ifndef G4PSTrackCounter_h
#define G4PSTrackCounter_h 1
#include "G4VPrimitiveScorer.hh"
#include "G4VPrimitivePlotter.hh"
#include "G4THitsMap.hh"
#include "G4PSDirectionFlag.hh"
@@ -40,10 +40,12 @@
//
// Created: 2007-02-02 Tsukasa ASO, Akinori Kimura.
// 2010-07-22 Introduce Unit specification.
// 2020-10-06 Use G4VPrimitivePlotter and fill 1-D histo of kinetic energy
// in MeV (x) vs. weighted number of track (y) (Makoto Asai)
//
///////////////////////////////////////////////////////////////////////////////
class G4PSTrackCounter : public G4VPrimitiveScorer
class G4PSTrackCounter : public G4VPrimitivePlotter
{
public: // with description
@@ -0,0 +1,74 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// Class G4PSVolumeFlux
//
// Class description:
// Scorer that scores number of tracks coming into the associated volume.
// Optionally number of tracks can be divided by the surface area to
// score the volume current and divided by cos(theta) for volume flux
// where theta is the incident angle
//
// - Created M. Asai, Sept. 2020
#ifndef G4PSVolumeFlux_h
#define G4PSVolumeFlux_h 1
#include "G4VPrimitivePlotter.hh"
#include "G4THitsMap.hh"
#include "G4PSDirectionFlag.hh"
class G4PSVolumeFlux : public G4VPrimitivePlotter
{
public: // with description
G4PSVolumeFlux(G4String name,G4int direction=1, G4int depth=0);
virtual ~G4PSVolumeFlux();
protected: // with description
virtual G4bool ProcessHits(G4Step*,G4TouchableHistory*);
public:
virtual void Initialize(G4HCofThisEvent*);
virtual void EndOfEvent(G4HCofThisEvent*);
virtual void clear();
virtual void DrawAll();
virtual void PrintAll();
private:
G4int HCID;
G4int fDirection;
G4THitsMap<G4double>* EvtMap;
G4bool divare = false; // divide by the surface area
G4bool divcos = false; // divide by cos(theta)
public:
void SetDivAre(G4bool val)
{ divare = val; }
void SetDivCos(G4bool val)
{ divcos = val; }
};
#endif
@@ -0,0 +1,58 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// Class G4PSVolumeFlux3D
//
// Class description:
// 3-dimentional extension of G4PSVolumeFlux scorer. This scorer should
// be assigned to 3-dimensional mesh.
//
// - Created M. Asai, Sept. 2020
//
//
#ifndef G4PSVolumeFlux3D_h
#define G4PSVolumeFlux3D_h 1
#include "G4PSVolumeFlux.hh"
class G4PSVolumeFlux3D : public G4PSVolumeFlux
{
public: // with description
G4PSVolumeFlux3D(G4String name, G4int direction=1,
G4int ni=1,G4int nj=1, G4int nk=1,
G4int depi=2, G4int depj=1, G4int depk=0);
virtual ~G4PSVolumeFlux3D();
protected: // with description
virtual G4int GetIndex(G4Step*);
private:
G4int fDepthi, fDepthj, fDepthk;
};
#endif