Import Geant4 7.0.0 source tree
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * *
|
||||
// * The following disclaimer summarizes all the specific disclaimers *
|
||||
// * of contributors to this software. The specific disclaimers,which *
|
||||
// * govern, are listed with their locations in: *
|
||||
// * http://cern.ch/geant4/license *
|
||||
// * *
|
||||
// * 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. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
#ifndef HadronPhysicsQGSC_LEAD_h
|
||||
#define HadronPhysicsQGSC_LEAD_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
|
||||
#include "G4VPhysicsConstructor.hh"
|
||||
#include "G4HadronQEDBuilder.hh"
|
||||
#include "G4StoppingHadronBuilder.hh"
|
||||
#include "G4MiscLHEPBuilder.hh"
|
||||
|
||||
#include "G4PiKBuilder.hh"
|
||||
#include "G4LEPPiKBuilder.hh"
|
||||
#include "G4QGSCPiKBuilder.hh"
|
||||
#include "G4LEADPiKBuilder.hh"
|
||||
|
||||
#include "G4ProtonBuilder.hh"
|
||||
#include "G4LEPProtonBuilder.hh"
|
||||
#include "G4QGSCProtonBuilder.hh"
|
||||
#include "G4LEADProtonBuilder.hh"
|
||||
|
||||
#include "G4NeutronBuilder.hh"
|
||||
#include "G4LEPNeutronBuilder.hh"
|
||||
#include "G4QGSCNeutronBuilder.hh"
|
||||
#include "G4LEADNeutronBuilder.hh"
|
||||
|
||||
class HadronPhysicsQGSC_LEAD : public G4VPhysicsConstructor
|
||||
{
|
||||
public:
|
||||
HadronPhysicsQGSC_LEAD(const G4String& name ="hadron");
|
||||
virtual ~HadronPhysicsQGSC_LEAD();
|
||||
|
||||
public:
|
||||
virtual void ConstructParticle();
|
||||
virtual void ConstructProcess();
|
||||
|
||||
private:
|
||||
G4NeutronBuilder theNeutrons;
|
||||
G4LEPNeutronBuilder theLEPNeutron;
|
||||
G4QGSCNeutronBuilder theQGSCNeutron;
|
||||
G4LEADNeutronBuilder theLEADNeutron;
|
||||
|
||||
G4PiKBuilder thePiK;
|
||||
G4LEPPiKBuilder theLEPPiK;
|
||||
G4QGSCPiKBuilder theQGSCPiK;
|
||||
G4LEADPiKBuilder theLEADPiK;
|
||||
|
||||
G4ProtonBuilder thePro;
|
||||
G4LEPProtonBuilder theLEPPro;
|
||||
G4QGSCProtonBuilder theQGSCPro;
|
||||
G4LEADProtonBuilder theLEADProton;
|
||||
|
||||
G4MiscLHEPBuilder theMiscLHEP;
|
||||
G4StoppingHadronBuilder theStoppingHadron;
|
||||
G4HadronQEDBuilder theHadronQED;
|
||||
};
|
||||
|
||||
// 2002 by J.P. Wellisch
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * *
|
||||
// * The following disclaimer summarizes all the specific disclaimers *
|
||||
// * of contributors to this software. The specific disclaimers,which *
|
||||
// * govern, are listed with their locations in: *
|
||||
// * http://cern.ch/geant4/license *
|
||||
// * *
|
||||
// * 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. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
#ifndef TQGSC_LEAD_h
|
||||
#define TQGSC_LEAD_h 1
|
||||
|
||||
#include "G4VModularPhysicsList.hh"
|
||||
#include "globals.hh"
|
||||
#include "CompileTimeConstraints.hh"
|
||||
|
||||
template<class T>
|
||||
class TQGSC_LEAD: public T
|
||||
{
|
||||
public:
|
||||
TQGSC_LEAD();
|
||||
virtual ~TQGSC_LEAD();
|
||||
|
||||
public:
|
||||
// SetCuts()
|
||||
virtual void SetCuts();
|
||||
|
||||
private:
|
||||
enum {ok = CompileTimeConstraints::IsA<T, G4VModularPhysicsList>::ok };
|
||||
};
|
||||
#include "QGSC_LEAD.icc"
|
||||
typedef TQGSC_LEAD<G4VModularPhysicsList> QGSC_LEAD;
|
||||
|
||||
// 2002 by J.P. Wellisch
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * *
|
||||
// * The following disclaimer summarizes all the specific disclaimers *
|
||||
// * of contributors to this software. The specific disclaimers,which *
|
||||
// * govern, are listed with their locations in: *
|
||||
// * http://cern.ch/geant4/license *
|
||||
// * *
|
||||
// * 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. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ParticleWithCuts.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
#include "G4ProcessVector.hh"
|
||||
#include "G4ParticleTypes.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4Material.hh"
|
||||
#include "G4MaterialTable.hh"
|
||||
#include "G4ios.hh"
|
||||
#include <iomanip>
|
||||
|
||||
#include "GeneralPhysics.hh"
|
||||
#include "EMPhysics.hh"
|
||||
#include "MuonPhysics.hh"
|
||||
#include "IonPhysics.hh"
|
||||
#include "G4DataQuestionaire.hh"
|
||||
#include "HadronPhysicsQGSC_LEAD.hh"
|
||||
|
||||
template<class T> TQGSC_LEAD<T>::TQGSC_LEAD(): T()
|
||||
{
|
||||
// default cut value (1.0mm)
|
||||
// defaultCutValue = 1.0*mm;
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "You are using the simulation engine: QGSC_LEAD 1.7"<<G4endl;
|
||||
G4cout <<G4endl<<G4endl;
|
||||
defaultCutValue = 0.7*mm;
|
||||
SetVerboseLevel(1);
|
||||
|
||||
// General Physics
|
||||
RegisterPhysics( new GeneralPhysics("general") );
|
||||
|
||||
// EM Physics
|
||||
RegisterPhysics( new EMPhysics("standard EM"));
|
||||
|
||||
// Muon Physics
|
||||
RegisterPhysics( new MuonPhysics("muon"));
|
||||
|
||||
// Hadron Physics
|
||||
RegisterPhysics( new HadronPhysicsQGSC_LEAD("hadron"));
|
||||
|
||||
// Ion Physics
|
||||
RegisterPhysics( new IonPhysics("ion"));
|
||||
|
||||
|
||||
}
|
||||
|
||||
template<class T> TQGSC_LEAD<T>::~TQGSC_LEAD()
|
||||
{
|
||||
}
|
||||
|
||||
template<class T> void TQGSC_LEAD<T>::SetCuts()
|
||||
{
|
||||
if (verboseLevel >1){
|
||||
G4cout << "QGSC_LEAD::SetCuts:";
|
||||
}
|
||||
// " G4VUserPhysicsList::SetCutsWithDefault" method sets
|
||||
// the default cut value for all particle types
|
||||
|
||||
SetCutsWithDefault();
|
||||
|
||||
G4VUserPhysicsList::DumpCutValuesTable();
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 2002 by J.P. Wellisch
|
||||
Reference in New Issue
Block a user