Import Geant4 10.5.0 source tree

This commit is contained in:
Gabriele Cosmo
2018-12-07 15:15:39 +01:00
parent 6aa23be517
commit db49709b53
11370 changed files with 187480 additions and 160142 deletions
@@ -0,0 +1,96 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
/// \file hadronic/Hadr02/src/CRMCPiKBuilder.cc
/// \brief Implementation of the CRMCKaonBuilder class
//
//
//---------------------------------------------------------------------------
//
// ClassName: CRMCKaonBuilder
//
// Author: 2018 Alberto Ribon
//
// Modified:
//
//----------------------------------------------------------------------------
//
#ifdef G4_USE_CRMC
#include "CRMCKaonBuilder.hh"
#include "G4ParticleDefinition.hh"
#include "G4ParticleTable.hh"
#include "G4ProcessManager.hh"
#include "G4KaonPlusInelasticProcess.hh"
#include "G4KaonMinusInelasticProcess.hh"
#include "G4KaonZeroLInelasticProcess.hh"
#include "G4KaonZeroSInelasticProcess.hh"
#include "G4HadronicParameters.hh"
#include "G4SystemOfUnits.hh"
CRMCKaonBuilder::CRMCKaonBuilder() {
fMin = 0.0*MeV; // This value does not matter in practice because we are going
// to use this model only at high energies.
fMax = G4HadronicParameters::Instance()->GetMaxEnergy();
fModel = new G4CRMCModel;
}
CRMCKaonBuilder::~CRMCKaonBuilder() {}
void CRMCKaonBuilder::Build( G4HadronElasticProcess* ) {}
void CRMCKaonBuilder::Build( G4KaonPlusInelasticProcess* aP ) {
fModel->SetMinEnergy( fMin );
fModel->SetMaxEnergy( fMax );
aP->RegisterMe( fModel );
}
void CRMCKaonBuilder::Build( G4KaonMinusInelasticProcess* aP ) {
fModel->SetMinEnergy( fMin );
fModel->SetMaxEnergy( fMax );
aP->RegisterMe( fModel );
}
void CRMCKaonBuilder::Build( G4KaonZeroLInelasticProcess* aP ) {
fModel->SetMinEnergy( fMin );
fModel->SetMaxEnergy( fMax );
aP->RegisterMe( fModel );
}
void CRMCKaonBuilder::Build( G4KaonZeroSInelasticProcess* aP ) {
fModel->SetMinEnergy( fMin );
fModel->SetMaxEnergy( fMax );
aP->RegisterMe( fModel );
}
#endif //G4_USE_CRMC
@@ -0,0 +1,88 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
/// \file hadronic/Hadr02/src/CRMCNeutronBuilder.cc
/// \brief Implementation of the CRMCNeutronBuilder class
//
//
//---------------------------------------------------------------------------
//
// ClassName: CRMCNeutronBuilder
//
// Author: 2018 Alberto Ribon
//
// Modified:
//
//----------------------------------------------------------------------------
//
#ifdef G4_USE_CRMC
#include "CRMCNeutronBuilder.hh"
#include "G4ParticleDefinition.hh"
#include "G4ParticleTable.hh"
#include "G4ProcessManager.hh"
#include "G4NeutronInelasticProcess.hh"
#include "G4HadronFissionProcess.hh"
#include "G4HadronCaptureProcess.hh"
#include "G4HadronicParameters.hh"
#include "G4SystemOfUnits.hh"
CRMCNeutronBuilder::CRMCNeutronBuilder() {
fMin = 0.0*MeV; // For CRMC, this value does not matter in practice because
// we are going to use this model only at high energies.
fMax = G4HadronicParameters::Instance()->GetMaxEnergy();
fModel = new G4CRMCModel;
captureModel = new G4NeutronRadCapture;
fissionModel = new G4LFission;
}
void CRMCNeutronBuilder::Build( G4NeutronInelasticProcess* aP ) {
fModel->SetMinEnergy( fMin );
fModel->SetMaxEnergy( fMax );
aP->RegisterMe( fModel );
}
CRMCNeutronBuilder::~CRMCNeutronBuilder() {}
void CRMCNeutronBuilder::Build( G4HadronElasticProcess* ) {}
void CRMCNeutronBuilder::Build( G4HadronFissionProcess* aP ) {
fissionModel->SetMinEnergy( 0.0 );
fissionModel->SetMaxEnergy( G4HadronicParameters::Instance()->GetMaxEnergy() );
aP->RegisterMe( fissionModel );
}
void CRMCNeutronBuilder::Build( G4HadronCaptureProcess* aP ) {
aP->RegisterMe( captureModel );
}
#endif //G4_USE_CRMC
@@ -0,0 +1,112 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
/// \file hadronic/Hadr02/src/CRMCPiKBuilder.cc
/// \brief Implementation of the CRMCPiKBuilder class
//
//
//---------------------------------------------------------------------------
//
// ClassName: CRMCPiKBuilder
//
// Author: 2018 Alberto Ribon
//
// Modified:
//
//----------------------------------------------------------------------------
//
#ifdef G4_USE_CRMC
#include "CRMCPiKBuilder.hh"
#include "G4ParticleDefinition.hh"
#include "G4ParticleTable.hh"
#include "G4ProcessManager.hh"
#include "G4PionPlusInelasticProcess.hh"
#include "G4PionMinusInelasticProcess.hh"
#include "G4KaonPlusInelasticProcess.hh"
#include "G4KaonMinusInelasticProcess.hh"
#include "G4KaonZeroLInelasticProcess.hh"
#include "G4KaonZeroSInelasticProcess.hh"
#include "G4HadronicParameters.hh"
#include "G4SystemOfUnits.hh"
CRMCPiKBuilder::CRMCPiKBuilder() {
fMin = 0.0*MeV; // This value does not matter in practice because we are going
// to use this model only at high energies.
fMax = G4HadronicParameters::Instance()->GetMaxEnergy();
fModel = new G4CRMCModel;
}
CRMCPiKBuilder::~CRMCPiKBuilder() {}
void CRMCPiKBuilder::Build( G4HadronElasticProcess* ) {}
void CRMCPiKBuilder::Build( G4PionPlusInelasticProcess* aP ) {
fModel->SetMinEnergy( fMin );
fModel->SetMaxEnergy( fMax );
aP->RegisterMe( fModel );
}
void CRMCPiKBuilder::Build( G4PionMinusInelasticProcess* aP ) {
fModel->SetMinEnergy( fMin );
fModel->SetMaxEnergy( fMax );
aP->RegisterMe( fModel );
}
void CRMCPiKBuilder::Build( G4KaonPlusInelasticProcess* aP ) {
fModel->SetMinEnergy( fMin );
fModel->SetMaxEnergy( fMax );
aP->RegisterMe( fModel );
}
void CRMCPiKBuilder::Build( G4KaonMinusInelasticProcess* aP ) {
fModel->SetMinEnergy( fMin );
fModel->SetMaxEnergy( fMax );
aP->RegisterMe( fModel );
}
void CRMCPiKBuilder::Build( G4KaonZeroLInelasticProcess* aP ) {
fModel->SetMinEnergy( fMin );
fModel->SetMaxEnergy( fMax );
aP->RegisterMe( fModel );
}
void CRMCPiKBuilder::Build( G4KaonZeroSInelasticProcess* aP ) {
fModel->SetMinEnergy( fMin );
fModel->SetMaxEnergy( fMax );
aP->RegisterMe( fModel );
}
#endif //G4_USE_CRMC
@@ -0,0 +1,80 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
/// \file hadronic/Hadr02/src/CRMCPionBuilder.cc
/// \brief Implementation of the CRMCPionBuilder class
//
//
//---------------------------------------------------------------------------
//
// ClassName: CRMCPionBuilder
//
// Author: 2018 Alberto Ribon
//
// Modified:
//
//----------------------------------------------------------------------------
//
#ifdef G4_USE_CRMC
#include "CRMCPionBuilder.hh"
#include "G4ParticleDefinition.hh"
#include "G4ParticleTable.hh"
#include "G4ProcessManager.hh"
#include "G4PionPlusInelasticProcess.hh"
#include "G4PionMinusInelasticProcess.hh"
#include "G4HadronicParameters.hh"
#include "G4SystemOfUnits.hh"
CRMCPionBuilder::CRMCPionBuilder() {
fMin = 0.0*MeV; // This value does not matter in practice because we are going
// to use this model only at high energies.
fMax = G4HadronicParameters::Instance()->GetMaxEnergy();
fModel = new G4CRMCModel;
}
CRMCPionBuilder::~CRMCPionBuilder() {}
void CRMCPionBuilder::Build( G4HadronElasticProcess* ) {}
void CRMCPionBuilder::Build( G4PionPlusInelasticProcess* aP ) {
fModel->SetMinEnergy( fMin );
fModel->SetMaxEnergy( fMax );
aP->RegisterMe( fModel );
}
void CRMCPionBuilder::Build( G4PionMinusInelasticProcess* aP ) {
fModel->SetMinEnergy( fMin );
fModel->SetMaxEnergy( fMax );
aP->RegisterMe( fModel );
}
#endif //G4_USE_CRMC
@@ -0,0 +1,72 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
/// \file hadronic/Hadr02/src/CRMCProtonBuilder.cc
/// \brief Implementation of the CRMCProtonBuilder class
//
//
//---------------------------------------------------------------------------
//
// ClassName: CRMCProtonBuilder
//
// Author: 2018 Alberto Ribon
//
// Modified:
//
//----------------------------------------------------------------------------
//
#ifdef G4_USE_CRMC
#include "CRMCProtonBuilder.hh"
#include "G4ParticleDefinition.hh"
#include "G4ParticleTable.hh"
#include "G4ProcessManager.hh"
#include "G4ProtonInelasticProcess.hh"
#include "G4HadronicParameters.hh"
#include "G4SystemOfUnits.hh"
CRMCProtonBuilder::CRMCProtonBuilder() {
fMin = 0.0*MeV; // This value does not matter in practice because we are going
// to use this model only at high energies.
fMax = G4HadronicParameters::Instance()->GetMaxEnergy();
fModel = new G4CRMCModel();
}
CRMCProtonBuilder::~CRMCProtonBuilder() {}
void CRMCProtonBuilder::Build( G4HadronElasticProcess* ) {}
void CRMCProtonBuilder::Build( G4ProtonInelasticProcess* aP ) {
fModel->SetMinEnergy( fMin );
fModel->SetMaxEnergy( fMax );
aP->RegisterMe( fModel );
}
#endif //G4_USE_CRMC
@@ -26,7 +26,6 @@
/// \file hadronic/Hadr02/src/DetectorConstruction.cc
/// \brief Implementation of the DetectorConstruction class
//
// $Id: DetectorConstruction.cc 109656 2018-05-04 09:00:14Z gcosmo $
//
/////////////////////////////////////////////////////////////////////////
//
@@ -26,7 +26,6 @@
/// \file hadronic/Hadr02/src/DetectorMessenger.cc
/// \brief Implementation of the DetectorMessenger class
//
// $Id: DetectorMessenger.cc 100812 2016-11-02 15:06:25Z gcosmo $
//
/////////////////////////////////////////////////////////////////////////
//
@@ -26,7 +26,6 @@
/// \file hadronic/Hadr02/src/EventAction.cc
/// \brief Implementation of the EventAction class
//
// $Id: EventAction.cc 81932 2014-06-06 15:39:45Z gcosmo $
//
/////////////////////////////////////////////////////////////////////////
//
@@ -26,7 +26,6 @@
/// \file hadronic/Hadr02/src/EventActionMessenger.cc
/// \brief Implementation of the EventActionMessenger class
//
// $Id: EventActionMessenger.cc 81932 2014-06-06 15:39:45Z gcosmo $
//
/////////////////////////////////////////////////////////////////////////
//
@@ -0,0 +1,220 @@
//
// ********************************************************************
// * 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. *
// * *
// * Parts of this code which have been developed by Abdel-Waged *
// * et al under contract (31-465) to the King Abdul-Aziz City for *
// * Science and Technology (KACST), the National Centre of *
// * Mathematics and Physics (NCMP), Saudi Arabia. *
// * *
// * 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. *
// ********************************************************************
//
/// \file hadronic/Hadr02/src/G4UrQMD1_3Model.cc
/// \brief Implementation of the G4CRMCModel class
//
//
//---------------------------------------------------------------------------
//
// ClassName: CRMCNeutronBuilder
//
// Author: 2018 Alberto Ribon
//
// Modified:
//
//----------------------------------------------------------------------------
//
#ifdef G4_USE_CRMC
#include "G4CRMCModel.hh"
#include "globals.hh"
#include "G4DynamicParticle.hh"
#include "G4IonTable.hh"
#include "G4CollisionOutput.hh"
#include "G4V3DNucleus.hh"
#include "G4Track.hh"
#include "G4Nucleus.hh"
#include "G4LorentzRotation.hh"
#include "G4ParticleDefinition.hh"
#include "G4ParticleTable.hh"
#include "G4PhysicalConstants.hh"
#include "G4SystemOfUnits.hh"
#include "G4Version.hh"
#include "G4AntiHe3.hh"
#include "G4AntiDeuteron.hh"
#include "G4AntiTriton.hh"
#include "G4AntiAlpha.hh"
#include <fstream>
#include <string>
#include "G4HadronicParameters.hh"
G4CRMCModel::G4CRMCModel( const int model ) : G4HadronicInteraction( "CRMC" ), verbose( 0 ),
fModel( model ) {
if (verbose > 3) {
G4cout << " >>> G4CRMCModel default constructor" << G4endl;
}
WelcomeMessage();
CurrentEvent = 0;
G4int ranseed = 1234567;
G4cout << "\n seed: " << ranseed << G4endl;
const char* crmc_param = "crmc.param"; // CRMC default, see CRMCoptions.cc in the CRMC package
fInterface = new CRMCinterface;
fInterface->init( model );
// Open FORTRAN IO at first call.
// Notice that the energy unit must be GeV.
fInterface->crmc_init( G4HadronicParameters::Instance()->GetMaxEnergy()/GeV,
ranseed, model, 0, 0, crmc_param, "", 0 );
fParticleTable = G4ParticleTable::GetParticleTable();
fIonTable = fParticleTable->GetIonTable();
}
G4CRMCModel::~G4CRMCModel() {}
G4HadFinalState* G4CRMCModel::ApplyYourself( const G4HadProjectile &theProjectile,
G4Nucleus &theTarget ) {
// Clean up data vectors
gCRMC_data.Clean();
// The original track will always be discontinued and secondaries followed.
fFinalState.Clear();
fFinalState.SetStatusChange( stopAndKill );
// Get relevant information about the projectile and target (A, Z, energy/nuc, momentum, etc)
const G4ParticleDefinition* definitionP = theProjectile.GetDefinition();
G4int AP = G4lrint( definitionP->GetBaryonNumber() );
G4int ZP = G4lrint( definitionP->GetPDGCharge() );
G4int AT = theTarget.GetA_asInt();
G4int ZT = theTarget.GetZ_asInt();
G4int idProj = definitionP->GetPDGEncoding();
G4int idTarg = ZT*10000 + AT*10;
G4ThreeVector pBefore = theProjectile.Get4Momentum().vect();
G4double E = theProjectile.GetTotalEnergy();
G4double totalEbefore = E*AP + theTarget.AtomicMass( AT, ZT ) + theTarget.GetEnergyDeposit();
G4double pProj = theProjectile.Get4Momentum().pz() / GeV; // Energy unit must be GeV
G4double pTarg = 0.0;
fInterface->crmc_set( 1, // fNCollision,
pProj, // fCfg.fProjectileMomentum,
pTarg, // fCfg.fTargetMomentum,
idProj, // fCfg.fProjectileId,
idTarg ); // fCfg.fTargetId);
// Sample 1 interaction
fInterface->crmc_generate( 0, // fCfg.fTypoaut,
1, // iColl+1,
gCRMC_data.fNParticles,
gCRMC_data.fImpactParameter,
gCRMC_data.fPartId[0],
gCRMC_data.fPartPx[0],
gCRMC_data.fPartPy[0],
gCRMC_data.fPartPz[0],
gCRMC_data.fPartEnergy[0],
gCRMC_data.fPartMass[0],
gCRMC_data.fPartStatus[0] );
// Save secondary particles for output
for ( G4int i = 0; i < gCRMC_data.fNParticles; i++ ) {
// Keep only final state particles
// (-9 is the beam, 2 is a particle which decayed and 1 is final)
if ( gCRMC_data.fPartStatus[i] != 1 ) continue;
G4ParticleDefinition* pdef = GetParticleDefinition( gCRMC_data.fPartId[i] );
G4DynamicParticle* part = new G4DynamicParticle( pdef,
G4ThreeVector( gCRMC_data.fPartPx[i]*GeV,
gCRMC_data.fPartPy[i]*GeV,
gCRMC_data.fPartPz[i]*GeV ) );
fFinalState.AddSecondary( part );
}
if ( verbose >= 3 ) {
G4double totalEafter = 0.0;
G4ThreeVector totalPafter;
G4double charge = 0.0;
G4int baryon = 0;
G4int nSecondaries = fFinalState.GetNumberOfSecondaries();
for ( G4int j = 0; j < nSecondaries; j++ ) {
totalEafter += fFinalState.GetSecondary(j)->GetParticle()->GetTotalEnergy();
totalPafter += fFinalState.GetSecondary(j)->GetParticle()->GetMomentum();
G4ParticleDefinition* pd = fFinalState.GetSecondary(j)->GetParticle()->GetDefinition();
charge += pd->GetPDGCharge();
baryon += pd->GetBaryonNumber();
}
G4cout << "----------------------------------------" << G4endl
<< "Total energy before collision = " << totalEbefore << " MeV" << G4endl
<< "Total energy after collision = " << totalEafter << " MeV" << G4endl
<< "Total momentum before collision = " << pBefore << " MeV/c" << G4endl
<< "Total momentum after collision = " << totalPafter << " MeV/c" << G4endl;
if ( verbose >= 4 ) {
G4cout << "Total charge before collision = " << (ZP + ZT)*eplus << G4endl
<< "Total charge after collision = " << charge <<G4endl
<< "Total baryon number before collision = " << (AP + AT) << G4endl
<< "Total baryon number after collision = "<< baryon << G4endl;
}
G4cout << "----------------------------------------" << G4endl;
}
return &fFinalState;
}
void G4CRMCModel::WelcomeMessage () const {
G4cout << G4endl
<< " *****************************************************************" << G4endl;
if ( fModel == 0 ) {
G4cout << " CRMC - EPOS LHC " << G4endl;
} else if ( fModel == 1 ) {
G4cout << " CRMC - EPOS 1.99" << G4endl;
} else if ( fModel == 6 ) {
G4cout << " CRMC - SIBYLL 2.3c" << G4endl;
} else if ( fModel == 12 ) {
G4cout << " CRMC - DPMJET 3" << G4endl;
}
G4cout << " *****************************************************************" << G4endl
<< G4endl;
return;
}
G4ParticleDefinition* G4CRMCModel::GetParticleDefinition( long particle_id ) {
// CRMC ion definition : id = crmc_ion_coef_0 + crmc_ion_coef_z*Z + crmc_ion_coef_a*A
const G4int crmc_ion_coef_0 = 1000000000;
const G4int crmc_ion_coef_z = 10000;
const G4int crmc_ion_coef_a = 10;
G4ParticleDefinition* pdef = fParticleTable->FindParticle( particle_id );
if ( ! pdef && particle_id > crmc_ion_coef_0 ) {
int Z = ( particle_id - crmc_ion_coef_0 ) / crmc_ion_coef_z;
int A = ( particle_id - crmc_ion_coef_0 - crmc_ion_coef_z*Z ) / crmc_ion_coef_a;
pdef = fIonTable->GetIon( Z, A );
}
return pdef;
}
#endif //G4_USE_CRMC
@@ -32,7 +32,6 @@
/// \file hadronic/Hadr02/src/G4UrQMD1_3Model.cc
/// \brief Implementation of the G4UrQMD1_3Model class
//
// $Id: G4UrQMD1_3Model.cc 81932 2014-06-06 15:39:45Z gcosmo $
//
///////////////////////////////////////////////////////////////////////////////
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -26,8 +26,6 @@
/// \file hadronic/Hadr02/src/HIJINGNeutronBuilder.cc
/// \brief Implementation of the HIJINGNeutronBuilder class
//
// $Id: HIJINGNeutronBuilder.cc,v 1.4 2009-04-02 08:11:32 vnivanch Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//---------------------------------------------------------------------------
//
@@ -44,13 +42,14 @@
#include "G4ParticleDefinition.hh"
#include "G4ParticleTable.hh"
#include "G4ProcessManager.hh"
#include "G4HadronicParameters.hh"
#include "G4SystemOfUnits.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
HIJINGNeutronBuilder::HIJINGNeutronBuilder()
{
fMin = 0*MeV;
fMax = 100*TeV;
fMax = G4HadronicParameters::Instance()->GetMaxEnergy();
fModel = new G4HIJING_Model();
captureModel = new G4NeutronRadCapture();
fissionModel = new G4LFission();
@@ -26,8 +26,6 @@
/// \file hadronic/Hadr02/src/HIJINGProtonBuilder.cc
/// \brief Implementation of the HIJINGProtonBuilder class
//
// $Id: HIJINGProtonBuilder.cc,v 1.3 2009-04-02 08:11:32 vnivanch Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//---------------------------------------------------------------------------
//
@@ -38,13 +36,14 @@
#include "G4ParticleDefinition.hh"
#include "G4ParticleTable.hh"
#include "G4ProcessManager.hh"
#include "G4HadronicParameters.hh"
#include "G4SystemOfUnits.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
HIJINGProtonBuilder::HIJINGProtonBuilder()
{
fMin = 0*MeV;
fMax = 100*TeV;
fMax = G4HadronicParameters::Instance()->GetMaxEnergy();
fModel = new G4HIJING_Model();
}
@@ -0,0 +1,262 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
//
//---------------------------------------------------------------------------
//
// ClassName: HadronPhysicsCRMC_FTFP_BERT
//
// Authors: 2018 Alberto Ribon
//
// Modified:
//----------------------------------------------------------------------------
//
#ifdef G4_USE_CRMC
#include <iomanip>
#include "HadronPhysicsCRMC_FTFP_BERT.hh"
#include "globals.hh"
#include "G4ios.hh"
#include "G4SystemOfUnits.hh"
#include "G4ParticleDefinition.hh"
#include "G4ParticleTable.hh"
#include "G4PionBuilder.hh"
#include "G4FTFPPionBuilder.hh"
#include "CRMCPionBuilder.hh"
#include "G4BertiniPionBuilder.hh"
#include "G4KaonBuilder.hh"
#include "G4FTFPKaonBuilder.hh"
#include "CRMCKaonBuilder.hh"
#include "G4BertiniKaonBuilder.hh"
#include "G4ProtonBuilder.hh"
#include "G4FTFPProtonBuilder.hh"
#include "CRMCProtonBuilder.hh"
#include "G4BertiniProtonBuilder.hh"
#include "G4NeutronBuilder.hh"
#include "G4FTFPNeutronBuilder.hh"
#include "CRMCNeutronBuilder.hh"
#include "G4BertiniNeutronBuilder.hh"
#include "G4HyperonFTFPBuilder.hh"
#include "G4AntiBarionBuilder.hh"
#include "G4FTFPAntiBarionBuilder.hh"
#include "G4MesonConstructor.hh"
#include "G4BaryonConstructor.hh"
#include "G4ShortLivedConstructor.hh"
#include "G4IonConstructor.hh"
#include "G4ComponentGGHadronNucleusXsc.hh"
#include "G4HadronCaptureProcess.hh"
#include "G4NeutronRadCapture.hh"
#include "G4NeutronInelasticXS.hh"
#include "G4NeutronCaptureXS.hh"
#include "G4CrossSectionInelastic.hh"
#include "G4CrossSectionDataSetRegistry.hh"
#include "G4PhysListUtil.hh"
#include "G4ProcessManager.hh"
#include "G4PhysicsConstructorFactory.hh"
//
G4_DECLARE_PHYSCONSTR_FACTORY( HadronPhysicsCRMC_FTFP_BERT );
HadronPhysicsCRMC_FTFP_BERT::HadronPhysicsCRMC_FTFP_BERT( G4int ) :
HadronPhysicsCRMC_FTFP_BERT( "hInelastic CRMC_FTFP_BERT" ) {}
HadronPhysicsCRMC_FTFP_BERT::HadronPhysicsCRMC_FTFP_BERT( const G4String& name ) :
G4VPhysicsConstructor( name ) {
minCRMC = 100.0*GeV;
maxFTFP = 110.0*GeV;
minFTFP = 12.0*GeV;
maxBERT = 3.0*GeV;
minBERT = 0.0*GeV;
}
HadronPhysicsCRMC_FTFP_BERT::~HadronPhysicsCRMC_FTFP_BERT() {
}
void HadronPhysicsCRMC_FTFP_BERT::ConstructParticle() {
G4MesonConstructor pMesonConstructor;
pMesonConstructor.ConstructParticle();
G4BaryonConstructor pBaryonConstructor;
pBaryonConstructor.ConstructParticle();
G4ShortLivedConstructor pShortLivedConstructor;
pShortLivedConstructor.ConstructParticle();
}
void HadronPhysicsCRMC_FTFP_BERT::DumpBanner() {
G4cout << G4endl
<< " CRMC_FTFP_BERT : thresholds for pions, kaons, protons & neutrons " << G4endl
<< "\t BERT : " << minBERT/GeV << " to " << maxBERT/GeV << " GeV" << G4endl
<< "\t FTFP : " << minFTFP/GeV << " to " << maxFTFP/GeV << " GeV" << G4endl
<< "\t CRMC : above " << minCRMC/GeV << " GeV" << G4endl
<< G4endl;
}
void HadronPhysicsCRMC_FTFP_BERT::CreateModels() {
Neutron();
Proton();
Pion();
Kaon();
Others();
}
void HadronPhysicsCRMC_FTFP_BERT::Neutron() {
// General schema:
// 1) Create a builder
// 2) Call AddBuilder
// 3) Configure the builder, possibly with sub-builders
// 4) Call builder->Build()
auto neu = new G4NeutronBuilder;
AddBuilder( neu );
auto epos_n = new CRMCNeutronBuilder;
AddBuilder( epos_n );
epos_n->SetMinEnergy( minCRMC );
neu->RegisterMe( epos_n );
auto ftfp_n = new G4FTFPNeutronBuilder( true );
AddBuilder( ftfp_n );
ftfp_n->SetMinEnergy( minFTFP );
ftfp_n->SetMaxEnergy( maxFTFP );
neu->RegisterMe( ftfp_n );
auto bert_n = new G4BertiniNeutronBuilder;
AddBuilder( bert_n );
bert_n->SetMinEnergy( minBERT );
bert_n->SetMaxEnergy( maxBERT );
neu->RegisterMe( bert_n );
neu->Build();
}
void HadronPhysicsCRMC_FTFP_BERT::Proton() {
auto pro = new G4ProtonBuilder;
AddBuilder( pro );
auto epos_p = new CRMCProtonBuilder;
AddBuilder( epos_p );
epos_p->SetMinEnergy( minCRMC );
pro->RegisterMe( epos_p );
auto ftfp_p = new G4FTFPProtonBuilder( true );
AddBuilder( ftfp_p );
ftfp_p->SetMinEnergy( minFTFP );
ftfp_p->SetMaxEnergy( maxFTFP );
pro->RegisterMe( ftfp_p );
auto bert_p = new G4BertiniProtonBuilder;
AddBuilder( bert_p );
bert_p->SetMinEnergy( minBERT );
bert_p->SetMaxEnergy( maxBERT );
pro->RegisterMe( bert_p );
pro->Build();
}
void HadronPhysicsCRMC_FTFP_BERT::Pion() {
auto pi = new G4PionBuilder;
AddBuilder( pi );
auto epos_pi = new CRMCPionBuilder;
AddBuilder( epos_pi );
epos_pi->SetMinEnergy( minCRMC );
pi->RegisterMe( epos_pi );
auto ftfp_pi = new G4FTFPPionBuilder( true );
AddBuilder( ftfp_pi );
pi->RegisterMe( ftfp_pi );
ftfp_pi->SetMinEnergy( minFTFP );
ftfp_pi->SetMaxEnergy( maxFTFP );
auto bert_pi = new G4BertiniPionBuilder;
AddBuilder( bert_pi );
pi->RegisterMe( bert_pi );
bert_pi->SetMinEnergy( minBERT );
bert_pi->SetMaxEnergy( maxBERT );
pi->Build();
}
void HadronPhysicsCRMC_FTFP_BERT::Kaon() {
auto k = new G4KaonBuilder;
AddBuilder( k );
auto epos_k = new CRMCKaonBuilder;
AddBuilder( epos_k );
epos_k->SetMinEnergy( minCRMC );
k->RegisterMe( epos_k );
auto ftfp_k = new G4FTFPKaonBuilder( true );
AddBuilder( ftfp_k );
k->RegisterMe( ftfp_k );
ftfp_k->SetMinEnergy( minFTFP );
ftfp_k->SetMaxEnergy( maxFTFP );
auto bert_k = new G4BertiniKaonBuilder;
AddBuilder( bert_k );
k->RegisterMe( bert_k );
bert_k->SetMinEnergy( minBERT );
bert_k->SetMaxEnergy( maxBERT );
k->Build();
}
void HadronPhysicsCRMC_FTFP_BERT::Others() {
// Hyperons
auto ftfp_hyp = new G4HyperonFTFPBuilder;
AddBuilder( ftfp_hyp );
ftfp_hyp->Build();
// Anti-baryons
auto abar = new G4AntiBarionBuilder;
AddBuilder( abar );
auto ftfp_abar = new G4FTFPAntiBarionBuilder( true );
AddBuilder( ftfp_abar );
abar->RegisterMe( ftfp_abar );
abar->Build();
}
void HadronPhysicsCRMC_FTFP_BERT::ExtraConfiguration() {
// Modify cross sections for kaons
auto xsk = new G4ComponentGGHadronNucleusXsc;
xs_k.Put( xsk );
G4VCrossSectionDataSet* kaonxs = new G4CrossSectionInelastic( xsk );
xs_ds.Push_back( kaonxs );
G4PhysListUtil::FindInelasticProcess( G4KaonMinus::KaonMinus() )->AddDataSet( kaonxs );
G4PhysListUtil::FindInelasticProcess( G4KaonPlus::KaonPlus() )->AddDataSet( kaonxs );
G4PhysListUtil::FindInelasticProcess( G4KaonZeroShort::KaonZeroShort() )->AddDataSet( kaonxs );
G4PhysListUtil::FindInelasticProcess( G4KaonZeroLong::KaonZeroLong() )->AddDataSet( kaonxs );
// Modify Neutrons
const G4ParticleDefinition* neutron = G4Neutron::Neutron();
G4HadronicProcess* inel = G4PhysListUtil::FindInelasticProcess( neutron );
if ( inel ) inel->AddDataSet( new G4NeutronInelasticXS );
G4HadronicProcess* capture = G4PhysListUtil::FindCaptureProcess( neutron );
if ( capture ) capture->RegisterMe( new G4NeutronRadCapture );
}
void HadronPhysicsCRMC_FTFP_BERT::ConstructProcess() {
if ( G4Threading::IsMasterThread() ) {
DumpBanner();
}
CreateModels();
ExtraConfiguration();
}
#endif //G4_USE_CRMC
@@ -26,8 +26,6 @@
/// \file hadronic/Hadr02/src/HadronPhysicsHIJING.cc
/// \brief Implementation of the HadronPhysicsHIJING class
//
// $Id: HadronPhysicsHIJING.cc,v 1.4 2010-06-15 11:03:50 vnivanch Exp $
// GEANT4 tag $Name: not supported by cvs2svn $
//
//---------------------------------------------------------------------------
//
@@ -26,7 +26,6 @@
/// \file hadronic/Hadr02/src/HadronPhysicsUrQMD.cc
/// \brief Implementation of the HadronPhysicsUrQMD class
//
// $Id: HadronPhysicsUrQMD.cc 77519 2013-11-25 10:54:57Z gcosmo $
//
//---------------------------------------------------------------------------
//
@@ -26,7 +26,6 @@
/// \file hadronic/Hadr02/src/Histo.cc
/// \brief Implementation of the Histo class
//
// $Id: Histo.cc 88154 2015-02-02 12:25:20Z gcosmo $
//
//---------------------------------------------------------------------------
//
@@ -26,7 +26,6 @@
/// \file hadronic/Hadr02/src/HistoManager.cc
/// \brief Implementation of the HistoManager class
//
// $Id: HistoManager.cc 88154 2015-02-02 12:25:20Z gcosmo $
//
//---------------------------------------------------------------------------
//
@@ -26,7 +26,6 @@
/// \file hadronic/Hadr02/src/HistoMessenger.cc
/// \brief Implementation of the HistoMessenger class
//
// $Id: HistoMessenger.cc 88154 2015-02-02 12:25:20Z gcosmo $
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -0,0 +1,156 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
/// \file hadronic/Hadr02/src/IonCRMCPhysics.cc
/// \brief Implementation of the IonCRMCPhysics class
//
//
//---------------------------------------------------------------------------
//
// Class: IonCRMCPhysics
//
// Author: 2018 Alberto Ribon
//
// Modified:
//
// ------------------------------------------------------------
//
#ifdef G4_USE_CRMC
#include "IonCRMCPhysics.hh"
#include "G4IonPhysics.hh"
#include "G4SystemOfUnits.hh"
#include "G4ParticleDefinition.hh"
#include "G4ProcessManager.hh"
#include "G4Deuteron.hh"
#include "G4Triton.hh"
#include "G4He3.hh"
#include "G4Alpha.hh"
#include "G4GenericIon.hh"
#include "G4IonConstructor.hh"
#include "G4HadronInelasticProcess.hh"
#include "G4BinaryLightIonReaction.hh"
#include "G4ComponentGGNuclNuclXsc.hh"
#include "G4CrossSectionInelastic.hh"
#include "G4PreCompoundModel.hh"
#include "G4ExcitationHandler.hh"
#include "G4FTFBuilder.hh"
#include "G4HadronicInteraction.hh"
#include "G4BuilderType.hh"
#include "G4HadronicInteractionRegistry.hh"
#include "G4CRMCModel.hh"
#include "G4HadronicParameters.hh"
using namespace std;
// factory
#include "G4PhysicsConstructorFactory.hh"
//
G4_DECLARE_PHYSCONSTR_FACTORY( IonCRMCPhysics );
G4ThreadLocal G4bool IonCRMCPhysics::wasActivated = false;
G4ThreadLocal G4BinaryLightIonReaction* IonCRMCPhysics::theIonBC = 0;
G4ThreadLocal G4HadronicInteraction* IonCRMCPhysics::theFTFP = 0;
G4ThreadLocal G4VCrossSectionDataSet* IonCRMCPhysics::theNuclNuclData = 0;
G4ThreadLocal G4VComponentCrossSection* IonCRMCPhysics::theGGNuclNuclXS = 0;
G4ThreadLocal G4FTFBuilder* IonCRMCPhysics::theBuilder = 0;
G4ThreadLocal G4CRMCModel* IonCRMCPhysics::theCRMC = 0;
IonCRMCPhysics::IonCRMCPhysics( G4int ver ) : G4VPhysicsConstructor( "ionInelasticCRMC"),
verbose( ver ) {
SetPhysicsType( bIons );
if ( verbose > 1 ) G4cout << "### G4IonPhysics" << G4endl;
}
IonCRMCPhysics::~IonCRMCPhysics() {
// Explictly setting pointers to zero is actually needed.
// These are static variables, in case we restart threads we need to re-create objects
delete theCRMC; theCRMC = 0;
delete theBuilder; theBuilder = 0;
delete theGGNuclNuclXS; theGGNuclNuclXS = 0;
delete theNuclNuclData; theNuclNuclData = 0;
delete theIonBC; theIonBC = 0;
delete theFTFP; theFTFP = 0;
}
void IonCRMCPhysics::ConstructParticle() {
// Construct ions
G4IonConstructor pConstructor;
pConstructor.ConstructParticle();
}
void IonCRMCPhysics::ConstructProcess() {
if ( wasActivated ) return;
wasActivated = true;
G4HadronicInteraction* p = G4HadronicInteractionRegistry::Instance()->FindModel( "PRECO" );
G4PreCompoundModel* thePreCompound = static_cast< G4PreCompoundModel* >( p );
if ( ! thePreCompound ) thePreCompound = new G4PreCompoundModel;
// Transition energies per nucleon
const G4double minCRMC = 100.0*GeV;
const G4double maxFTFP = 110.0*GeV;
const G4double minFTFP = 2.0*GeV;
const G4double maxBIC = 4.0*GeV;
const G4double minBIC = 0.0*GeV;
// Binary Cascade
theIonBC = new G4BinaryLightIonReaction( thePreCompound );
theIonBC->SetMinEnergy( minBIC );
theIonBC->SetMaxEnergy( maxBIC );
// FTFP
theBuilder = new G4FTFBuilder( "FTFP", thePreCompound );
theFTFP = theBuilder->GetModel();
theFTFP->SetMinEnergy( minFTFP );
theFTFP->SetMaxEnergy( maxFTFP );
// CRMC
theCRMC = new G4CRMCModel;
theCRMC->SetMinEnergy( minCRMC );
theCRMC->SetMaxEnergy( G4HadronicParameters::Instance()->GetMaxEnergy() );
// Cross section
theNuclNuclData = new G4CrossSectionInelastic( theGGNuclNuclXS = new G4ComponentGGNuclNuclXsc );
// Processes
AddProcess( "dInelastic", G4Deuteron::Deuteron(), false );
AddProcess( "tInelastic", G4Triton::Triton(), false );
AddProcess( "He3Inelastic", G4He3::He3(), true );
AddProcess( "alphaInelastic", G4Alpha::Alpha(), true );
AddProcess( "ionInelastic", G4GenericIon::GenericIon(), true );
if ( verbose > 1 ) G4cout << "G4IonPhysics::ConstructProcess done! " << G4endl;
}
void IonCRMCPhysics::AddProcess( const G4String& name, G4ParticleDefinition* part, G4bool ) {
G4HadronInelasticProcess* hadi = new G4HadronInelasticProcess( name, part );
G4ProcessManager* pManager = part->GetProcessManager();
pManager->AddDiscreteProcess( hadi );
hadi->AddDataSet( theNuclNuclData );
hadi->RegisterMe( theIonBC );
hadi->RegisterMe( theFTFP );
hadi->RegisterMe( theCRMC );
}
#endif //G4_USE_CRMC
@@ -26,8 +26,6 @@
/// \file hadronic/Hadr02/src/IonHIJINGPhysics.cc
/// \brief Implementation of the IonHIJINGPhysics class
//
// $Id: IonHIJINGPhysics.cc,v 1.1 2006/10/28 16:00:25 vnivanch Exp $
// GEANT4 tag $Name: $
//
//---------------------------------------------------------------------------
//
@@ -62,6 +60,7 @@
#include "G4FTFBuilder.hh"
#include "G4HadronicInteraction.hh"
#include "G4BuilderType.hh"
#include "G4HadronicParameters.hh"
using namespace std;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -89,7 +88,7 @@ void IonHIJINGPhysics::ConstructProcess()
G4double emin = 0.*MeV;
G4double emaxFTF = 25.*GeV;
G4double eminHIJ = 12.*GeV;
G4double emaxHIJ = 100.*TeV;
G4double emaxHIJ = G4HadronicParameters::Instance()->GetMaxEnergy();
G4ExcitationHandler* handler = new G4ExcitationHandler();
G4PreCompoundModel* thePreCompound = new G4PreCompoundModel(handler);
@@ -26,7 +26,6 @@
/// \file hadronic/Hadr02/src/IonUrQMDPhysics.cc
/// \brief Implementation of the IonUrQMDPhysics class
//
// $Id: IonUrQMDPhysics.cc 77519 2013-11-25 10:54:57Z gcosmo $
//
//---------------------------------------------------------------------------
//
@@ -58,6 +57,7 @@
#include "G4UrQMD1_3Model.hh"
#include "G4BuilderType.hh"
#include "G4HadronicParameters.hh"
#include "G4SystemOfUnits.hh"
using namespace std;
@@ -86,7 +86,7 @@ void IonUrQMDPhysics::ConstructProcess()
fWasActivated = true;
G4double emin = 0.*MeV;
G4double emax = 100.*TeV;
G4double emax = G4HadronicParameters::Instance()->GetMaxEnergy();
fModel = new G4UrQMD1_3Model();
fModel->SetMinEnergy( emin );
@@ -26,7 +26,6 @@
/// \file hadronic/Hadr02/src/PrimaryGeneratorAction.cc
/// \brief Implementation of the PrimaryGeneratorAction class
//
// $Id: PrimaryGeneratorAction.cc 81932 2014-06-06 15:39:45Z gcosmo $
//
/////////////////////////////////////////////////////////////////////////
//
@@ -26,7 +26,6 @@
/// \file hadronic/Hadr02/src/RunAction.cc
/// \brief Implementation of the RunAction class
//
// $Id: RunAction.cc 109656 2018-05-04 09:00:14Z gcosmo $
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -26,7 +26,6 @@
/// \file hadronic/Hadr02/src/StackingAction.cc
/// \brief Implementation of the StackingAction class
//
// $Id: StackingAction.cc 81932 2014-06-06 15:39:45Z gcosmo $
//
/////////////////////////////////////////////////////////////////////////
//
@@ -26,7 +26,6 @@
/// \file hadronic/Hadr02/src/StackingMessenger.cc
/// \brief Implementation of the StackingMessenger class
//
// $Id: StackingMessenger.cc 81932 2014-06-06 15:39:45Z gcosmo $
//
/////////////////////////////////////////////////////////////////////////
//
@@ -26,7 +26,6 @@
/// \file hadronic/Hadr02/src/TargetSD.cc
/// \brief Implementation of the TargetSD class
//
// $Id: TargetSD.cc 81932 2014-06-06 15:39:45Z gcosmo $
//
/////////////////////////////////////////////////////////////////////////
//
@@ -26,7 +26,6 @@
/// \file hadronic/Hadr02/src/UrQMDAntiBarionBuilder.cc
/// \brief Implementation of the UrQMDAntiBarionBuilder class
//
// $Id: UrQMDAntiBarionBuilder.cc $
//
//---------------------------------------------------------------------------
//
@@ -44,6 +43,7 @@
#include "G4ProcessManager.hh"
#include "G4ComponentAntiNuclNuclearXS.hh" // For anti-ions
#include "G4CrossSectionInelastic.hh"
#include "G4HadronicParameters.hh"
#include "G4SystemOfUnits.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -52,7 +52,7 @@ UrQMDAntiBarionBuilder::UrQMDAntiBarionBuilder()
{
//Set-up UrQMD model
fMin = 0.0*MeV;
fMax = 100.0*TeV;
fMax = G4HadronicParameters::Instance()->GetMaxEnergy();
fModel = new G4UrQMD1_3Model();
fModel->SetMinEnergy( fMin );
fModel->SetMaxEnergy( fMax );
@@ -26,7 +26,6 @@
/// \file hadronic/Hadr02/src/UrQMDNeutronBuilder.cc
/// \brief Implementation of the UrQMDNeutronBuilder class
//
// $Id: UrQMDNeutronBuilder.cc 77519 2013-11-25 10:54:57Z gcosmo $
//
//---------------------------------------------------------------------------
//
@@ -43,6 +42,7 @@
#include "G4ParticleDefinition.hh"
#include "G4ParticleTable.hh"
#include "G4ProcessManager.hh"
#include "G4HadronicParameters.hh"
#include "G4SystemOfUnits.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -50,7 +50,7 @@
UrQMDNeutronBuilder::UrQMDNeutronBuilder()
{
fMin = 0*MeV;
fMax = 100*TeV;
fMax = G4HadronicParameters::Instance()->GetMaxEnergy();
fModel = new G4UrQMD1_3Model();
captureModel = new G4NeutronRadCapture();
fissionModel = new G4LFission();
@@ -26,7 +26,6 @@
/// \file hadronic/Hadr02/src/UrQMDPiKBuilder.cc
/// \brief Implementation of the UrQMDPiKBuilder class
//
// $Id: UrQMDPiKBuilder.cc 77519 2013-11-25 10:54:57Z gcosmo $
//
//---------------------------------------------------------------------------
//
@@ -43,6 +42,7 @@
#include "G4ParticleDefinition.hh"
#include "G4ParticleTable.hh"
#include "G4ProcessManager.hh"
#include "G4HadronicParameters.hh"
#include "G4SystemOfUnits.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -50,7 +50,7 @@
UrQMDPiKBuilder::UrQMDPiKBuilder()
{
fMin = 0*MeV;
fMax = 100*TeV;
fMax = G4HadronicParameters::Instance()->GetMaxEnergy();
fModel = new G4UrQMD1_3Model();
}
@@ -26,7 +26,6 @@
/// \file hadronic/Hadr02/src/UrQMDProtonBuilder.cc
/// \brief Implementation of the UrQMDProtonBuilder class
//
// $Id: UrQMDProtonBuilder.cc 77519 2013-11-25 10:54:57Z gcosmo $
//
//---------------------------------------------------------------------------
//
@@ -36,6 +35,7 @@
#include "G4ParticleDefinition.hh"
#include "G4ParticleTable.hh"
#include "G4ProcessManager.hh"
#include "G4HadronicParameters.hh"
#include "G4SystemOfUnits.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -43,7 +43,7 @@
UrQMDProtonBuilder::UrQMDProtonBuilder()
{
fMin = 0*MeV;
fMax = 100*TeV;
fMax = G4HadronicParameters::Instance()->GetMaxEnergy();
fModel = new G4UrQMD1_3Model();
}