Import Geant4 8.1.0 source tree
This commit is contained in:
@@ -0,0 +1,113 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: G4HadronInelasticQBBC.hh,v 1.4 2006/06/29 18:02:55 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: G4HadronInelasticQBBC
|
||||
//
|
||||
// Author: 11 April 2006 V. Ivanchenko
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#ifndef G4HadronInelasticQBBC_h
|
||||
#define G4HadronInelasticQBBC_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VPhysicsConstructor.hh"
|
||||
#include "G4QGSModel.hh"
|
||||
#include "G4QGSParticipants.hh"
|
||||
#include "G4FTFModel.hh"
|
||||
#include "G4CascadeInterface.hh"
|
||||
|
||||
#include "G4PiNuclearCrossSection.hh"
|
||||
#include "G4ProtonInelasticCrossSection.hh"
|
||||
#include "G4NeutronInelasticCrossSection.hh"
|
||||
#include "G4NeutronHPInelasticData.hh"
|
||||
#include "G4NeutronHPCaptureData.hh"
|
||||
#include "G4NeutronHPFissionData.hh"
|
||||
|
||||
class G4HadronicProcess;
|
||||
class G4TheoFSGenerator;
|
||||
class G4StringChipsParticleLevelInterface;
|
||||
class G4ExcitedStringDecay;
|
||||
class G4HadronProcessStore;
|
||||
|
||||
class G4HadronInelasticQBBC : public G4VPhysicsConstructor
|
||||
{
|
||||
public:
|
||||
|
||||
G4HadronInelasticQBBC(const G4String& name = "inelastic",
|
||||
G4int ver = 1, G4bool ftf = false, G4bool bert = false,
|
||||
G4bool chips = false, G4bool hp = false);
|
||||
|
||||
virtual ~G4HadronInelasticQBBC();
|
||||
|
||||
public:
|
||||
|
||||
// This method will be invoked in the Construct() method.
|
||||
// each particle type will be instantiated
|
||||
virtual void ConstructParticle();
|
||||
|
||||
// This method will be invoked in the Construct() method.
|
||||
// each physics process will be instantiated and
|
||||
// registered to the process manager of each particle type
|
||||
virtual void ConstructProcess();
|
||||
|
||||
private:
|
||||
|
||||
void Register(G4ParticleDefinition*, G4HadronicProcess*,
|
||||
G4HadronicInteraction*, const G4String&);
|
||||
|
||||
G4PiNuclearCrossSection thePiCross;
|
||||
G4ProtonInelasticCrossSection theXSecP;
|
||||
G4NeutronInelasticCrossSection theXSecN;
|
||||
|
||||
G4NeutronHPInelasticData theHPXSecI;
|
||||
G4NeutronHPCaptureData theHPXSecC;
|
||||
G4NeutronHPFissionData theHPXSecF;
|
||||
|
||||
G4HadronProcessStore* store;
|
||||
|
||||
G4StringChipsParticleLevelInterface * theCHIPSCascade;
|
||||
G4QGSModel< G4QGSParticipants > * theQGStringModel;
|
||||
G4ExcitedStringDecay* theQGStringDecay;
|
||||
G4ExcitedStringDecay* theFTFStringDecay;
|
||||
G4FTFModel* theFTFStringModel;
|
||||
|
||||
G4int verbose;
|
||||
G4bool ftfFlag;
|
||||
G4bool bertFlag;
|
||||
G4bool chipsFlag;
|
||||
G4bool hpFlag;
|
||||
G4bool wasActivated;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,122 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: G4HadronInelasticQLHEP.hh,v 1.3 2006/06/29 18:02:58 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: G4HadronInelasticQLHEP
|
||||
//
|
||||
// Author: 11 April 2006 V. Ivanchenko
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#ifndef G4HadronInelasticQLHEP_h
|
||||
#define G4HadronInelasticQLHEP_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VPhysicsConstructor.hh"
|
||||
#include "G4QGSModel.hh"
|
||||
#include "G4QGSParticipants.hh"
|
||||
#include "G4FTFModel.hh"
|
||||
|
||||
#include "G4PiNuclearCrossSection.hh"
|
||||
#include "G4ProtonInelasticCrossSection.hh"
|
||||
#include "G4NeutronInelasticCrossSection.hh"
|
||||
#include "G4NeutronHPInelasticData.hh"
|
||||
#include "G4NeutronHPCaptureData.hh"
|
||||
#include "G4NeutronHPFissionData.hh"
|
||||
|
||||
#include <vector>
|
||||
|
||||
class G4HadronicProcess;
|
||||
class G4TheoFSGenerator;
|
||||
class G4GeneratorPrecompoundInterface;
|
||||
class G4PreCompoundModel;
|
||||
class G4ExcitedStringDecay;
|
||||
class G4HadronProcessStore;
|
||||
|
||||
class G4HadronInelasticQLHEP : public G4VPhysicsConstructor
|
||||
{
|
||||
public:
|
||||
|
||||
G4HadronInelasticQLHEP(const G4String& name = "inelastic",
|
||||
G4int ver = 1, G4bool qgs = false, G4bool bert = false,
|
||||
G4bool bic = false, G4bool hp = false);
|
||||
|
||||
virtual ~G4HadronInelasticQLHEP();
|
||||
|
||||
public:
|
||||
|
||||
// This method will be invoked in the Construct() method.
|
||||
// each particle type will be instantiated
|
||||
virtual void ConstructParticle();
|
||||
|
||||
// This method will be invoked in the Construct() method.
|
||||
// each physics process will be instantiated and
|
||||
// registered to the process manager of each particle type
|
||||
virtual void ConstructProcess();
|
||||
|
||||
private:
|
||||
|
||||
void Register(G4ParticleDefinition*, G4HadronicProcess*,
|
||||
G4HadronicInteraction*, const G4String&);
|
||||
|
||||
void AddLEP(G4ParticleDefinition*,
|
||||
G4HadronicProcess*,
|
||||
G4double emin, G4double emax);
|
||||
|
||||
void AddHEP(G4ParticleDefinition*,
|
||||
G4HadronicProcess*,
|
||||
G4double emin, G4double emax);
|
||||
|
||||
G4PiNuclearCrossSection thePiCross;
|
||||
G4ProtonInelasticCrossSection theXSecP;
|
||||
G4NeutronInelasticCrossSection theXSecN;
|
||||
|
||||
G4NeutronHPInelasticData theHPXSecI;
|
||||
G4NeutronHPCaptureData theHPXSecC;
|
||||
G4NeutronHPFissionData theHPXSecF;
|
||||
|
||||
G4HadronProcessStore* store;
|
||||
|
||||
G4GeneratorPrecompoundInterface * theCascade;
|
||||
G4PreCompoundModel * thePreEquilib;
|
||||
G4QGSModel< G4QGSParticipants > * theQGStringModel;
|
||||
G4ExcitedStringDecay* theQGStringDecay;
|
||||
|
||||
G4int verbose;
|
||||
G4bool qgsFlag;
|
||||
G4bool bertFlag;
|
||||
G4bool bicFlag;
|
||||
G4bool hpFlag;
|
||||
G4bool wasActivated;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,69 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: QBBC.hh,v 1.4 2006/06/29 18:03:01 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: QBBC
|
||||
//
|
||||
// Author: 11 April 2006 V. Ivanchenko
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
#ifndef TQBBC_h
|
||||
#define TQBBC_h 1
|
||||
|
||||
#include "G4VModularPhysicsList.hh"
|
||||
#include "globals.hh"
|
||||
#include "CompileTimeConstraints.hh"
|
||||
|
||||
template<class T>
|
||||
class TQBBC: public T
|
||||
{
|
||||
public:
|
||||
|
||||
TQBBC(G4int ver = 1, const G4String& type = "QBBC");
|
||||
|
||||
virtual ~TQBBC();
|
||||
|
||||
public:
|
||||
|
||||
virtual void SetCuts();
|
||||
|
||||
private:
|
||||
enum {ok = CompileTimeConstraints::IsA<T, G4VModularPhysicsList>::ok };
|
||||
};
|
||||
|
||||
#include "QBBC.icc"
|
||||
typedef TQBBC<G4VModularPhysicsList> QBBC;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: QBBC.icc,v 1.15 2006/06/29 18:03:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName:QBBC
|
||||
//
|
||||
// Author: 11 April 2006 V. Ivanchenko
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
|
||||
#include "G4DecayPhysics.hh"
|
||||
#include "G4EmStandardPhysics.hh"
|
||||
#include "G4EmExtraPhysics.hh"
|
||||
#include "G4QStoppingPhysics.hh"
|
||||
#include "G4LHEPStoppingPhysics.hh"
|
||||
|
||||
#include "G4DataQuestionaire.hh"
|
||||
#include "G4HadronInelasticQBBC.hh"
|
||||
#include "G4HadronInelasticQLHEP.hh"
|
||||
#include "G4HadronElasticPhysics.hh"
|
||||
#include "G4IonBinaryCascadePhysics.hh"
|
||||
#include "G4IonPhysics.hh"
|
||||
|
||||
template<class T> TQBBC<T>::TQBBC( G4int ver, const G4String& type): T()
|
||||
{
|
||||
G4DataQuestionaire it(photon, neutron);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QBBC 3.0 with type <"
|
||||
<< type <<">" <<G4endl;
|
||||
G4cout <<G4endl;
|
||||
this->defaultCutValue = 0.7*mm;
|
||||
this->SetVerboseLevel(ver);
|
||||
|
||||
// EM Physics
|
||||
this->RegisterPhysics( new G4EmStandardPhysics("standard EM",ver));
|
||||
|
||||
// Synchroton Radiation & GN Physics
|
||||
this->RegisterPhysics( new G4EmExtraPhysics("extra EM"));
|
||||
|
||||
// Decays
|
||||
this->RegisterPhysics( new G4DecayPhysics("decay",ver) );
|
||||
|
||||
// Hadron Physics
|
||||
if(type == "QBBC") {
|
||||
this->RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
|
||||
this->RegisterPhysics( new G4HadronInelasticQBBC("inelastic", ver, false,
|
||||
false, false, false));
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping",ver));
|
||||
this->RegisterPhysics( new G4IonBinaryCascadePhysics("ionBIC"));
|
||||
} else if(type == "QBEC") {
|
||||
this->RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
|
||||
this->RegisterPhysics( new G4HadronInelasticQBBC("inelastic", ver, false,
|
||||
true, false, false));
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping",ver));
|
||||
this->RegisterPhysics( new G4IonBinaryCascadePhysics("ionBIC"));
|
||||
} else if(type == "QBEC_HP") {
|
||||
this->RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,true));
|
||||
this->RegisterPhysics( new G4HadronInelasticQBBC("inelastic", ver, false,
|
||||
true, false, true));
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping",ver));
|
||||
this->RegisterPhysics( new G4IonBinaryCascadePhysics("ionBIC"));
|
||||
} else if(type == "QGSP") {
|
||||
this->RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
|
||||
this->RegisterPhysics( new G4HadronInelasticQLHEP("inelastic", ver,
|
||||
true, false, false, false));
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping",ver));
|
||||
this->RegisterPhysics( new G4IonPhysics("ion"));
|
||||
} else if(type == "QGSP_BERT") {
|
||||
this->RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
|
||||
this->RegisterPhysics( new G4HadronInelasticQLHEP("inelastic", ver,
|
||||
true, true, false, false));
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping",ver));
|
||||
this->RegisterPhysics( new G4IonPhysics("ion"));
|
||||
} else {
|
||||
G4cout << "QBBC ERROR: Unknown Hadronic Physics Type <" << type
|
||||
<< ">" << G4endl;
|
||||
G4Exception("*** No Hadronic Physics can be configured");
|
||||
}
|
||||
}
|
||||
|
||||
template<class T> TQBBC<T>::~TQBBC()
|
||||
{}
|
||||
|
||||
template<class T> void TQBBC<T>::SetCuts()
|
||||
{
|
||||
if (this->verboseLevel >1) G4cout << "### QBBC::SetCuts:";
|
||||
this->SetCutsWithDefault();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user