Import Geant4 8.3.0 source tree
This commit is contained in:
@@ -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: FTFP_EMV.hh,v 1.1 2007/04/26 14:47:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: FTFP_EMV
|
||||
//
|
||||
// Author: 2007 G.Folger
|
||||
// Created as copy from FTFP
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
#ifndef TFTFP_EMV_h
|
||||
#define TFTFP_EMV_h 1
|
||||
|
||||
#include "G4VModularPhysicsList.hh"
|
||||
#include "globals.hh"
|
||||
#include "CompileTimeConstraints.hh"
|
||||
|
||||
template<class T>
|
||||
class TFTFP_EMV: public T
|
||||
{
|
||||
public:
|
||||
TFTFP_EMV(G4int ver = 1);
|
||||
virtual ~TFTFP_EMV();
|
||||
|
||||
public:
|
||||
// SetCuts()
|
||||
virtual void SetCuts();
|
||||
|
||||
private:
|
||||
enum {ok = CompileTimeConstraints::IsA<T, G4VModularPhysicsList>::ok };
|
||||
};
|
||||
#include "FTFP_EMV.icc"
|
||||
typedef TFTFP_EMV<G4VModularPhysicsList> FTFP_EMV;
|
||||
|
||||
// 2002 by J.P. Wellisch
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,127 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: FTFP_EMV.icc,v 1.1 2007/04/26 14:47:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: FTFP_EMV
|
||||
//
|
||||
// Author: 2007 G.Folger
|
||||
// Created as copy from FTFP
|
||||
//
|
||||
// Modified:
|
||||
// 28.11.2005 G.Folger: migration to non static particles
|
||||
// 30.11.2005 G.Folger: Register EmStandard first, split Em Standard and Extra
|
||||
// 02.12.2005 V.Ivanchenko: rename components
|
||||
// 08.06.2006 V.Ivanchenko: migration to CHIPS stopping
|
||||
// 15.06.2006 G.Folger: Migrate to HadronElasticPhysics using improved elastic
|
||||
// 20.11.2006 G.Folger: add Tracking Cut for neutrons
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#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 "G4DecayPhysics.hh"
|
||||
#include "G4EmStandardPhysics.hh"
|
||||
#include "G4EmExtraPhysics.hh"
|
||||
#include "G4IonPhysics.hh"
|
||||
#include "G4QStoppingPhysics.hh"
|
||||
#include "G4HadronElasticPhysics.hh"
|
||||
#include "G4NeutronTrackingCut.hh"
|
||||
|
||||
#include "G4DataQuestionaire.hh"
|
||||
#include "HadronPhysicsFTFP.hh"
|
||||
|
||||
template<class T> TFTFP_EMV<T>::TFTFP_EMV(G4int ver): T()
|
||||
{
|
||||
// default cut value (1.0mm)
|
||||
// defaultCutValue = 1.0*mm;
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: FTFP_EMV 1.0"<<G4endl;
|
||||
G4cout <<G4endl;
|
||||
this->defaultCutValue = 0.7*mm;
|
||||
this->SetVerboseLevel(ver);
|
||||
|
||||
// EM Physics
|
||||
this->RegisterPhysics( new G4EmStandardPhysics71("standard EM v71",ver));
|
||||
|
||||
// Synchroton Radiation & GN Physics
|
||||
this->RegisterPhysics( new G4EmExtraPhysics("extra EM"));
|
||||
|
||||
// Decays
|
||||
this->RegisterPhysics( new G4DecayPhysics("decay",ver) );
|
||||
|
||||
// Hadron Elastic scattering
|
||||
this-> RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
|
||||
|
||||
// Hadron Physics
|
||||
this->RegisterPhysics( new HadronPhysicsFTFP("hadron"));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping"));
|
||||
|
||||
// Ion Physics
|
||||
this->RegisterPhysics( new G4IonPhysics("ion"));
|
||||
|
||||
// Neutron tracking cut
|
||||
this->RegisterPhysics( new G4NeutronTrackingCut("Neutron tracking cut", ver));
|
||||
|
||||
}
|
||||
|
||||
template<class T> TFTFP_EMV<T>::~TFTFP_EMV()
|
||||
{
|
||||
}
|
||||
|
||||
template<class T> void TFTFP_EMV<T>::SetCuts()
|
||||
{
|
||||
if (this->verboseLevel >1){
|
||||
G4cout << "FTFP_EMV::SetCuts:";
|
||||
}
|
||||
// " G4VUserPhysicsList::SetCutsWithDefault" method sets
|
||||
// the default cut value for all particle types
|
||||
|
||||
this->SetCutsWithDefault();
|
||||
|
||||
// if (this->verboseLevel > 0)
|
||||
// G4VUserPhysicsList::DumpCutValuesTable();
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 2002 by J.P. Wellisch
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4HadronInelasticQBBC.hh,v 1.1 2006/10/31 11:35:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: G4HadronInelasticQBBC.hh,v 1.2 2007/04/16 11:57:40 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -60,6 +60,9 @@ class G4TheoFSGenerator;
|
||||
class G4StringChipsParticleLevelInterface;
|
||||
class G4ExcitedStringDecay;
|
||||
class G4HadronProcessStore;
|
||||
class G4GeneratorPrecompoundInterface;
|
||||
class G4PreCompoundModel;
|
||||
class G4QuasiElasticChannel;
|
||||
|
||||
class G4HadronInelasticQBBC : public G4VPhysicsConstructor
|
||||
{
|
||||
@@ -98,6 +101,9 @@ private:
|
||||
|
||||
G4HadronProcessStore* store;
|
||||
|
||||
G4PreCompoundModel* thePreEquilib;
|
||||
G4QuasiElasticChannel* theQuasiElastic;
|
||||
G4GeneratorPrecompoundInterface* theCascade;
|
||||
G4StringChipsParticleLevelInterface * theCHIPSCascade;
|
||||
G4QGSModel< G4QGSParticipants > * theQGStringModel;
|
||||
G4ExcitedStringDecay* theQGStringDecay;
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: HadronPhysicsQGSC.hh,v 1.1 2006/10/31 11:35:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: HadronPhysicsQGSC.hh,v 1.2 2007/04/26 14:47:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -35,6 +35,7 @@
|
||||
// Modified:
|
||||
// 23.11.2005 G.Folger: don't keep processes as data members, but new these
|
||||
// 08.06.2006 V.Ivanchenko: remove stopping
|
||||
// 25.04.2007 G.Folger: Add quasielastic as option, use quasielastic by default
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
@@ -62,7 +63,7 @@
|
||||
class HadronPhysicsQGSC : public G4VPhysicsConstructor
|
||||
{
|
||||
public:
|
||||
HadronPhysicsQGSC(const G4String& name ="hadron");
|
||||
HadronPhysicsQGSC(const G4String& name ="hadron",G4bool quasiElastic=true);
|
||||
virtual ~HadronPhysicsQGSC();
|
||||
|
||||
public:
|
||||
@@ -84,6 +85,8 @@ class HadronPhysicsQGSC : public G4VPhysicsConstructor
|
||||
G4QGSCProtonBuilder * theQGSCPro;
|
||||
|
||||
G4MiscLHEPBuilder * theMiscLHEP;
|
||||
|
||||
G4bool QuasiElastic;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: HadronPhysicsQGSC_EFLOW.hh,v 1.1 2006/12/05 17:03:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: HadronPhysicsQGSC_EFLOW.hh,v 1.2 2007/04/26 14:47:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -34,6 +34,7 @@
|
||||
//
|
||||
// Created from HadronPhysicsQGSC
|
||||
// Modified:
|
||||
// 25.04.2007 G.Folger: Add quasielastic as option, use quasielastic by default
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
@@ -61,7 +62,7 @@
|
||||
class HadronPhysicsQGSC_EFLOW : public G4VPhysicsConstructor
|
||||
{
|
||||
public:
|
||||
HadronPhysicsQGSC_EFLOW(const G4String& name ="hadron");
|
||||
HadronPhysicsQGSC_EFLOW(const G4String& name ="hadron",G4bool quasiElastic=true);
|
||||
virtual ~HadronPhysicsQGSC_EFLOW();
|
||||
|
||||
public:
|
||||
@@ -83,6 +84,8 @@ class HadronPhysicsQGSC_EFLOW : public G4VPhysicsConstructor
|
||||
G4QGSCEflowProtonBuilder * theQGSCEflowPro;
|
||||
|
||||
G4MiscLHEPBuilder * theMiscLHEP;
|
||||
|
||||
G4bool QuasiElastic;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: HadronPhysicsQGSP.hh,v 1.1 2006/10/31 11:35:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: HadronPhysicsQGSP.hh,v 1.3 2007/04/26 14:47:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -35,6 +35,8 @@
|
||||
// Modified:
|
||||
// 21.11.2005 G.Folger: don't keep processes as data members, but new these
|
||||
// 08.06.2006 V.Ivanchenko: remove stopping
|
||||
// 30.03.2007 G.Folger: Add quasielastic option, turned off by default
|
||||
// 25.04.2007 G.Folger: Use quasielastic by default
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -62,7 +64,7 @@
|
||||
class HadronPhysicsQGSP : public G4VPhysicsConstructor
|
||||
{
|
||||
public:
|
||||
HadronPhysicsQGSP(const G4String& name ="hadron");
|
||||
HadronPhysicsQGSP(const G4String& name ="hadron",G4bool quasiElastic=true);
|
||||
virtual ~HadronPhysicsQGSP();
|
||||
|
||||
public:
|
||||
@@ -84,6 +86,8 @@ class HadronPhysicsQGSP : public G4VPhysicsConstructor
|
||||
G4QGSPProtonBuilder * theQGSPPro;
|
||||
|
||||
G4MiscLHEPBuilder * theMiscLHEP;
|
||||
|
||||
G4bool QuasiElastic;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: HadronPhysicsQGSP_BERT.hh,v 1.1 2006/10/31 11:35:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: HadronPhysicsQGSP_BERT.hh,v 1.2 2007/04/26 14:47:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -35,6 +35,7 @@
|
||||
// Modified:
|
||||
// 23.11.2005 G.Folger: migration to non static particles
|
||||
// 08.06.2006 V.Ivanchenko: remove stopping
|
||||
// 25.04.2007 G.Folger: Add quasielastic option, use this by default
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -65,7 +66,7 @@
|
||||
class HadronPhysicsQGSP_BERT : public G4VPhysicsConstructor
|
||||
{
|
||||
public:
|
||||
HadronPhysicsQGSP_BERT(const G4String& name ="hadron");
|
||||
HadronPhysicsQGSP_BERT(const G4String& name ="hadron",G4bool quasiElastic=true);
|
||||
virtual ~HadronPhysicsQGSP_BERT();
|
||||
|
||||
public:
|
||||
@@ -90,6 +91,8 @@ class HadronPhysicsQGSP_BERT : public G4VPhysicsConstructor
|
||||
G4BertiniProtonBuilder * theBertiniPro;
|
||||
|
||||
G4MiscLHEPBuilder * theMiscLHEP;
|
||||
|
||||
G4bool QuasiElastic;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: HadronPhysicsQGSP_BERT_HP.hh,v 1.2 2006/11/24 16:35:38 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: HadronPhysicsQGSP_BERT_HP.hh,v 1.3 2007/04/26 14:47:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -34,6 +34,7 @@
|
||||
//
|
||||
// Modified:
|
||||
// 15.12.2005 G.Folger: migration to non static particles
|
||||
// 25.04.2007 G.Folger: Add quasielastic as option, use quasielastic by default
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -66,7 +67,7 @@
|
||||
class HadronPhysicsQGSP_BERT_HP : public G4VPhysicsConstructor
|
||||
{
|
||||
public:
|
||||
HadronPhysicsQGSP_BERT_HP(const G4String& name ="hadron");
|
||||
HadronPhysicsQGSP_BERT_HP(const G4String& name ="hadron",G4bool quasiElastic=true);
|
||||
virtual ~HadronPhysicsQGSP_BERT_HP();
|
||||
|
||||
public:
|
||||
@@ -92,6 +93,8 @@ class HadronPhysicsQGSP_BERT_HP : public G4VPhysicsConstructor
|
||||
G4BertiniProtonBuilder * theBertiniPro;
|
||||
|
||||
G4MiscLHEPBuilder * theMiscLHEP;
|
||||
|
||||
G4bool QuasiElastic;
|
||||
};
|
||||
|
||||
// 2002 by J.P. Wellisch
|
||||
|
||||
+21
-12
@@ -23,21 +23,22 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: HadronPhysicsQGSP_EMV.hh,v 1.1 2006/10/31 11:35:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: HadronPhysicsQGSP_BERT_TRV.hh,v 1.1 2007/05/07 14:34:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: HadronPhysiosQGSP_EMV
|
||||
// ClassName: HadronPhysicsQGSP_BERT_TRV
|
||||
//
|
||||
// Author: 2005 G.Folger
|
||||
// Author: 2007 G.Folger
|
||||
// Created from HadronPhysicsQGSP_BERT
|
||||
//
|
||||
// Modified:
|
||||
// 08.06.2006 V.Ivanchenko: remove stopping
|
||||
//
|
||||
|
||||
#ifndef HadronPhysicsQGSP_EMV_h
|
||||
#define HadronPhysicsQGSP_EMV_h 1
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
#ifndef HadronPhysicsQGSP_BERT_TRV_h
|
||||
#define HadronPhysicsQGSP_BERT_TRV_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
@@ -48,20 +49,23 @@
|
||||
#include "G4PiKBuilder.hh"
|
||||
#include "G4LEPPiKBuilder.hh"
|
||||
#include "G4QGSPPiKBuilder.hh"
|
||||
#include "G4BertiniPiKBuilder.hh"
|
||||
|
||||
#include "G4ProtonBuilder.hh"
|
||||
#include "G4LEPProtonBuilder.hh"
|
||||
#include "G4QGSPProtonBuilder.hh"
|
||||
#include "G4BertiniProtonBuilder.hh"
|
||||
|
||||
#include "G4NeutronBuilder.hh"
|
||||
#include "G4LEPNeutronBuilder.hh"
|
||||
#include "G4QGSPNeutronBuilder.hh"
|
||||
#include "G4BertiniNeutronBuilder.hh"
|
||||
|
||||
class HadronPhysicsQGSP_EMV : public G4VPhysicsConstructor
|
||||
class HadronPhysicsQGSP_BERT_TRV : public G4VPhysicsConstructor
|
||||
{
|
||||
public:
|
||||
HadronPhysicsQGSP_EMV(const G4String& name ="hadron");
|
||||
virtual ~HadronPhysicsQGSP_EMV();
|
||||
HadronPhysicsQGSP_BERT_TRV(const G4String& name ="hadron",G4bool quasiElastic=true);
|
||||
virtual ~HadronPhysicsQGSP_BERT_TRV();
|
||||
|
||||
public:
|
||||
virtual void ConstructParticle();
|
||||
@@ -72,16 +76,21 @@ class HadronPhysicsQGSP_EMV : public G4VPhysicsConstructor
|
||||
G4NeutronBuilder * theNeutrons;
|
||||
G4LEPNeutronBuilder * theLEPNeutron;
|
||||
G4QGSPNeutronBuilder * theQGSPNeutron;
|
||||
G4BertiniNeutronBuilder * theBertiniNeutron;
|
||||
|
||||
G4PiKBuilder * thePiK;
|
||||
G4LEPPiKBuilder * theLEPPiK;
|
||||
G4QGSPPiKBuilder * theQGSPPiK;
|
||||
G4BertiniPiKBuilder * theBertiniPiK;
|
||||
|
||||
G4ProtonBuilder * thePro;
|
||||
G4LEPProtonBuilder * theLEPPro;
|
||||
G4QGSPProtonBuilder * theQGSPPro;
|
||||
G4QGSPProtonBuilder * theQGSPPro;
|
||||
G4BertiniProtonBuilder * theBertiniPro;
|
||||
|
||||
G4MiscLHEPBuilder * theMiscLHEP;
|
||||
|
||||
G4bool QuasiElastic;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: HadronPhysicsQGSP_BIC.hh,v 1.1 2006/10/31 11:35:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: HadronPhysicsQGSP_BIC.hh,v 1.2 2007/04/26 14:47:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -35,6 +35,7 @@
|
||||
// Modified:
|
||||
// 23.11.2005 G.Folger: migration to non static particles
|
||||
// 08.06.2006 V.Ivanchenko: remove stopping
|
||||
// 25.04.2007 G.Folger: Add quasielastic as option, use quasielastic by default
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -64,7 +65,7 @@
|
||||
class HadronPhysicsQGSP_BIC : public G4VPhysicsConstructor
|
||||
{
|
||||
public:
|
||||
HadronPhysicsQGSP_BIC(const G4String& name ="hadron");
|
||||
HadronPhysicsQGSP_BIC(const G4String& name ="hadron",G4bool quasiElastic=true);
|
||||
virtual ~HadronPhysicsQGSP_BIC();
|
||||
|
||||
public:
|
||||
@@ -88,6 +89,8 @@ class HadronPhysicsQGSP_BIC : public G4VPhysicsConstructor
|
||||
G4BinaryProtonBuilder * theBinaryPro;
|
||||
|
||||
G4MiscLHEPBuilder * theMiscLHEP;
|
||||
|
||||
G4bool QuasiElastic;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: HadronPhysicsQGSP_BIC_HP.hh,v 1.1 2006/11/24 16:31:35 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: HadronPhysicsQGSP_BIC_HP.hh,v 1.2 2007/04/26 14:47:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -36,6 +36,7 @@
|
||||
// Modified:
|
||||
// 23.11.2005 G.Folger: migration to non static particles
|
||||
// 08.06.2006 V.Ivanchenko: remove stopping
|
||||
// 25.04.2007 G.Folger: Add quasielastic as option, use quasielastic by default
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -66,7 +67,7 @@
|
||||
class HadronPhysicsQGSP_BIC_HP : public G4VPhysicsConstructor
|
||||
{
|
||||
public:
|
||||
HadronPhysicsQGSP_BIC_HP(const G4String& name ="hadron");
|
||||
HadronPhysicsQGSP_BIC_HP(const G4String& name ="hadron",G4bool quasiElastic=true);
|
||||
virtual ~HadronPhysicsQGSP_BIC_HP();
|
||||
|
||||
public:
|
||||
@@ -91,6 +92,8 @@ class HadronPhysicsQGSP_BIC_HP : public G4VPhysicsConstructor
|
||||
G4BinaryProtonBuilder * theBinaryPro;
|
||||
|
||||
G4MiscLHEPBuilder * theMiscLHEP;
|
||||
|
||||
G4bool QuasiElastic;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: HadronPhysicsQGSP_HP.hh,v 1.1 2006/10/31 11:35:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: HadronPhysicsQGSP_HP.hh,v 1.2 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -35,6 +35,7 @@
|
||||
// Modified:
|
||||
// 24.11.2005 G.Folger: migration to non static particles
|
||||
// 08.06.2006 V.Ivanchenko: remove stopping
|
||||
// 25.04.2007 G.Folger: Add quasielastic as option, use quasielastic by default
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -63,7 +64,7 @@
|
||||
class HadronPhysicsQGSP_HP : public G4VPhysicsConstructor
|
||||
{
|
||||
public:
|
||||
HadronPhysicsQGSP_HP(const G4String& name ="hadron");
|
||||
HadronPhysicsQGSP_HP(const G4String& name ="hadron",G4bool quasiElastic=true);
|
||||
virtual ~HadronPhysicsQGSP_HP();
|
||||
|
||||
public:
|
||||
@@ -86,6 +87,8 @@ class HadronPhysicsQGSP_HP : public G4VPhysicsConstructor
|
||||
G4QGSPProtonBuilder * theQGSPPro;
|
||||
|
||||
G4MiscLHEPBuilder * theMiscLHEP;
|
||||
|
||||
G4bool QuasiElastic;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -143,45 +143,38 @@ template<class T> TLBE<T>::~TLBE()
|
||||
G4AntiNeutrinoMu::AntiNeutrinoMuDefinition();
|
||||
}
|
||||
|
||||
#include "G4MesonConstructor.hh"
|
||||
#include "G4BaryonConstructor.hh"
|
||||
#include "G4IonConstructor.hh"
|
||||
|
||||
|
||||
// construct Mesons://///////////////////////////////////////////////////
|
||||
template<class T> void TLBE<T>::ConstructMyMesons()
|
||||
{
|
||||
// mesons
|
||||
G4PionPlus::PionPlusDefinition();
|
||||
G4PionMinus::PionMinusDefinition();
|
||||
G4PionZero::PionZeroDefinition();
|
||||
G4KaonPlus::KaonPlusDefinition();
|
||||
G4KaonMinus::KaonMinusDefinition();
|
||||
G4Eta::EtaDefinition();
|
||||
G4EtaPrime::EtaPrimeDefinition();
|
||||
G4KaonZero::KaonZeroDefinition();
|
||||
G4AntiKaonZero::AntiKaonZeroDefinition();
|
||||
G4KaonZeroLong::KaonZeroLongDefinition();
|
||||
G4KaonZeroShort::KaonZeroShortDefinition();
|
||||
G4MesonConstructor mConstructor;
|
||||
mConstructor.ConstructParticle();
|
||||
|
||||
}
|
||||
|
||||
|
||||
// construct Baryons://///////////////////////////////////////////////////
|
||||
template<class T> void TLBE<T>::ConstructMyBaryons()
|
||||
{
|
||||
// barions
|
||||
G4Proton::ProtonDefinition();
|
||||
G4AntiProton::AntiProtonDefinition();
|
||||
G4Neutron::NeutronDefinition();
|
||||
G4AntiNeutron::AntiNeutronDefinition();
|
||||
// baryons
|
||||
G4BaryonConstructor bConstructor;
|
||||
bConstructor.ConstructParticle();
|
||||
|
||||
}
|
||||
|
||||
|
||||
// construct Ions://///////////////////////////////////////////////////
|
||||
template<class T> void TLBE<T>::ConstructMyIons()
|
||||
{
|
||||
// Ions
|
||||
G4Deuteron::DeuteronDefinition();
|
||||
G4Triton::TritonDefinition();
|
||||
G4He3::He3Definition();
|
||||
G4Alpha::AlphaDefinition();
|
||||
G4GenericIon::GenericIonDefinition();
|
||||
// ions
|
||||
G4IonConstructor iConstructor;
|
||||
iConstructor.ConstructParticle();
|
||||
|
||||
}
|
||||
|
||||
// construct Shortliveds://///////////////////////////////////////////////////
|
||||
@@ -763,7 +756,7 @@ template<class T> TLBE<T>::~TLBE()
|
||||
G4ParticleDefinition* particle = this->theParticleIterator->value();
|
||||
G4ProcessManager* pmanager = particle->GetProcessManager();
|
||||
|
||||
if (theDecayProcess->IsApplicable(*particle))
|
||||
if (theDecayProcess->IsApplicable(*particle) && !particle->IsShortLived())
|
||||
{
|
||||
pmanager ->AddProcess(theDecayProcess);
|
||||
// set ordering for PostStepDoIt and AtRestDoIt
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: QBBC.hh,v 1.1 2006/10/31 11:35:08 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: QBBC.hh,v 1.2 2007/04/16 11:57:40 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -33,7 +33,7 @@
|
||||
// Author: 11 April 2006 V. Ivanchenko
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
// 15.04.2007 set glauber=true (V.Ivanchenko)
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
#ifndef TQBBC_h
|
||||
@@ -48,7 +48,7 @@ class TQBBC: public T
|
||||
{
|
||||
public:
|
||||
|
||||
TQBBC(G4int ver = 1, const G4String& type = "QBBC", G4bool glauber = false);
|
||||
TQBBC(G4int ver = 1, const G4String& type = "QBBC", G4bool glauber = true);
|
||||
|
||||
virtual ~TQBBC();
|
||||
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: QBBC.icc,v 1.4 2006/11/24 17:26:21 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: QBBC.icc,v 1.5 2007/04/16 11:57:40 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -76,28 +76,28 @@ template<class T> TQBBC<T>::TQBBC( G4int ver, const G4String& type, G4bool gl):
|
||||
|
||||
// Hadron Physics
|
||||
if(type == "QBBC") {
|
||||
this->RegisterPhysics( new G4HadronHElasticPhysics("HElastic",ver,false));
|
||||
this->RegisterPhysics( new G4HadronElasticPhysics("hElastic",ver,false));
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping",ver));
|
||||
this->RegisterPhysics( new G4IonBinaryCascadePhysics("ionBIC"));
|
||||
this->RegisterPhysics( new G4HadronInelasticQBBC("inelastic", ver, false,
|
||||
false, false, false, gl));
|
||||
|
||||
} else if(type == "QBEC") {
|
||||
this->RegisterPhysics( new G4HadronHElasticPhysics("HElastic",ver,false));
|
||||
this->RegisterPhysics( new G4HadronElasticPhysics("hElastic",ver,false));
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping",ver));
|
||||
this->RegisterPhysics( new G4IonBinaryCascadePhysics("ionBIC"));
|
||||
this->RegisterPhysics( new G4HadronInelasticQBBC("inelastic", ver, false,
|
||||
true, false, false, gl));
|
||||
|
||||
} else if(type == "QBBC_HP") {
|
||||
this->RegisterPhysics( new G4HadronHElasticPhysics("HElastic",ver,true));
|
||||
this->RegisterPhysics( new G4HadronElasticPhysics("hElastic",ver,true));
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping",ver));
|
||||
this->RegisterPhysics( new G4IonBinaryCascadePhysics("ionBIC"));
|
||||
this->RegisterPhysics( new G4HadronInelasticQBBC("inelastic", ver, false,
|
||||
false, false, true, gl));
|
||||
|
||||
} else if(type == "QBEC_HP") {
|
||||
this->RegisterPhysics( new G4HadronHElasticPhysics("HElastic",ver,true));
|
||||
this->RegisterPhysics( new G4HadronElasticPhysics("hElastic",ver,true));
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping",ver));
|
||||
this->RegisterPhysics( new G4IonBinaryCascadePhysics("ionBIC"));
|
||||
this->RegisterPhysics( new G4HadronInelasticQBBC("inelastic", ver, false,
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: QGSC.icc,v 1.5 2006/11/24 17:10:23 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: QGSC.icc,v 1.7 2007/04/26 16:03:36 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -39,6 +39,8 @@
|
||||
// 08.06.2006 V.Ivanchenko: migration to CHIPS stopping
|
||||
// 13.06.2006 G.Folger: Migrate to HadronElasticPhysics with improved elastic
|
||||
// 20.11.2006 G.Folger: add Tracking Cut for neutrons
|
||||
// 26.04.2007 G.Folger: Enable quasielastic for QGS string model
|
||||
// 26.04.2007 G.Folger Use QCaptureAtRest for muon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -71,7 +73,7 @@ template<class T> TQGSC<T>::TQGSC(G4int ver): T()
|
||||
// default cut value (1.0mm)
|
||||
// defaultCutValue = 1.0*mm;
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSC 4.2"<<G4endl;
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSC 4.4"<<G4endl;
|
||||
G4cout <<G4endl<<G4endl;
|
||||
this->defaultCutValue = 0.7*mm;
|
||||
this->SetVerboseLevel(ver);
|
||||
@@ -89,10 +91,11 @@ template<class T> TQGSC<T>::TQGSC(G4int ver): T()
|
||||
this-> RegisterPhysics( new G4HadronQElasticPhysics("elastic",ver));
|
||||
|
||||
// Hadron Physics
|
||||
this->RegisterPhysics( new HadronPhysicsQGSC("hadron"));
|
||||
G4bool quasiElastic;
|
||||
this->RegisterPhysics( new HadronPhysicsQGSC("hadron",quasiElastic=true));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping"));
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping",ver,false));
|
||||
|
||||
// Ion Physics
|
||||
this->RegisterPhysics( new G4IonPhysics("ion"));
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: QGSC_EFLOW.icc,v 1.1 2006/12/05 17:03:32 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: QGSC_EFLOW.icc,v 1.3 2007/04/26 16:03:36 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -34,6 +34,8 @@
|
||||
//
|
||||
// Created as copy of QGSC
|
||||
// Modified:
|
||||
// 26.04.2007 G.Folger: Enable quasielastic for QGS string model
|
||||
// 26.04.2007 G.Folger Use QCaptureAtRest for muon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -66,7 +68,7 @@ template<class T> TQGSC_EFLOW<T>::TQGSC_EFLOW(G4int ver): T()
|
||||
// default cut value (1.0mm)
|
||||
// defaultCutValue = 1.0*mm;
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSC_EFLOW 1.0"<<G4endl;
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSC_EFLOW 1.2"<<G4endl;
|
||||
G4cout <<G4endl<<G4endl;
|
||||
this->defaultCutValue = 0.7*mm;
|
||||
this->SetVerboseLevel(ver);
|
||||
@@ -84,10 +86,11 @@ template<class T> TQGSC_EFLOW<T>::TQGSC_EFLOW(G4int ver): T()
|
||||
this-> RegisterPhysics( new G4HadronQElasticPhysics("elastic",ver));
|
||||
|
||||
// Hadron Physics
|
||||
this->RegisterPhysics( new HadronPhysicsQGSC_EFLOW("hadron"));
|
||||
G4bool quasiElastic;
|
||||
this->RegisterPhysics( new HadronPhysicsQGSC_EFLOW("hadron",quasiElastic=true));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping"));
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping",ver,false));
|
||||
|
||||
// Ion Physics
|
||||
this->RegisterPhysics( new G4IonPhysics("ion"));
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: QGSC_EMV.icc,v 1.1 2006/11/24 15:49:09 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: QGSC_EMV.icc,v 1.3 2007/04/26 16:03:36 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -34,6 +34,11 @@
|
||||
//
|
||||
// Created as copy of QGSC
|
||||
//
|
||||
// Modified:
|
||||
// 26.04.2007 G.Folger Use HadronPhysicsQGSC instead of HadronPhysicsQGSC_EMV
|
||||
// 26.04.2007 G.Folger Enable quasielastic for QGS string model
|
||||
// 26.04.2007 G.Folger Use QCaptureAtRest for muon
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
#include "globals.hh"
|
||||
@@ -58,14 +63,14 @@
|
||||
#include "G4NeutronTrackingCut.hh"
|
||||
|
||||
#include "G4DataQuestionaire.hh"
|
||||
#include "HadronPhysicsQGSC_EMV.hh"
|
||||
#include "HadronPhysicsQGSC.hh"
|
||||
|
||||
template<class T> TQGSC_EMV<T>::TQGSC_EMV(G4int ver): T()
|
||||
{
|
||||
// default cut value (1.0mm)
|
||||
// defaultCutValue = 1.0*mm;
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSC_EMV 1.0"<<G4endl;
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSC_EMV 1.2"<<G4endl;
|
||||
G4cout <<G4endl<<G4endl;
|
||||
this->defaultCutValue = 0.7*mm;
|
||||
this->SetVerboseLevel(ver);
|
||||
@@ -83,10 +88,11 @@ template<class T> TQGSC_EMV<T>::TQGSC_EMV(G4int ver): T()
|
||||
this-> RegisterPhysics( new G4HadronQElasticPhysics("elastic",ver));
|
||||
|
||||
// Hadron Physics
|
||||
this->RegisterPhysics( new HadronPhysicsQGSC_EMV("hadron"));
|
||||
G4bool quasiElastic;
|
||||
this->RegisterPhysics( new HadronPhysicsQGSC("hadron",quasiElastic=true));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping"));
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping",ver,false));
|
||||
|
||||
// Ion Physics
|
||||
this->RegisterPhysics( new G4IonPhysics("ion"));
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: QGSP.icc,v 1.3 2006/11/24 17:10:23 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: QGSP.icc,v 1.6 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -38,6 +38,7 @@
|
||||
// 08.06.2006 V.Ivanchenko: migration to CHIPS stopping
|
||||
// 15.06.2006 G.Folger: Migrate to HadronElasticPhysics using improved elastic
|
||||
// 20.11.2006 G.Folger: add Tracking Cut for neutrons
|
||||
// 30.03.2007 G.Folger: Enable quasielastic for QGS string model
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -72,7 +73,7 @@ template<class T> TQGSP<T>::TQGSP(G4int ver): T()
|
||||
// defaultCutValue = 1.0*mm;
|
||||
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP 3.2"<<G4endl;
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP 3.3"<<G4endl;
|
||||
G4cout <<G4endl;
|
||||
|
||||
this->defaultCutValue = 0.7*mm;
|
||||
@@ -91,7 +92,8 @@ template<class T> TQGSP<T>::TQGSP(G4int ver): T()
|
||||
this-> RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
|
||||
|
||||
// Hadron Physics
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP("hadron"));
|
||||
G4bool quasiElastic;
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP("hadron",quasiElastic=true));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping"));
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: QGSP_BERT.icc,v 1.3 2006/11/24 17:10:23 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: QGSP_BERT.icc,v 1.4 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -39,6 +39,7 @@
|
||||
// 08.06.2006 V.Ivanchenko: migration to CHIPS stopping
|
||||
// 15.06.2006 G.Folger: Migrate to HadronElasticPhysics using improved elastic
|
||||
// 20.11.2006 G.Folger: add Tracking Cut for neutrons
|
||||
// 26.04.2007 G.Folger: Enable quasielastic for QGS string model
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -71,7 +72,7 @@ template<class T> TQGSP_BERT<T>::TQGSP_BERT(G4int ver): T()
|
||||
{
|
||||
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_BERT 3.2"<<G4endl;
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_BERT 3.3"<<G4endl;
|
||||
G4cout <<G4endl;
|
||||
|
||||
this->defaultCutValue = 0.7*mm;
|
||||
@@ -90,7 +91,8 @@ template<class T> TQGSP_BERT<T>::TQGSP_BERT(G4int ver): T()
|
||||
this-> RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
|
||||
|
||||
// Hadron Physics
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP_BERT("hadron"));
|
||||
G4bool quasiElastic;
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP_BERT("hadron",quasiElastic=true));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping"));
|
||||
|
||||
+29
-47
@@ -23,66 +23,48 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: HadronPhysicsQGSC_EMV.hh,v 1.1 2006/11/24 15:49:09 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: QGSP_BERT_EMV.hh,v 1.1 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: HadronPhysicsQGSC_EMV
|
||||
// ClassName: QGSP_BERT_EMV
|
||||
//
|
||||
// Author: 2006 G.Folger
|
||||
// Author: 2007 G.Folger
|
||||
// Copied from QGSP_BERT (H.P.Wellisch)
|
||||
//
|
||||
// Created as copy of HadronPhysicsQGSC.hh
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
#ifndef TQGSP_BERT_EMV_h
|
||||
#define TQGSP_BERT_EMV_h 1
|
||||
|
||||
#ifndef HadronPhysicsQGSC_EMV_h
|
||||
#define HadronPhysicsQGSC_EMV_h 1
|
||||
|
||||
#include "G4VModularPhysicsList.hh"
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "CompileTimeConstraints.hh"
|
||||
|
||||
#include "G4VPhysicsConstructor.hh"
|
||||
#include "G4MiscLHEPBuilder.hh"
|
||||
|
||||
#include "G4PiKBuilder.hh"
|
||||
#include "G4LEPPiKBuilder.hh"
|
||||
#include "G4QGSCPiKBuilder.hh"
|
||||
|
||||
#include "G4ProtonBuilder.hh"
|
||||
#include "G4LEPProtonBuilder.hh"
|
||||
#include "G4QGSCProtonBuilder.hh"
|
||||
|
||||
#include "G4NeutronBuilder.hh"
|
||||
#include "G4LEPNeutronBuilder.hh"
|
||||
#include "G4QGSCNeutronBuilder.hh"
|
||||
|
||||
class HadronPhysicsQGSC_EMV : public G4VPhysicsConstructor
|
||||
template<class T>
|
||||
class TQGSP_BERT_EMV: public T
|
||||
{
|
||||
public:
|
||||
HadronPhysicsQGSC_EMV(const G4String& name ="hadron");
|
||||
virtual ~HadronPhysicsQGSC_EMV();
|
||||
public:
|
||||
TQGSP_BERT_EMV(G4int ver = 1);
|
||||
virtual ~TQGSP_BERT_EMV();
|
||||
|
||||
public:
|
||||
// SetCuts()
|
||||
virtual void SetCuts();
|
||||
|
||||
public:
|
||||
virtual void ConstructParticle();
|
||||
virtual void ConstructProcess();
|
||||
|
||||
private:
|
||||
void CreateModels();
|
||||
G4NeutronBuilder * theNeutrons;
|
||||
G4LEPNeutronBuilder * theLEPNeutron;
|
||||
G4QGSCNeutronBuilder * theQGSCNeutron;
|
||||
|
||||
G4PiKBuilder * thePiK;
|
||||
G4LEPPiKBuilder * theLEPPiK;
|
||||
G4QGSCPiKBuilder * theQGSCPiK;
|
||||
|
||||
G4ProtonBuilder * thePro;
|
||||
G4LEPProtonBuilder * theLEPPro;
|
||||
G4QGSCProtonBuilder * theQGSCPro;
|
||||
|
||||
G4MiscLHEPBuilder * theMiscLHEP;
|
||||
private:
|
||||
enum {ok = CompileTimeConstraints::IsA<T, G4VModularPhysicsList>::ok };
|
||||
};
|
||||
|
||||
#include "QGSP_BERT_EMV.icc"
|
||||
typedef TQGSP_BERT_EMV<G4VModularPhysicsList> QGSP_BERT_EMV;
|
||||
|
||||
// 2002 by J.P. Wellisch
|
||||
|
||||
#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: QGSP_BERT_EMV.icc,v 1.1 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: QGSP_BERT_EMV
|
||||
//
|
||||
// Author: 2007 G.Folger
|
||||
// Copied from QGSP_BERT (H.P.Wellisch)
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#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 "G4DecayPhysics.hh"
|
||||
#include "G4EmStandardPhysics.hh"
|
||||
#include "G4EmExtraPhysics.hh"
|
||||
#include "G4IonPhysics.hh"
|
||||
#include "G4QStoppingPhysics.hh"
|
||||
#include "G4HadronElasticPhysics.hh"
|
||||
#include "G4NeutronTrackingCut.hh"
|
||||
|
||||
#include "G4DataQuestionaire.hh"
|
||||
#include "HadronPhysicsQGSP_BERT.hh"
|
||||
|
||||
template<class T> TQGSP_BERT_EMV<T>::TQGSP_BERT_EMV(G4int ver): T()
|
||||
{
|
||||
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_BERT_EMV 1.0"<<G4endl;
|
||||
G4cout <<G4endl;
|
||||
|
||||
this->defaultCutValue = 0.7*mm;
|
||||
this->SetVerboseLevel(ver);
|
||||
|
||||
// EM Physics
|
||||
this->RegisterPhysics( new G4EmStandardPhysics71("standard EM v71",ver));
|
||||
|
||||
// Synchroton Radiation & GN Physics
|
||||
this->RegisterPhysics( new G4EmExtraPhysics("extra EM"));
|
||||
|
||||
// Decays
|
||||
this->RegisterPhysics( new G4DecayPhysics("decay",ver) );
|
||||
|
||||
// Hadron Elastic scattering
|
||||
this-> RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
|
||||
|
||||
// Hadron Physics
|
||||
G4bool quasiElastic;
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP_BERT("hadron",quasiElastic=true));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping"));
|
||||
|
||||
// Ion Physics
|
||||
this->RegisterPhysics( new G4IonPhysics("ion"));
|
||||
|
||||
// Neutron tracking cut
|
||||
this->RegisterPhysics( new G4NeutronTrackingCut("Neutron tracking cut", ver));
|
||||
|
||||
}
|
||||
|
||||
template<class T> TQGSP_BERT_EMV<T>::~TQGSP_BERT_EMV()
|
||||
{
|
||||
}
|
||||
|
||||
template<class T> void TQGSP_BERT_EMV<T>::SetCuts()
|
||||
{
|
||||
if (this->verboseLevel >1){
|
||||
G4cout << "QGSP_BERT_EMV::SetCuts:";
|
||||
}
|
||||
// " G4VUserPhysicsList::SetCutsWithDefault" method sets
|
||||
// the default cut value for all particle types
|
||||
|
||||
this->SetCutsWithDefault();
|
||||
|
||||
// if (this->verboseLevel >0)
|
||||
// G4VUserPhysicsList::DumpCutValuesTable();
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 2002 by J.P. Wellisch
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: QGSP_BERT_HP.icc,v 1.2 2006/11/24 17:10:24 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: QGSP_BERT_HP.icc,v 1.3 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -37,6 +37,7 @@
|
||||
// ordering of registrations
|
||||
// 08.06.2006 V.Ivanchenko: migration to CHIPS stopping
|
||||
// 15.06.2006 G.Folger: Migrate to HadronElasticPhysics using improved elastic
|
||||
// 26.04.2007 G.Folger: Enable quasielastic for QGS string model
|
||||
//
|
||||
|
||||
#include "globals.hh"
|
||||
@@ -66,7 +67,7 @@ template<class T> TQGSP_BERT_HP<T>::TQGSP_BERT_HP(G4int ver): T()
|
||||
{
|
||||
|
||||
G4DataQuestionaire it(photon, neutron);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_BERT_HP 2.2"<<G4endl;
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_BERT_HP 2.3"<<G4endl;
|
||||
G4cout <<G4endl<<G4endl;
|
||||
|
||||
this->defaultCutValue = 0.7*mm;
|
||||
@@ -85,7 +86,8 @@ template<class T> TQGSP_BERT_HP<T>::TQGSP_BERT_HP(G4int ver): T()
|
||||
this-> RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,true));
|
||||
|
||||
// Hadron Physics
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP_BERT_HP("hadron"));
|
||||
G4bool quasiElastic;
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP_BERT_HP("hadron",quasiElastic=true));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping"));
|
||||
|
||||
+29
-47
@@ -23,66 +23,48 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: HadronPhysicsQGSP_EMX.hh,v 1.1 2006/10/31 11:35:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: QGSP_BERT_NQE.hh,v 1.1 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: HadronPhysiosQGSP_EMX
|
||||
// ClassName: QGSP_BERT_NQE
|
||||
//
|
||||
// Author: 2005 G.Folger
|
||||
// Author: 2007 G.Folger
|
||||
// created from QGSP_BERT
|
||||
//
|
||||
// Modified:
|
||||
// 21.06.2006 V.Ivanchenko: copied from HadronPhysiosQGSP_EMV
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
#ifndef TQGSP_BERT_NQE_h
|
||||
#define TQGSP_BERT_NQE_h 1
|
||||
|
||||
#ifndef HadronPhysicsQGSP_EMX_h
|
||||
#define HadronPhysicsQGSP_EMX_h 1
|
||||
|
||||
#include "G4VModularPhysicsList.hh"
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "CompileTimeConstraints.hh"
|
||||
|
||||
#include "G4VPhysicsConstructor.hh"
|
||||
#include "G4MiscLHEPBuilder.hh"
|
||||
|
||||
#include "G4PiKBuilder.hh"
|
||||
#include "G4LEPPiKBuilder.hh"
|
||||
#include "G4QGSPPiKBuilder.hh"
|
||||
|
||||
#include "G4ProtonBuilder.hh"
|
||||
#include "G4LEPProtonBuilder.hh"
|
||||
#include "G4QGSPProtonBuilder.hh"
|
||||
|
||||
#include "G4NeutronBuilder.hh"
|
||||
#include "G4LEPNeutronBuilder.hh"
|
||||
#include "G4QGSPNeutronBuilder.hh"
|
||||
|
||||
class HadronPhysicsQGSP_EMX : public G4VPhysicsConstructor
|
||||
template<class T>
|
||||
class TQGSP_BERT_NQE: public T
|
||||
{
|
||||
public:
|
||||
HadronPhysicsQGSP_EMX(const G4String& name ="hadron");
|
||||
virtual ~HadronPhysicsQGSP_EMX();
|
||||
public:
|
||||
TQGSP_BERT_NQE(G4int ver = 1);
|
||||
virtual ~TQGSP_BERT_NQE();
|
||||
|
||||
public:
|
||||
// SetCuts()
|
||||
virtual void SetCuts();
|
||||
|
||||
public:
|
||||
virtual void ConstructParticle();
|
||||
virtual void ConstructProcess();
|
||||
|
||||
private:
|
||||
void CreateModels();
|
||||
G4NeutronBuilder * theNeutrons;
|
||||
G4LEPNeutronBuilder * theLEPNeutron;
|
||||
G4QGSPNeutronBuilder * theQGSPNeutron;
|
||||
|
||||
G4PiKBuilder * thePiK;
|
||||
G4LEPPiKBuilder * theLEPPiK;
|
||||
G4QGSPPiKBuilder * theQGSPPiK;
|
||||
|
||||
G4ProtonBuilder * thePro;
|
||||
G4LEPProtonBuilder * theLEPPro;
|
||||
G4QGSPProtonBuilder * theQGSPPro;
|
||||
|
||||
G4MiscLHEPBuilder * theMiscLHEP;
|
||||
private:
|
||||
enum {ok = CompileTimeConstraints::IsA<T, G4VModularPhysicsList>::ok };
|
||||
};
|
||||
|
||||
#include "QGSP_BERT_NQE.icc"
|
||||
typedef TQGSP_BERT_NQE<G4VModularPhysicsList> QGSP_BERT_NQE;
|
||||
|
||||
// 2002 by J.P. Wellisch
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: QGSP_BERT_NQE.icc,v 1.1 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: QGSP_BERT_NQE
|
||||
//
|
||||
// Author: 2007 G.Folger
|
||||
// created from QGSP_BERT
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#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 "G4DecayPhysics.hh"
|
||||
#include "G4EmStandardPhysics.hh"
|
||||
#include "G4EmExtraPhysics.hh"
|
||||
#include "G4IonPhysics.hh"
|
||||
#include "G4QStoppingPhysics.hh"
|
||||
#include "G4HadronElasticPhysics.hh"
|
||||
#include "G4NeutronTrackingCut.hh"
|
||||
|
||||
#include "G4DataQuestionaire.hh"
|
||||
#include "HadronPhysicsQGSP_BERT.hh"
|
||||
|
||||
template<class T> TQGSP_BERT_NQE<T>::TQGSP_BERT_NQE(G4int ver): T()
|
||||
{
|
||||
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_BERT_NQE 1.0"<<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 Elastic scattering
|
||||
this-> RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
|
||||
|
||||
// Hadron Physics
|
||||
G4bool quasiElastic;
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP_BERT("hadron",quasiElastic=false));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping"));
|
||||
|
||||
// Ion Physics
|
||||
this->RegisterPhysics( new G4IonPhysics("ion"));
|
||||
|
||||
// Neutron tracking cut
|
||||
this->RegisterPhysics( new G4NeutronTrackingCut("Neutron tracking cut", ver));
|
||||
|
||||
}
|
||||
|
||||
template<class T> TQGSP_BERT_NQE<T>::~TQGSP_BERT_NQE()
|
||||
{
|
||||
}
|
||||
|
||||
template<class T> void TQGSP_BERT_NQE<T>::SetCuts()
|
||||
{
|
||||
if (this->verboseLevel >1){
|
||||
G4cout << "QGSP_BERT_NQE::SetCuts:";
|
||||
}
|
||||
// " G4VUserPhysicsList::SetCutsWithDefault" method sets
|
||||
// the default cut value for all particle types
|
||||
|
||||
this->SetCutsWithDefault();
|
||||
|
||||
// if (this->verboseLevel >0)
|
||||
// G4VUserPhysicsList::DumpCutValuesTable();
|
||||
}
|
||||
|
||||
@@ -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: QGSP_BERT_TRV.hh,v 1.1 2007/05/07 14:34:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: QGSP_BERT_TRV
|
||||
//
|
||||
// Author: 2007 G.Folger
|
||||
// Created from QGSP_BERT
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
#ifndef TQGSP_BERT_TRV_h
|
||||
#define TQGSP_BERT_TRV_h 1
|
||||
|
||||
#include "G4VModularPhysicsList.hh"
|
||||
#include "globals.hh"
|
||||
#include "CompileTimeConstraints.hh"
|
||||
|
||||
template<class T>
|
||||
class TQGSP_BERT_TRV: public T
|
||||
{
|
||||
public:
|
||||
TQGSP_BERT_TRV(G4int ver = 1);
|
||||
virtual ~TQGSP_BERT_TRV();
|
||||
|
||||
public:
|
||||
// SetCuts()
|
||||
virtual void SetCuts();
|
||||
|
||||
private:
|
||||
enum {ok = CompileTimeConstraints::IsA<T, G4VModularPhysicsList>::ok };
|
||||
};
|
||||
|
||||
#include "QGSP_BERT_TRV.icc"
|
||||
typedef TQGSP_BERT_TRV<G4VModularPhysicsList> QGSP_BERT_TRV;
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,118 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: QGSP_BERT_TRV.icc,v 1.1 2007/05/07 14:34:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: QGSP_BERT_TRV
|
||||
//
|
||||
// Author: 2007 G.Folger
|
||||
// Created from QGSP_BERT
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#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 "G4DecayPhysics.hh"
|
||||
#include "G4EmStandardPhysics.hh"
|
||||
#include "G4EmExtraPhysics.hh"
|
||||
#include "G4IonPhysics.hh"
|
||||
#include "G4QStoppingPhysics.hh"
|
||||
#include "G4HadronElasticPhysics.hh"
|
||||
#include "G4NeutronTrackingCut.hh"
|
||||
|
||||
#include "G4DataQuestionaire.hh"
|
||||
#include "HadronPhysicsQGSP_BERT_TRV.hh"
|
||||
|
||||
template<class T> TQGSP_BERT_TRV<T>::TQGSP_BERT_TRV(G4int ver): T()
|
||||
{
|
||||
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_BERT_TRV 1.0"<<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 Elastic scattering
|
||||
this-> RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
|
||||
|
||||
// Hadron Physics
|
||||
G4bool quasiElastic;
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP_BERT_TRV("hadron",quasiElastic=true));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping"));
|
||||
|
||||
// Ion Physics
|
||||
this->RegisterPhysics( new G4IonPhysics("ion"));
|
||||
|
||||
// Neutron tracking cut
|
||||
this->RegisterPhysics( new G4NeutronTrackingCut("Neutron tracking cut", ver));
|
||||
|
||||
}
|
||||
|
||||
template<class T> TQGSP_BERT_TRV<T>::~TQGSP_BERT_TRV()
|
||||
{
|
||||
}
|
||||
|
||||
template<class T> void TQGSP_BERT_TRV<T>::SetCuts()
|
||||
{
|
||||
if (this->verboseLevel >1){
|
||||
G4cout << "QGSP_BERT_TRV::SetCuts:";
|
||||
}
|
||||
// " G4VUserPhysicsList::SetCutsWithDefault" method sets
|
||||
// the default cut value for all particle types
|
||||
|
||||
this->SetCutsWithDefault();
|
||||
|
||||
// if (this->verboseLevel >0)
|
||||
// G4VUserPhysicsList::DumpCutValuesTable();
|
||||
}
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: QGSP_BIC.icc,v 1.3 2006/11/24 17:10:24 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: QGSP_BIC.icc,v 1.4 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -40,6 +40,7 @@
|
||||
// 15.06.2006 G.Folger: Migrate to HadronElasticPhysics using improved elastic
|
||||
// 20.06.2006 V.Ivanchenko: add ion Binary Cascade
|
||||
// 20.11.2006 G.Folger: add Tracking Cut for neutrons
|
||||
// 26.04.2007 G.Folger: Enable quasielastic for QGS string model
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -73,7 +74,7 @@ template<class T> TQGSP_BIC<T>::TQGSP_BIC(G4int ver): T()
|
||||
// defaultCutValue = 1.0*mm;
|
||||
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_BIC 3.2"<<G4endl;
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_BIC 3.3"<<G4endl;
|
||||
G4cout <<G4endl;
|
||||
|
||||
this->defaultCutValue = 0.7*mm;
|
||||
@@ -92,7 +93,8 @@ template<class T> TQGSP_BIC<T>::TQGSP_BIC(G4int ver): T()
|
||||
this-> RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
|
||||
|
||||
// Hadron Physics
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP_BIC("hadron"));
|
||||
G4bool quasiElastic;
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP_BIC("hadron",quasiElastic=true));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping"));
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: QGSP_BIC_HP.icc,v 1.1 2006/11/24 16:31:35 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: QGSP_BIC_HP.icc,v 1.3 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -34,6 +34,7 @@
|
||||
//
|
||||
// based on QGSP_BIC
|
||||
// Modified:
|
||||
// 26.04.2007 G.Folger: Enable quasielastic for QGS string model
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -68,7 +69,7 @@ template<class T> TQGSP_BIC_HP<T>::TQGSP_BIC_HP(G4int ver): T()
|
||||
// defaultCutValue = 1.0*mm;
|
||||
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_BIC_HP 1.0"<<G4endl;
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_BIC_HP 1.1"<<G4endl;
|
||||
G4cout <<G4endl;
|
||||
|
||||
this->defaultCutValue = 0.7*mm;
|
||||
@@ -87,10 +88,11 @@ template<class T> TQGSP_BIC_HP<T>::TQGSP_BIC_HP(G4int ver): T()
|
||||
this->RegisterPhysics( new G4DecayPhysics("decay",ver) );
|
||||
|
||||
// Hadron Elastic scattering
|
||||
this-> RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
|
||||
this-> RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,true));
|
||||
|
||||
// Hadron Physics
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP_BIC_HP("hadron"));
|
||||
G4bool quasiElastic;
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP_BIC_HP("hadron",quasiElastic=true));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping"));
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: QGSP_EMV.icc,v 1.3 2006/11/24 17:10:24 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: QGSP_EMV.icc,v 1.4 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -41,6 +41,9 @@
|
||||
// 15.06.2006 G.Folger: Migrate to HadronElasticPhysics using improved elastic
|
||||
// 21.06.2006 V.Ivanchenko: use v71 EM physics
|
||||
// 20.11.2006 G.Folger: add Tracking Cut for neutrons
|
||||
// 24.04.2007 G.Folger:
|
||||
// - use quasielastic in QGS string model.
|
||||
// - use HadronPhysicsQGSP, not HadronPhysicsQGSP_EMV, code is equivalent
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -67,12 +70,12 @@
|
||||
#include "G4NeutronTrackingCut.hh"
|
||||
|
||||
#include "G4DataQuestionaire.hh"
|
||||
#include "HadronPhysicsQGSP_EMV.hh"
|
||||
#include "HadronPhysicsQGSP.hh"
|
||||
|
||||
template<class T> TQGSP_EMV<T>::TQGSP_EMV(G4int ver): T()
|
||||
{
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_EMV 3.2"<<G4endl;
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_EMV 3.3"<<G4endl;
|
||||
G4cout <<G4endl;
|
||||
this->defaultCutValue = 0.7*mm;
|
||||
this->SetVerboseLevel(ver);
|
||||
@@ -90,7 +93,8 @@ template<class T> TQGSP_EMV<T>::TQGSP_EMV(G4int ver): T()
|
||||
this-> RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
|
||||
|
||||
// Hadron Physics
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP_EMV("hadron"));
|
||||
G4bool quasiElastic;
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP("hadron",quasiElastic=true));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping"));
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: QGSP_EMV_NQE.hh,v 1.1 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: QGSP_EMV_NQE
|
||||
//
|
||||
// Author: 2007 G.Folger
|
||||
// created from QGSP_EMV
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#ifndef TQGSP_EMV_NQE_h
|
||||
#define TQGSP_EMV_NQE_h 1
|
||||
|
||||
#include "G4VModularPhysicsList.hh"
|
||||
#include "globals.hh"
|
||||
#include "CompileTimeConstraints.hh"
|
||||
|
||||
template<class T>
|
||||
class TQGSP_EMV_NQE: public T
|
||||
{
|
||||
public:
|
||||
TQGSP_EMV_NQE(G4int ver = 1);
|
||||
virtual ~TQGSP_EMV_NQE();
|
||||
|
||||
public:
|
||||
// SetCuts()
|
||||
virtual void SetCuts();
|
||||
|
||||
private:
|
||||
enum {ok = CompileTimeConstraints::IsA<T, G4VModularPhysicsList>::ok };
|
||||
};
|
||||
#include "QGSP_EMV_NQE.icc"
|
||||
typedef TQGSP_EMV_NQE<G4VModularPhysicsList> QGSP_EMV_NQE;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,117 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: QGSP_EMV_NQE.icc,v 1.1 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: QGSP_EMV_NQE
|
||||
//
|
||||
// Author: 2007 G.Folger
|
||||
// created from QGSP_EMV
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#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 "G4DecayPhysics.hh"
|
||||
#include "G4EmStandardPhysics71.hh"
|
||||
#include "G4EmExtraPhysics.hh"
|
||||
#include "G4IonPhysics.hh"
|
||||
#include "G4QStoppingPhysics.hh"
|
||||
#include "G4HadronElasticPhysics.hh"
|
||||
#include "G4NeutronTrackingCut.hh"
|
||||
|
||||
#include "G4DataQuestionaire.hh"
|
||||
#include "HadronPhysicsQGSP.hh"
|
||||
|
||||
template<class T> TQGSP_EMV_NQE<T>::TQGSP_EMV_NQE(G4int ver): T()
|
||||
{
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_EMV_NQE 1.0"<<G4endl;
|
||||
G4cout <<G4endl;
|
||||
this->defaultCutValue = 0.7*mm;
|
||||
this->SetVerboseLevel(ver);
|
||||
|
||||
// EM Physics
|
||||
this->RegisterPhysics( new G4EmStandardPhysics71("standard EM v71",ver));
|
||||
|
||||
// Synchroton Radiation & GN Physics
|
||||
this->RegisterPhysics( new G4EmExtraPhysics("extra EM"));
|
||||
|
||||
// General Physics - i.e. decay
|
||||
this->RegisterPhysics( new G4DecayPhysics("decay",ver) );
|
||||
|
||||
// Hadron Elastic scattering
|
||||
this-> RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
|
||||
|
||||
// Hadron Physics
|
||||
G4bool quasiElastic;
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP("hadron",quasiElastic=false));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping"));
|
||||
|
||||
// Ion Physics
|
||||
this->RegisterPhysics( new G4IonPhysics("ion"));
|
||||
|
||||
// Neutron tracking cut
|
||||
this->RegisterPhysics( new G4NeutronTrackingCut("Neutron tracking cut", ver));
|
||||
|
||||
}
|
||||
|
||||
template<class T> TQGSP_EMV_NQE<T>::~TQGSP_EMV_NQE()
|
||||
{
|
||||
}
|
||||
|
||||
template<class T> void TQGSP_EMV_NQE<T>::SetCuts()
|
||||
{
|
||||
if (this->verboseLevel >1){
|
||||
G4cout << "QGSP_EMV_NQE::SetCuts:";
|
||||
}
|
||||
// " G4VUserPhysicsList::SetCutsWithDefault" method sets
|
||||
// the default cut value for all particle types
|
||||
|
||||
this->SetCutsWithDefault();
|
||||
|
||||
// if (this->verboseLevel >0)
|
||||
// G4VUserPhysicsList::DumpCutValuesTable();
|
||||
|
||||
}
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: QGSP_EMX.icc,v 1.3 2006/11/24 17:10:24 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: QGSP_EMX.icc,v 1.4 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -35,6 +35,9 @@
|
||||
// Modified:
|
||||
// 20.11.2006 G.Folger: add Tracking Cut for neutrons
|
||||
// 21.06.2006 V.Ivanchenko crerate from QGSP_EMV
|
||||
// 26.04.2007 G.Folger
|
||||
// - use HadronPhysicsQGSP, not HadronPhysicsQGSP_EMX
|
||||
// - Enable quasielastic for QGS string model
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -61,12 +64,12 @@
|
||||
#include "G4NeutronTrackingCut.hh"
|
||||
|
||||
#include "G4DataQuestionaire.hh"
|
||||
#include "HadronPhysicsQGSP_EMX.hh"
|
||||
#include "HadronPhysicsQGSP.hh"
|
||||
|
||||
template<class T> TQGSP_EMX<T>::TQGSP_EMX(G4int ver): T()
|
||||
{
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_EMX 3.2"<<G4endl;
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_EMX 3.3"<<G4endl;
|
||||
G4cout <<G4endl;
|
||||
this->defaultCutValue = 7.*mm;
|
||||
this->SetVerboseLevel(ver);
|
||||
@@ -84,7 +87,8 @@ template<class T> TQGSP_EMX<T>::TQGSP_EMX(G4int ver): T()
|
||||
this-> RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
|
||||
|
||||
// Hadron Physics
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP_EMX("hadron"));
|
||||
G4bool quasiElastic;
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP("hadron",quasiElastic=true));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping"));
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: QGSP_HP.icc,v 1.2 2006/11/21 07:33:04 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: QGSP_HP.icc,v 1.3 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -38,6 +38,7 @@
|
||||
// 02.12.2005 V.Ivanchenko: rename components
|
||||
// 08.06.2006 V.Ivanchenko: migration to CHIPS stopping
|
||||
// 15.06.2006 G.Folger: Migrate to HadronElasticPhysics using improved elastic
|
||||
// 26.04.2007 G.Folger: Enable quasielastic for QGS string model
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -70,7 +71,7 @@
|
||||
template<class T> TQGSP_HP<T>::TQGSP_HP(G4int ver): T()
|
||||
{
|
||||
G4DataQuestionaire it(photon, neutron);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_HP 3.2"<<G4endl;
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_HP 3.3"<<G4endl;
|
||||
G4cout <<G4endl;
|
||||
// default cut value (1.0mm)
|
||||
// defaultCutValue = 1.0*mm;
|
||||
@@ -93,7 +94,8 @@ template<class T> TQGSP_HP<T>::TQGSP_HP(G4int ver): T()
|
||||
this-> RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,true));
|
||||
|
||||
// Hadron Physics
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP_HP("hadron"));
|
||||
G4bool quasiElastic;
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP_HP("hadron",quasiElastic=true));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping"));
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: QGSP_NQE.hh,v 1.1 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: QGSP_NQE
|
||||
//
|
||||
// Author: 2007 G.Folger
|
||||
// created from QGSP
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
#ifndef TQGSP_NQE_h
|
||||
#define TQGSP_NQE_h 1
|
||||
|
||||
#include "G4VModularPhysicsList.hh"
|
||||
#include "globals.hh"
|
||||
#include "CompileTimeConstraints.hh"
|
||||
|
||||
template<class T>
|
||||
class TQGSP_NQE: public T
|
||||
{
|
||||
public:
|
||||
TQGSP_NQE(G4int ver = 1);
|
||||
virtual ~TQGSP_NQE();
|
||||
|
||||
public:
|
||||
// SetCuts()
|
||||
virtual void SetCuts();
|
||||
|
||||
private:
|
||||
enum {ok = CompileTimeConstraints::IsA<T, G4VModularPhysicsList>::ok };
|
||||
|
||||
};
|
||||
#include "QGSP_NQE.icc"
|
||||
typedef TQGSP_NQE<G4VModularPhysicsList> QGSP_NQE;
|
||||
|
||||
// 2002 by J.P. Wellisch
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: QGSP_NQE.icc,v 1.1 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName:
|
||||
//
|
||||
// Author: 2007 G.Folger
|
||||
// created from QGSP.icc
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#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 "G4DecayPhysics.hh"
|
||||
#include "G4EmStandardPhysics.hh"
|
||||
#include "G4EmExtraPhysics.hh"
|
||||
#include "G4IonPhysics.hh"
|
||||
#include "G4QStoppingPhysics.hh"
|
||||
#include "G4HadronElasticPhysics.hh"
|
||||
#include "G4NeutronTrackingCut.hh"
|
||||
|
||||
#include "G4DataQuestionaire.hh"
|
||||
#include "HadronPhysicsQGSP.hh"
|
||||
|
||||
template<class T> TQGSP_NQE<T>::TQGSP_NQE(G4int ver): T()
|
||||
{
|
||||
// default cut value (1.0mm)
|
||||
// defaultCutValue = 1.0*mm;
|
||||
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_NQE 1.0"<<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 Elastic scattering
|
||||
this-> RegisterPhysics( new G4HadronElasticPhysics("elastic",ver,false));
|
||||
|
||||
// Hadron Physics
|
||||
G4bool quasiElastic;
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP("hadron",quasiElastic=false));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping"));
|
||||
|
||||
// Ion Physics
|
||||
this->RegisterPhysics( new G4IonPhysics("ion"));
|
||||
|
||||
// Neutron tracking cut
|
||||
this->RegisterPhysics( new G4NeutronTrackingCut("Neutron tracking cut", ver));
|
||||
|
||||
}
|
||||
|
||||
template<class T> TQGSP_NQE<T>::~TQGSP_NQE()
|
||||
{
|
||||
}
|
||||
|
||||
template<class T> void TQGSP_NQE<T>::SetCuts()
|
||||
{
|
||||
if (this->verboseLevel >1){
|
||||
G4cout << "QGSP_NQE::SetCuts:";
|
||||
}
|
||||
// " G4VUserPhysicsList::SetCutsWithDefault" method sets
|
||||
// the default cut value for all particle types
|
||||
|
||||
this->SetCutsWithDefault();
|
||||
|
||||
// if (this->verboseLevel > 0)
|
||||
// G4VUserPhysicsList::DumpCutValuesTable();
|
||||
}
|
||||
@@ -23,17 +23,19 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: QGSP_QEL.icc,v 1.1 2006/11/28 15:41:23 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: QGSP_QEL.icc,v 1.2 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: QGSP_QEL
|
||||
// using chips version of hadron Elastic scattering
|
||||
//
|
||||
// Author: 2006 G.Folger
|
||||
//
|
||||
// Created from QGSP
|
||||
// Modified:
|
||||
// 26.04.2007 G.Folger: Enable quasielastic for QGS string model
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -68,7 +70,7 @@ template<class T> TQGSP_QEL<T>::TQGSP_QEL(G4int ver): T()
|
||||
// defaultCutValue = 1.0*mm;
|
||||
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_QEL 1.0"<<G4endl;
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: QGSP_QEL 1.1"<<G4endl;
|
||||
G4cout <<G4endl;
|
||||
|
||||
this->defaultCutValue = 0.7*mm;
|
||||
@@ -87,7 +89,8 @@ template<class T> TQGSP_QEL<T>::TQGSP_QEL(G4int ver): T()
|
||||
this-> RegisterPhysics( new G4HadronQElasticPhysics("elastic",ver));
|
||||
|
||||
// Hadron Physics
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP("hadron"));
|
||||
G4bool quasiElastic;
|
||||
this->RegisterPhysics( new HadronPhysicsQGSP("hadron",quasiElastic=true));
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4QStoppingPhysics("stopping"));
|
||||
|
||||
Reference in New Issue
Block a user