Import Geant4 9.5.0 source tree
This commit is contained in:
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01.cc,v 1.15 2010/11/08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
// $Id: AnaEx01.cc,v 1.15 2010-11-08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
|
||||
project(AnaEx01)
|
||||
find_package(Geant4 REQUIRED)
|
||||
include(${Geant4_USE_FILE})
|
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include ${Geant4_INCLUDE_DIR})
|
||||
file(GLOB sources ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cc)
|
||||
|
||||
add_executable(AnaEx01 EXCLUDE_FROM_ALL AnaEx01.cc ${sources})
|
||||
target_link_libraries(AnaEx01 ${Geant4_LIBRARIES})
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.4 2010/11/08 10:38:44 maire Exp $
|
||||
# $Id: GNUmakefile,v 1.4 2010-11-08 10:38:44 maire Exp $
|
||||
# --------------------------------------------------------------
|
||||
# GNUmakefile for examples module. Gabriele Cosmo, 06/04/98.
|
||||
# --------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: History,v 1.19 2010/11/08 10:38:44 maire Exp $
|
||||
$Id: History,v 1.19 2010-11-08 10:38:44 maire Exp $
|
||||
--------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
@@ -15,6 +15,12 @@ track of all tags.
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
07-06-11 mma (AnaEx01-V09-04-01)
|
||||
PhysicsList migrated to new scheme G4PhysListHelper
|
||||
|
||||
03 February 2011 mma (AnaEx01-V09-04-00)
|
||||
- delete subdirectory analysis
|
||||
|
||||
08 November 2010 Michel Maire (AnaEx01-V09-03-00)
|
||||
- revised version of example :
|
||||
class HistoManager to replace AnaEx01AnalysisManager
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: InstallAida.txt,v 1.1 2010/11/08 10:38:44 maire Exp $
|
||||
$Id: InstallAida.txt,v 1.1 2010-11-08 10:38:44 maire Exp $
|
||||
-----------------------------------------------------------
|
||||
|
||||
--------------
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: README,v 1.17 2010/11/08 10:38:44 maire Exp $
|
||||
$Id: README,v 1.17 2010-11-08 10:38:44 maire Exp $
|
||||
--------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: DetectorConstruction.hh,v 1.1 2010/11/08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
// $Id: DetectorConstruction.hh,v 1.1 2010-11-08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: DetectorMessenger.hh,v 1.1 2010/11/08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
// $Id: DetectorMessenger.hh,v 1.1 2010-11-08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: EventAction.hh,v 1.1 2010/11/08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
// $Id: EventAction.hh,v 1.1 2010-11-08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: HistoManager.hh,v 1.1 2010/11/08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
// $Id: HistoManager.hh,v 1.1 2010-11-08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: PhysicsList.hh,v 1.1 2010/11/08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
// $Id: PhysicsList.hh,v 1.1 2010-11-08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: PrimaryGeneratorAction.hh,v 1.1 2010/11/08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
// $Id: PrimaryGeneratorAction.hh,v 1.1 2010-11-08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: RunAction.hh,v 1.1 2010/11/08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
// $Id: RunAction.hh,v 1.1 2010-11-08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: SteppingAction.hh,v 1.1 2010/11/08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
// $Id: SteppingAction.hh,v 1.1 2010-11-08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# $Id: run.mac,v 1.5 2010/11/08 11:01:47 maire Exp $
|
||||
# $Id: run.mac,v 1.5 2010-11-08 11:01:47 maire Exp $
|
||||
#
|
||||
# Macro file for "AnaEx01.cc"
|
||||
#
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: DetectorConstruction.cc,v 1.1 2010/11/08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
// $Id: DetectorConstruction.cc,v 1.1 2010-11-08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: DetectorMessenger.cc,v 1.1 2010/11/08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
// $Id: DetectorMessenger.cc,v 1.1 2010-11-08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: EventAction.cc,v 1.1 2010/11/08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
// $Id: EventAction.cc,v 1.1 2010-11-08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: HistoManager.cc,v 1.1 2010/11/08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
// $Id: HistoManager.cc,v 1.1 2010-11-08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: PhysicsList.cc,v 1.1 2010/11/08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
// $Id: PhysicsList.cc,v 1.1 2010-10-18 15:56:17 maire Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
PhysicsList::PhysicsList(): G4VUserPhysicsList()
|
||||
{
|
||||
defaultCutValue = 1.0*mm;
|
||||
SetVerboseLevel(0);
|
||||
SetVerboseLevel(1);
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -92,6 +92,8 @@ void PhysicsList::ConstructProcess()
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "G4PhysicsListHelper.hh"
|
||||
|
||||
#include "G4ComptonScattering.hh"
|
||||
#include "G4GammaConversion.hh"
|
||||
#include "G4PhotoElectricEffect.hh"
|
||||
@@ -117,65 +119,66 @@ void PhysicsList::ConstructProcess()
|
||||
|
||||
void PhysicsList::ConstructEM()
|
||||
{
|
||||
G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
|
||||
|
||||
theParticleIterator->reset();
|
||||
while( (*theParticleIterator)() ){
|
||||
G4ParticleDefinition* particle = theParticleIterator->value();
|
||||
G4ProcessManager* pmanager = particle->GetProcessManager();
|
||||
G4String particleName = particle->GetParticleName();
|
||||
|
||||
if (particleName == "gamma") {
|
||||
// gamma
|
||||
pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
|
||||
pmanager->AddDiscreteProcess(new G4ComptonScattering);
|
||||
pmanager->AddDiscreteProcess(new G4GammaConversion);
|
||||
ph->RegisterProcess(new G4PhotoElectricEffect, particle);
|
||||
ph->RegisterProcess(new G4ComptonScattering, particle);
|
||||
ph->RegisterProcess(new G4GammaConversion, particle);
|
||||
|
||||
} else if (particleName == "e-") {
|
||||
//electron
|
||||
pmanager->AddProcess(new G4eMultipleScattering,-1, 1, 1);
|
||||
pmanager->AddProcess(new G4eIonisation, -1, 2, 2);
|
||||
pmanager->AddProcess(new G4eBremsstrahlung, -1, 3, 3);
|
||||
ph->RegisterProcess(new G4eMultipleScattering, particle);
|
||||
ph->RegisterProcess(new G4eIonisation, particle);
|
||||
ph->RegisterProcess(new G4eBremsstrahlung, particle);
|
||||
|
||||
} else if (particleName == "e+") {
|
||||
//positron
|
||||
pmanager->AddProcess(new G4eMultipleScattering,-1, 1, 1);
|
||||
pmanager->AddProcess(new G4eIonisation, -1, 2, 2);
|
||||
pmanager->AddProcess(new G4eBremsstrahlung, -1, 3, 3);
|
||||
pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4);
|
||||
ph->RegisterProcess(new G4eMultipleScattering, particle);
|
||||
ph->RegisterProcess(new G4eIonisation, particle);
|
||||
ph->RegisterProcess(new G4eBremsstrahlung, particle);
|
||||
ph->RegisterProcess(new G4eplusAnnihilation, particle);
|
||||
|
||||
} else if( particleName == "mu+" ||
|
||||
particleName == "mu-" ) {
|
||||
//muon
|
||||
pmanager->AddProcess(new G4MuMultipleScattering,-1, 1, 1);
|
||||
pmanager->AddProcess(new G4MuIonisation, -1, 2, 2);
|
||||
pmanager->AddProcess(new G4MuBremsstrahlung, -1, 3, 3);
|
||||
pmanager->AddProcess(new G4MuPairProduction, -1, 4, 4);
|
||||
ph->RegisterProcess(new G4MuMultipleScattering, particle);
|
||||
ph->RegisterProcess(new G4MuIonisation, particle);
|
||||
ph->RegisterProcess(new G4MuBremsstrahlung, particle);
|
||||
ph->RegisterProcess(new G4MuPairProduction, particle);
|
||||
|
||||
} else if( particleName == "proton" ||
|
||||
} else if( particleName == "proton" ||
|
||||
particleName == "pi-" ||
|
||||
particleName == "pi+" ) {
|
||||
//proton
|
||||
pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
|
||||
pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
|
||||
pmanager->AddProcess(new G4hBremsstrahlung, -1, 3, 3);
|
||||
pmanager->AddProcess(new G4hPairProduction, -1, 4, 4);
|
||||
ph->RegisterProcess(new G4hMultipleScattering, particle);
|
||||
ph->RegisterProcess(new G4hIonisation, particle);
|
||||
ph->RegisterProcess(new G4hBremsstrahlung, particle);
|
||||
ph->RegisterProcess(new G4hPairProduction, particle);
|
||||
|
||||
} else if( particleName == "alpha" ||
|
||||
particleName == "He3" ) {
|
||||
//alpha
|
||||
pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
|
||||
pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
|
||||
ph->RegisterProcess(new G4hMultipleScattering, particle);
|
||||
ph->RegisterProcess(new G4ionIonisation, particle);
|
||||
|
||||
} else if( particleName == "GenericIon" ) {
|
||||
//Ions
|
||||
pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
|
||||
pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
|
||||
ph->RegisterProcess(new G4hMultipleScattering, particle);
|
||||
ph->RegisterProcess(new G4ionIonisation, particle);
|
||||
|
||||
} else if ((!particle->IsShortLived()) &&
|
||||
(particle->GetPDGCharge() != 0.0) &&
|
||||
(particle->GetParticleName() != "chargedgeantino")) {
|
||||
//all others charged particles except geantino
|
||||
pmanager->AddProcess(new G4hMultipleScattering,-1, 1, 1);
|
||||
pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
|
||||
ph->RegisterProcess(new G4hMultipleScattering, particle);
|
||||
ph->RegisterProcess(new G4hIonisation, particle);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -186,17 +189,15 @@ void PhysicsList::ConstructEM()
|
||||
|
||||
void PhysicsList::ConstructDecay()
|
||||
{
|
||||
G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
|
||||
|
||||
// Add Decay Process
|
||||
G4Decay* theDecayProcess = new G4Decay();
|
||||
theParticleIterator->reset();
|
||||
while( (*theParticleIterator)() ){
|
||||
G4ParticleDefinition* particle = theParticleIterator->value();
|
||||
G4ProcessManager* pmanager = particle->GetProcessManager();
|
||||
if (theDecayProcess->IsApplicable(*particle)) {
|
||||
pmanager ->AddProcess(theDecayProcess);
|
||||
// set ordering for PostStepDoIt and AtRestDoIt
|
||||
pmanager ->SetProcessOrdering(theDecayProcess, idxPostStep);
|
||||
pmanager ->SetProcessOrdering(theDecayProcess, idxAtRest);
|
||||
ph->RegisterProcess(theDecayProcess, particle);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: PrimaryGeneratorAction.cc,v 1.1 2010/11/08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
// $Id: PrimaryGeneratorAction.cc,v 1.1 2010-11-08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: RunAction.cc,v 1.1 2010/11/08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
// $Id: RunAction.cc,v 1.1 2010-11-08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: SteppingAction.cc,v 1.1 2010/11/08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
// $Id: SteppingAction.cc,v 1.1 2010-11-08 10:38:44 maire Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
//
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
Reference in New Issue
Block a user