Import Geant4 9.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:16:48 +02:00
parent 75c7fd177d
commit a8e9364cea
6592 changed files with 84274 additions and 69292 deletions
+20 -1
View File
@@ -1,4 +1,4 @@
$Id: History,v 1.19 2007/04/20 07:53:32 asaim Exp $
$Id: History,v 1.25 2007/06/05 16:46:55 ahoward Exp $
-------------------------------------------------------------------
=========================================================
@@ -17,6 +17,25 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
June 4, 2007, A.Howard (digits_hits-V08-03-04)
- Removed G4PSPopulation class to obviate circular dependency
June 4, 2007, A.Howard (digits_hits-V08-03-03)
- Put back some classes required for scoring of geometrical biasing cells:
G4CellScoreValues, G4CellScoreComposer
May 31, 2007, A.Howard (digits_hits-V08-03-02)
- Removed classes associated with old biasing/scoring scheme in detector:
G4CellScoreComposer, G4CellScoreValues, G4CellStoreScorer
- Files remain on the HEAD for testing purposes
May 17, 2007, M.Asai (digits_hits-V08-03-01)
- Introducing new scorers for event biasing options.
May 11, 2007, G.Cosmo (digits_hits-V08-03-00)
- Make use of G4GeometryTolerance instead of kCarTolerance constant.
- Requires tag "global-V08-03-00" and related set.
Apr 20, 2007, M.Asai (digits_hits-V08-02-00)
- Fix the way of counting outward steps in flux scorers.
+12 -1
View File
@@ -1,4 +1,4 @@
$Id: History,v 1.4 2004/07/01 09:19:11 gcosmo Exp $
$Id: History,v 1.6 2007/06/04 13:17:18 ahoward Exp $
-------------------------------------------------------------------
=========================================================
@@ -17,6 +17,17 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
June 4, 2007, A.Howard
- Put back some classes required for scoring of geometrical biasing cells:
G4CellScoreValues, G4CellScoreComposer
(in module tag: "digits_hits-V08-03-03")
May 31, 2007, A.Howard
- Removed classes associated with old biasing/scoring scheme:
G4CellScoreComposer, G4CellScoreValues, G4CellStoreScorer
(in module tag: "digits_hits-V08-03-02")
- Files remain on the HEAD for testing purposes
Jul, 1st 2004 G.Cosmo
- G4CellScoreComposer.cc, G4TrackLogger.cc: trivial fix for extra
semicolons, required for porting on gcc-3.4.0 compiler.
@@ -25,7 +25,7 @@
//
//
// $Id: G4CellScoreComposer.hh,v 1.2 2006/06/29 18:05:06 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
// ----------------------------------------------------------------------
// Class G4CellScoreComposer
@@ -25,7 +25,7 @@
//
//
// $Id: G4CellScoreValues.hh,v 1.2 2006/06/29 18:05:08 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
// ----------------------------------------------------------------------
// Class G4CellScoreValues
@@ -25,7 +25,7 @@
//
//
// $Id: G4CollectionNameVector.hh,v 1.2 2006/06/29 18:05:12 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4CollectionNameVector_H
@@ -25,7 +25,7 @@
//
//
// $Id: G4HCtable.hh,v 1.3 2006/06/29 18:05:15 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4HCtable_H
@@ -25,7 +25,7 @@
//
//
// $Id: G4MultiFunctionalDetector.hh,v 1.3 2006/06/29 18:05:17 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4MultiFunctionalDetector_h
@@ -25,7 +25,7 @@
//
//
// $Id: G4SDManager.hh,v 1.4 2006/06/29 18:05:19 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4SDManager_h
@@ -25,7 +25,7 @@
//
//
// $Id: G4SDStructure.hh,v 1.3 2006/06/29 18:05:22 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4SDStructure_h
@@ -25,7 +25,7 @@
//
//
// $Id: G4SDmessenger.hh,v 1.2 2006/06/29 18:05:24 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4SDmessenger_h
@@ -25,7 +25,7 @@
//
//
// $Id: G4SensitiveVolumeList.hh,v 1.2 2006/06/29 18:05:26 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
// ------------------------------------------------------------
// GEANT 4 class header file --- Copyright CERN 1996
@@ -25,7 +25,7 @@
//
//
// $Id: G4SensitiveVolumeList.icc,v 1.2 2006/06/29 18:05:28 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
// -----------------------------------------------------------
// Inline functions of GEANT 4 class header file.
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: G4TrackLogger.hh,v 1.2 2006/06/29 18:05:30 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
// ----------------------------------------------------------------------
// Class G4TrackLogger
@@ -25,7 +25,7 @@
//
//
// $Id: G4VPrimitiveScorer.hh,v 1.2 2006/06/29 18:05:32 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4VPrimitiveScorer_h
@@ -25,7 +25,7 @@
//
//
// $Id: G4VReadOutGeometry.hh,v 1.2 2006/06/29 18:05:34 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
// ------------------------------------------------------------
@@ -25,7 +25,7 @@
//
//
// $Id: G4VSDFilter.hh,v 1.2 2006/06/29 18:05:37 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4VSDFilter_h
@@ -25,7 +25,7 @@
//
//
// $Id: G4VSensitiveDetector.hh,v 1.4 2006/06/29 18:05:39 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4VSensitiveDetector_h
@@ -25,7 +25,7 @@
//
//
// $Id: G4CellScoreComposer.cc,v 1.3 2006/06/29 18:05:41 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4HCtable.cc,v 1.4 2006/06/29 18:05:45 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#include "G4HCtable.hh"
@@ -25,7 +25,7 @@
//
//
// $Id: G4MultiFunctionalDetector.cc,v 1.4 2006/06/29 18:05:47 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4MultiFunctionalDetector
#include "G4MultiFunctionalDetector.hh"
@@ -25,7 +25,7 @@
//
//
// $Id: G4SDManager.cc,v 1.4 2006/06/29 18:05:50 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#include "G4SDManager.hh"
@@ -25,7 +25,7 @@
//
//
// $Id: G4SDStructure.cc,v 1.3 2006/06/29 18:05:53 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4SDStructure
@@ -25,7 +25,7 @@
//
//
// $Id: G4SDmessenger.cc,v 1.2 2006/06/29 18:05:56 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
// ---------------------------------------------------------------------
@@ -25,7 +25,7 @@
//
//
// $Id: G4SensitiveVolumeList.cc,v 1.2 2006/06/29 18:05:59 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
// --------------------------------------------------------------
// GEANT 4 class implementation file
@@ -25,7 +25,7 @@
//
//
// $Id: G4TrackLogger.cc,v 1.3 2006/06/29 18:06:01 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
@@ -25,7 +25,7 @@
//
//
// $Id: G4VPrimitiveScorer.cc,v 1.2 2006/06/29 18:06:03 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4VPrimitiveScorer
#include "G4VPrimitiveScorer.hh"
@@ -25,7 +25,7 @@
//
//
// $Id: G4VReadOutGeometry.cc,v 1.2 2006/06/29 18:06:05 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#include "G4VReadOutGeometry.hh"
@@ -25,7 +25,7 @@
//
//
// $Id: G4VSDFilter.cc,v 1.2 2006/06/29 18:06:08 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4VSensitiveDetector
#include "G4VSDFilter.hh"
@@ -25,7 +25,7 @@
//
//
// $Id: G4VSensitiveDetector.cc,v 1.3 2006/06/29 18:06:11 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4VSensitiveDetector
#include "G4VSensitiveDetector.hh"
@@ -25,7 +25,7 @@
//
//
// $Id: G4DCofThisEvent.hh,v 1.5 2006/06/29 18:06:13 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4DCofThisEvent_h
@@ -25,7 +25,7 @@
//
//
// $Id: G4TDigiCollection.hh,v 1.6 2006/06/29 18:06:16 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4TDigiCollection_h
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4VDigi.hh,v 1.4 2006/06/29 18:06:18 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4VDigi_h
@@ -25,7 +25,7 @@
//
//
// $Id: G4VDigiCollection.hh,v 1.3 2006/06/29 18:06:20 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4VDigiCollection_h
@@ -25,7 +25,7 @@
//
//
// $Id: G4DCofThisEvent.cc,v 1.4 2006/06/29 18:06:22 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#include "G4DCofThisEvent.hh"
@@ -25,7 +25,7 @@
//
//
// $Id: G4TDigiCollection.cc,v 1.4 2006/06/29 18:06:24 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#include "G4TDigiCollection.hh"
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4VDigi.cc,v 1.2 2006/06/29 18:06:26 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4VDigi
@@ -25,7 +25,7 @@
//
//
// $Id: G4VDigiCollection.cc,v 1.2 2006/06/29 18:06:29 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4VDigiCollection
@@ -25,7 +25,7 @@
//
//
// $Id: G4HCofThisEvent.hh,v 1.5 2006/06/29 18:06:32 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4HCofThisEvent_h
@@ -25,7 +25,7 @@
//
//
// $Id: G4THitsCollection.hh,v 1.5 2006/06/29 18:06:34 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4THitsCollection_h
@@ -25,7 +25,7 @@
//
//
// $Id: G4THitsMap.hh,v 1.6 2006/06/29 18:06:36 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4THitsMap_h
#define G4THitsMap_h 1
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4VHit.hh,v 1.3 2006/06/29 18:06:38 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4VHit_h
@@ -25,7 +25,7 @@
//
//
// $Id: G4VHitsCollection.hh,v 1.2 2006/06/29 18:06:40 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4VHitsCollection_h
@@ -25,7 +25,7 @@
//
//
// $Id: G4HCofThisEvent.cc,v 1.4 2006/06/29 18:06:42 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#include "G4HCofThisEvent.hh"
@@ -25,7 +25,7 @@
//
//
// $Id: G4THitsCollection.cc,v 1.4 2006/06/29 18:06:45 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
#include "G4THitsCollection.hh"
+1 -1
View File
@@ -25,7 +25,7 @@
//
//
// $Id: G4VHit.cc,v 1.2 2006/06/29 18:06:47 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4VHit
@@ -25,7 +25,7 @@
//
//
// $Id: G4VHitsCollection.cc,v 1.2 2006/06/29 18:06:49 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4VHitsCollection
+4 -2
View File
@@ -1,4 +1,4 @@
# $Id: GNUmakefile,v 1.2 2005/11/16 23:24:08 asaim Exp $
# $Id: GNUmakefile,v 1.4 2007/06/05 14:26:53 asaim Exp $
# --------------------------------------------------------------
# GNUmakefile for digits+hits library. Makoto Asai, 1/11/96.
# --------------------------------------------------------------
@@ -21,10 +21,12 @@ CPPFLAGS += \
-I$(G4BASE)/materials/include \
-I$(G4BASE)/geometry/management/include \
-I$(G4BASE)/geometry/volumes/include \
-I$(G4BASE)/geometry/navigation/include \
-I$(G4BASE)/geometry/solids/CSG/include \
-I$(G4BASE)/digits_hits/hits/include \
-I$(G4BASE)/digits_hits/detector/include \
-I$(G4BASE)/intercoms/include
-I$(G4BASE)/digits_hits/digits/include \
-I$(G4BASE)/intercoms/include \
include $(G4INSTALL)/config/common.gmk
+12 -1
View File
@@ -1,4 +1,4 @@
$Id: History,v 1.3 2006/11/18 18:20:40 asaim Exp $
$Id: History,v 1.7 2007/06/06 07:48:45 ahoward Exp $
-------------------------------------------------------------------
=========================================================
@@ -17,6 +17,17 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
June 06, 2007 A.Howard (detutils-V08-03-02)
- Added modified G4PSPopulation removing event (circular) dependency
(file form T.Aso).
June 05, 2007 M.Asai (detutils-V08-03-01)
- Drop G4PSPopulation from the release.
May 17, 2007 M.Asai (detutils-V08-03-00)
- New scorers for event biasing.
- kCarTolerance now becomes a local data member obtained from G4GeometryTolerance class.
November 17, 2006 M.Asai (detutils-V08-01-00)
- G4PSCellCharge is introduced.
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSCellCharge.hh,v 1.2 2006/12/13 15:43:28 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSCellCharge.hh,v 1.3 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4PSCellCharge_h
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSCellFlux.hh,v 1.3 2006/06/29 18:06:51 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSCellFlux.hh,v 1.4 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4PSCellFlux_h
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSDirectionFlag.hh,v 1.2 2006/06/29 18:06:53 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSDirectionFlag.hh,v 1.3 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
//
//---------------------------------------------------------------
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSDoseDeposit.hh,v 1.3 2006/06/29 18:06:56 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSDoseDeposit.hh,v 1.4 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4PSDoseDeposit_h
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSEnergyDeposit.hh,v 1.2 2006/06/29 18:06:59 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSEnergyDeposit.hh,v 1.3 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4PSEnergyDeposit_h
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSFlatSurfaceCurrent.hh,v 1.3 2006/06/29 18:07:01 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSFlatSurfaceCurrent.hh,v 1.4 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4PSFlatSurfaceCurrent_h
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSFlatSurfaceFlux.hh,v 1.4 2007/04/20 07:53:33 asaim Exp $
// GEANT4 tag $Name: geant4-08-03 $
// $Id: G4PSFlatSurfaceFlux.hh,v 1.5 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4PSFlatSurfaceFlux_h
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSMinKinEAtGeneration.hh,v 1.2 2006/06/29 18:07:07 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSMinKinEAtGeneration.hh,v 1.3 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4PSMinKinEAtGeneration_h
@@ -23,54 +23,61 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4CellStoreScorer.hh,v 1.2 2006/06/29 18:05:10 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
//
// ----------------------------------------------------------------------
// Class G4CellStoreScorer
// $Id: G4PSNofCollision.hh,v 1.2 2007/06/21 15:03:52 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// Class description:
#ifndef G4PSNofCollision_h
#define G4PSNofCollision_h 1
#include "G4VPrimitiveScorer.hh"
#include "G4THitsMap.hh"
//////////////////////////////////////////////////////////////////////////////////
// (Description)
// This is a primitive scorer class for scoring Number of Steps in the cell.
//
// This class invokes a G4VCellScorer according to the current
// step:
// - pre and post step are in a volume -> chose post gCell (cell)
// and call ScoreInVolume
// - cross boundary between gCells (cells)
// call ScoreAnExtingStep on the pre cell
// and ScoreAnEnteringStep on the post cell.
//
// Author: Michael Dressel (Michael.Dressel@cern.ch)
// ----------------------------------------------------------------------
//
#ifndef G4CellStoreScorer_hh
#define G4CellStoreScorer_hh G4CellStoreScorer_hh
// Created: 2007-2-2 Tsukasa ASO, Akinori Kimura.
//
///////////////////////////////////////////////////////////////////////////////
#include "G4VScorer.hh"
class G4VCellScorerStore;
class G4Step;
class G4GeometryCellStep;
class G4GeometryCell;
class G4CellStoreScorer : public G4VScorer
class G4PSNofCollision : public G4VPrimitiveScorer
{
public: // with description
explicit G4CellStoreScorer(G4VCellScorerStore &csc);
// take a G4VCellScorerStore created by the user to score
// the cells contained in it.
virtual ~G4CellStoreScorer();
virtual void Score(const G4Step &aStep, const G4GeometryCellStep &aPStep);
// called to score a track for every step
private:
G4VCellScorerStore &fCellScorerStore;
public: // with description
G4PSNofCollision(G4String name, G4int depth=0);
protected: // with description
virtual G4bool ProcessHits(G4Step*,G4TouchableHistory*);
public:
virtual ~G4PSNofCollision();
inline void Weighted(G4bool flg=true) { weighted = flg; }
// Multiply track weight
public:
virtual void Initialize(G4HCofThisEvent*);
virtual void EndOfEvent(G4HCofThisEvent*);
virtual void clear();
public:
virtual void DrawAll();
virtual void PrintAll();
private:
G4int HCID;
G4THitsMap<G4double>* EvtMap;
G4bool weighted;
public:
};
#endif
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSNofSecondary.hh,v 1.2 2006/06/29 18:07:10 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSNofSecondary.hh,v 1.3 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4PSNofSecondary_h
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSNofStep.hh,v 1.2 2006/06/29 18:07:12 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSNofStep.hh,v 1.3 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4PSNofStep_h
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSPassageCellFlux.hh,v 1.3 2006/06/29 18:07:14 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSPassageCellFlux.hh,v 1.4 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4PSPassageCellFlux_h
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSPassageCurrent.hh,v 1.3 2006/06/29 18:07:17 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSPassageCurrent.hh,v 1.4 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4PSPassageCurrent_h
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSPassageTrackLength.hh,v 1.3 2006/06/29 18:07:19 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSPassageTrackLength.hh,v 1.4 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4PSPassageTrackLength_h
@@ -24,67 +24,64 @@
// ********************************************************************
//
//
// $Id: G4CellStoreScorer.cc,v 1.2 2006/06/29 18:05:43 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSPopulation.hh,v 1.2 2007/06/21 15:03:54 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
//
// G4CellStoreScorer
//
// ----------------------------------------------------------------------
#include "G4CellStoreScorer.hh"
#ifndef G4PSPopulation_h
#define G4PSPopulation_h 1
#include "G4VCellScorer.hh"
#include "G4VPrimitiveScorer.hh"
#include "G4THitsMap.hh"
#include <map>
#include "G4Track.hh"
#include "G4GeometryCell.hh"
#include "G4Step.hh"
#include "G4GeometryCellStep.hh"
#include "G4VCellScorerStore.hh"
#include "G4TrackLogger.hh"
G4CellStoreScorer::G4CellStoreScorer(G4VCellScorerStore &csc) :
fCellScorerStore(csc)
{}
G4CellStoreScorer::~G4CellStoreScorer()
{}
//////////////////////////////////////////////////////////////////////////////////
// (Description)
// This is a primitive scorer class for scoring Number of Steps in the cell.
//
// Created: 2007-02-02 Tsukasa ASO, Akinori Kimura.
//
///////////////////////////////////////////////////////////////////////////////
void G4CellStoreScorer::
Score(const G4Step &aStep, const G4GeometryCellStep &aPstep){
G4Track *track = 0;
track = aStep.GetTrack();
if (track->GetTrackStatus()==fStopAndKill) {
G4cout << "G4CellStoreScorer::Score: track status is StopAndKill -> do nothing" << G4endl;
}
else {
// chose the cells to be scored
G4GeometryCell pre_gCell(aPstep.GetPreGeometryCell());
G4GeometryCell post_gCell(aPstep.GetPostGeometryCell());
G4VCellScorer *post_cs = 0;
post_cs = fCellScorerStore.GetCellScore(post_gCell);
if (aPstep.GetCrossBoundary()) {
// entering post_gCell
if (post_cs) {
post_cs->ScoreAnEnteringStep(aStep, post_gCell);
}
// exiting pre_gCell
G4VCellScorer *pre_cs = 0;
pre_cs = fCellScorerStore.GetCellScore(pre_gCell);
if (pre_cs) {
pre_cs->ScoreAnExitingStep(aStep, pre_gCell);
}
}
else {
// step in post_gCell
if (post_cs) {
post_cs->ScoreAnInVolumeStep(aStep, post_gCell);
}
}
}
}
class G4PSPopulation : public G4VPrimitiveScorer
{
public: // with description
G4PSPopulation(G4String name, G4int depth=0);
protected: // with description
virtual G4bool ProcessHits(G4Step*,G4TouchableHistory*);
public:
virtual ~G4PSPopulation();
inline void Weighted(G4bool flg=true) { weighted = flg; }
// Multiply track weight
public:
virtual void Initialize(G4HCofThisEvent*);
virtual void EndOfEvent(G4HCofThisEvent*);
virtual void clear();
public:
virtual void DrawAll();
virtual void PrintAll();
private:
G4int HCID;
G4THitsMap<G4double>* EvtMap;
G4bool weighted;
std::map<G4int,G4TrackLogger> fCellTrackLogger;
public:
};
#endif
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSSphereSurfaceCurrent.hh,v 1.3 2006/06/29 18:07:21 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSSphereSurfaceCurrent.hh,v 1.4 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4PSSphereSurfaceCurrent_h
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSSphereSurfaceFlux.hh,v 1.1 2007/04/20 07:55:38 asaim Exp $
// GEANT4 tag $Name: geant4-08-03 $
// $Id: G4PSSphereSurfaceFlux.hh,v 1.2 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4PSSphereSurfaceFlux_h
@@ -0,0 +1,86 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
//
// $Id: G4PSTrackCounter.hh,v 1.2 2007/06/21 15:03:56 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4PSTrackCounter_h
#define G4PSTrackCounter_h 1
#include "G4VPrimitiveScorer.hh"
#include "G4THitsMap.hh"
#include "G4PSDirectionFlag.hh"
//////////////////////////////////////////////////////////////////////////////////
// (Description)
// This is a primitive scorer class for scoring Number of Steps in the cell.
//
// Created: 2007-02-02 Tsukasa ASO, Akinori Kimura.
//
///////////////////////////////////////////////////////////////////////////////
class G4PSTrackCounter : public G4VPrimitiveScorer
{
public: // with description
G4PSTrackCounter(G4String name, G4int direction, G4int depth=0);
protected: // with description
virtual G4bool ProcessHits(G4Step*,G4TouchableHistory*);
public:
virtual ~G4PSTrackCounter();
inline void Weighted(G4bool flg=true) { weighted = flg; }
// Multiply track weight
public:
virtual void Initialize(G4HCofThisEvent*);
virtual void EndOfEvent(G4HCofThisEvent*);
virtual void clear();
public:
virtual void DrawAll();
virtual void PrintAll();
private:
G4int HCID;
G4int fDirection;
G4THitsMap<G4double>* EvtMap;
G4bool weighted;
public:
};
#endif
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSTrackLength.hh,v 1.4 2006/06/29 18:07:23 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSTrackLength.hh,v 1.5 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4PSTrackLength_h
@@ -40,6 +40,9 @@
//
//
// Created: 2005-11-14 Tsukasa ASO, Akinori Kimura.
// Modified: 2007-02-02 Tsukasa ASO, Add MultiolyKineticEnergy()
// and DivideByVelocity().
//
//
///////////////////////////////////////////////////////////////////////////////
@@ -53,6 +56,13 @@ class G4PSTrackLength : public G4VPrimitiveScorer
inline void Weighted(G4bool flg=true) { weighted = flg; }
// Multiply track weight
inline void MultiplyKineticEnergy(G4bool flg=true) { multiplyKinE = flg; }
// Multiply Kinetic Energy
inline void DivideByVelocity(G4bool flg=true) { divideByVelocity = flg; }
// Divide by velocity
protected: // with description
virtual G4bool ProcessHits(G4Step*,G4TouchableHistory*);
@@ -67,5 +77,7 @@ class G4PSTrackLength : public G4VPrimitiveScorer
G4int HCID;
G4THitsMap<G4double>* EvtMap;
G4bool weighted;
G4bool multiplyKinE;
G4bool divideByVelocity;
};
#endif
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4SDChargedFilter.hh,v 1.3 2006/06/29 18:07:25 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4SDChargedFilter.hh,v 1.4 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4SDChargedFilter_h
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4SDKineticEnergyFilter.hh,v 1.3 2006/06/29 18:07:27 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4SDKineticEnergyFilter.hh,v 1.4 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4SDKineticEnergyFilter_h
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4SDNeutralFilter.hh,v 1.3 2006/06/29 18:07:29 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4SDNeutralFilter.hh,v 1.4 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4SDNeutralFilter_h
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4SDParticleFilter.hh,v 1.3 2006/06/29 18:07:31 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4SDParticleFilter.hh,v 1.4 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4SDParticleFilter_h
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4SDParticleWithEnergyFilter.hh,v 1.3 2006/06/29 18:07:33 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4SDParticleWithEnergyFilter.hh,v 1.4 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
#ifndef G4SDParticleWithEnergyFilter_h
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4PSCellCharge.cc,v 1.2 2006/12/13 15:43:30 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSCellCharge.cc,v 1.3 2007/05/18 00:00:37 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4PSCellCharge
#include "G4PSCellCharge.hh"
+2 -2
View File
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSCellFlux.cc,v 1.4 2006/06/29 18:07:36 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSCellFlux.cc,v 1.5 2007/05/18 00:00:38 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4PSCellFlux
#include "G4PSCellFlux.hh"
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSDoseDeposit.cc,v 1.4 2006/06/29 18:07:38 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSDoseDeposit.cc,v 1.5 2007/05/18 00:00:38 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4PSDoseDeposit
#include "G4PSDoseDeposit.hh"
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSEnergyDeposit.cc,v 1.4 2006/06/29 18:07:40 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSEnergyDeposit.cc,v 1.5 2007/05/18 00:00:38 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4PSEnergyDeposit
#include "G4PSEnergyDeposit.hh"
@@ -24,14 +24,15 @@
// ********************************************************************
//
//
// $Id: G4PSFlatSurfaceCurrent.cc,v 1.5 2006/06/29 18:07:42 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSFlatSurfaceCurrent.cc,v 1.7 2007/05/18 00:00:38 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4PSFlatSurfaceCurrent
#include "G4PSFlatSurfaceCurrent.hh"
#include "G4StepStatus.hh"
#include "G4Track.hh"
#include "G4UnitsTable.hh"
#include "G4GeometryTolerance.hh"
////////////////////////////////////////////////////////////////////////////////
// (Description)
// This is a primitive scorer class for scoring only Surface Flux.
@@ -91,7 +92,7 @@ G4int G4PSFlatSurfaceCurrent::IsSelectedSurface(G4Step* aStep, G4Box* boxSolid){
G4TouchableHandle theTouchable =
aStep->GetPreStepPoint()->GetTouchableHandle();
G4double kCarTolerance = G4GeometryTolerance::GetInstance()->GetSurfaceTolerance();
if (aStep->GetPreStepPoint()->GetStepStatus() == fGeomBoundary ){
// Entering Geometry
@@ -24,14 +24,15 @@
// ********************************************************************
//
//
// $Id: G4PSFlatSurfaceFlux.cc,v 1.6 2007/04/20 07:53:33 asaim Exp $
// GEANT4 tag $Name: geant4-08-03 $
// $Id: G4PSFlatSurfaceFlux.cc,v 1.8 2007/05/18 00:00:38 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4PSFlatSurfaceFlux
#include "G4PSFlatSurfaceFlux.hh"
#include "G4StepStatus.hh"
#include "G4Track.hh"
#include "G4UnitsTable.hh"
#include "G4GeometryTolerance.hh"
////////////////////////////////////////////////////////////////////////////////
// (Description)
// This is a primitive scorer class for scoring Surface Flux.
@@ -111,6 +112,7 @@ G4int G4PSFlatSurfaceFlux::IsSelectedSurface(G4Step* aStep, G4Box* boxSolid){
G4TouchableHandle theTouchable =
aStep->GetPreStepPoint()->GetTouchableHandle();
G4double kCarTolerance=G4GeometryTolerance::GetInstance()->GetSurfaceTolerance();
if (aStep->GetPreStepPoint()->GetStepStatus() == fGeomBoundary ){
// Entering Geometry
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSMinKinEAtGeneration.cc,v 1.5 2006/06/29 18:07:47 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSMinKinEAtGeneration.cc,v 1.6 2007/05/18 00:00:38 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4PSMinKinEAtGeneration
#include "G4PSMinKinEAtGeneration.hh"
@@ -0,0 +1,89 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
//
// $Id: G4PSNofCollision.cc,v 1.2 2007/06/21 15:03:58 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4PSNofCollision
#include "G4PSNofCollision.hh"
///////////////////////////////////////////////////////////////////////////////
// (Description)
// This is a primitive scorer class for scoring number of collisions inside a
// Cell.
//
// Created: 2007-02-02 Tsukasa ASO, Akinori Kimura.
//
///////////////////////////////////////////////////////////////////////////////
G4PSNofCollision::G4PSNofCollision(G4String name, G4int depth)
:G4VPrimitiveScorer(name,depth),HCID(-1),weighted(false)
{;}
G4PSNofCollision::~G4PSNofCollision()
{;}
G4bool G4PSNofCollision::ProcessHits(G4Step* aStep,G4TouchableHistory*)
{
if ( aStep->GetPostStepPoint()->GetStepStatus() == fGeomBoundary ) return TRUE;
G4int index = GetIndex(aStep);
G4double val = 1.0;
if(weighted) val *= aStep->GetPreStepPoint()->GetWeight();
EvtMap->add(index,val);
return TRUE;
}
void G4PSNofCollision::Initialize(G4HCofThisEvent* HCE)
{
EvtMap = new G4THitsMap<G4double>(detector->GetName(),GetName());
if(HCID < 0) {HCID = GetCollectionID(0);}
HCE->AddHitsCollection(HCID, (G4VHitsCollection*)EvtMap);
}
void G4PSNofCollision::EndOfEvent(G4HCofThisEvent*)
{;}
void G4PSNofCollision::clear(){
EvtMap->clear();
}
void G4PSNofCollision::DrawAll()
{;}
void G4PSNofCollision::PrintAll()
{
G4cout << " MultiFunctionalDet " << detector->GetName() << G4endl;
G4cout << " PrimitiveScorer " << GetName() << G4endl;
G4cout << " Number of entries " << EvtMap->entries() << G4endl;
std::map<G4int,G4double*>::iterator itr = EvtMap->GetMap()->begin();
for(; itr != EvtMap->GetMap()->end(); itr++) {
G4cout << " copy no.: " << itr->first
<< " collisions: " << *(itr->second)
<< G4endl;
}
}
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSNofSecondary.cc,v 1.3 2006/06/29 18:07:50 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSNofSecondary.cc,v 1.4 2007/05/18 00:00:38 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4PSNofSecondary
#include "G4PSNofSecondary.hh"
+2 -2
View File
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSNofStep.cc,v 1.5 2006/06/29 18:07:53 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSNofStep.cc,v 1.6 2007/05/18 00:00:38 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4PSNofStep
#include "G4PSNofStep.hh"
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSPassageCellFlux.cc,v 1.5 2006/06/29 18:07:55 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSPassageCellFlux.cc,v 1.6 2007/05/18 00:00:38 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4PSPassageCellFlux
#include "G4PSPassageCellFlux.hh"
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSPassageCurrent.cc,v 1.4 2006/06/29 18:07:57 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSPassageCurrent.cc,v 1.5 2007/05/18 00:00:38 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4PSPassageCurrent
#include "G4PSPassageCurrent.hh"
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSPassageTrackLength.cc,v 1.3 2006/06/29 18:07:59 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSPassageTrackLength.cc,v 1.4 2007/05/18 00:00:38 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4PSPassageTrackLength
#include "G4PSPassageTrackLength.hh"
@@ -0,0 +1,95 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
//
// $Id: G4PSPopulation.cc,v 1.3 2007/06/21 15:04:00 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4PSPopulation
#include "G4PSPopulation.hh"
///////////////////////////////////////////////////////////////////////////////
// (Description)
// This is a primitive scorer class for scoring population in a cell.
//
// Created: 2007-02-02 Tsukasa ASO, Akinori Kimura.
//
///////////////////////////////////////////////////////////////////////////////
G4PSPopulation::G4PSPopulation(G4String name, G4int depth)
:G4VPrimitiveScorer(name,depth),HCID(-1),weighted(false)
{;}
G4PSPopulation::~G4PSPopulation()
{;}
G4bool G4PSPopulation::ProcessHits(G4Step* aStep,G4TouchableHistory*)
{
G4int index = GetIndex(aStep);
G4TrackLogger& tlog = fCellTrackLogger[index];
if (tlog.FirstEnterance(aStep->GetTrack()->GetTrackID())) {
G4double val = 1.0;
if(weighted) val *= aStep->GetPreStepPoint()->GetWeight();
EvtMap->add(index,val);
}
return TRUE;
}
void G4PSPopulation::Initialize(G4HCofThisEvent* HCE)
{
EvtMap = new G4THitsMap<G4double>(detector->GetName(),GetName());
if(HCID < 0) {HCID = GetCollectionID(0);}
HCE->AddHitsCollection(HCID, (G4VHitsCollection*)EvtMap);
}
void G4PSPopulation::EndOfEvent(G4HCofThisEvent*)
{
fCellTrackLogger.clear();
}
void G4PSPopulation::clear(){
EvtMap->clear();
fCellTrackLogger.clear();
}
void G4PSPopulation::DrawAll()
{;}
void G4PSPopulation::PrintAll()
{
G4cout << " MultiFunctionalDet " << detector->GetName() << G4endl;
G4cout << " PrimitiveScorer " << GetName() << G4endl;
G4cout << " Number of entries " << EvtMap->entries() << G4endl;
std::map<G4int,G4double*>::iterator itr = EvtMap->GetMap()->begin();
for(; itr != EvtMap->GetMap()->end(); itr++) {
G4cout << " copy no.: " << itr->first
<< " population: " << *(itr->second)
<< G4endl;
}
}
@@ -24,14 +24,15 @@
// ********************************************************************
//
//
// $Id: G4PSSphereSurfaceCurrent.cc,v 1.5 2006/06/29 18:08:01 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSSphereSurfaceCurrent.cc,v 1.7 2007/05/18 00:00:38 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4PSSphereSurfaceCurrent
#include "G4PSSphereSurfaceCurrent.hh"
#include "G4StepStatus.hh"
#include "G4Track.hh"
#include "G4UnitsTable.hh"
#include "G4GeometryTolerance.hh"
////////////////////////////////////////////////////////////////////////////////
// (Description)
// This is a primitive scorer class for scoring only Surface Current.
@@ -90,6 +91,7 @@ G4int G4PSSphereSurfaceCurrent::IsSelectedSurface(G4Step* aStep, G4Sphere* spher
G4TouchableHandle theTouchable =
aStep->GetPreStepPoint()->GetTouchableHandle();
G4double kCarTolerance = G4GeometryTolerance::GetInstance()->GetSurfaceTolerance();
if (aStep->GetPreStepPoint()->GetStepStatus() == fGeomBoundary ){
// Entering Geometry
@@ -24,14 +24,15 @@
// ********************************************************************
//
//
// $Id: G4PSSphereSurfaceFlux.cc,v 1.1 2007/04/20 07:55:38 asaim Exp $
// GEANT4 tag $Name: geant4-08-03 $
// $Id: G4PSSphereSurfaceFlux.cc,v 1.3 2007/05/18 00:00:38 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4PSSphereSurfaceFlux
#include "G4PSSphereSurfaceFlux.hh"
#include "G4StepStatus.hh"
#include "G4Track.hh"
#include "G4UnitsTable.hh"
#include "G4GeometryTolerance.hh"
////////////////////////////////////////////////////////////////////////////////
// (Description)
// This is a primitive scorer class for scoring only Surface Flux.
@@ -121,6 +122,7 @@ G4int G4PSSphereSurfaceFlux::IsSelectedSurface(G4Step* aStep, G4Sphere* sphereSo
G4TouchableHandle theTouchable =
aStep->GetPreStepPoint()->GetTouchableHandle();
G4double kCarTolerance = G4GeometryTolerance::GetInstance()->GetSurfaceTolerance();
if (aStep->GetPreStepPoint()->GetStepStatus() == fGeomBoundary ){
// Entering Geometry
@@ -0,0 +1,112 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
//
// $Id: G4PSTrackCounter.cc,v 1.2 2007/06/21 15:04:02 gunter Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4PSTrackCounter
#include "G4PSTrackCounter.hh"
///////////////////////////////////////////////////////////////////////////////
// (Description)
// This is a primitive scorer class for scoring number of tracks in a cell.
//
// Created: 2007-02-02 Tsukasa ASO, Akinori Kimura.
//
///////////////////////////////////////////////////////////////////////////////
G4PSTrackCounter::G4PSTrackCounter(G4String name, G4int direction, G4int depth)
:G4VPrimitiveScorer(name,depth),HCID(-1),fDirection(direction),weighted(false)
{;}
G4PSTrackCounter::~G4PSTrackCounter()
{;}
G4bool G4PSTrackCounter::ProcessHits(G4Step* aStep,G4TouchableHistory*)
{
G4StepPoint* preStep = aStep->GetPreStepPoint();
G4StepPoint* posStep = aStep->GetPostStepPoint();
G4bool IsEnter = preStep->GetStepStatus()==fGeomBoundary;
G4bool IsExit = posStep->GetStepStatus()==fGeomBoundary;
// Regular : count in prestep volume.
G4int index = GetIndex(aStep);
// G4cout << " trk " << aStep->GetTrack()->GetTrackID()
// << " index " << index << " In " << IsEnter << " Out " <<IsExit
// << " PreStatus " << preStep->GetStepStatus()
// << " PostStatus " << posStep->GetStepStatus()
// << " w " << aStep->GetPreStepPoint()->GetWeight()
// << G4endl;
G4bool flag = FALSE;
if ( IsEnter && fDirection == fCurrent_In ) flag = TRUE;
else if ( IsExit && fDirection == fCurrent_Out ) flag = TRUE;
else if ( (IsExit||IsEnter) && fDirection == fCurrent_InOut ) flag = TRUE;
if ( flag ){
//G4cout << " Count " << G4endl;
G4double val = 1.0;
if(weighted) val *= aStep->GetPreStepPoint()->GetWeight();
EvtMap->add(index,val);
}
return TRUE;
}
void G4PSTrackCounter::Initialize(G4HCofThisEvent* HCE)
{
EvtMap = new G4THitsMap<G4double>(detector->GetName(),GetName());
if(HCID < 0) {HCID = GetCollectionID(0);}
HCE->AddHitsCollection(HCID, (G4VHitsCollection*)EvtMap);
//G4cout << "----- PS Initialize " << G4endl;
}
void G4PSTrackCounter::EndOfEvent(G4HCofThisEvent*)
{;}
void G4PSTrackCounter::clear(){
EvtMap->clear();
}
void G4PSTrackCounter::DrawAll()
{;}
void G4PSTrackCounter::PrintAll()
{
G4cout << " MultiFunctionalDet " << detector->GetName() << G4endl;
G4cout << " PrimitiveScorer " << GetName() << G4endl;
G4cout << " Number of entries " << EvtMap->entries() << G4endl;
std::map<G4int,G4double*>::iterator itr = EvtMap->GetMap()->begin();
for(; itr != EvtMap->GetMap()->end(); itr++) {
G4cout << " copy no.: " << itr->first
<< " track count: " << *(itr->second)
<< G4endl;
}
}
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PSTrackLength.cc,v 1.5 2006/06/29 18:08:03 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PSTrackLength.cc,v 1.6 2007/05/18 00:00:38 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4PSTrackLength
#include "G4PSTrackLength.hh"
@@ -35,12 +35,13 @@
// This is a primitive scorer class for scoring sum of track length.
//
//
// Created: 2005-11-14 Tsukasa ASO, Akinori Kimura.
// Created: 2007-02-02 Tsukasa ASO, Akinori Kimura.
//
///////////////////////////////////////////////////////////////////////////////
G4PSTrackLength::G4PSTrackLength(G4String name, G4int depth)
:G4VPrimitiveScorer(name,depth),HCID(-1),weighted(false)
:G4VPrimitiveScorer(name,depth),HCID(-1),weighted(false),multiplyKinE(false),
divideByVelocity(false)
{;}
G4PSTrackLength::~G4PSTrackLength()
@@ -51,6 +52,8 @@ G4bool G4PSTrackLength::ProcessHits(G4Step* aStep,G4TouchableHistory*)
G4double trklength = aStep->GetStepLength();
if ( trklength == 0. ) return FALSE;
if(weighted) trklength *= aStep->GetPreStepPoint()->GetWeight();
if(multiplyKinE) trklength *= aStep->GetPreStepPoint()->GetKineticEnergy();
if(divideByVelocity) trklength /= aStep->GetPreStepPoint()->GetVelocity();
G4int index = GetIndex(aStep);
EvtMap->add(index,trklength);
return TRUE;
@@ -80,9 +83,17 @@ void G4PSTrackLength::PrintAll()
G4cout << " Number of entries " << EvtMap->entries() << G4endl;
std::map<G4int,G4double*>::iterator itr = EvtMap->GetMap()->begin();
for(; itr != EvtMap->GetMap()->end(); itr++) {
G4cout << " copy no.: " << itr->first
<< " track length: " << G4BestUnit(*(itr->second),"Length")
<< G4endl;
G4cout << " copy no.: " << itr->first << " track length: " ;
if ( multiplyKinE && !divideByVelocity ){
G4cout << *(itr->second)/(mm*MeV) <<" mm*MeV";
} else if ( !multiplyKinE && divideByVelocity ){
G4cout << *(itr->second)*second <<" /second";
} else if ( multiplyKinE && divideByVelocity) {
G4cout << *(itr->second)/MeV*second <<" MeV/second";
} else {
G4cout << G4BestUnit(*(itr->second),"Length");
}
G4cout << G4endl;
}
}
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4SDChargedFilter.cc,v 1.2 2006/06/29 18:08:05 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4SDChargedFilter.cc,v 1.3 2007/05/18 00:00:38 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4VSensitiveDetector
#include "G4SDChargedFilter.hh"
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4SDKineticEnergyFilter.cc,v 1.5 2006/06/29 18:08:07 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4SDKineticEnergyFilter.cc,v 1.6 2007/05/18 00:00:38 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4VSensitiveDetector
#include "G4SDKineticEnergyFilter.hh"
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4SDNeutralFilter.cc,v 1.2 2006/06/29 18:08:10 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4SDNeutralFilter.cc,v 1.3 2007/05/18 00:00:38 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4VSensitiveDetector
#include "G4SDNeutralFilter.hh"
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4SDParticleFilter.cc,v 1.3 2006/06/29 18:08:13 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4SDParticleFilter.cc,v 1.4 2007/05/18 00:00:38 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4VSensitiveDetector
#include "G4SDParticleFilter.hh"
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4SDParticleWithEnergyFilter.cc,v 1.2 2006/06/29 18:08:16 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4SDParticleWithEnergyFilter.cc,v 1.3 2007/05/18 00:00:38 asaim Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
// G4VSensitiveDetector
#include "G4SDParticleWithEnergyFilter.hh"