Import Geant4 8.3.0 source tree
This commit is contained in:
+12
-7
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4DiffractiveExcitation.hh,v 1.2 2006/06/29 20:55:11 gunter Exp $
|
||||
// $Id: G4DiffractiveExcitation.hh,v 1.3 2007/04/24 10:37:10 gunter Exp $
|
||||
|
||||
#ifndef G4DiffractiveExcitation_h
|
||||
#define G4DiffractiveExcitation_h 1
|
||||
@@ -48,7 +48,7 @@ class G4DiffractiveExcitation
|
||||
|
||||
public:
|
||||
|
||||
G4DiffractiveExcitation(G4double sigmaPt=0.6*GeV, G4double minExtraMass=250*MeV,G4double x0mass=250*MeV);
|
||||
G4DiffractiveExcitation(); // Uzhi
|
||||
virtual ~G4DiffractiveExcitation();
|
||||
|
||||
virtual G4bool ExciteParticipants (G4VSplitableHadron *aPartner, G4VSplitableHadron * bPartner) const;
|
||||
@@ -63,8 +63,11 @@ class G4DiffractiveExcitation
|
||||
|
||||
G4DiffractiveExcitation(const G4DiffractiveExcitation &right);
|
||||
|
||||
G4double ChooseX(G4double Xmin, G4double Xmax) const;
|
||||
G4ThreeVector GaussianPt(G4double widthSquare, G4double maxPtSquare) const;
|
||||
// G4double ChooseX(G4double Xmin, G4double Xmax) const; // Uzhi
|
||||
G4double ChooseP(G4double Pmin, G4double Pmax) const; // Uzhi
|
||||
|
||||
// G4ThreeVector GaussianPt(G4double widthSquare, G4double maxPtSquare) const;
|
||||
G4ThreeVector GaussianPt(G4double AveragePt2, G4double maxPtSquare) const; // Uzhi
|
||||
|
||||
const G4DiffractiveExcitation & operator=(const G4DiffractiveExcitation &right);
|
||||
int operator==(const G4DiffractiveExcitation &right) const;
|
||||
@@ -72,9 +75,11 @@ class G4DiffractiveExcitation
|
||||
|
||||
private:
|
||||
// Model Parameters:
|
||||
const G4double widthOfPtSquare; // width^2 of pt for string excitation
|
||||
const G4double minExtraMass; // minimum excitation mass
|
||||
const G4double minmass; // mean pion transverse mass; used for Xmin
|
||||
/* // Uzhi
|
||||
const G4double widthOfPtSquare; // width^2 of pt for string excitation
|
||||
const G4double minExtraMass; // minimum excitation mass
|
||||
const G4double minmass; // mean pion transverse mass; used for Xmin
|
||||
*/ // Uzhi
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
+90
@@ -0,0 +1,90 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
#ifndef G4FTFCrossSection_h
|
||||
#define G4FTFCrossSection_h 1
|
||||
//
|
||||
// $Id: G4FTFCrossSection.hh,v 1.2 2007/04/24 10:37:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
#include "G4Proton.hh"
|
||||
class G4FTFCrossSection
|
||||
{
|
||||
|
||||
public:
|
||||
G4FTFCrossSection(const G4ParticleDefinition * , G4double );
|
||||
|
||||
~G4FTFCrossSection();
|
||||
|
||||
void SethNcmsEnergy(const G4double s);
|
||||
void SetTotalCrossSection(const G4double Xtotal);
|
||||
void SetElastisCrossSection(const G4double Xelastic);
|
||||
void SetInelasticCrossSection(const G4double Xinelastic);
|
||||
void SetSlope(const G4double Slope);
|
||||
void SetGamma0(const G4double Gamma0);
|
||||
|
||||
G4double GetTotalCrossSection();
|
||||
G4double GetElasticCrossSection();
|
||||
G4double GetInelasticCrossSection();
|
||||
|
||||
G4double GetSlope();
|
||||
|
||||
G4double GetInelasticProbability(const G4double impactsquare);
|
||||
|
||||
// private:
|
||||
|
||||
G4FTFCrossSection();
|
||||
|
||||
G4double GammaElastic(const G4double impactsquare) {return (FTFGamma0 * std::exp(-FTFSlope * impactsquare));};
|
||||
|
||||
G4double FTFhNcmsEnergy; // Uzhi Initial hN CMS energy
|
||||
G4double FTFXtotal;
|
||||
G4double FTFXelastic;
|
||||
G4double FTFXinelastic;
|
||||
G4double FTFSlope;
|
||||
G4double FTFGamma0;
|
||||
|
||||
};
|
||||
|
||||
inline void G4FTFCrossSection::SethNcmsEnergy(const G4double s) {FTFhNcmsEnergy = s;}
|
||||
inline void G4FTFCrossSection::SetTotalCrossSection(const G4double Xtotal) {FTFXtotal = Xtotal;}
|
||||
inline void G4FTFCrossSection::SetElastisCrossSection(const G4double Xelastic) {FTFXelastic = Xelastic;}
|
||||
inline void G4FTFCrossSection::SetInelasticCrossSection(const G4double Xinelastic) {FTFXinelastic = Xinelastic;}
|
||||
inline void G4FTFCrossSection::SetSlope(const G4double Slope) {FTFSlope = 12.84/Slope;}
|
||||
inline void G4FTFCrossSection::SetGamma0(const G4double Gamma0) {FTFGamma0 = Gamma0;}
|
||||
|
||||
inline G4double G4FTFCrossSection::GetTotalCrossSection() {return FTFXtotal;}
|
||||
inline G4double G4FTFCrossSection::GetElasticCrossSection() {return FTFXelastic;}
|
||||
inline G4double G4FTFCrossSection::GetInelasticCrossSection() {return FTFXinelastic;}
|
||||
|
||||
inline G4double G4FTFCrossSection::GetSlope() {return FTFSlope;}
|
||||
|
||||
inline G4double G4FTFCrossSection::GetInelasticProbability( const G4double impactsquare)
|
||||
{
|
||||
G4double Gamma = GammaElastic(impactsquare);
|
||||
return 2 * Gamma - Gamma *Gamma;
|
||||
}
|
||||
|
||||
#endif
|
||||
+31
-2
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4InteractionContent.hh,v 1.3 2006/06/29 20:55:17 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: G4InteractionContent.hh,v 1.4 2007/01/24 10:28:54 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
|
||||
#ifndef G4InteractionContent_h
|
||||
@@ -68,6 +68,11 @@ class G4InteractionContent
|
||||
void SetNumberOfDiffractiveCollisions(int);
|
||||
|
||||
void SplitHadrons();
|
||||
|
||||
#ifdef G4DEBUG
|
||||
void Dump();
|
||||
#endif
|
||||
|
||||
|
||||
public:
|
||||
G4InteractionContent(){}
|
||||
@@ -138,6 +143,30 @@ inline void G4InteractionContent::SplitHadrons()
|
||||
if ( theProjectile != NULL ) theProjectile->SplitUp();
|
||||
if ( theTarget != NULL ) theTarget->SplitUp();
|
||||
}
|
||||
#ifdef G4DEBUG
|
||||
inline void G4InteractionContent::Dump()
|
||||
{
|
||||
G4cout << " G4InteractionContent " << this << G4endl
|
||||
<< "Hard/Soft/Diff "
|
||||
<< theNumberOfHard<<" / "
|
||||
<<theNumberOfSoft<<" / "
|
||||
<<theNumberOfDiffractive << G4endl
|
||||
<< "Projectile " ;
|
||||
if ( theProjectile )
|
||||
{ G4cout << theProjectile->GetDefinition()->GetPDGEncoding()
|
||||
<< " " << theProjectile->Get4Momentum()<< G4endl;
|
||||
} else {
|
||||
G4cout << " none " << G4endl;
|
||||
}
|
||||
if ( theTarget )
|
||||
{ G4cout << theTarget->GetDefinition()->GetPDGEncoding()
|
||||
<< " " << theTarget->Get4Momentum()<< G4endl;
|
||||
} else {
|
||||
G4cout << " none " << G4endl;
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user