Import Geant4 4.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:18:25 +02:00
parent 36c080dca6
commit 921d3b1cda
3990 changed files with 185376 additions and 82884 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4BosonConstructor.hh,v 1.2.4.1 2001/06/28 19:10:35 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4BosonConstructor.hh,v 1.3 2001/07/11 10:01:32 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// --------------------------------------------------------------
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4ChargedGeantino.hh,v 1.3.4.2 2001/06/28 20:18:55 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4ChargedGeantino.hh,v 1.8 2001/10/28 05:03:48 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -55,8 +55,6 @@ class G4ChargedGeantino : public G4VBoson
{
private:
static G4ChargedGeantino theChargedGeantino;
static G4double theChargedGeantinoLengthCut;
static G4double* theChargedGeantinoKineticEnergyCuts;
private:
G4ChargedGeantino(
@@ -76,13 +74,8 @@ class G4ChargedGeantino : public G4VBoson
static G4ChargedGeantino* ChargedGeantinoDefinition();
static G4ChargedGeantino* ChargedGeantino();
static G4double GetCuts() {return theChargedGeantinoLengthCut;}
static G4double* GetCutsInEnergy() {return theChargedGeantinoKineticEnergyCuts;};
virtual void SetCuts(G4double aCut);
virtual void CalcEnergyCuts( const G4Material* );
};
inline G4ChargedGeantino* G4ChargedGeantino::ChargedGeantino()
{ return &theChargedGeantino; }
#endif
+25 -45
View File
@@ -20,9 +20,8 @@
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: G4Gamma.hh,v 1.4.2.2 2001/06/28 20:18:55 gunter Exp $
// GEANT4 tag $Name: $
//// $Id: G4Gamma.hh,v 1.11 2001/12/13 12:04:11 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -56,8 +55,6 @@ class G4Gamma : public G4VBoson
{
private:
static G4Gamma theGamma;
static G4double theGammaLengthCut;
static G4double* theGammaKineticEnergyCuts;
//-------- the followings are used privately in G4Gamma ----
private:
@@ -76,28 +73,20 @@ class G4Gamma : public G4VBoson
//--------------for SetCuts----------------------------------------------
protected:
G4double ComputeLoss(G4double AtomicNumber,G4double KineticEnergy) const
{
return ComputeCrossSection(AtomicNumber,KineticEnergy);
};
G4double ComputeLoss(G4double AtomicNumber,G4double KineticEnergy) const;
void BuildRangeVector(
const G4Material* aMaterial,
const G4LossTable* aLossTable,
G4double maxEnergy,
G4double aMass,
G4RangeVector* rangeVector)
{
BuildAbsorptionLengthVector(aMaterial,
(const G4CrossSectionTable*)aLossTable,
maxEnergy, aMass, rangeVector);
}
void BuildRangeVector(
const G4Material* aMaterial,
const G4LossTable* aLossTable,
G4double maxEnergy,
G4double aMass,
G4RangeVector* rangeVector);
G4double ConvertCutToKineticEnergy(
G4RangeVector* absorptionLengthVector
G4double ConvertCutToKineticEnergy(
G4RangeVector* absorptionLengthVector,
size_t materialIndex
) const;
private: // hide conxtructor as private
G4Gamma(
const G4String& aName, G4double mass,
@@ -116,37 +105,28 @@ class G4Gamma : public G4VBoson
static G4Gamma* GammaDefinition();
static G4Gamma* Gamma();
static G4double GetCuts() {return theGammaLengthCut;}
static G4double* GetCutsInEnergy() {return theGammaKineticEnergyCuts;};
virtual void SetCuts(G4double aCut);
virtual void RestoreCuts(G4double cutInLength,
const G4double* cutInEnergy );
};
inline void G4Gamma::SetCuts(G4double aCut)
inline
G4double G4Gamma::ComputeLoss(G4double AtomicNumber,G4double KineticEnergy) const
{
CalcEnergyCuts(aCut);
theGammaLengthCut = theCutInMaxInteractionLength;
theGammaKineticEnergyCuts = theKineticEnergyCuts;
return ComputeCrossSection(AtomicNumber,KineticEnergy);
}
inline void G4Gamma::RestoreCuts(G4double cutInLength,
const G4double* cutInEnergy )
inline
void G4Gamma::BuildRangeVector(
const G4Material* aMaterial,
const G4LossTable* aLossTable,
G4double maxEnergy,
G4double aMass,
G4RangeVector* rangeVector)
{
G4ParticleWithCuts::RestoreCuts(cutInLength, cutInEnergy);
theGammaLengthCut = theCutInMaxInteractionLength;
theGammaKineticEnergyCuts = theKineticEnergyCuts;
BuildAbsorptionLengthVector(aMaterial,
(const G4CrossSectionTable*)aLossTable,
maxEnergy, aMass, rangeVector);
}
inline G4Gamma* G4Gamma::Gamma()
{ return &theGamma; }
#endif
+3 -10
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Geantino.hh,v 1.3.4.2 2001/06/28 20:18:55 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4Geantino.hh,v 1.8 2001/10/28 05:03:49 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -55,8 +55,6 @@ class G4Geantino : public G4VBoson
{
private:
static G4Geantino theGeantino;
static G4double theGeantinoLengthCut;
static G4double* theGeantinoKineticEnergyCuts;
private:
G4Geantino(
@@ -76,14 +74,9 @@ class G4Geantino : public G4VBoson
static G4Geantino* GeantinoDefinition();
static G4Geantino* Geantino();
static G4double GetCuts() {return theGeantinoLengthCut;}
static G4double* GetCutsInEnergy() {return theGeantinoKineticEnergyCuts;};
virtual void SetCuts(G4double aCut);
virtual void CalcEnergyCuts( const G4Material* );
};
inline G4Geantino* G4Geantino::Geantino()
{ return &theGeantino; }
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4OpticalPhoton.hh,v 1.4.2.2 2001/06/28 20:18:55 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4OpticalPhoton.hh,v 1.7 2001/10/16 08:15:41 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -55,8 +55,6 @@ class G4OpticalPhoton: public G4VBoson
{
private:
static G4OpticalPhoton theOpticalPhoton;
static G4double theOpticalPhotonLengthCut;
static G4double* theOpticalPhotonKineticEnergyCuts;
private:
G4OpticalPhoton (
@@ -76,25 +74,8 @@ class G4OpticalPhoton: public G4VBoson
static G4OpticalPhoton* OpticalPhotonDefinition();
static G4OpticalPhoton* OpticalPhoton();
static G4double GetCuts() {return theOpticalPhotonLengthCut;}
static G4double* GetCutsInEnergy() {return theOpticalPhotonKineticEnergyCuts;}
virtual void SetCuts(G4double aCut);
virtual void RestoreCuts(G4double cutInLength,
const G4double* cutInEnergy );
};
inline void G4OpticalPhoton::RestoreCuts(G4double cutInLength,
const G4double* cutInEnergy )
{
G4ParticleWithCuts::RestoreCuts(cutInLength, cutInEnergy);
theOpticalPhotonLengthCut = theCutInMaxInteractionLength;
theOpticalPhotonKineticEnergyCuts = theKineticEnergyCuts;
}
inline G4OpticalPhoton* G4OpticalPhoton::OpticalPhoton()
{ return &theOpticalPhoton; }
#endif
+2 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VBoson.hh,v 1.2.4.2 2001/06/28 20:18:55 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4VBoson.hh,v 1.3 2001/07/11 10:01:32 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------