Import Geant4 9.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:37:50 +02:00
parent a8e9364cea
commit 96c8bcd0af
6923 changed files with 198390 additions and 41849 deletions
@@ -0,0 +1,77 @@
//
// ********************************************************************
// * 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: G4RPGAntiKZeroInelastic.hh,v 1.1 2007/07/18 20:51:36 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 18 June 2007
//
// Class Description:
// Final state production model for anti-K0 inelastic scattering
// using the re-parameterized Gheisha model. This is a utility class
// only and should not be used in a physics list.
#ifndef G4RPGAntiKZeroInelastic_h
#define G4RPGAntiKZeroInelastic_h 1
#include "G4RPGInelastic.hh"
class G4RPGAntiKZeroInelastic : public G4RPGInelastic
{
public:
G4RPGAntiKZeroInelastic() : G4RPGInelastic("G4RPGAntiKZeroInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 25.*GeV );
}
~G4RPGAntiKZeroInelastic()
{ }
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack,
G4Nucleus &targetNucleus );
private:
void Cascade( // derived from CASK0B
G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
G4int &vecLen,
const G4HadProjectile *originalIncident,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool &quasiElastic );
};
#endif
@@ -0,0 +1,73 @@
//
// ********************************************************************
// * 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: G4RPGAntiLambdaInelastic.hh,v 1.1 2007/07/18 20:51:36 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 18 June 2007
//
// Class Description:
// Final state production model for anti-lambda inelastic scattering
// using the re-parameterized Gheisha model.
#ifndef G4RPGAntiLambdaInelastic_h
#define G4RPGAntiLambdaInelastic_h 1
#include "G4RPGInelastic.hh"
class G4RPGAntiLambdaInelastic : public G4RPGInelastic
{
public:
G4RPGAntiLambdaInelastic() : G4RPGInelastic("G4RPGAntiLambdaInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 25.*GeV );
}
~G4RPGAntiLambdaInelastic() { }
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack,
G4Nucleus &targetNucleus );
private:
void Cascade( // derived from CASAL0
G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
G4int &vecLen,
const G4HadProjectile *originalIncident,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool &quasiElastic );
};
#endif
@@ -0,0 +1,74 @@
//
// ********************************************************************
// * 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: G4RPGAntiNeutronInelastic.hh,v 1.1 2007/07/18 20:51:36 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 18 June 2007
//
// Class Description:
// Final state production model for anti-neuton inelastic scattering
// using the re-parameterized Gheisha model.
#ifndef G4RPGAntiNeutronInelastic_h
#define G4RPGAntiNeutronInelastic_h 1
#include "G4RPGInelastic.hh"
class G4RPGAntiNeutronInelastic : public G4RPGInelastic
{
public:
G4RPGAntiNeutronInelastic() : G4RPGInelastic("G4RPGAntiNeutronInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 25.*GeV );
}
~G4RPGAntiNeutronInelastic()
{ }
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack,
G4Nucleus &targetNucleus );
private:
void Cascade( // derived from CASNB
G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
G4int &vecLen,
const G4HadProjectile *originalIncident,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool &quasiElastic );
};
#endif
@@ -0,0 +1,74 @@
//
// ********************************************************************
// * 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: G4RPGAntiOmegaMinusInelastic.hh,v 1.1 2007/07/18 20:51:36 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 18 June 2007
//
// Class Description:
// Final state production model for anti-omega- inelastic scattering
// using the re-parameterized Gheisha model.
#ifndef G4RPGAntiOmegaMinusInelastic_h
#define G4RPGAntiOmegaMinusInelastic_h 1
#include "G4RPGInelastic.hh"
class G4RPGAntiOmegaMinusInelastic : public G4RPGInelastic
{
public:
G4RPGAntiOmegaMinusInelastic() : G4RPGInelastic("G4RPGAntiOmegaMinusInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 25.*GeV );
}
~G4RPGAntiOmegaMinusInelastic() { }
G4HadFinalState* ApplyYourself(const G4HadProjectile &aTrack,
G4Nucleus &targetNucleus );
private:
void Cascade( // derived from CASOM
G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
G4int &vecLen,
const G4HadProjectile *originalIncident,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool &quasiElastic );
};
#endif
@@ -0,0 +1,73 @@
//
// ********************************************************************
// * 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: G4RPGAntiProtonInelastic.hh,v 1.1 2007/07/18 20:51:36 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 18 June 2007
//
// Class Description:
// Final state production model for anti-proton inelastic scattering
// using the re-parameterized Gheisha model.
#ifndef G4RPGAntiProtonInelastic_h
#define G4RPGAntiProtonInelastic_h 1
#include "G4RPGInelastic.hh"
class G4RPGAntiProtonInelastic : public G4RPGInelastic
{
public:
G4RPGAntiProtonInelastic():G4RPGInelastic("G4RPGAntiProtonInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 25.*GeV );
}
~G4RPGAntiProtonInelastic() { }
G4HadFinalState* ApplyYourself(const G4HadProjectile &aTrack,
G4Nucleus &targetNucleus );
private:
void Cascade( // derived from CASPB
G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
G4int &vecLen,
const G4HadProjectile *originalIncident,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool &quasiElastic );
};
#endif
@@ -0,0 +1,75 @@
//
// ********************************************************************
// * 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: G4RPGAntiSigmaMinusInelastic.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 18 June 2007
//
// Class Description:
// Final state production model for anti-sigma- inelastic scattering
// using the re-parameterized Gheisha model.
#ifndef G4RPGAntiSigmaMinusInelastic_h
#define G4RPGAntiSigmaMinusInelastic_h 1
#include "G4RPGInelastic.hh"
class G4RPGAntiSigmaMinusInelastic : public G4RPGInelastic
{
public:
G4RPGAntiSigmaMinusInelastic() : G4RPGInelastic("G4RPGAntiSigmaMinusInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 25.*GeV );
}
~G4RPGAntiSigmaMinusInelastic() { }
G4HadFinalState* ApplyYourself(const G4HadProjectile &aTrack,
G4Nucleus &targetNucleus );
private:
void Cascade( // derived from CASASM
G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
G4int &vecLen,
const G4HadProjectile *originalIncident,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool &quasiElastic );
};
#endif
@@ -0,0 +1,73 @@
//
// ********************************************************************
// * 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: G4RPGAntiSigmaPlusInelastic.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 18 June 2007
//
// Class Description:
// Final state production model for anti-sigma+ inelastic scattering
// using the re-parameterized Gheisha model.
#ifndef G4RPGAntiSigmaPlusInelastic_h
#define G4RPGAntiSigmaPlusInelastic_h 1
#include "G4RPGInelastic.hh"
class G4RPGAntiSigmaPlusInelastic : public G4RPGInelastic
{
public:
G4RPGAntiSigmaPlusInelastic() : G4RPGInelastic("G4RPGAntiSigmaPlusInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 25.*GeV );
}
~G4RPGAntiSigmaPlusInelastic() { }
G4HadFinalState* ApplyYourself(const G4HadProjectile &aTrack,
G4Nucleus &targetNucleus );
private:
void Cascade( // derived from CASASP
G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
G4int& vecLen,
const G4HadProjectile *originalIncident,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool &quasiElastic );
};
#endif
@@ -0,0 +1,74 @@
//
// ********************************************************************
// * 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: G4RPGAntiXiMinusInelastic.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 18 June 2007
//
// Class Description:
// Final state production model for anti-xi- inelastic scattering
// using the re-parameterized Gheisha model.
#ifndef G4RPGAntiXiMinusInelastic_h
#define G4RPGAntiXiMinusInelastic_h 1
#include "G4RPGInelastic.hh"
class G4RPGAntiXiMinusInelastic : public G4RPGInelastic
{
public:
G4RPGAntiXiMinusInelastic() : G4RPGInelastic("G4RPGAntiXiMinusInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 25.*GeV );
}
~G4RPGAntiXiMinusInelastic()
{ }
G4HadFinalState* ApplyYourself(const G4HadProjectile &aTrack,
G4Nucleus &targetNucleus );
private:
void Cascade( // derived from CASAL0
G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
G4int &vecLen,
const G4HadProjectile *originalIncident,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool &quasiElastic );
};
#endif
@@ -0,0 +1,75 @@
//
// ********************************************************************
// * 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: G4RPGAntiXiZeroInelastic.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
//
// Author: D. H. Wright
// Date: 18 June 2007
//
// Class Description:
// Final state production model for anti-xi0 inelastic scattering
// using the re-parameterized Gheisha model.
#ifndef G4RPGAntiXiZeroInelastic_h
#define G4RPGAntiXiZeroInelastic_h 1
#include "G4RPGInelastic.hh"
class G4RPGAntiXiZeroInelastic : public G4RPGInelastic
{
public:
G4RPGAntiXiZeroInelastic() : G4RPGInelastic("G4RPGAntiXiZeroInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 25.*GeV );
}
~G4RPGAntiXiZeroInelastic() { }
G4HadFinalState* ApplyYourself(const G4HadProjectile &aTrack,
G4Nucleus &targetNucleus );
private:
void Cascade( // derived from CASAL0
G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
G4int &vecLen,
const G4HadProjectile *originalIncident,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool &quasiElastic );
};
#endif
@@ -0,0 +1,79 @@
//
// ********************************************************************
// * 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: G4RPGFragmentation.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D.H. Wright
// Date: 29 May 2007
//
#ifndef G4RPGFragmentation_h
#define G4RPGFragmentation_h 1
// Class Description:
//
// Calculation of the hadron fragmentation stage of the hadron-nucleus
// reaction. The Gheisha method of parameterized fragmentation is used.
#include "G4RPGReaction.hh"
#include "G4DynamicParticle.hh"
#include "G4ReactionProduct.hh"
#include "G4Nucleus.hh"
#include "G4FastVector.hh"
#include "G4HadProjectile.hh"
class G4RPGFragmentation : public G4RPGReaction
{
public: // with description
G4RPGFragmentation();
void FragmentationIntegral(G4double /*pt*/, G4double /*et*/,
G4double /*parMass*/, G4double /*secMass*/);
G4bool ReactionStage(const G4HadProjectile* /*originalIncident*/,
G4ReactionProduct& /*modifiedOriginal*/,
G4bool& /*incidentHasChanged*/,
const G4DynamicParticle* /*originalTarget*/,
G4ReactionProduct& /*targetParticle*/,
G4bool& /*targetHasChanged*/,
const G4Nucleus& /*targetNucleus*/,
G4ReactionProduct& /*currentParticle*/,
G4FastVector<G4ReactionProduct,256>& /*vec*/,
G4int& /*vecLen*/,
G4bool /*leadFlag*/,
G4ReactionProduct& /*leadingStrangeParticle*/);
private:
G4double dndl[20];
};
#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: G4RPGInelastic.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 26 May 2007
//
#ifndef G4RPGInelastic_h
#define G4RPGInelastic_h 1
// Class Description:
//
// Base class for re-parameterized Gheisha-style models.
#include "globals.hh"
#include "G4FastVector.hh"
#include "G4HadronicInteraction.hh"
#include "G4ReactionProduct.hh"
#include "Randomize.hh"
#include "G4RPGFragmentation.hh"
#include "G4RPGTwoCluster.hh"
#include "G4RPGTwoBody.hh"
#include "G4RPGStrangeProduction.hh"
#include "G4RPGPionSuppression.hh"
class G4RPGInelastic : public G4HadronicInteraction
{
public: // with description
G4RPGInelastic(const G4String& modelName = "RPGInelastic")
: G4HadronicInteraction(modelName)
{ cache = 0.0;}
virtual ~G4RPGInelastic()
{ }
protected: // with description
G4double Pmltpc(G4int np, G4int nm, G4int nz, G4int n,
G4double b, G4double c);
G4int Factorial(G4int n);
G4bool MarkLeadingStrangeParticle(const G4ReactionProduct& currentParticle,
const G4ReactionProduct& targetParticle,
G4ReactionProduct& leadParticle);
void SetUpPions(const G4int np, const G4int nm, const G4int nz,
G4FastVector<G4ReactionProduct,256> &vec,
G4int &vecLen);
void Rotate(G4FastVector<G4ReactionProduct,256> &vec, G4int &vecLen);
void GetNormalizationConstant(const G4double availableEnergy,
G4double &n,
G4double &anpn);
void CalculateMomenta(G4FastVector<G4ReactionProduct,256> &vec,
G4int &vecLen,
const G4HadProjectile *originalIncident,
const G4DynamicParticle *originalTarget,
G4ReactionProduct &modifiedOriginal,
G4Nucleus &targetNucleus,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool quasiElastic);
void SetUpChange(G4FastVector<G4ReactionProduct,256> &vec,
G4int &vecLen,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged);
G4RPGFragmentation fragmentation;
G4RPGTwoCluster twoCluster;
G4RPGPionSuppression pionSuppression;
G4RPGStrangeProduction strangeProduction;
G4RPGTwoBody twoBody;
private:
G4double cache;
G4ThreeVector what;
};
#endif
@@ -0,0 +1,78 @@
//
// ********************************************************************
// * 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: G4RPGKLongInelastic.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 18 June 2007
//
// Class Description:
// Final state production model for K0L inelastic scattering
// using the re-parameterized Gheisha model.
#ifndef G4RPGKLongInelastic_h
#define G4RPGKLongInelastic_h 1
#include "G4RPGInelastic.hh"
#include "G4RPGKZeroInelastic.hh"
#include "G4RPGAntiKZeroInelastic.hh"
#include "Randomize.hh"
class G4RPGKLongInelastic : public G4RPGInelastic
{
public:
G4RPGKLongInelastic() : G4RPGInelastic("G4RPGKLongInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 25.*GeV );
}
virtual ~G4RPGKLongInelastic(){ }
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus )
{
if(G4UniformRand() < 0.50)
{
return theKZeroInelastic.ApplyYourself(aTrack, targetNucleus);
}
else
{
return theAntiKZeroInelastic.ApplyYourself(aTrack, targetNucleus);
}
}
G4RPGKZeroInelastic theKZeroInelastic;
G4RPGAntiKZeroInelastic theAntiKZeroInelastic;
};
#endif
@@ -0,0 +1,72 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4RPGKMinusInelastic.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
#ifndef G4RPGKMinusInelastic_h
#define G4RPGKMinusInelastic_h 1
// Class Description:
// Final state production model for K- inelastic scattering
// using the re-parameterized Gheisha model.
#include "G4RPGInelastic.hh"
class G4RPGKMinusInelastic : public G4RPGInelastic
{
public:
G4RPGKMinusInelastic() : G4RPGInelastic("G4RPGKMinusInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 25.*GeV );
}
~G4RPGKMinusInelastic()
{ }
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack,
G4Nucleus &targetNucleus );
private:
void Cascade( // derived from CASKM
G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
G4int &vecLen,
const G4HadProjectile *originalIncident,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool &quasiElastic );
};
#endif
@@ -0,0 +1,74 @@
//
// ********************************************************************
// * 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: G4RPGKPlusInelastic.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 18 June 2007
//
#ifndef G4RPGKPlusInelastic_h
#define G4RPGKPlusInelastic_h 1
// Class Description:
// Final state production model for K+ inelastic scattering
// using the re-parameterized Gheisha model.
#include "G4RPGInelastic.hh"
class G4RPGKPlusInelastic : public G4RPGInelastic
{
public:
G4RPGKPlusInelastic() : G4RPGInelastic("G4RPGKPlusInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 25.*GeV );
}
~G4RPGKPlusInelastic()
{ }
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack,
G4Nucleus &targetNucleus );
private:
void Cascade( // derived from CASKP
G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
G4int &vecLen,
const G4HadProjectile *originalIncident,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool &quasiElastic );
};
#endif
@@ -0,0 +1,76 @@
//
// ********************************************************************
// * 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: G4RPGKShortInelastic.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 18 June 2007
//
// Class Description:
// Final state production model for K0L inelastic scattering
// using the re-parameterized Gheisha model.
#ifndef G4RPGKShortInelastic_h
#define G4RPGKShortInelastic_h 1
#include "G4RPGInelastic.hh"
#include "G4RPGKZeroInelastic.hh"
#include "G4RPGAntiKZeroInelastic.hh"
#include "Randomize.hh"
class G4RPGKShortInelastic : public G4RPGInelastic
{
public:
G4RPGKShortInelastic() : G4RPGInelastic("G4RPGKShortInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 25.*GeV );
}
virtual ~G4RPGKShortInelastic(){ }
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus )
{
if(G4UniformRand() < 0.50)
{
return theKZeroInelastic.ApplyYourself(aTrack, targetNucleus);
}
else
{
return theAntiKZeroInelastic.ApplyYourself(aTrack, targetNucleus);
}
}
private:
G4RPGKZeroInelastic theKZeroInelastic;
G4RPGAntiKZeroInelastic theAntiKZeroInelastic;
};
#endif
@@ -0,0 +1,75 @@
//
// ********************************************************************
// * 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: G4RPGKZeroInelastic.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 18 June 2007
//
// Class Description:
// Final state production model for K0 inelastic scattering using the
// re-parameterized Gheisha model. This is a utility class only and
// should be used in a physics list.
#ifndef G4RPGKZeroInelastic_h
#define G4RPGKZeroInelastic_h 1
#include "G4RPGInelastic.hh"
class G4RPGKZeroInelastic : public G4RPGInelastic
{
public:
G4RPGKZeroInelastic() : G4RPGInelastic("G4RPGKZeroInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 25.*GeV );
}
~G4RPGKZeroInelastic()
{ }
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack,
G4Nucleus &targetNucleus );
private:
void Cascade( // derived from CASK0
G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
G4int &vecLen,
const G4HadProjectile *originalIncident,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool &quasiElastic );
};
#endif
@@ -0,0 +1,75 @@
//
// ********************************************************************
// * 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: G4RPGLambdaInelastic.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 18 June 2007
//
// Class Description:
// Final state production model for lambda inelastic scattering
// using the re-parameterized Gheisha model.
#ifndef G4RPGLambdaInelastic_h
#define G4RPGLambdaInelastic_h 1
#include "G4RPGInelastic.hh"
class G4RPGLambdaInelastic : public G4RPGInelastic
{
public:
G4RPGLambdaInelastic() : G4RPGInelastic("G4RPGLambdaInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 25.*GeV );
}
~G4RPGLambdaInelastic() { }
G4HadFinalState* ApplyYourself(const G4HadProjectile &aTrack,
G4Nucleus &targetNucleus );
private:
void Cascade( // derived from CASL0
G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
G4int &vecLen,
const G4HadProjectile *originalIncident,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool &quasiElastic );
};
#endif
@@ -0,0 +1,82 @@
//
// ********************************************************************
// * 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: G4RPGNeutronInelastic.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 18 June 2007
//
// Class Description:
//
// Final state production model for neutron inelastic scattering
// using the re-parameterized Gheisha model.
#ifndef G4RPGNeutronInelastic_h
#define G4RPGNeutronInelastic_h 1
#include "G4RPGInelastic.hh"
class G4RPGNeutronInelastic : public G4RPGInelastic
{
public: // with description
G4RPGNeutronInelastic() : G4RPGInelastic("G4RPGNeutronInelastic")
{
SetMinEnergy(0.0);
SetMaxEnergy(35.*GeV);
}
~G4RPGNeutronInelastic()
{ }
G4HadFinalState* ApplyYourself(const G4HadProjectile& aTrack,
G4Nucleus& targetNucleus);
private:
void Cascade(
G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
G4int& vecLen,
const G4HadProjectile* originalIncident,
G4ReactionProduct& currentParticle,
G4ReactionProduct& targetParticle,
G4bool& incidentHasChanged,
G4bool& targetHasChanged,
G4bool& quasiElastic);
void SlowNeutron(
const G4HadProjectile* originalIncident,
G4ReactionProduct& modifiedOriginal,
G4ReactionProduct& targetParticle,
G4Nucleus& targetNucleus);
};
#endif
@@ -0,0 +1,74 @@
//
// ********************************************************************
// * 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: G4RPGOmegaMinusInelastic.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 18 June 2007
//
// Class Description:
// Final state production model for omega- inelastic scattering
// using the re-parameterized Gheisha model.
#ifndef G4RPGOmegaMinusInelastic_h
#define G4RPGOmegaMinusInelastic_h 1
#include "G4RPGInelastic.hh"
class G4RPGOmegaMinusInelastic : public G4RPGInelastic
{
public:
G4RPGOmegaMinusInelastic() : G4RPGInelastic("G4RPGOmegaMinusInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 25.*GeV );
}
~G4RPGOmegaMinusInelastic() { }
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack,
G4Nucleus &targetNucleus );
private:
void Cascade( // derived from CASOM
G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
G4int &vecLen,
const G4HadProjectile *originalIncident,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool &quasiElastic );
};
#endif
@@ -0,0 +1,72 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4RPGPiMinusInelastic.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D.H. Wright
// Date: 26 May 2007
//
#ifndef G4RPGPiMinusInelastic_h
#define G4RPGPiMinusInelastic_h 1
// Class Description
// Final state production model for pi- inelastic scattering
// using the re-parameterized Gheisha model.
#include "G4RPGInelastic.hh"
class G4RPGPiMinusInelastic : public G4RPGInelastic
{
public:
G4RPGPiMinusInelastic() : G4RPGInelastic("G4RPGPiMinusInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 55.*GeV );
}
~G4RPGPiMinusInelastic() { }
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack,
G4Nucleus &targetNucleus );
private:
void Cascade( // derived from CASPIM
G4FastVector<G4ReactionProduct,256> &vec,
G4int &vecLen,
const G4HadProjectile *originalIncident,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool &quasiElastic );
};
#endif
@@ -0,0 +1,71 @@
//
// ********************************************************************
// * 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: G4RPGPiPlusInelastic.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 26 May 2007
//
#ifndef G4RPGPiPlusInelastic_h
#define G4RPGPiPlusInelastic_h 1
// Class Description:
// Final state production model for pi+ inelastic scattering
// using the re-parameterized Gheisha model
#include "G4RPGInelastic.hh"
class G4RPGPiPlusInelastic : public G4RPGInelastic
{
public:
G4RPGPiPlusInelastic() : G4RPGInelastic("G4RPGPiPlusInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 55.*GeV );
}
~G4RPGPiPlusInelastic() { }
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack,
G4Nucleus &targetNucleus );
private:
void Cascade( // derived from CASPIP
G4FastVector<G4ReactionProduct,256> &vec,
G4int &vecLen,
const G4HadProjectile *originalIncident,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool &quasiElastic );
};
#endif
@@ -0,0 +1,74 @@
//
// ********************************************************************
// * 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: G4RPGPionSuppression.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D.H. Wright
// Date: 30 May 2007
//
#ifndef G4RPGPionSuppression_h
#define G4RPGPionSuppression_h 1
// Class Description:
//
// Suppression of charged pions as a function of energy
#include "G4RPGReaction.hh"
#include "G4DynamicParticle.hh"
#include "G4ReactionProduct.hh"
#include "G4Nucleus.hh"
#include "G4FastVector.hh"
#include "G4HadProjectile.hh"
class G4RPGPionSuppression : public G4RPGReaction
{
public: // with description
G4RPGPionSuppression();
G4bool ReactionStage(const G4HadProjectile* /*originalIncident*/,
G4ReactionProduct& /*modifiedOriginal*/,
G4bool& /*incidentHasChanged*/,
const G4DynamicParticle* /*originalTarget*/,
G4ReactionProduct& /*targetParticle*/,
G4bool& /*targetHasChanged*/,
const G4Nucleus& /*targetNucleus*/,
G4ReactionProduct& /*currentParticle*/,
G4FastVector<G4ReactionProduct,256>& /*vec*/,
G4int& /*vecLen*/,
G4bool /*leadFlag*/,
G4ReactionProduct& /*leadingStrangeParticle*/);
private:
};
#endif
@@ -0,0 +1,78 @@
//
// ********************************************************************
// * 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: G4RPGProtonInelastic.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 26 May 2007
//
// Class Description:
//
// Final state production model for proton inelastic scattering
// using the re-parameterized Gheisha model.
#ifndef G4RPGProtonInelastic_h
#define G4RPGProtonInelastic_h 1
#include "G4RPGInelastic.hh"
class G4RPGProtonInelastic : public G4RPGInelastic
{
public: // with description
G4RPGProtonInelastic() : G4RPGInelastic("G4RPGProtonInelastic")
{
SetMinEnergy(0.0);
SetMaxEnergy(35.*GeV);
}
~G4RPGProtonInelastic()
{ }
G4HadFinalState * ApplyYourself(const G4HadProjectile& aTrack,
G4Nucleus& targetNucleus);
private:
void Cascade(G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
G4int& vecLen,
const G4HadProjectile* originalIncident,
G4ReactionProduct& currentParticle,
G4ReactionProduct& targetParticle,
G4bool& incidentHasChanged,
G4bool& targetHasChanged,
G4bool& quasiElastic);
void SlowProton(const G4HadProjectile* originalIncident,
G4Nucleus& targetNucleus);
};
#endif
@@ -0,0 +1,133 @@
//
// ********************************************************************
// * 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: G4RPGReaction.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 26 May 2007
//
#ifndef G4RPGReaction_h
#define G4RPGReaction_h 1
// Class Description:
//
// Base class providing methods for various stages of the re-parameterized
// Gheisha model calculation of primary and secondary final state momenta
#include "G4DynamicParticle.hh"
#include "G4ReactionProduct.hh"
#include "G4Nucleus.hh"
#include "G4FastVector.hh"
#include "G4HadProjectile.hh"
class G4RPGReaction
{
public: // with description
G4RPGReaction() {}
virtual ~G4RPGReaction() {}
G4bool ReactionStage(const G4HadProjectile* /*originalIncident*/,
G4ReactionProduct& /*modifiedOriginal*/,
G4bool& /*incidentHasChanged*/,
const G4DynamicParticle* /*originalTarget*/,
G4ReactionProduct& /*targetParticle*/,
G4bool& /*targetHasChanged*/,
const G4Nucleus& /*targetNucleus*/,
G4ReactionProduct& /*currentParticle*/,
G4FastVector<G4ReactionProduct,256>& /*vec*/,
G4int& /*vecLen*/,
G4bool /*leadFlag*/,
G4ReactionProduct& /*leadingStrangeParticle*/);
void AddBlackTrackParticles(const G4double /*epnb*/,
const G4int /*npnb*/,
const G4double /*edta*/,
const G4int /*ndta*/,
const G4double /*sprob*/,
const G4double /*kineticMinimum*/,
const G4double /*kineticFactor*/,
const G4ReactionProduct& /*modifiedOriginal*/,
G4int /*PinNucleus*/,
G4int /*NinNucleus*/,
const G4Nucleus& /*aNucleus*/,
G4FastVector<G4ReactionProduct,256>& /*vec*/,
G4int& /*vecLen*/ );
G4double GenerateNBodyEvent(const G4double totalEnergy,
const G4bool constantCrossSection,
G4FastVector<G4ReactionProduct,256> &vec,
G4int& vecLen);
void NuclearReaction(G4FastVector<G4ReactionProduct,4> &vec,
G4int& vecLen,
const G4HadProjectile* originalIncident,
const G4Nucleus& aNucleus,
const G4double theAtomicMass,
const G4double* massVec);
protected: // with description
void Rotate(const G4double numberofFinalStateNucleons,
const G4ThreeVector& temp,
const G4ReactionProduct& modifiedOriginal,
const G4HadProjectile* originalIncident,
const G4Nucleus& targetNucleus,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4FastVector<G4ReactionProduct,256> &vec,
G4int& vecLen );
void Defs1(const G4ReactionProduct& modifiedOriginal,
G4ReactionProduct& currentParticle,
G4ReactionProduct& targetParticle,
G4FastVector<G4ReactionProduct,256> &vec,
G4int& vecLen);
std::pair<G4int, G4int> GetFinalStateNucleons(
const G4DynamicParticle* originalTarget,
const G4FastVector<G4ReactionProduct,256>& vec,
const G4int& vecLen );
void MomentumCheck(const G4ReactionProduct &modifiedOriginal,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4FastVector<G4ReactionProduct,256> &vec,
G4int& vecLen);
G4double normal();
G4ThreeVector Isotropic(const G4double&);
};
#endif
@@ -0,0 +1,75 @@
//
// ********************************************************************
// * 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: G4RPGSigmaMinusInelastic.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 18 June 2007
//
// Class Description:
// Final state production model for sigma- inelastic scattering
// using the re-parameterized Gheisha model.
#ifndef G4RPGSigmaMinusInelastic_h
#define G4RPGSigmaMinusInelastic_h 1
#include "G4RPGInelastic.hh"
class G4RPGSigmaMinusInelastic : public G4RPGInelastic
{
public:
G4RPGSigmaMinusInelastic() : G4RPGInelastic("G4RPGSigmaMinusInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 25.*GeV );
}
~G4RPGSigmaMinusInelastic()
{ }
G4HadFinalState* ApplyYourself(const G4HadProjectile &aTrack,
G4Nucleus &targetNucleus );
private:
void Cascade( // derived from CASSM
G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
G4int &vecLen,
const G4HadProjectile *originalIncident,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool &quasiElastic );
};
#endif
@@ -0,0 +1,73 @@
//
// ********************************************************************
// * 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: G4RPGSigmaPlusInelastic.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 18 June 2007
//
// Class Description:
// Final state production model for sigma+ inelastic scattering
// using the re-parameterized Gheisha model.
#ifndef G4RPGSigmaPlusInelastic_h
#define G4RPGSigmaPlusInelastic_h 1
#include "G4RPGInelastic.hh"
class G4RPGSigmaPlusInelastic : public G4RPGInelastic
{
public:
G4RPGSigmaPlusInelastic() : G4RPGInelastic("G4RPGSigmaPlusInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 25.*GeV );
}
~G4RPGSigmaPlusInelastic() { }
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack,
G4Nucleus &targetNucleus );
private:
void Cascade( // derived from CASSM
G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
G4int &vecLen,
const G4HadProjectile *originalIncident,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool &quasiElastic );
};
#endif
@@ -0,0 +1,75 @@
//
// ********************************************************************
// * 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: G4RPGStrangeProduction.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D.H. Wright
// Date: 30 May 2007
//
#ifndef G4RPGStrangeProduction_h
#define G4RPGStrangeProduction_h 1
// Class Description:
//
// Strange particle pair production is calculated with resulting pairs
// replacing non-strange particles in the reaction.
#include "G4RPGReaction.hh"
#include "G4DynamicParticle.hh"
#include "G4ReactionProduct.hh"
#include "G4Nucleus.hh"
#include "G4FastVector.hh"
#include "G4HadProjectile.hh"
class G4RPGStrangeProduction : public G4RPGReaction
{
public: // with description
G4RPGStrangeProduction();
G4bool ReactionStage(const G4HadProjectile* /*originalIncident*/,
G4ReactionProduct& /*modifiedOriginal*/,
G4bool& /*incidentHasChanged*/,
const G4DynamicParticle* /*originalTarget*/,
G4ReactionProduct& /*targetParticle*/,
G4bool& /*targetHasChanged*/,
const G4Nucleus& /*targetNucleus*/,
G4ReactionProduct& /*currentParticle*/,
G4FastVector<G4ReactionProduct,256>& /*vec*/,
G4int& /*vecLen*/,
G4bool /*leadFlag*/,
G4ReactionProduct& /*leadingStrangeParticle*/);
private:
};
#endif
@@ -0,0 +1,76 @@
//
// ********************************************************************
// * 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: G4RPGTwoBody.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D.H. Wright
// Date: 30 May 2007
//
#ifndef G4RPGTwoBody_h
#define G4RPGTwoBody_h 1
// Class Description:
//
// Calculation of the hadron-nucleus interaction using simple two body
// scattering. This method is used if the fragmentation or two cluster
// methods fail or are inappropriate for the given energy.
#include "G4RPGReaction.hh"
#include "G4DynamicParticle.hh"
#include "G4ReactionProduct.hh"
#include "G4Nucleus.hh"
#include "G4FastVector.hh"
#include "G4HadProjectile.hh"
class G4RPGTwoBody : public G4RPGReaction
{
public: // with description
G4RPGTwoBody();
G4bool ReactionStage(const G4HadProjectile* /*originalIncident*/,
G4ReactionProduct& /*modifiedOriginal*/,
G4bool& /*incidentHasChanged*/,
const G4DynamicParticle* /*originalTarget*/,
G4ReactionProduct& /*targetParticle*/,
G4bool& /*targetHasChanged*/,
const G4Nucleus& /*targetNucleus*/,
G4ReactionProduct& /*currentParticle*/,
G4FastVector<G4ReactionProduct,256>& /*vec*/,
G4int& /*vecLen*/,
G4bool /*leadFlag*/,
G4ReactionProduct& /*leadingStrangeParticle*/);
private:
};
#endif
@@ -0,0 +1,76 @@
//
// ********************************************************************
// * 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: G4RPGTwoCluster.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D.H. Wright
// Date: 30 May 2007
//
#ifndef G4RPGTwoCluster_h
#define G4RPGTwoCluster_h 1
// Class Description:
//
// Calculation of the hadron-nucleus interaction using the two cluster
// model. This method is used if the fragmentation method fails or is
// inappropriate for the given energy.
#include "G4RPGReaction.hh"
#include "G4DynamicParticle.hh"
#include "G4ReactionProduct.hh"
#include "G4Nucleus.hh"
#include "G4FastVector.hh"
#include "G4HadProjectile.hh"
class G4RPGTwoCluster : public G4RPGReaction
{
public: // with description
G4RPGTwoCluster();
G4bool ReactionStage(const G4HadProjectile* /*originalIncident*/,
G4ReactionProduct& /*modifiedOriginal*/,
G4bool& /*incidentHasChanged*/,
const G4DynamicParticle* /*originalTarget*/,
G4ReactionProduct& /*targetParticle*/,
G4bool& /*targetHasChanged*/,
const G4Nucleus& /*targetNucleus*/,
G4ReactionProduct& /*currentParticle*/,
G4FastVector<G4ReactionProduct,256>& /*vec*/,
G4int& /*vecLen*/,
G4bool /*leadFlag*/,
G4ReactionProduct& /*leadingStrangeParticle*/);
private:
};
#endif
@@ -0,0 +1,73 @@
//
// ********************************************************************
// * 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: G4RPGXiMinusInelastic.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
// Author: D. H. Wright
// Date: 18 June 2007
//
// Class Description:
// Final state production model for xi- inelastic scattering
// using the re-parameterized Gheisha model.
#ifndef G4RPGXiMinusInelastic_h
#define G4RPGXiMinusInelastic_h 1
#include "G4RPGInelastic.hh"
class G4RPGXiMinusInelastic : public G4RPGInelastic
{
public:
G4RPGXiMinusInelastic() : G4RPGInelastic("G4RPGXiMinusInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 25.*GeV );
}
~G4RPGXiMinusInelastic() { }
G4HadFinalState * ApplyYourself(const G4HadProjectile &aTrack,
G4Nucleus &targetNucleus );
private:
void Cascade( // derived from CASXM
G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
G4int &vecLen,
const G4HadProjectile *originalIncident,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool &quasiElastic );
};
#endif
@@ -0,0 +1,76 @@
//
// ********************************************************************
// * 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: G4RPGXiZeroInelastic.hh,v 1.1 2007/07/18 20:51:37 dennis Exp $
// GEANT4 tag $Name: geant4-09-01 $
//
//
// Author: D. H. Wright
// Date: 18 June 2007
//
// Class Description:
// Final state production model for xi0 inelastic scattering
// using the re-parameterized Gheisha model.
#ifndef G4RPGXiZeroInelastic_h
#define G4RPGXiZeroInelastic_h 1
#include "G4RPGInelastic.hh"
class G4RPGXiZeroInelastic : public G4RPGInelastic
{
public:
G4RPGXiZeroInelastic() : G4RPGInelastic("G4RPGXiZeroInelastic")
{
SetMinEnergy( 0.0 );
SetMaxEnergy( 25.*GeV );
}
~G4RPGXiZeroInelastic()
{ }
G4HadFinalState* ApplyYourself(const G4HadProjectile &aTrack,
G4Nucleus &targetNucleus );
private:
void Cascade( // derived from CASX0
G4FastVector<G4ReactionProduct,GHADLISTSIZE> &vec,
G4int &vecLen,
const G4HadProjectile *originalIncident,
G4ReactionProduct &currentParticle,
G4ReactionProduct &targetParticle,
G4bool &incidentHasChanged,
G4bool &targetHasChanged,
G4bool &quasiElastic );
};
#endif