Import Geant4 9.4.0 source tree
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
# $Id: GNUmakefile,v 1.7 2010/01/11 14:33:30 gcosmo Exp $
|
||||
# --------------------------------------------------------------
|
||||
# GNUmakefile for examples module.
|
||||
# Author: Giorgio Guerrieri
|
||||
# Date: 14/06/2005.
|
||||
# --------------------------------------------------------------
|
||||
|
||||
name := phantom
|
||||
@@ -9,7 +8,7 @@ G4TARGET := $(name)
|
||||
G4EXLIB := true
|
||||
|
||||
ifndef G4INSTALL
|
||||
G4INSTALL = ../../..
|
||||
G4INSTALL = ../..
|
||||
endif
|
||||
|
||||
.PHONY: all
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: History,v 1.25 2009/04/06 06:24:37 cirrone Exp $
|
||||
$Id: History,v 1.30 2010/11/19 09:00:27 cirrone Exp $
|
||||
-------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
@@ -18,6 +18,26 @@ committal in the CVS repository !
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
November 19, 2010, G.A.P.Cirrone, tag: human_phantom-V09-03-04
|
||||
- Corrected a bug in Event action
|
||||
|
||||
November 16, 2010, J.Allison, tag: human_phantom-V09-03-03
|
||||
- phantom.cc: Introduced G4UIExecutive.
|
||||
- G4HumanPhantomPhysicsList.cc:
|
||||
o Removed redundant #include "G4MultipleScattering.hh"
|
||||
|
||||
June 4, 2010, J.Perl, tag: human_phantom-V09-03-02
|
||||
- Updated vis usage
|
||||
|
||||
June 4, 2010, S. Guatelli, tag: human_phantom-V09-03-01
|
||||
- Migration of Physics List
|
||||
|
||||
April 29, 2010, G.Cosmo, tag: human_phantom-V09-03-00
|
||||
- Added missing includes of G4PVPlacement, causing compilation error.
|
||||
- Migrated multiple-scattering process in physics-list to particle-based
|
||||
(e+/e-) multiple-scattering.
|
||||
- Corrected commands in some macros...
|
||||
|
||||
April 6, 2009, G.A.P.Cirrone, tag: human_phantom-V09-02-02
|
||||
- GNUmakefile updated
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: README,v 1.14 2009/02/19 14:05:06 gcosmo Exp $
|
||||
$Id: README,v 1.16 2010/06/03 23:42:16 cirrone Exp $
|
||||
-------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
@@ -8,8 +8,10 @@ $Id: README,v 1.14 2009/02/19 14:05:06 gcosmo Exp $
|
||||
README
|
||||
-----------------------
|
||||
|
||||
Authors: S. Guatelli (guatelli@ge.infn.it) and M. G. Pia (pia@ge.infn.it),
|
||||
INFN Genova, Italy.
|
||||
Authors: S. Guatelli (susanna.guatelli@uow.edu.au), G. Guerrieri
|
||||
and M. G. Pia (pia@ge.infn.it)
|
||||
|
||||
Maintained by: S. Guatelli (susanna.guatelli@uow.edu.au)
|
||||
|
||||
------> Introduction
|
||||
|
||||
|
||||
@@ -68,4 +68,4 @@
|
||||
#
|
||||
# Run Particles
|
||||
#
|
||||
#/control/execute run.mac
|
||||
/control/execute run.mac
|
||||
|
||||
@@ -79,12 +79,12 @@
|
||||
#/control/execute vrmlVis.mac
|
||||
#
|
||||
# Visualize Phantom with OPENGL
|
||||
#/control/execute openGLVis.mac
|
||||
/control/execute openGLVis.mac
|
||||
#
|
||||
# Visualize Phantom with DAWN
|
||||
/control/execute dawnVis.mac
|
||||
#/control/execute dawnVis.mac
|
||||
#
|
||||
# Run Particles
|
||||
#
|
||||
#/control/execute run.mac
|
||||
/control/execute run.mac
|
||||
|
||||
|
||||
@@ -79,12 +79,12 @@
|
||||
#/control/execute vrmlVis.mac
|
||||
#
|
||||
# Visualize Phantom with OPENGL
|
||||
#/control/execute openGLVis.mac
|
||||
/control/execute openGLVis.mac
|
||||
#
|
||||
# Visualize Phantom with DAWN
|
||||
/control/execute dawnVis.mac
|
||||
#/control/execute dawnVis.mac
|
||||
#
|
||||
# Run Particles
|
||||
#
|
||||
#/control/execute run.mac
|
||||
/control/execute run.mac
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#
|
||||
# Choose model: ORNLFemale, ORNLMale, MIRD, MIX, MIRDHead, ORNLHead
|
||||
#
|
||||
|
||||
/phantom/setPhantomModel ORNLFemale
|
||||
#
|
||||
# Choose Sex of Phantom: Male or Female
|
||||
|
||||
@@ -8,9 +8,72 @@
|
||||
/run/verbose 0
|
||||
/event/verbose 0
|
||||
/tracking/verbose 0
|
||||
/vis/scene/create
|
||||
/vis/open DAWNFILE
|
||||
/vis/drawVolume
|
||||
#/vis/specify
|
||||
/vis/viewer/flush
|
||||
#
|
||||
# Use this open statement to create an OpenGL view:
|
||||
#/vis/open OGL 600x600-0+0
|
||||
#
|
||||
# Use this open statement to create a .prim file suitable for
|
||||
# viewing in DAWN:
|
||||
/vis/open DAWNFILE
|
||||
#
|
||||
# Use this open statement to create a .heprep file suitable for
|
||||
# viewing in HepRApp:
|
||||
#/vis/open HepRepFile
|
||||
#
|
||||
# Use this open statement to create a .wrl file suitable for
|
||||
# viewing in a VRML viewer:
|
||||
#/vis/open VRML2FILE
|
||||
#
|
||||
# Disable auto refresh and quieten vis messages whilst scene and
|
||||
# trajectories are established:
|
||||
/vis/viewer/set/autoRefresh false
|
||||
/vis/verbose errors
|
||||
#
|
||||
# Draw geometry:
|
||||
/vis/drawVolume
|
||||
#
|
||||
# Specify view angle:
|
||||
#/vis/viewer/set/viewpointThetaPhi 90. 0.
|
||||
#
|
||||
# Specify zoom value:
|
||||
#/vis/viewer/zoom 2.
|
||||
#
|
||||
# Specify style (surface or wireframe):
|
||||
#/vis/viewer/set/style wireframe
|
||||
#
|
||||
# Draw coordinate axes:
|
||||
#/vis/scene/add/axes 0 0 0 1 m
|
||||
#
|
||||
# Draw smooth trajectories at end of event, showing trajectory points
|
||||
# as markers 2 pixels wide:
|
||||
/vis/scene/add/trajectories smooth
|
||||
/vis/modeling/trajectories/create/drawByCharge
|
||||
/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
|
||||
/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
|
||||
# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
|
||||
#
|
||||
# Draw hits at end of event:
|
||||
#/vis/scene/add/hits
|
||||
#
|
||||
# To draw only gammas:
|
||||
#/vis/filtering/trajectories/create/particleFilter
|
||||
#/vis/filtering/trajectories/particleFilter-0/add gamma
|
||||
#
|
||||
# To invert the above, drawing all particles except gammas,
|
||||
# keep the above two lines but also add:
|
||||
#/vis/filtering/trajectories/particleFilter-0/invert true
|
||||
#
|
||||
# Many other options are available with /vis/modeling and /vis/filtering.
|
||||
# For example, to select colour by particle ID:
|
||||
#/vis/modeling/trajectories/create/drawByParticleID
|
||||
#/vis/modeling/trajectories/drawByParticleID-0/set e- blue
|
||||
#
|
||||
# To superimpose all of the events from a given run:
|
||||
#/vis/scene/endOfEventAction accumulate
|
||||
#
|
||||
# Re-establish auto refreshing and verbosity:
|
||||
/vis/viewer/set/autoRefresh true
|
||||
/vis/verbose warnings
|
||||
#
|
||||
# For file-based drivers, use this to create an empty detector view:
|
||||
#/vis/viewer/flush
|
||||
|
||||
@@ -23,14 +23,18 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Authors: S. Guatelli and M. G. Pia, INFN Genova, Italy
|
||||
//
|
||||
// Based on code developed by the undergraduate student G. Guerrieri
|
||||
// Note: this is a preliminary beta-version of the code; an improved
|
||||
// version will be distributed in the next Geant4 public release, compliant
|
||||
// with the design in a forthcoming publication, and subject to a
|
||||
// design and code review.
|
||||
//
|
||||
// $Id: G4HumanPhantomPhysicsList.hh,v 1.8 2010/06/03 23:42:16 cirrone Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04-beta-01 $
|
||||
//
|
||||
// Authors: S. Guatelli, G. Guerrieri and M. G. Pia
|
||||
//
|
||||
// **********************************
|
||||
// * *
|
||||
// * G4HumanPhantomPhysicsList.hh *
|
||||
// * *
|
||||
// **********************************
|
||||
|
||||
#ifndef G4HumanPhantomPhysicsList_h
|
||||
#define G4HumanPhantomPhysicsList_h 1
|
||||
|
||||
@@ -53,9 +57,11 @@ protected:
|
||||
void SetCuts();
|
||||
|
||||
private:
|
||||
|
||||
// These methods construct physics processes and register them
|
||||
void ConstructEM();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -1,20 +1,68 @@
|
||||
# Use this open statement to create an OpenGL view:
|
||||
/vis/open OGL 600x600-0+0
|
||||
#
|
||||
# Macro file for the visualization
|
||||
# when runing in interactive mode
|
||||
# Use this open statement to create a .prim file suitable for
|
||||
# viewing in DAWN:
|
||||
#/vis/open DAWNFILE
|
||||
#
|
||||
# create empty scene
|
||||
# Use this open statement to create a .heprep file suitable for
|
||||
# viewing in HepRApp:
|
||||
#/vis/open HepRepFile
|
||||
#
|
||||
/vis/scene/create
|
||||
/vis/open OGLIX
|
||||
# Use this open statement to create a .wrl file suitable for
|
||||
# viewing in a VRML viewer:
|
||||
#/vis/open VRML2FILE
|
||||
#
|
||||
# Create a scene handler for a specific graphics system
|
||||
# (Edit the next line(s) to choose another graphic system)
|
||||
# Disable auto refresh and quieten vis messages whilst scene and
|
||||
# trajectories are established:
|
||||
/vis/viewer/set/autoRefresh false
|
||||
/vis/verbose errors
|
||||
#
|
||||
#/vis/viewer/set/viewpointThetaPhi 90 90 deg
|
||||
# Draw geometry:
|
||||
/vis/drawVolume
|
||||
#
|
||||
# Specify view angle:
|
||||
#/vis/viewer/set/viewpointThetaPhi 90. 0.
|
||||
#
|
||||
# Specify zoom value:
|
||||
#/vis/viewer/zoom 2.
|
||||
# (if too many tracks cause core dump => storeTrajectory 0)
|
||||
/tracking/storeTrajectory 1
|
||||
/vis/scene/add/trajectories
|
||||
# (if you prefer refreshing each event, comment out next line)
|
||||
#
|
||||
# Specify style (surface or wireframe):
|
||||
#/vis/viewer/set/style wireframe
|
||||
#
|
||||
# Draw coordinate axes:
|
||||
#/vis/scene/add/axes 0 0 0 1 m
|
||||
#
|
||||
# Draw smooth trajectories at end of event, showing trajectory points
|
||||
# as markers 2 pixels wide:
|
||||
/vis/scene/add/trajectories smooth
|
||||
/vis/modeling/trajectories/create/drawByCharge
|
||||
/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
|
||||
/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
|
||||
# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
|
||||
#
|
||||
# Draw hits at end of event:
|
||||
#/vis/scene/add/hits
|
||||
#
|
||||
# To draw only gammas:
|
||||
#/vis/filtering/trajectories/create/particleFilter
|
||||
#/vis/filtering/trajectories/particleFilter-0/add gamma
|
||||
#
|
||||
# To invert the above, drawing all particles except gammas,
|
||||
# keep the above two lines but also add:
|
||||
#/vis/filtering/trajectories/particleFilter-0/invert true
|
||||
#
|
||||
# Many other options are available with /vis/modeling and /vis/filtering.
|
||||
# For example, to select colour by particle ID:
|
||||
#/vis/modeling/trajectories/create/drawByParticleID
|
||||
#/vis/modeling/trajectories/drawByParticleID-0/set e- blue
|
||||
#
|
||||
# To superimpose all of the events from a given run:
|
||||
/vis/scene/endOfEventAction accumulate
|
||||
#
|
||||
# Re-establish auto refreshing and verbosity:
|
||||
/vis/viewer/set/autoRefresh true
|
||||
/vis/verbose warnings
|
||||
#
|
||||
# For file-based drivers, use this to create an empty detector view:
|
||||
#/vis/viewer/flush
|
||||
|
||||
@@ -39,14 +39,16 @@
|
||||
#include "G4RunManager.hh"
|
||||
#include "G4UImanager.hh"
|
||||
#include "G4UIsession.hh"
|
||||
#include "G4UIterminal.hh"
|
||||
#include "G4UItcsh.hh"
|
||||
#include "G4TransportationManager.hh"
|
||||
|
||||
#ifdef G4VIS_USE
|
||||
#include "G4VisExecutive.hh"
|
||||
#endif
|
||||
|
||||
#ifdef G4UI_USE
|
||||
#include "G4UIExecutive.hh"
|
||||
#endif
|
||||
|
||||
#include "G4HumanPhantomConstruction.hh"
|
||||
#include "G4HumanPhantomPhysicsList.hh"
|
||||
#include "G4HumanPhantomPrimaryGeneratorAction.hh"
|
||||
@@ -77,19 +79,6 @@ int main(int argc,char** argv)
|
||||
analysis->book();
|
||||
#endif
|
||||
|
||||
G4UIsession* session=0;
|
||||
|
||||
if (argc==1)
|
||||
// Define UI session for interactive mode.
|
||||
{
|
||||
// G4UIterminal is a (dumb) terminal
|
||||
#ifdef G4UI_USE_TCSH
|
||||
session = new G4UIterminal(new G4UItcsh);
|
||||
#else
|
||||
session = new G4UIterminal();
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef G4VIS_USE
|
||||
G4VisManager* visManager = new G4VisExecutive;
|
||||
visManager->Initialize();
|
||||
@@ -104,20 +93,23 @@ int main(int argc,char** argv)
|
||||
|
||||
runManager->SetUserAction(new G4HumanPhantomSteppingAction());
|
||||
|
||||
G4UImanager* UI = G4UImanager::GetUIpointer();
|
||||
G4UImanager* UImanager = G4UImanager::GetUIpointer();
|
||||
|
||||
if (session) // Define UI session for interactive mode.
|
||||
if (argc==1) // Define UI session for interactive mode.
|
||||
{
|
||||
#ifdef G4UI_USE
|
||||
G4cout << " UI session starts ..." << G4endl;
|
||||
UI -> ApplyCommand("/control/execute default.mac");
|
||||
session -> SessionStart();
|
||||
delete session;
|
||||
G4UIExecutive* ui = new G4UIExecutive(argc, argv);
|
||||
UImanager->ApplyCommand("/control/execute default.mac");
|
||||
ui->SessionStart();
|
||||
delete ui;
|
||||
#endif
|
||||
}
|
||||
else // Batch mode
|
||||
{
|
||||
G4String command = "/control/execute ";
|
||||
G4String fileName = argv[1];
|
||||
UI -> ApplyCommand(command+fileName);
|
||||
UImanager -> ApplyCommand(command+fileName);
|
||||
}
|
||||
|
||||
#ifdef G4ANALYSIS_USE
|
||||
|
||||
@@ -35,9 +35,6 @@
|
||||
#include "G4HumanPhantomHit.hh"
|
||||
#include "G4Event.hh"
|
||||
#include "G4EventManager.hh"
|
||||
#include "G4TrajectoryContainer.hh"
|
||||
#include "G4Trajectory.hh"
|
||||
#include "G4VVisManager.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4SDManager.hh"
|
||||
#include "G4UnitsTable.hh"
|
||||
@@ -88,7 +85,7 @@ void G4HumanPhantomEventAction::BeginOfEventAction(const G4Event*)
|
||||
energyTotal["logicalLeftScapula"]=0.;
|
||||
energyTotal["logicalRightScapula"]=0.;
|
||||
energyTotal["logicalLeftAdrenal"]=0.;
|
||||
energyTotal["logicalRightADrenal"]=0.;
|
||||
energyTotal["logicalRightAdrenal"]=0.;
|
||||
G4SDManager * SDman = G4SDManager::GetSDMpointer();
|
||||
|
||||
if (hitCollectionID==-1) {
|
||||
@@ -121,21 +118,6 @@ void G4HumanPhantomEventAction::EndOfEventAction(const G4Event* evt)
|
||||
}
|
||||
|
||||
totalEventEnergyDeposit();
|
||||
|
||||
|
||||
// Visualization of particle tracks
|
||||
G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();
|
||||
G4int n_trajectories = 0;
|
||||
if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
|
||||
|
||||
if (G4VVisManager::GetConcreteInstance())
|
||||
{
|
||||
for (G4int i=0; i<n_trajectories; i++)
|
||||
{ G4Trajectory* trj = (G4Trajectory*)
|
||||
((*(evt->GetTrajectoryContainer()))[i]);
|
||||
trj->DrawTrajectory(500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void G4HumanPhantomEventAction:: Fill(G4String bodypartName,
|
||||
|
||||
@@ -23,14 +23,21 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Authors: S. Guatelli and M. G. Pia, INFN Genova, Italy
|
||||
//
|
||||
// Code developed by:
|
||||
// S. Guatelli, G. Guerrieri and M. G. Pia
|
||||
//
|
||||
//
|
||||
// Based on code developed by the undergraduate student G. Guerrieri
|
||||
// Note: this is a preliminary beta-version of the code; an improved
|
||||
// version will be distributed in the next Geant4 public release, compliant
|
||||
// with the design in a forthcoming publication, and subject to a
|
||||
// design and code review.
|
||||
|
||||
//
|
||||
// **********************************
|
||||
// * *
|
||||
// * G4HumanPhantomPhysicsList.cc *
|
||||
// * *
|
||||
// **********************************
|
||||
//
|
||||
// $Id: G4HumanPhantomPhysicsList.cc,v 1.13 2010/11/16 15:28:49 allison Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
//
|
||||
#include "G4HumanPhantomPhysicsList.hh"
|
||||
|
||||
#include "G4ParticleDefinition.hh"
|
||||
@@ -39,16 +46,26 @@
|
||||
#include "G4ParticleTypes.hh"
|
||||
#include "G4UnitsTable.hh"
|
||||
#include "G4ios.hh"
|
||||
|
||||
#include "G4MultipleScattering.hh"
|
||||
// gamma
|
||||
#include "G4LowEnergyRayleigh.hh"
|
||||
#include "G4LowEnergyPhotoElectric.hh"
|
||||
#include "G4LowEnergyCompton.hh"
|
||||
#include "G4LowEnergyGammaConversion.hh"
|
||||
#include "G4PhotoElectricEffect.hh"
|
||||
#include "G4LivermorePhotoElectricModel.hh"
|
||||
|
||||
#include "G4ComptonScattering.hh"
|
||||
#include "G4LivermoreComptonModel.hh"
|
||||
|
||||
#include "G4GammaConversion.hh"
|
||||
#include "G4LivermoreGammaConversionModel.hh"
|
||||
|
||||
#include "G4RayleighScattering.hh"
|
||||
#include "G4LivermoreRayleighModel.hh"
|
||||
|
||||
// e-
|
||||
#include "G4LowEnergyIonisation.hh"
|
||||
#include "G4LowEnergyBremsstrahlung.hh"
|
||||
#include "G4eMultipleScattering.hh"
|
||||
#include "G4eIonisation.hh"
|
||||
#include "G4LivermoreIonisationModel.hh"
|
||||
#include "G4eBremsstrahlung.hh"
|
||||
#include "G4LivermoreBremsstrahlungModel.hh"
|
||||
|
||||
// e+
|
||||
#include "G4eIonisation.hh"
|
||||
#include "G4eBremsstrahlung.hh"
|
||||
@@ -69,10 +86,10 @@ void G4HumanPhantomPhysicsList::ConstructParticle()
|
||||
// for all particles which you want to use.
|
||||
// This ensures that objects of these particle types will be
|
||||
// created in the program.
|
||||
G4Geantino::GeantinoDefinition();
|
||||
|
||||
ConstructBosons();
|
||||
ConstructLeptons();
|
||||
|
||||
}
|
||||
|
||||
void G4HumanPhantomPhysicsList::ConstructBosons()
|
||||
@@ -107,30 +124,58 @@ void G4HumanPhantomPhysicsList::ConstructEM()
|
||||
// Processes
|
||||
|
||||
if (particleName == "gamma") {
|
||||
|
||||
// Photon
|
||||
pmanager->AddDiscreteProcess(new G4LowEnergyRayleigh);
|
||||
pmanager->AddDiscreteProcess(new G4LowEnergyPhotoElectric);
|
||||
pmanager->AddDiscreteProcess(new G4LowEnergyCompton);
|
||||
pmanager->AddDiscreteProcess(new G4LowEnergyGammaConversion);
|
||||
G4RayleighScattering* theRayleigh = new G4RayleighScattering();
|
||||
theRayleigh->SetModel(new G4LivermoreRayleighModel()); //not strictly necessary
|
||||
pmanager->AddDiscreteProcess(theRayleigh);
|
||||
|
||||
G4PhotoElectricEffect* thePhotoElectricEffect = new G4PhotoElectricEffect();
|
||||
thePhotoElectricEffect->SetModel(new G4LivermorePhotoElectricModel());
|
||||
pmanager->AddDiscreteProcess(thePhotoElectricEffect);
|
||||
|
||||
G4ComptonScattering* theComptonScattering = new G4ComptonScattering();
|
||||
theComptonScattering->SetModel(new G4LivermoreComptonModel());
|
||||
pmanager->AddDiscreteProcess(theComptonScattering);
|
||||
|
||||
G4GammaConversion* theGammaConversion = new G4GammaConversion();
|
||||
theGammaConversion->SetModel(new G4LivermoreGammaConversionModel());
|
||||
pmanager->AddDiscreteProcess(theGammaConversion);
|
||||
|
||||
} else if (particleName == "e-") {
|
||||
// Electron
|
||||
G4LowEnergyIonisation* loweIon = new G4LowEnergyIonisation("LowEnergyIoni");
|
||||
|
||||
G4eMultipleScattering* msc = new G4eMultipleScattering();
|
||||
msc->SetStepLimitType(fUseDistanceToBoundary);
|
||||
pmanager->AddProcess(msc,-1, 1, 1);
|
||||
|
||||
G4LowEnergyBremsstrahlung* loweBrem = new G4LowEnergyBremsstrahlung("LowEnBrem");
|
||||
// Select the Bremsstrahlung angular distribution model (Tsai/2BN/2BS)
|
||||
loweBrem->SetAngularGenerator("tsai");
|
||||
|
||||
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
|
||||
pmanager->AddProcess(loweIon, -1, 2,2);
|
||||
pmanager->AddProcess(loweBrem, -1,-1,3);
|
||||
// Ionisation
|
||||
G4eIonisation* eIonisation = new G4eIonisation();
|
||||
eIonisation->SetEmModel(new G4LivermoreIonisationModel());
|
||||
eIonisation->SetStepFunction(0.2, 100*um); //improved precision in tracking
|
||||
pmanager->AddProcess(eIonisation,-1, 2, 2);
|
||||
|
||||
// Bremsstrahlung
|
||||
G4eBremsstrahlung* eBremsstrahlung = new G4eBremsstrahlung();
|
||||
eBremsstrahlung->SetEmModel(new G4LivermoreBremsstrahlungModel());
|
||||
pmanager->AddProcess(eBremsstrahlung, -1,-3, 3);
|
||||
|
||||
} else if (particleName == "e+") {
|
||||
// Positron
|
||||
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
|
||||
pmanager->AddProcess(new G4eIonisation, -1, 2,2);
|
||||
pmanager->AddProcess(new G4eBremsstrahlung, -1,-1,3);
|
||||
pmanager->AddProcess(new G4eplusAnnihilation, 0,-1,4);
|
||||
G4eMultipleScattering* msc = new G4eMultipleScattering();
|
||||
msc->SetStepLimitType(fUseDistanceToBoundary);
|
||||
pmanager->AddProcess(msc,-1, 1, 1);
|
||||
|
||||
// Ionisation
|
||||
G4eIonisation* eIonisation = new G4eIonisation();
|
||||
eIonisation->SetStepFunction(0.2, 100*um); //
|
||||
pmanager->AddProcess(eIonisation, -1, 2, 2);
|
||||
|
||||
//Bremsstrahlung (use default, no low-energy available)
|
||||
pmanager->AddProcess(new G4eBremsstrahlung(), -1,-1, 3);
|
||||
|
||||
//Annihilation
|
||||
pmanager->AddProcess(new G4eplusAnnihilation(),0,-1, 4);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "globals.hh"
|
||||
#include "G4SDManager.hh"
|
||||
#include "G4VisAttributes.hh"
|
||||
#include "G4PVPlacement.hh"
|
||||
|
||||
G4MIRDTestes::G4MIRDTestes()
|
||||
{
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "G4PhysicalVolumeStore.hh"
|
||||
#include "G4GDMLParser.hh"
|
||||
#include "globals.hh"
|
||||
#include "G4PVPlacement.hh"
|
||||
#include "G4SDManager.hh"
|
||||
#include "G4VisAttributes.hh"
|
||||
#include "G4HumanPhantomColour.hh"
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "G4PhysicalVolumeStore.hh"
|
||||
#include "G4GDMLParser.hh"
|
||||
#include "globals.hh"
|
||||
#include "G4PVPlacement.hh"
|
||||
#include "G4SDManager.hh"
|
||||
#include "G4VisAttributes.hh"
|
||||
#include "G4HumanPhantomColour.hh"
|
||||
|
||||
@@ -1,13 +1,68 @@
|
||||
# Use this open statement to create an OpenGL view:
|
||||
#/vis/open OGL 600x600-0+0
|
||||
#
|
||||
# Macro file for the initialization phase
|
||||
# when runing in interactive mode
|
||||
# Use this open statement to create a .prim file suitable for
|
||||
# viewing in DAWN:
|
||||
#/vis/open DAWNFILE
|
||||
#
|
||||
# Sets some default verbose
|
||||
# Use this open statement to create a .heprep file suitable for
|
||||
# viewing in HepRApp:
|
||||
#/vis/open HepRepFile
|
||||
#
|
||||
# Use this open statement to create a .wrl file suitable for
|
||||
# viewing in a VRML viewer:
|
||||
/vis/open VRML2FILE
|
||||
/vis/drawVolume
|
||||
/vis/scene/create
|
||||
# Attack the current scene handler to the current scene
|
||||
/vis/sceneHandler/attach
|
||||
/vis/viewer/flush
|
||||
#
|
||||
# Disable auto refresh and quieten vis messages whilst scene and
|
||||
# trajectories are established:
|
||||
/vis/viewer/set/autoRefresh false
|
||||
/vis/verbose errors
|
||||
#
|
||||
# Draw geometry:
|
||||
/vis/drawVolume
|
||||
#
|
||||
# Specify view angle:
|
||||
#/vis/viewer/set/viewpointThetaPhi 90. 0.
|
||||
#
|
||||
# Specify zoom value:
|
||||
#/vis/viewer/zoom 2.
|
||||
#
|
||||
# Specify style (surface or wireframe):
|
||||
#/vis/viewer/set/style wireframe
|
||||
#
|
||||
# Draw coordinate axes:
|
||||
#/vis/scene/add/axes 0 0 0 1 m
|
||||
#
|
||||
# Draw smooth trajectories at end of event, showing trajectory points
|
||||
# as markers 2 pixels wide:
|
||||
/vis/scene/add/trajectories smooth
|
||||
/vis/modeling/trajectories/create/drawByCharge
|
||||
/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
|
||||
/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
|
||||
# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
|
||||
#
|
||||
# Draw hits at end of event:
|
||||
#/vis/scene/add/hits
|
||||
#
|
||||
# To draw only gammas:
|
||||
#/vis/filtering/trajectories/create/particleFilter
|
||||
#/vis/filtering/trajectories/particleFilter-0/add gamma
|
||||
#
|
||||
# To invert the above, drawing all particles except gammas,
|
||||
# keep the above two lines but also add:
|
||||
#/vis/filtering/trajectories/particleFilter-0/invert true
|
||||
#
|
||||
# Many other options are available with /vis/modeling and /vis/filtering.
|
||||
# For example, to select colour by particle ID:
|
||||
#/vis/modeling/trajectories/create/drawByParticleID
|
||||
#/vis/modeling/trajectories/drawByParticleID-0/set e- blue
|
||||
#
|
||||
# To superimpose all of the events from a given run:
|
||||
#/vis/scene/endOfEventAction accumulate
|
||||
#
|
||||
# Re-establish auto refreshing and verbosity:
|
||||
/vis/viewer/set/autoRefresh true
|
||||
/vis/verbose warnings
|
||||
#
|
||||
# For file-based drivers, use this to create an empty detector view:
|
||||
#/vis/viewer/flush
|
||||
|
||||
Reference in New Issue
Block a user