Import Geant4 9.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:37:50 +02:00
parent a8e9364cea
commit 96c8bcd0af
6923 changed files with 198390 additions and 41849 deletions
@@ -171,7 +171,6 @@
/Jaws/Y1/DistanceFromAxis -6.6 cm
/Jaws/Y2/DistanceFromAxis 6.8 cm
/Jaws/update
/vis/scene/notifyHandlers scene-0
/energy 6.0 MeV
/sourceType 0.127 MeV
/run/beamOn 10
+12 -1
View File
@@ -1,4 +1,4 @@
$Id: History,v 1.17 2005/12/08 13:34:51 mpiergen Exp $
$Id: History,v 1.19 2007/07/06 21:39:05 mpiergen Exp $
-------------------------------------------------------------------
=========================================================
@@ -16,6 +16,17 @@ committal in the CVS repository !
----------------------------------------------------------
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
06.07.2007 Michela Piergentili, tag medical_linac-V08-03-02
bug 880 fixed in Detector Construction
01.07.2007 Michela Piergentili, tag medical_linac-V08-03-01
macro updated
01.07.2007 Michela Piergentili, tag medical_linac-V08-03-00
removed MedLinacVisManager, set initial seed to 0
The example compiles with CLHEP 2.0.3.1
use of MultipleScattering instead of MultipleScattering52
08.12.2005 Michela Piergentili , tag medical_linac-V07-01-05
updated macro for visualization
+2 -2
View File
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: MedLinac.cc,v 1.11 2006/06/29 16:03:27 gunter Exp $
// $Id: MedLinac.cc,v 1.12 2007/07/01 15:19:18 mpiergen Exp $
//
// --------------------------------------------------------------
// GEANT 4 - medical_linac
@@ -65,7 +65,7 @@ int main(int argc ,char ** argv)
//choose the Random engine
CLHEP::HepRandom::setTheEngine(new CLHEP::RanecuEngine);
G4int seed = time(0);
G4int seed = 0;
CLHEP::HepRandom :: setTheSeed(seed);
// Construct the default run manager
@@ -7,7 +7,6 @@
/vis/viewer/flush
/vis/viewer/set/viewpointThetaPhi 90 180 deg
/vis/viewer/zoom 1.4
/tracking/storeTrajectory 1
/vis/scene/endOfEventAction accumulate
/vis/viewer/update
@@ -1,59 +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: MedLinacVisManager.hh,v 1.5 2006/06/29 16:04:13 gunter Exp $
//
//
// Code developed by: M. Piergentili
//*********************************************************************
#ifndef MedLinacVisManager_h
#define MedLinacVisManager_h 1
#ifdef G4VIS_USE
#include "G4VisManager.hh"
//*********************************************************************
class MedLinacVisManager: public G4VisManager {
public:
MedLinacVisManager ();
private:
void RegisterGraphicsSystems ();
};
//*********************************************************************
#endif
#endif
+4 -1
View File
@@ -1,9 +1,9 @@
/PhysicsList/cut 0.2 mm
/control/verbose 1
/control/saveHistory
/run/verbose 2
/run/initialize
/tracking/storeTrajectory 1
@@ -14,6 +14,9 @@
/PhantomSD/dimension 15. cm
/PhantomSD/Nvoxels 150
#/run/initialize
#/tracking/storeTrajectory 1
# Multi Leaf
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
// $Id: MedLinacDetectorConstruction.cc,v 1.11 2006/06/29 16:04:19 gunter Exp $
// $Id: MedLinacDetectorConstruction.cc,v 1.12 2007/07/06 21:39:05 mpiergen Exp $
//
// Code developed by: M. Piergentili
//
@@ -89,10 +89,7 @@ MedLinacDetectorConstruction::MedLinacDetectorConstruction(G4String SDName)
JawX1_phys(0), JawX2_phys(0),
Phantom_phys(0)
{
//G4double phantomDim_x = 15.*cm;
//G4double phantomDim_y = 15.*cm;
//G4double phantomDim_z = 15.*cm;
phantomDim = 15.*cm;
//PhantomDimensionX = PhantomDim_x;
//PhantomDimensionY = PhantomDim_y;
//PhantomDimensionZ = PhantomDim_z;
@@ -152,7 +149,6 @@ G4VPhysicalVolume* MedLinacDetectorConstruction::Construct()
G4VPhysicalVolume* MedLinacDetectorConstruction::ConstructGeom ()
{
// Cleanup old geometry
G4GeometryManager::GetInstance()->OpenGeometry();
@@ -447,8 +443,9 @@ void MedLinacDetectorConstruction::PrintParameters()
//G4cout <<"jaws2 x position "<< fieldX2/cm << " cm "<<G4endl ;
//G4cout <<"jaws1 y position "<< fieldY1/cm << " cm "<<G4endl ;
//G4cout <<"jaws2 y position "<< fieldY2/cm << " cm "<<G4endl ;
//G4cout <<"************************phantom dimension "<< phantomDim/cm << " cm "<<G4endl ;
// G4cout <<"************************numberOfVoxelsAlongX "<< numberOfVoxelsAlongX <<G4endl ;
G4cout <<"************************phantom dimension "<< phantomDim_x/cm << " cm "<<G4endl ;
G4cout <<"************************phantom dimension "<< phantomDim/cm << " cm "<<G4endl;
//G4cout <<"************************numberOfVoxelsAlongX "<< numberOfVoxelsAlongX <<G4endl ;
//G4cout <<"************************numberOfVoxelsAlongY "<< numberOfVoxelsAlongY <<G4endl ;
//G4cout <<"************************numberOfVoxelsAlongZ "<< numberOfVoxelsAlongZ <<G4endl ;
//G4cout <<"************************maxStep "<< maxStep/mm << " mm " <<G4endl;
@@ -481,7 +478,7 @@ void MedLinacDetectorConstruction::SetJawY2Pos_y (G4double val)
void MedLinacDetectorConstruction::SetPhantomDim (G4double val)
{
phantomDim = val;
//G4cout <<"==============================phantomDim "<< phantomDim/mm<<"mm"<<G4endl;
G4cout <<"==============================phantomDim "<< phantomDim/mm<<"mm"<<G4endl;
}
void MedLinacDetectorConstruction::SetNumberOfVoxels (G4int val)
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: MedLinacPhysicsList.cc,v 1.5 2006/06/29 16:04:39 gunter Exp $
// $Id: MedLinacPhysicsList.cc,v 1.6 2007/07/01 15:19:18 mpiergen Exp $
//
//
// Code developed by: M. Piergentili
@@ -108,7 +108,7 @@ void MedLinacPhysicsList::ConstructProcess()
//#include "G4PenelopeGammaConversion.hh"
//#include "G4PenelopeRayleigh.hh"
#include "G4MultipleScattering52.hh"
#include "G4MultipleScattering.hh"
#include "G4LowEnergyIonisation.hh"
#include "G4LowEnergyBremsstrahlung.hh"
@@ -157,7 +157,7 @@ void MedLinacPhysicsList::ConstructEM()
loweIon = new G4LowEnergyIonisation("LowEnergyIoni");
loweBrem = new G4LowEnergyBremsstrahlung("LowEnBrem");
pmanager->AddProcess(new G4MultipleScattering52, -1, 1,1);
pmanager->AddProcess(new G4MultipleScattering, -1, 1,1);
pmanager->AddProcess(loweIon, -1, 2,2);
pmanager->AddProcess(loweBrem, -1,-1,3);
pmanager -> AddProcess(new G4StepLimiter(), -1, -1, 3);
@@ -170,7 +170,7 @@ void MedLinacPhysicsList::ConstructEM()
} else if (particleName == "e+") {
//positron
pmanager->AddProcess(new G4MultipleScattering52,-1, 1,1);
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);
@@ -1,143 +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: MedLinacVisManager.cc,v 1.6 2006/06/29 16:04:55 gunter Exp $
//
//
// Code developed by: M. Piergentili
#ifdef G4VIS_USE
#include "MedLinacVisManager.hh"
// Supported drivers...
// Not needing external packages or libraries...
#include "G4ASCIITree.hh"
#include "G4DAWNFILE.hh"
#include "G4GAGTree.hh"
#include "G4HepRepFile.hh"
#include "G4HepRep.hh"
#include "G4RayTracer.hh"
#include "G4VRML1File.hh"
#include "G4VRML2File.hh"
// Needing external packages or libraries...
#ifdef G4VIS_USE_DAWN
#include "G4FukuiRenderer.hh"
#endif
#ifdef G4VIS_USE_OPENGLX
#include "G4OpenGLImmediateX.hh"
#include "G4OpenGLStoredX.hh"
#endif
//#ifdef G4VIS_USE_OPENGLWIN32
//#include "G4OpenGLImmediateWin32.hh"
//#include "G4OpenGLStoredWin32.hh"
//#endif
//#ifdef G4VIS_USE_OPENGLXM
//#include "G4OpenGLImmediateXm.hh"
//#include "G4OpenGLStoredXm.hh"
//#endif
//#ifdef G4VIS_USE_OIX
//#include "G4OpenInventorX.hh"
//#endif
//#ifdef G4VIS_USE_OIWIN32
//#include "G4OpenInventorWin32.hh"
//#endif
#ifdef G4VIS_USE_VRML
#include "G4VRML1.hh"
#include "G4VRML2.hh"
#endif
//---------------------------------------------------------------
MedLinacVisManager::MedLinacVisManager () {}
//---------------------------------------------------------------
void MedLinacVisManager::RegisterGraphicsSystems () {
// Graphics Systems not needing external packages or libraries...
RegisterGraphicsSystem (new G4ASCIITree);
RegisterGraphicsSystem (new G4DAWNFILE);
RegisterGraphicsSystem (new G4GAGTree);
RegisterGraphicsSystem (new G4HepRepFile);
RegisterGraphicsSystem (new G4HepRep);
RegisterGraphicsSystem (new G4RayTracer);
RegisterGraphicsSystem (new G4VRML1File);
RegisterGraphicsSystem (new G4VRML2File);
// Graphics systems needing external packages or libraries...
#ifdef G4VIS_USE_DAWN
RegisterGraphicsSystem (new G4FukuiRenderer);
#endif
#ifdef G4VIS_USE_OPENGLX
RegisterGraphicsSystem (new G4OpenGLImmediateX);
RegisterGraphicsSystem (new G4OpenGLStoredX);
#endif
//#ifdef G4VIS_USE_OPENGLWIN32
//RegisterGraphicsSystem (new G4OpenGLImmediateWin32);
//RegisterGraphicsSystem (new G4OpenGLStoredWin32);
//#endif
//#ifdef G4VIS_USE_OPENGLXM
//RegisterGraphicsSystem (new G4OpenGLImmediateXm);
//RegisterGraphicsSystem (new G4OpenGLStoredXm);
//#endif
//#ifdef G4VIS_USE_OIX
//RegisterGraphicsSystem (new G4OpenInventorX);
//#endif
//#ifdef G4VIS_USE_OIWIN32
//RegisterGraphicsSystem (new G4OpenInventorWin32);
//#endif
//#ifdef G4VIS_USE_VRML
//RegisterGraphicsSystem (new G4VRML1);
//RegisterGraphicsSystem (new G4VRML2);
//#endif
if (fVerbose > 0) {
G4cout <<
"\nYou have successfully chosen to use the following graphics systems."
<< G4endl;
PrintAvailableGraphicsSystems ();
}
}
#endif
@@ -7,7 +7,6 @@
/vis/viewer/flush
/vis/viewer/set/viewpointThetaPhi 90 180 deg
/vis/viewer/zoom 1.4
/tracking/storeTrajectory 1
/vis/scene/endOfEventAction accumulate
/vis/viewer/update