Import Geant4 10.3.1 source tree
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
/control/verbose 1
|
||||
/tracking/verbose 0
|
||||
/run/verbose 0
|
||||
/event/verbose 0
|
||||
#### Define the geometry of the I-125 source
|
||||
/source/switch Iodium
|
||||
###### Generation of primary field
|
||||
#### Generate gamma deriving from radioactive decay
|
||||
/control/execute iodine_source_primary.mac
|
||||
#### ... or generate radioactive decay of iodine
|
||||
#/control/execute iodine_decay.mac
|
||||
#
|
||||
#
|
||||
# Scoring mesh is used to calculate
|
||||
# the energy deposition in the phantom
|
||||
/score/create/boxMesh boxMesh_2
|
||||
#
|
||||
# the voxels are 1 mm wide.
|
||||
/score/mesh/boxSize 15. 15. 15. cm
|
||||
/score/mesh/nBin 300 300 300
|
||||
#
|
||||
/score/quantity/energyDeposit eDep
|
||||
#
|
||||
/score/close
|
||||
#
|
||||
/score/list
|
||||
/run/beamOn 1000
|
||||
#
|
||||
# Dump scores to a file
|
||||
#
|
||||
/score/dumpQuantityToFile boxMesh_2 eDep EnergyDeposition_iodine.out
|
||||
#
|
||||
@@ -1,34 +0,0 @@
|
||||
# The iridium source is the default option
|
||||
/control/verbose 1
|
||||
/tracking/verbose 0
|
||||
/run/verbose 0
|
||||
/event/verbose 0
|
||||
#
|
||||
# Scoring mesh is used to calculate
|
||||
# the energy deposition in the phantom
|
||||
/score/create/boxMesh boxMesh_1
|
||||
#
|
||||
/score/mesh/boxSize 15. 15. 15. cm
|
||||
/score/mesh/nBin 300 300 300
|
||||
#
|
||||
/score/quantity/energyDeposit eDep
|
||||
#
|
||||
/score/close
|
||||
#
|
||||
/score/list
|
||||
##### Primary radiation Field
|
||||
# Generate emitted photons
|
||||
/control/execute iridium_source_primary.mac
|
||||
#
|
||||
# Alternatively generated Ir decay
|
||||
#/control/execute iridium_decay.mac
|
||||
################################################
|
||||
/run/beamOn 1000
|
||||
#
|
||||
# Dump scores to a file
|
||||
#
|
||||
/score/dumpQuantityToFile boxMesh_1 eDep EnergyDeposition_iridium.out
|
||||
#
|
||||
|
||||
|
||||
|
||||
@@ -1,90 +0,0 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: BrachyDetectorConstructionIr.hh 69765 2013-05-14 10:11:22Z gcosmo $
|
||||
//
|
||||
// ****************************************
|
||||
// * *
|
||||
// * BrachyDetectorConstructionIr.hh *
|
||||
// * *
|
||||
// ****************************************
|
||||
//
|
||||
// Management of the Iridium source
|
||||
//
|
||||
|
||||
#ifndef BrachyDetectorConstructionIr_H
|
||||
#define BrachyDetectorConstructionIr_H 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VUserDetectorConstruction.hh"
|
||||
|
||||
class G4LogicalVolume;
|
||||
class G4Tubs;
|
||||
class G4Box;
|
||||
class G4Sphere;
|
||||
class G4VPhysicalVolume;
|
||||
class BrachyMaterial;
|
||||
class G4VisAttributes;
|
||||
|
||||
class BrachyDetectorConstructionIr
|
||||
{
|
||||
public:
|
||||
BrachyDetectorConstructionIr();
|
||||
~BrachyDetectorConstructionIr();
|
||||
|
||||
void ConstructIridium(G4VPhysicalVolume*);
|
||||
// Model the Iridum source
|
||||
|
||||
void CleanIridium();
|
||||
// Destroy the Iridium source in the experimental set-up
|
||||
|
||||
private:
|
||||
G4Tubs* capsule ;
|
||||
G4LogicalVolume* capsuleLog;
|
||||
G4VPhysicalVolume* capsulePhys;
|
||||
G4Sphere* capsuleTip;
|
||||
G4LogicalVolume* capsuleTipLog;
|
||||
G4VPhysicalVolume* capsuleTipPhys;
|
||||
|
||||
G4Tubs* iridiumCore;
|
||||
G4LogicalVolume* iridiumCoreLog;
|
||||
G4VPhysicalVolume* iridiumCorePhys;
|
||||
|
||||
BrachyMaterial* pMat;
|
||||
|
||||
G4VisAttributes* simpleCapsuleVisAtt;
|
||||
G4VisAttributes* simpleCapsuleTipVisAtt;
|
||||
G4VisAttributes* simpleIridiumVisAtt;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: BrachyFactoryIr.hh 69765 2013-05-14 10:11:22Z gcosmo $
|
||||
//
|
||||
// **********************************
|
||||
// * *
|
||||
// * BrachyFactoryIr.hh *
|
||||
// * *
|
||||
// **********************************
|
||||
//
|
||||
//
|
||||
//
|
||||
#ifndef BrachyFactoryIr_h
|
||||
#define BrachyFactoryIr_h 1
|
||||
|
||||
#include "BrachyFactory.hh"
|
||||
#include "G4RunManager.hh"
|
||||
|
||||
class G4ParticleGun;
|
||||
class G4Run;
|
||||
class G4Event;
|
||||
class BrachyFactory;
|
||||
class BrachyDetectorConstructionIr;
|
||||
|
||||
// This class manages the creation of iridum source used in endocavitary
|
||||
// brachytherapy ...
|
||||
class BrachyFactoryIr : public BrachyFactory
|
||||
{
|
||||
public:
|
||||
BrachyFactoryIr();
|
||||
~BrachyFactoryIr();
|
||||
void CreateSource(G4VPhysicalVolume*);
|
||||
void CleanSource();
|
||||
|
||||
private:
|
||||
BrachyDetectorConstructionIr* iridiumSource;
|
||||
};
|
||||
#endif
|
||||
@@ -1,12 +0,0 @@
|
||||
# Definition of the radiation field
|
||||
# by means of the General Particle Source
|
||||
# http://reat.space.qinetiq.com/gps/
|
||||
/gps/particle ion
|
||||
/gps/ion 77 192 77 0.
|
||||
/gps/energy 0. keV
|
||||
/gps/pos/type Volume
|
||||
/gps/pos/shape Cylinder
|
||||
/gps/pos/radius 0.30 mm
|
||||
/gps/pos/halfz 1.75 mm
|
||||
/gps/pos/centre 0. 0. -1.975 mm
|
||||
|
||||
@@ -1,184 +0,0 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
// GEANT 4 - Brachytherapy example
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
// Code developed by:
|
||||
// S. Agostinelli, F. Foppiano, S. Garelli , M. Tropeano, S.Guatelli
|
||||
//
|
||||
// ****************************************
|
||||
// * *
|
||||
// * BrachyDetectorConstructionIr.cc *
|
||||
// * *
|
||||
// ****************************************
|
||||
//
|
||||
// $Id: BrachyDetectorConstructionIr.cc 69765 2013-05-14 10:11:22Z gcosmo $
|
||||
//
|
||||
#include "globals.hh"
|
||||
#include "G4SystemOfUnits.hh"
|
||||
#include "BrachyDetectorConstructionIr.hh"
|
||||
#include "G4Sphere.hh"
|
||||
#include "G4RunManager.hh"
|
||||
#include "G4Box.hh"
|
||||
#include "G4Tubs.hh"
|
||||
#include "G4LogicalVolume.hh"
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "G4PVPlacement.hh"
|
||||
#include "G4Transform3D.hh"
|
||||
#include "G4RotationMatrix.hh"
|
||||
#include "G4TransportationManager.hh"
|
||||
#include "BrachyMaterial.hh"
|
||||
#include "G4VisAttributes.hh"
|
||||
#include "G4Colour.hh"
|
||||
|
||||
BrachyDetectorConstructionIr::BrachyDetectorConstructionIr()
|
||||
:
|
||||
capsule(0),capsuleLog(0),
|
||||
capsulePhys(0),
|
||||
capsuleTip(0),capsuleTipLog(0),
|
||||
capsuleTipPhys(0),
|
||||
iridiumCore(0),iridiumCoreLog(0),
|
||||
iridiumCorePhys(0),
|
||||
simpleCapsuleVisAtt(0),simpleCapsuleTipVisAtt(0),simpleIridiumVisAtt(0)
|
||||
{
|
||||
pMat = new BrachyMaterial();
|
||||
}
|
||||
|
||||
BrachyDetectorConstructionIr::~BrachyDetectorConstructionIr()
|
||||
{
|
||||
delete pMat;
|
||||
}
|
||||
|
||||
void BrachyDetectorConstructionIr::ConstructIridium(G4VPhysicalVolume* mother)
|
||||
{
|
||||
G4Colour red (1.0, 0.0, 0.0) ;
|
||||
G4Colour magenta (1.0, 0.0, 1.0) ;
|
||||
|
||||
G4Material* capsuleMat = pMat -> GetMat("Stainless steel");
|
||||
G4Material* iridiumMat = pMat -> GetMat("Iridium");
|
||||
|
||||
// Capsule main body
|
||||
capsule = new G4Tubs("Capsule",0,0.55*mm,3.725*mm,0.*deg,360.*deg);
|
||||
capsuleLog = new G4LogicalVolume(capsule,capsuleMat,"CapsuleLog");
|
||||
capsulePhys = new G4PVPlacement(0,
|
||||
G4ThreeVector(0,0,-1.975*mm),
|
||||
"IridiumCapsulePhys",
|
||||
capsuleLog,
|
||||
mother,
|
||||
false,
|
||||
0, true);
|
||||
|
||||
// Capsule tip
|
||||
capsuleTip = new G4Sphere("CapsuleTipIridium",
|
||||
0.*mm,
|
||||
0.55*mm,
|
||||
0.*deg,
|
||||
360.*deg,
|
||||
0.*deg,
|
||||
90.*deg);
|
||||
|
||||
capsuleTipLog = new G4LogicalVolume(capsuleTip,
|
||||
capsuleMat,
|
||||
"CapsuleTipIridumLog");
|
||||
capsuleTipPhys = new G4PVPlacement(0,
|
||||
G4ThreeVector(0.,0.,1.75*mm),
|
||||
"CapsuleTipIridiumPhys",
|
||||
capsuleTipLog,
|
||||
mother,
|
||||
false,
|
||||
0, true);
|
||||
|
||||
// Iridium core
|
||||
iridiumCore = new G4Tubs("IrCore",0,0.30*mm,1.75*mm,0.*deg,360.*deg);
|
||||
iridiumCoreLog = new G4LogicalVolume(iridiumCore,
|
||||
iridiumMat,
|
||||
"IridiumCoreLog");
|
||||
iridiumCorePhys = new G4PVPlacement(0,
|
||||
G4ThreeVector(),
|
||||
"IridiumCorePhys",
|
||||
iridiumCoreLog,
|
||||
capsulePhys,
|
||||
false,
|
||||
0, true);
|
||||
|
||||
simpleCapsuleVisAtt = new G4VisAttributes(red);
|
||||
simpleCapsuleVisAtt -> SetVisibility(true);
|
||||
simpleCapsuleVisAtt -> SetForceWireframe(true);
|
||||
capsuleLog -> SetVisAttributes(simpleCapsuleVisAtt);
|
||||
|
||||
simpleCapsuleTipVisAtt = new G4VisAttributes(red);
|
||||
simpleCapsuleTipVisAtt -> SetVisibility(true);
|
||||
simpleCapsuleTipVisAtt -> SetForceSolid(true);
|
||||
capsuleTipLog -> SetVisAttributes(simpleCapsuleTipVisAtt);
|
||||
|
||||
simpleIridiumVisAtt = new G4VisAttributes(magenta);
|
||||
simpleIridiumVisAtt -> SetVisibility(true);
|
||||
simpleIridiumVisAtt -> SetForceWireframe(true);
|
||||
iridiumCoreLog -> SetVisAttributes(simpleIridiumVisAtt);
|
||||
}
|
||||
|
||||
void BrachyDetectorConstructionIr::CleanIridium()
|
||||
{
|
||||
|
||||
delete simpleIridiumVisAtt;
|
||||
simpleIridiumVisAtt = 0;
|
||||
|
||||
delete iridiumCorePhys;
|
||||
iridiumCorePhys = 0;
|
||||
|
||||
delete iridiumCore;
|
||||
iridiumCore = 0;
|
||||
|
||||
delete iridiumCoreLog;
|
||||
iridiumCoreLog = 0 ;
|
||||
|
||||
delete simpleCapsuleTipVisAtt;
|
||||
simpleCapsuleTipVisAtt = 0;
|
||||
|
||||
delete capsuleTipPhys;
|
||||
capsuleTipPhys = 0;
|
||||
|
||||
delete capsuleTip;
|
||||
capsuleTip = 0;
|
||||
delete capsuleTipLog;
|
||||
capsuleTipLog = 0;
|
||||
|
||||
delete simpleCapsuleVisAtt;
|
||||
simpleCapsuleVisAtt = 0;
|
||||
|
||||
delete capsulePhys;
|
||||
capsulePhys = 0;
|
||||
|
||||
delete capsule;
|
||||
capsule = 0;
|
||||
|
||||
delete capsuleLog;
|
||||
capsuleLog = 0;
|
||||
|
||||
G4RunManager::GetRunManager() -> GeometryHasBeenModified();
|
||||
}
|
||||
@@ -1,68 +0,0 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// Code developed by:
|
||||
// S.Guatelli
|
||||
//
|
||||
// *******************************
|
||||
// * *
|
||||
// * BrachyFactoryIr *
|
||||
// * *
|
||||
// *******************************
|
||||
//
|
||||
// $Id: BrachyFactoryIr.cc 69765 2013-05-14 10:11:22Z gcosmo $
|
||||
//
|
||||
#include "globals.hh"
|
||||
#include "BrachyFactoryIr.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
#include "Randomize.hh"
|
||||
#include "G4Event.hh"
|
||||
#include "G4ParticleGun.hh"
|
||||
#include "G4IonTable.hh"
|
||||
#include "G4UImanager.hh"
|
||||
#include "G4RunManager.hh"
|
||||
#include "BrachyDetectorMessenger.hh"
|
||||
#include "BrachyDetectorConstructionIr.hh"
|
||||
|
||||
BrachyFactoryIr:: BrachyFactoryIr()
|
||||
{
|
||||
iridiumSource = new BrachyDetectorConstructionIr();
|
||||
}
|
||||
|
||||
BrachyFactoryIr:: ~BrachyFactoryIr()
|
||||
{
|
||||
delete iridiumSource;
|
||||
}
|
||||
|
||||
void BrachyFactoryIr::CreateSource(G4VPhysicalVolume* mother)
|
||||
{
|
||||
iridiumSource -> ConstructIridium(mother);
|
||||
}
|
||||
|
||||
void BrachyFactoryIr::CleanSource()
|
||||
{
|
||||
iridiumSource -> CleanIridium();
|
||||
iridiumSource = 0;
|
||||
}
|
||||
Reference in New Issue
Block a user