Import Geant4 10.0.0 source tree
This commit is contained in:
@@ -23,11 +23,7 @@ include(${Geant4_USE_FILE})
|
||||
#----------------------------------------------------------------------------
|
||||
# Find Pythia6 (required package)
|
||||
#
|
||||
find_package(Pythia6 QUIET)
|
||||
if(NOT PYTHIA6_FOUND)
|
||||
message(STATUS "G4 Examples: Pythia6 package not found. --> decayer6 example disabled")
|
||||
return()
|
||||
endif()
|
||||
find_package(Pythia6 REQUIRED)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Locate sources and headers for this project
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.2 2010-01-11 16:34:57 gcosmo Exp $
|
||||
# $Id: GNUmakefile 72244 2013-07-12 08:49:56Z gcosmo $
|
||||
# --------------------------------------------------------------
|
||||
# GNUmakefile for examples module
|
||||
# --------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: History,v 1.5 2010-12-05 21:13:57 gcosmo Exp $
|
||||
$Id: History 78019 2013-12-02 15:52:19Z gcosmo $
|
||||
----------------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
@@ -14,7 +14,17 @@ modifications introduced in the code and keep track of all tags.
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
02/12/2013 - I.Hrivnacova (p6decayer-V09-06-01)
|
||||
-------------------------
|
||||
- Fixed warnings about shadowed variables; removed tabulations
|
||||
|
||||
11/07/2013 - I.Hrivnacova (p6decayer-V09-06-00)
|
||||
-------------------------
|
||||
- Fixed use of particle iterator in P6DExtDecayerPhysics.cc
|
||||
(which was changed with changes for MT)
|
||||
|
||||
24/08/2012 - I.Hrivnacova (p6decayer-V09-05-02)
|
||||
-------------------------
|
||||
- Fixed documentation files
|
||||
|
||||
05/06/2012 - I.Hrivnacova (p6decayer-V09-05-01)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: README,v 1.2 2010-10-21 09:21:41 ivana Exp $
|
||||
$Id: README 72244 2013-07-12 08:49:56Z gcosmo $
|
||||
------------------------------------------------------------
|
||||
|
||||
Example of the external decayer implementation with PYTHIA6
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id$
|
||||
// $Id: EDecayType.hh 72244 2013-07-12 08:49:56Z gcosmo $
|
||||
//
|
||||
/// \file eventgenerator/pythia/decayer6/include/EDecayType.hh
|
||||
/// \brief Definition of the EDecayType enumeration
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: G4Pythia6Decayer.hh 72244 2013-07-12 08:49:56Z gcosmo $
|
||||
//
|
||||
/// \file eventgenerator/pythia/decayer6/include/G4Pythia6Decayer.hh
|
||||
/// \brief Definition of the G4Pythia6Decayer class
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id$
|
||||
// $Id: G4Pythia6DecayerMessenger.hh 72244 2013-07-12 08:49:56Z gcosmo $
|
||||
//
|
||||
/// \file eventgenerator/pythia/decayer6/include/G4Pythia6DecayerMessenger.hh
|
||||
/// \brief Definition of the G4Pythia6DecayerMessenger class
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id$
|
||||
// $Id: P6DExtDecayerPhysics.hh 72244 2013-07-12 08:49:56Z gcosmo $
|
||||
//
|
||||
/// \file eventgenerator/pythia/decayer6/include/P6DExtDecayerPhysics.hh
|
||||
/// \brief Definition of the P6DExtDecayerPhysics class
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id$
|
||||
// $Id: P6DPhysicsList.hh 78019 2013-12-02 15:52:19Z gcosmo $
|
||||
//
|
||||
/// \file eventgenerator/pythia/decayer6/include/P6DPhysicsList.hh
|
||||
/// \brief Definition of the P6DPhysicsList class
|
||||
@@ -32,7 +32,6 @@
|
||||
#define P6DPhysicsList_h 1
|
||||
|
||||
#include "G4VUserPhysicsList.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
/// The physics list class with Pythia6 decayer
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id$
|
||||
// $Id: Pythia6.hh 72244 2013-07-12 08:49:56Z gcosmo $
|
||||
//
|
||||
/// \file eventgenerator/pythia/decayer6/include/Pythia6.hh
|
||||
/// \brief Definition of the Pythia6 class
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id$
|
||||
// $Id: pythia6_decayer.cc 72244 2013-07-12 08:49:56Z gcosmo $
|
||||
//
|
||||
/// \file eventgenerator/pythia/decayer6/pythia6_decayer.cc
|
||||
/// \brief Main program of the pythia6Decayer example
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id$
|
||||
// $Id: G4Pythia6Decayer.cc 72244 2013-07-12 08:49:56Z gcosmo $
|
||||
//
|
||||
/// \file eventgenerator/pythia/decayer6/src/G4Pythia6Decayer.cc
|
||||
/// \brief Implementation of the G4Pythia6Decayer class
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id$
|
||||
// $Id: G4Pythia6DecayerMessenger.cc 72244 2013-07-12 08:49:56Z gcosmo $
|
||||
//
|
||||
/// \file eventgenerator/pythia/decayer6/src/G4Pythia6DecayerMessenger.cc
|
||||
/// \brief Implementation of the G4Pythia6DecayerMessenger class
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id$
|
||||
// $Id: P6DExtDecayerPhysics.cc 72244 2013-07-12 08:49:56Z gcosmo $
|
||||
//
|
||||
/// \file eventgenerator/pythia/decayer6/src/P6DExtDecayerPhysics.cc
|
||||
/// \brief Implementation of the P6DExtDecayerPhysics class
|
||||
@@ -75,15 +75,15 @@ void P6DExtDecayerPhysics::ConstructProcess()
|
||||
extDecayer->SetVerboseLevel(1);
|
||||
// The extDecayer will be deleted in G4Decay destructor
|
||||
|
||||
theParticleIterator->reset();
|
||||
while ((*theParticleIterator)())
|
||||
aParticleIterator->reset();
|
||||
while ((*aParticleIterator)())
|
||||
{
|
||||
G4ParticleDefinition* particle = theParticleIterator->value();
|
||||
G4ParticleDefinition* particle = aParticleIterator->value();
|
||||
G4ProcessManager* pmanager = particle->GetProcessManager();
|
||||
|
||||
if ( verboseLevel > 1 ) {
|
||||
G4cout << "Setting ext decayer for: "
|
||||
<< theParticleIterator->value()->GetParticleName()
|
||||
<< aParticleIterator->value()->GetParticleName()
|
||||
<< G4endl;
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id$
|
||||
// $Id: P6DPhysicsList.cc 78019 2013-12-02 15:52:19Z gcosmo $
|
||||
//
|
||||
/// \file eventgenerator/pythia/decayer6/src/P6DPhysicsList.cc
|
||||
/// \brief Implementation of the P6DPhysicsList class
|
||||
@@ -39,6 +39,9 @@
|
||||
#include "G4BaryonConstructor.hh"
|
||||
#include "G4IonConstructor.hh"
|
||||
|
||||
#include "G4Decay.hh"
|
||||
#include "G4Pythia6Decayer.hh"
|
||||
|
||||
#include "G4SystemOfUnits.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -158,7 +161,7 @@ void P6DPhysicsList::ConstructEM()
|
||||
pmanager->AddProcess(new G4hPairProduction, -1, 4, 4);
|
||||
|
||||
} else if( particleName == "alpha" ||
|
||||
particleName == "He3" ) {
|
||||
particleName == "He3" ) {
|
||||
//alpha
|
||||
pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
|
||||
pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
|
||||
@@ -169,8 +172,8 @@ void P6DPhysicsList::ConstructEM()
|
||||
pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
|
||||
|
||||
} else if ((!particle->IsShortLived()) &&
|
||||
(particle->GetPDGCharge() != 0.0) &&
|
||||
(particle->GetParticleName() != "chargedgeantino")) {
|
||||
(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);
|
||||
@@ -180,9 +183,6 @@ void P6DPhysicsList::ConstructEM()
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "G4Decay.hh"
|
||||
#include "G4Pythia6Decayer.hh"
|
||||
|
||||
void P6DPhysicsList::ConstructDecay()
|
||||
{
|
||||
// Add Decay Process
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id$
|
||||
// $Id: Pythia6.cc 72244 2013-07-12 08:49:56Z gcosmo $
|
||||
//
|
||||
/// \file eventgenerator/pythia/decayer6/src/Pythia6.cc
|
||||
/// \brief Implementation of the Pythia6 class
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id$
|
||||
// $Id: pythia6_common_address.c 72244 2013-07-12 08:49:56Z gcosmo $
|
||||
//
|
||||
// According to pythia6_common_address.c provided in Root
|
||||
// Pythia6 distribution:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# $Id: vis.mac,v 1.4 2010-06-06 04:52:12 perl Exp $
|
||||
# $Id: vis.mac 72244 2013-07-12 08:49:56Z gcosmo $
|
||||
#
|
||||
# Macro file for the initialization phase
|
||||
# when running in interactive mode
|
||||
|
||||
Reference in New Issue
Block a user