Import Geant4 3.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:55:53 +02:00
parent e7d7193284
commit cfcb558cfe
3050 changed files with 91703 additions and 48310 deletions
@@ -1,4 +1,4 @@
# $Id: GNUmakefile,v 1.3 2000/05/17 10:56:21 maire Exp $
# $Id: GNUmakefile,v 1.4 2000/12/07 13:02:11 maire Exp $
# --------------------------------------------------------------
# GNUmakefile for examples module. Gabriele Cosmo, 06/04/98.
# --------------------------------------------------------------
@@ -16,11 +16,4 @@ all: lib bin
include $(G4INSTALL)/config/architecture.gmk
ifdef G4NOHIST
CPPFLAGS += -DG4NOHIST
else
LDFLAGS += -L$(CERN)/pro/lib
LOADLIBS += -lpacklib $(FCLIBS)
endif
include $(G4INSTALL)/config/binmake.gmk
@@ -1,4 +1,4 @@
$Id: History,v 1.4 2000/06/17 12:52:19 stesting Exp $
$Id: History,v 1.6 2000/12/07 13:02:11 maire Exp $
-------------------------------------------------------------------
=========================================================
@@ -14,6 +14,17 @@ track of all tags.
----------------------------------------------------------
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
07-12-00 mma (testem4-V02-00-03 & testem-noHist)
remove hbook histograms: GNUmakefile,runAction,eventAction
06-12-00 mma (testem4-V02-00-02 & testem-withHist)
update of init.mac for new vis commands.
G4UItcsh in the main()
25th November 2000 Steve O'Neale (tagset210)
- Update test outputs for Change in energy cut table printout (cuts not calculated)
- After 50000 events the seeds are not the same as for Aug 28th.
June 17, 2000 John Allison (testem4-V01-00-00)
- Updated TestEm4.out for geant4-01-01-ref-06.
@@ -5,24 +5,16 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: TestEm4.cc,v 1.4 2000/03/09 11:27:37 gracia Exp $
// GEANT4 tag $Name: geant4-02-00 $
// $Id: TestEm4.cc,v 1.5 2000/12/06 17:22:24 maire Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
//
// --------------------------------------------------------------
// GEANT 4 - example Em4
//
// For information related to this code contact:
// CERN, IT Division, ASD Group
// --------------------------------------------------------------
// Comments
//
//
// --------------------------------------------------------------
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#include "G4UIterminal.hh"
#include "G4UItcsh.hh"
#include "Randomize.hh"
#ifdef G4VIS_USE
@@ -37,6 +29,8 @@
#include "Em4SteppingAction.hh"
#include "Em4SteppingVerbose.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
int main(int argc,char** argv) {
//choose the Random engine
@@ -74,7 +68,12 @@ int main(int argc,char** argv) {
if (argc==1) // Define UI terminal for interactive mode
{
G4UIsession * session = new G4UIterminal;
G4UIsession * session = 0;
#ifdef G4UI_USE_TCSH
session = new G4UIterminal(new G4UItcsh);
#else
session = new G4UIterminal();
#endif
UI->ApplyCommand("/control/execute init.mac");
session->SessionStart();
delete session;
@@ -95,3 +94,5 @@ int main(int argc,char** argv) {
return 0;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
@@ -1,6 +1,6 @@
**********************************************
Geant4 version $Name: geant4-02-00 $
(10-Mar-2000)
Geant4 version $Name: geant4-03-00 $
(30-Jun-2000)
Copyright : Geant4 Collaboration
**********************************************
Material: FluorCarbonate density: 1.610 g/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 22.435 cm
@@ -33,9 +33,10 @@ eIoni: delta cross sections from Moller+Bhabha. Good description from 1 KeV to
material min.delta energy(keV)
FluorCarbonate 96.463
FluorCarbonate 96.449
eBrem: Total cross sections from a parametrisation. Good description from 10 KeV to 100 GeV.
eBrem: Total cross sections from a NEW parametrisation based on the EEDL data library.
Good description from 1 KeV to 100 GeV.
log scale extrapolation above 100 GeV
Gamma energy sampled from a parametrised formula.
PhysicsTables from 1 keV to 100 TeV in 100 bins.
@@ -44,14 +45,12 @@ annihil: Total cross section from Heilter formula (annihilation into 2 photons)
gamma energies sampled according Heitler
PhysicsTables from 10 keV to 10 TeV in 100 bins.
============= The cut Energy ==============================
gamma e- mu- proton neutron
Cut in range 1 mm 1 mm -1 mm
gamma e-
Cut in range 1 mm 1 mm
Cut in energy
FluorCarbonate 3.61 keV 429 keV ----------
Cuts in energy have not calculated yet !!
Enter /run/initialize command to calculate cuts
FluorCarbonate 3.61 keV 429 keV
===================================================
# $Id: TestEm4.out,v 1.4 2000/06/17 12:52:19 stesting Exp $
# $Id: TestEm4.out,v 1.7 2000/11/24 11:15:45 stesting Exp $
#
# Macro file for "TestEm4.cc"
#
@@ -87,11 +86,11 @@ Start Run processing.
Run terminated.
Run Summary
Number of events processed : 50000
User=93.01s Real=103.38s Sys=9.49s
User=98s Real=112.09s Sys=9.04s
--------- Ranecu engine status ---------
Initial seed (index) = 0
Current couple of seeds = 5382335, 1635673159
Current couple of seeds = 1157306522, 1306681835
----------------------------------------
G4 kernel has come to Quit state.
Deletion of G4 kernel class start.
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: Em4DetectorConstruction.hh,v 1.2 1999/12/15 14:49:05 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
// GEANT4 tag $Name: geant4-03-00 $
//
//
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: Em4EventAction.hh,v 1.2 1999/12/15 14:49:05 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
// GEANT4 tag $Name: geant4-03-00 $
//
//
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: Em4EventActionMessenger.hh,v 1.2 1999/12/15 14:49:05 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
// GEANT4 tag $Name: geant4-03-00 $
//
//
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: Em4PhysicsList.hh,v 1.2 1999/12/15 14:49:05 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
// GEANT4 tag $Name: geant4-03-00 $
//
//
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: Em4PrimaryGeneratorAction.hh,v 1.2 1999/12/15 14:49:05 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
// GEANT4 tag $Name: geant4-03-00 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: Em4RunAction.hh,v 1.3 2000/01/20 17:27:55 maire Exp $
// GEANT4 tag $Name: geant4-02-00 $
// $Id: Em4RunAction.hh,v 1.4 2000/12/07 13:02:11 maire Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
//
@@ -24,11 +24,6 @@
class G4Run;
class Em4RunActionMessenger;
#ifndef G4NOHIST
class HepTupleManager;
class HepHistogram;
#endif
class Em4RunAction : public G4UserRunAction
{
public:
@@ -41,10 +36,6 @@ class Em4RunAction : public G4UserRunAction
void SetRndmFreq(G4int val) {saveRndm = val;}
G4int GetRndmFreq() {return saveRndm;}
#ifndef G4NOHIST
HepHistogram* GetHisto(G4int id) {return histo[id];}
#endif
private:
void bookHisto();
@@ -52,11 +43,6 @@ class Em4RunAction : public G4UserRunAction
private:
Em4RunActionMessenger* runMessenger;
G4int saveRndm;
#ifndef G4NOHIST
HepTupleManager* hbookManager;
HepHistogram* histo[1];
#endif
};
#endif
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: Em4RunActionMessenger.hh,v 1.3 2000/01/20 17:27:56 maire Exp $
// GEANT4 tag $Name: geant4-02-00 $
// GEANT4 tag $Name: geant4-03-00 $
//
//
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: Em4SteppingAction.hh,v 1.2 1999/12/15 14:49:06 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
// GEANT4 tag $Name: geant4-03-00 $
//
//
@@ -5,19 +5,15 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: Em4SteppingVerbose.hh,v 1.3 2000/02/29 12:21:20 maire Exp $
// GEANT4 tag $Name: geant4-02-00 $
// $Id: Em4SteppingVerbose.hh,v 1.4 2000/12/06 17:22:25 maire Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
//
//---------------------------------------------------------------
// This class manages the verbose outputs in G4SteppingManager.
// It inherits from G4SteppingVerbose.
// It shows how to extract informations during the tracking of a particle.
//
// Em4SteppingVerbose.hh
//
// Description:
// This class manages the vervose outputs in G4SteppingManager.
//
//
//---------------------------------------------------------------
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
class Em4SteppingVerbose;
@@ -26,16 +22,17 @@ class Em4SteppingVerbose;
#include "G4SteppingVerbose.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
class Em4SteppingVerbose : public G4SteppingVerbose {
public:
// Constructor/Destructor
Em4SteppingVerbose();
~Em4SteppingVerbose();
//
void StepInfo();
void TrackingStarted();
//
};
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: Em4VisManager.hh,v 1.2 1999/12/15 14:49:06 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
// GEANT4 tag $Name: geant4-03-00 $
//
//
@@ -10,26 +10,17 @@
# Create empty scene ("world" is default)
/vis/scene/create
#
# Add volume to scene
/vis/scene/add/volume
#
# Create a scene handler for a specific graphics system
# Edit the next line(s) to choose another graphic system
#
#/vis/sceneHandler/create DAWNFILE
/vis/sceneHandler/create OGLIX
#
# Create a viewer
/vis/viewer/create
#/vis/open DAWNFILE
/vis/open OGLIX
#
# Draw scene
/vis/camera/zoom 1.5
/vis/scene/notifyHandlers
/vis/drawVolume
#
# for drawing the tracks
# if too many tracks cause core dump => storeTrajectory 0
/tracking/storeTrajectory 1
/event/drawTracks charged
#
# Flush visualization
/vis/viewer/update
/event/drawTracks all
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: Em4DetectorConstruction.cc,v 1.2 1999/12/15 14:49:06 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
// GEANT4 tag $Name: geant4-03-00 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: Em4EventAction.cc,v 1.3 2000/01/20 17:27:56 maire Exp $
// GEANT4 tag $Name: geant4-02-00 $
// $Id: Em4EventAction.cc,v 1.4 2000/12/07 13:02:11 maire Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
//
@@ -27,10 +27,6 @@
#include "G4UnitsTable.hh"
#include "Randomize.hh"
#ifndef G4NOHIST
#include "CLHEP/Hist/HBookFile.h"
#endif
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
Em4EventAction::Em4EventAction(Em4RunAction* run)
@@ -65,10 +61,6 @@ void Em4EventAction::EndOfEventAction( const G4Event* evt)
G4cout << " Energy deposit: "
<< G4BestUnit(TotalEnergyDeposit,"Energy") << G4endl;
#ifndef G4NOHIST
Em4Run->GetHisto(0)->accumulate(TotalEnergyDeposit/MeV);
#endif
G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
if(pVVisManager)
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: Em4EventActionMessenger.cc,v 1.2 1999/12/15 14:49:06 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
// GEANT4 tag $Name: geant4-03-00 $
//
//
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: Em4PhysicsList.cc,v 1.3 1999/12/15 14:49:06 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
// GEANT4 tag $Name: geant4-03-00 $
//
//
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: Em4PrimaryGeneratorAction.cc,v 1.2 1999/12/15 14:49:06 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
// GEANT4 tag $Name: geant4-03-00 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: Em4RunAction.cc,v 1.4 2000/01/20 17:27:57 maire Exp $
// GEANT4 tag $Name: geant4-02-00 $
// $Id: Em4RunAction.cc,v 1.5 2000/12/07 13:02:11 maire Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
//
@@ -23,10 +23,6 @@
#include "Randomize.hh"
#ifndef G4NOHIST
#include "CLHEP/Hist/HBookFile.h"
#endif
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
Em4RunAction::Em4RunAction()
@@ -42,28 +38,12 @@ Em4RunAction::Em4RunAction()
Em4RunAction::~Em4RunAction()
{
delete runMessenger;
#ifndef G4NOHIST
// Delete HBOOK stuff
delete [] histo;
delete hbookManager;
#endif
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
void Em4RunAction::bookHisto()
{
#ifndef G4NOHIST
// init hbook
hbookManager = new HBookFile("TestEm4.histo", 68);
// book histograms
histo[0] = hbookManager->histogram("total energy deposit in C6F6 (MeV)"
, 100,0.,10.);
#endif
}
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -99,12 +79,6 @@ void Em4RunAction::EndOfRunAction(const G4Run* aRun)
{ HepRandom::showEngineStatus();
HepRandom::saveEngineStatus("endOfRun.rndm");
}
#ifndef G4NOHIST
// Write histogram file
hbookManager->write();
#endif
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: Em4RunActionMessenger.cc,v 1.3 2000/01/20 17:27:57 maire Exp $
// GEANT4 tag $Name: geant4-02-00 $
// GEANT4 tag $Name: geant4-03-00 $
//
//
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: Em4SteppingAction.cc,v 1.2 1999/12/15 14:49:07 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
// GEANT4 tag $Name: geant4-03-00 $
//
//
@@ -5,39 +5,30 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: Em4SteppingVerbose.cc,v 1.3 2000/02/29 12:22:10 maire Exp $
// GEANT4 tag $Name: geant4-02-00 $
// $Id: Em4SteppingVerbose.cc,v 1.4 2000/12/06 17:22:25 maire Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
//
//---------------------------------------------------------------
//
// Em4SteppingVerbose.cc
//
// Description:
// Implementation of the Em4SteppingVerbose class
//
//---------------------------------------------------------------
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
#include "Em4SteppingVerbose.hh"
#include "G4SteppingManager.hh"
#include "G4SteppingManager.hh"
#include "G4UnitsTable.hh"
////////////////////////////////////////////////
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
Em4SteppingVerbose::Em4SteppingVerbose()
////////////////////////////////////////////////
{
}
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
//////////////////////////////////////////////////
Em4SteppingVerbose::~Em4SteppingVerbose()
//////////////////////////////////////////////////
{
}
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
/////////////////////////////////////////
void Em4SteppingVerbose::StepInfo()
/////////////////////////////////////////
{
CopyState();
@@ -124,11 +115,11 @@ void Em4SteppingVerbose::StepInfo()
}
G4cout.precision(prec);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
////////////////////////////////////////////////
void Em4SteppingVerbose::TrackingStarted()
////////////////////////////////////////////////
{
CopyState();
@@ -163,4 +154,6 @@ G4int prec = G4cout.precision(3);
G4cout << G4std::setw(10) << "initStep" << G4endl;
}
G4cout.precision(prec);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: Em4VisManager.cc,v 1.2 1999/12/15 14:49:07 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
// GEANT4 tag $Name: geant4-03-00 $
//
//
// John Allison 24th January 1998.