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: G4AntiNeutrinoE.hh,v 1.3.4.2 2001/06/28 20:19:06 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4AntiNeutrinoE.hh,v 1.8 2001/10/28 05:05:28 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -55,8 +55,6 @@ class G4AntiNeutrinoE : public G4VLepton
{
private:
static G4AntiNeutrinoE theAntiNeutrinoE;
static G4double theAntiNeutrinoELengthCut;
static G4double* theAntiNeutrinoEKineticEnergyCuts;
private: // constructors are hide as private
G4AntiNeutrinoE(
@@ -75,11 +73,9 @@ class G4AntiNeutrinoE : public G4VLepton
virtual ~G4AntiNeutrinoE(){}
static G4AntiNeutrinoE* AntiNeutrinoEDefinition();
static G4AntiNeutrinoE* AntiNeutrinoE(){return &theAntiNeutrinoE;}
static G4double GetCuts() {return theAntiNeutrinoELengthCut;}
static G4double* GetCutsInEnergy() {return theAntiNeutrinoEKineticEnergyCuts;};
static G4AntiNeutrinoE* AntiNeutrinoE();
virtual void SetCuts(G4double aCut);
virtual void CalcEnergyCuts( const G4Material* );
};
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4AntiNeutrinoMu.hh,v 1.3.4.2 2001/06/28 20:19:06 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4AntiNeutrinoMu.hh,v 1.8 2001/10/28 05:05:28 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -55,8 +55,6 @@ class G4AntiNeutrinoMu : public G4VLepton
{
private:
static G4AntiNeutrinoMu theAntiNeutrinoMu;
static G4double theAntiNeutrinoMuLengthCut;
static G4double* theAntiNeutrinoMuKineticEnergyCuts;
private: // constructors are hide as private
G4AntiNeutrinoMu(
@@ -75,11 +73,9 @@ class G4AntiNeutrinoMu : public G4VLepton
virtual ~G4AntiNeutrinoMu(){}
static G4AntiNeutrinoMu* AntiNeutrinoMuDefinition();
static G4AntiNeutrinoMu* AntiNeutrinoMu() {return &theAntiNeutrinoMu;}
static G4double GetCuts() {return theAntiNeutrinoMuLengthCut;}
static G4double* GetCutsInEnergy() {return theAntiNeutrinoMuKineticEnergyCuts;};
static G4AntiNeutrinoMu* AntiNeutrinoMu();
virtual void SetCuts(G4double aCut);
virtual void CalcEnergyCuts( const G4Material* );
};
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4AntiNeutrinoTau.hh,v 1.3.4.2 2001/06/28 20:19:06 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4AntiNeutrinoTau.hh,v 1.8 2001/10/28 05:05:28 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -54,8 +54,6 @@ class G4AntiNeutrinoTau : public G4VLepton
{
private:
static G4AntiNeutrinoTau theAntiNeutrinoTau;
static G4double theAntiNeutrinoTauLengthCut;
static G4double* theAntiNeutrinoTauKineticEnergyCuts;
private: // constructors are hide as private
G4AntiNeutrinoTau(
@@ -74,11 +72,9 @@ class G4AntiNeutrinoTau : public G4VLepton
virtual ~G4AntiNeutrinoTau(){}
static G4AntiNeutrinoTau* AntiNeutrinoTauDefinition();
static G4AntiNeutrinoTau* AntiNeutrinoTau(){return &theAntiNeutrinoTau;}
static G4double GetCuts() {return theAntiNeutrinoTauLengthCut;}
static G4double* GetCutsInEnergy() {return theAntiNeutrinoTauKineticEnergyCuts;};
static G4AntiNeutrinoTau* AntiNeutrinoTau();
virtual void SetCuts(G4double aCut);
virtual void CalcEnergyCuts( const G4Material* );
};
#endif
+3 -29
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Electron.hh,v 1.4.2.2 2001/06/28 20:19:06 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4Electron.hh,v 1.7 2001/10/16 08:16:15 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -56,8 +56,6 @@ class G4Electron : public G4VLepton
friend class G4Positron;
private:
static G4Electron theElectron;
static G4double theElectronLengthCut;
static G4double* theElectronKineticEnergyCuts;
protected:
G4double ComputeLoss(G4double AtomicNumber, G4double KineticEnergy) const;
@@ -87,34 +85,9 @@ class G4Electron : public G4VLepton
static G4Electron* ElectronDefinition();
static G4Electron* Electron();
static G4double GetCuts() {return theElectronLengthCut;}
static G4double* GetCutsInEnergy() {return theElectronKineticEnergyCuts;};
virtual void SetCuts(G4double aCut);
virtual void RestoreCuts(G4double cutInLength,
const G4double* cutInEnergy );
};
inline void G4Electron::SetCuts(G4double aCut)
{
CalcEnergyCuts(aCut);
theElectronLengthCut = theCutInMaxInteractionLength;
theElectronKineticEnergyCuts = theKineticEnergyCuts;
}
inline void G4Electron::RestoreCuts(G4double cutInLength,
const G4double* cutInEnergy )
{
G4ParticleWithCuts::RestoreCuts(cutInLength, cutInEnergy);
theElectronLengthCut = theCutInMaxInteractionLength;
theElectronKineticEnergyCuts = theKineticEnergyCuts;
}
inline G4Electron* G4Electron::Electron()
{ return &theElectron; }
#endif
@@ -126,3 +99,4 @@ inline G4Electron* G4Electron::Electron()
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4LeptonConstructor.hh,v 1.2.4.1 2001/06/28 19:10:58 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4LeptonConstructor.hh,v 1.3 2001/07/11 10:01:52 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// --------------------------------------------------------------
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4MuonMinus.hh,v 1.4.2.2 2001/06/28 20:19:06 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4MuonMinus.hh,v 1.7 2001/10/16 08:16:15 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -55,8 +55,6 @@ class G4MuonMinus : public G4VLepton
{
private:
static G4MuonMinus theMuonMinus;
static G4double theMuonMinusLengthCut;
static G4double* theMuonMinusKineticEnergyCuts;
private: // constructors are hide as private
G4MuonMinus(
@@ -75,33 +73,9 @@ class G4MuonMinus : public G4VLepton
static G4MuonMinus* MuonMinusDefinition();
static G4MuonMinus* MuonMinus();
static G4double GetCuts() {return theMuonMinusLengthCut;}
static G4double* GetCutsInEnergy() {return theMuonMinusKineticEnergyCuts;};
virtual void SetCuts(G4double aCut);
virtual void RestoreCuts(G4double cutInLength,
const G4double* cutInEnergy );
};
inline void G4MuonMinus::SetCuts(G4double aCut)
{
CalcEnergyCuts(aCut);
theMuonMinusLengthCut = theCutInMaxInteractionLength;
theMuonMinusKineticEnergyCuts = theKineticEnergyCuts;
}
inline void G4MuonMinus::RestoreCuts(G4double cutInLength,
const G4double* cutInEnergy )
{
G4ParticleWithCuts::RestoreCuts(cutInLength, cutInEnergy);
theMuonMinusLengthCut = theCutInMaxInteractionLength;
theMuonMinusKineticEnergyCuts = theKineticEnergyCuts;
}
inline G4MuonMinus* G4MuonMinus::MuonMinus()
{ return &theMuonMinus; }
#endif
+2 -27
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4MuonPlus.hh,v 1.4.2.2 2001/06/28 20:19:06 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4MuonPlus.hh,v 1.7 2001/10/16 08:16:15 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -55,8 +55,6 @@ class G4MuonPlus : public G4VLepton
{
private:
static G4MuonPlus theMuonPlus;
static G4double theMuonPlusLengthCut;
static G4double* theMuonPlusKineticEnergyCuts;
private: // constructors are hide as private
G4MuonPlus(
@@ -76,32 +74,9 @@ class G4MuonPlus : public G4VLepton
static G4MuonPlus* MuonPlusDefinition();
static G4MuonPlus* MuonPlus();
static G4double GetCuts() {return theMuonPlusLengthCut;}
static G4double* GetCutsInEnergy() {return theMuonPlusKineticEnergyCuts;};
virtual void SetCuts(G4double aCut);
virtual void RestoreCuts(G4double cutInLength,
const G4double* cutInEnergy );
};
inline void G4MuonPlus::SetCuts(G4double aCut)
{
CalcEnergyCuts(aCut);
theMuonPlusLengthCut = theCutInMaxInteractionLength;
theMuonPlusKineticEnergyCuts = theKineticEnergyCuts;
}
inline void G4MuonPlus::RestoreCuts(G4double cutInLength,
const G4double* cutInEnergy )
{
G4ParticleWithCuts::RestoreCuts(cutInLength, cutInEnergy);
theMuonPlusLengthCut = theCutInMaxInteractionLength;
theMuonPlusKineticEnergyCuts = theKineticEnergyCuts;
}
inline G4MuonPlus* G4MuonPlus::MuonPlus()
{ return &theMuonPlus; }
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4NeutrinoE.hh,v 1.3.4.2 2001/06/28 20:19:06 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4NeutrinoE.hh,v 1.8 2001/10/28 05:05:29 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -55,8 +55,6 @@ class G4NeutrinoE : public G4VLepton
{
private:
static G4NeutrinoE theNeutrinoE;
static G4double theNeutrinoELengthCut;
static G4double* theNeutrinoEKineticEnergyCuts;
private:
G4NeutrinoE(
@@ -75,11 +73,9 @@ class G4NeutrinoE : public G4VLepton
virtual ~G4NeutrinoE(){}
static G4NeutrinoE* NeutrinoEDefinition();
static G4NeutrinoE* NeutrinoE(){return &theNeutrinoE;}
static G4double GetCuts() {return theNeutrinoELengthCut;}
static G4double* GetCutsInEnergy() {return theNeutrinoEKineticEnergyCuts;};
static G4NeutrinoE* NeutrinoE();
virtual void SetCuts(G4double aCut);
virtual void CalcEnergyCuts( const G4Material* );
};
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4NeutrinoMu.hh,v 1.3.4.2 2001/06/28 20:19:07 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4NeutrinoMu.hh,v 1.8 2001/10/28 05:05:29 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -54,8 +54,6 @@ class G4NeutrinoMu : public G4VLepton
{
private:
static G4NeutrinoMu theNeutrinoMu;
static G4double theNeutrinoMuLengthCut;
static G4double* theNeutrinoMuKineticEnergyCuts;
private:
G4NeutrinoMu(
@@ -74,11 +72,9 @@ class G4NeutrinoMu : public G4VLepton
virtual ~G4NeutrinoMu(){}
static G4NeutrinoMu* NeutrinoMuDefinition();
static G4NeutrinoMu* NeutrinoMu() {return &theNeutrinoMu;}
static G4double GetCuts() {return theNeutrinoMuLengthCut;}
static G4double* GetCutsInEnergy() {return theNeutrinoMuKineticEnergyCuts;};
static G4NeutrinoMu* NeutrinoMu();
virtual void SetCuts(G4double aCut);
virtual void CalcEnergyCuts( const G4Material* );
};
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4NeutrinoTau.hh,v 1.3.4.2 2001/06/28 20:19:07 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4NeutrinoTau.hh,v 1.8 2001/10/28 05:05:29 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -53,8 +53,6 @@ class G4NeutrinoTau : public G4VLepton
{
private:
static G4NeutrinoTau theNeutrinoTau;
static G4double theNeutrinoTauLengthCut;
static G4double* theNeutrinoTauKineticEnergyCuts;
private:
G4NeutrinoTau(
@@ -73,11 +71,9 @@ class G4NeutrinoTau : public G4VLepton
virtual ~G4NeutrinoTau(){}
static G4NeutrinoTau* NeutrinoTauDefinition();
static G4NeutrinoTau* NeutrinoTau() {return &theNeutrinoTau;}
static G4double GetCuts() {return theNeutrinoTauLengthCut;}
static G4double* GetCutsInEnergy() {return theNeutrinoTauKineticEnergyCuts;};
static G4NeutrinoTau* NeutrinoTau();
virtual void SetCuts(G4double aCut);
virtual void CalcEnergyCuts( const G4Material* );
};
#endif
+3 -28
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Positron.hh,v 1.4.2.2 2001/06/28 20:19:07 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4Positron.hh,v 1.7 2001/10/16 08:16:16 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -59,9 +59,7 @@ class G4Positron : public G4VLepton
{
private:
static G4Positron thePositron;
static G4double thePositronLengthCut;
static G4double* thePositronKineticEnergyCuts;
protected:
G4double ComputeLoss(G4double AtomicNumber, G4double KineticEnergy) const;
@@ -99,31 +97,8 @@ class G4Positron : public G4VLepton
static G4Positron* PositronDefinition();
static G4Positron* Positron();
static G4double GetCuts() {return thePositronLengthCut;}
static G4double* GetCutsInEnergy() {return thePositronKineticEnergyCuts;};
virtual void SetCuts(G4double aCut);
virtual void RestoreCuts(G4double cutInLength,
const G4double* cutInEnergy );
};
inline void G4Positron::SetCuts(G4double aCut)
{
CalcEnergyCuts(aCut);
thePositronLengthCut = theCutInMaxInteractionLength;
thePositronKineticEnergyCuts = theKineticEnergyCuts;
}
inline void G4Positron::RestoreCuts(G4double cutInLength,
const G4double* cutInEnergy )
{
G4ParticleWithCuts::RestoreCuts(cutInLength, cutInEnergy);
thePositronLengthCut = theCutInMaxInteractionLength;
thePositronKineticEnergyCuts = theKineticEnergyCuts;
}
inline G4Positron* G4Positron::Positron()
{ return &thePositron; }
#endif
+2 -26
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4TauMinus.hh,v 1.4.2.2 2001/06/28 20:19:07 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4TauMinus.hh,v 1.7 2001/10/16 08:16:16 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -55,8 +55,6 @@ class G4TauMinus : public G4VLepton
{
private:
static G4TauMinus theTauMinus;
static G4double theTauMinusLengthCut;
static G4double* theTauMinusKineticEnergyCuts;
private: // constructors are hide as private
G4TauMinus(
@@ -76,32 +74,10 @@ class G4TauMinus : public G4VLepton
static G4TauMinus* TauMinusDefinition();
static G4TauMinus* TauMinus();
static G4double GetCuts() {return theTauMinusLengthCut;}
static G4double* GetCutsInEnergy() {return theTauMinusKineticEnergyCuts;};
virtual void SetCuts(G4double aCut);
virtual void RestoreCuts(G4double cutInLength,
const G4double* cutInEnergy );
};
inline void G4TauMinus::SetCuts(G4double aCut)
{
CalcEnergyCuts(aCut);
theTauMinusLengthCut = theCutInMaxInteractionLength;
theTauMinusKineticEnergyCuts = theKineticEnergyCuts;
}
inline void G4TauMinus::RestoreCuts(G4double cutInLength,
const G4double* cutInEnergy )
{
G4ParticleWithCuts::RestoreCuts(cutInLength, cutInEnergy);
theTauMinusLengthCut = theCutInMaxInteractionLength;
theTauMinusKineticEnergyCuts = theKineticEnergyCuts;
}
inline G4TauMinus* G4TauMinus::TauMinus()
{ return &theTauMinus; }
#endif
+2 -27
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4TauPlus.hh,v 1.4.2.2 2001/06/28 20:19:07 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4TauPlus.hh,v 1.7 2001/10/16 08:16:16 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
@@ -56,8 +56,6 @@ class G4TauPlus : public G4VLepton
{
private:
static G4TauPlus theTauPlus;
static G4double theTauPlusLengthCut;
static G4double* theTauPlusKineticEnergyCuts;
private: // constructors are hide as private
G4TauPlus(
@@ -77,32 +75,9 @@ class G4TauPlus : public G4VLepton
static G4TauPlus* TauPlusDefinition();
static G4TauPlus* TauPlus();
static G4double GetCuts() {return theTauPlusLengthCut;}
static G4double* GetCutsInEnergy() {return theTauPlusKineticEnergyCuts;};
virtual void SetCuts(G4double aCut);
virtual void RestoreCuts(G4double cutInLength,
const G4double* cutInEnergy );
};
inline void G4TauPlus::SetCuts(G4double aCut)
{
CalcEnergyCuts(aCut);
theTauPlusLengthCut = theCutInMaxInteractionLength;
theTauPlusKineticEnergyCuts = theKineticEnergyCuts;
}
inline void G4TauPlus::RestoreCuts(G4double cutInLength,
const G4double* cutInEnergy )
{
G4ParticleWithCuts::RestoreCuts(cutInLength, cutInEnergy);
theTauPlusLengthCut = theCutInMaxInteractionLength;
theTauPlusKineticEnergyCuts = theKineticEnergyCuts;
}
inline G4TauPlus* G4TauPlus::TauPlus()
{ return &theTauPlus; }
#endif
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VLepton.hh,v 1.2.4.2 2001/06/28 20:19:07 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4VLepton.hh,v 1.3 2001/07/11 10:01:53 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ------------------------------------------------------------
+10 -23
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4AntiNeutrinoE.cc,v 1.4.2.1 2001/06/28 19:11:00 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4AntiNeutrinoE.cc,v 1.10 2001/10/28 05:05:29 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ----------------------------------------------------------------------
@@ -80,31 +80,18 @@ G4AntiNeutrinoE* G4AntiNeutrinoE::AntiNeutrinoEDefinition()
{
return &theAntiNeutrinoE;
}
// initialization for static cut values
G4double G4AntiNeutrinoE::theAntiNeutrinoELengthCut = -1.0;
G4double* G4AntiNeutrinoE::theAntiNeutrinoEKineticEnergyCuts = NULL;
G4AntiNeutrinoE* G4AntiNeutrinoE::AntiNeutrinoE()
{
return &theAntiNeutrinoE;
}
// **********************************************************************
// **************************** SetCuts *********************************
// **********************************************************************
void G4AntiNeutrinoE::SetCuts(G4double aCut)
void G4AntiNeutrinoE::CalcEnergyCuts( const G4Material* )
{
theCutInMaxInteractionLength = aCut;
const G4MaterialTable* materialTable = G4Material::GetMaterialTable();
// Create the vector of cuts in energy
// corresponding to the stopping range cut
if(theKineticEnergyCuts) delete [] theKineticEnergyCuts;
theKineticEnergyCuts = new G4double [materialTable->length()];
// Build range vector for every material, convert cut into energy-cut,
// fill theKineticEnergyCuts and delete the range vector
for (size_t J=0; J<materialTable->length(); J++)
{
theKineticEnergyCuts[J] = 0.0*keV;
}
theAntiNeutrinoELengthCut = theCutInMaxInteractionLength;
theAntiNeutrinoEKineticEnergyCuts = theKineticEnergyCuts;
// Rebuild the physics tables for every process for this particle type
// Set Energy Cut values to lowest for all materials
SetEnergyCutValues(0.0*keV);
}
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4AntiNeutrinoMu.cc,v 1.4.2.1 2001/06/28 19:11:00 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4AntiNeutrinoMu.cc,v 1.10 2001/10/28 05:05:29 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ----------------------------------------------------------------------
@@ -82,32 +82,20 @@ G4AntiNeutrinoMu* G4AntiNeutrinoMu::AntiNeutrinoMuDefinition()
{
return &theAntiNeutrinoMu;
}
// initialization for static cut values
G4double G4AntiNeutrinoMu::theAntiNeutrinoMuLengthCut = -1.0;
G4double* G4AntiNeutrinoMu::theAntiNeutrinoMuKineticEnergyCuts = NULL;
G4AntiNeutrinoMu* G4AntiNeutrinoMu::AntiNeutrinoMu()
{
return &theAntiNeutrinoMu;
}
// **********************************************************************
// **************************** SetCuts *********************************
// **********************************************************************
void G4AntiNeutrinoMu::SetCuts(G4double aCut)
void G4AntiNeutrinoMu::CalcEnergyCuts( const G4Material* )
{
theCutInMaxInteractionLength = aCut;
const G4MaterialTable* materialTable = G4Material::GetMaterialTable();
// Create the vector of cuts in energy
// corresponding to the stopping range cut
if(theKineticEnergyCuts) delete [] theKineticEnergyCuts;
theKineticEnergyCuts = new G4double [materialTable->length()];
// Build range vector for every material, convert cut into energy-cut,
// fill theKineticEnergyCuts and delete the range vector
for (size_t J=0; J<materialTable->length(); J++)
{
theKineticEnergyCuts[J] = 0.0*keV;
}
theAntiNeutrinoMuLengthCut = theCutInMaxInteractionLength;
theAntiNeutrinoMuKineticEnergyCuts = theKineticEnergyCuts;
// Rebuild the physics tables for every process for this particle type
// Set Energy Cut values to lowest for all materials
SetEnergyCutValues(0.0*keV);
}
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4AntiNeutrinoTau.cc,v 1.4.2.1 2001/06/28 19:11:00 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4AntiNeutrinoTau.cc,v 1.10 2001/10/28 05:05:30 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ----------------------------------------------------------------------
@@ -82,32 +82,21 @@ G4AntiNeutrinoTau* G4AntiNeutrinoTau::AntiNeutrinoTauDefinition()
{
return &theAntiNeutrinoTau;
}
// initialization for static cut values
G4double G4AntiNeutrinoTau::theAntiNeutrinoTauLengthCut = -1.0;
G4double* G4AntiNeutrinoTau::theAntiNeutrinoTauKineticEnergyCuts = NULL;
G4AntiNeutrinoTau* G4AntiNeutrinoTau::AntiNeutrinoTau()
{
return &theAntiNeutrinoTau;
}
// **********************************************************************
// **************************** SetCuts *********************************
// **********************************************************************
void G4AntiNeutrinoTau::SetCuts(G4double aCut)
void G4AntiNeutrinoTau::CalcEnergyCuts( const G4Material* )
{
theCutInMaxInteractionLength = aCut;
const G4MaterialTable* materialTable = G4Material::GetMaterialTable();
// Create the vector of cuts in energy
// corresponding to the stopping range cut
if(theKineticEnergyCuts) delete [] theKineticEnergyCuts;
theKineticEnergyCuts = new G4double [materialTable->length()];
// Build range vector for every material, convert cut into energy-cut,
// fill theKineticEnergyCuts and delete the range vector
for (size_t J=0; J<materialTable->length(); J++)
{
theKineticEnergyCuts[J] = 0.0*keV;
}
theAntiNeutrinoTauLengthCut = theCutInMaxInteractionLength;
theAntiNeutrinoTauKineticEnergyCuts = theKineticEnergyCuts;
// Rebuild the physics tables for every process for this particle type
// Set Energy Cut values to lowest for all materials
SetEnergyCutValues(0.0*keV);
}
+8 -6
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Electron.cc,v 1.3.4.2 2001/06/28 20:19:07 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4Electron.cc,v 1.7 2001/10/16 08:16:17 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ----------------------------------------------------------------------
@@ -83,9 +83,6 @@ G4Electron G4Electron::theElectron(
);
G4Electron* G4Electron::ElectronDefinition(){return &theElectron;}
// initialization for static cut values
G4double G4Electron::theElectronLengthCut = -1.0;
G4double* G4Electron::theElectronKineticEnergyCuts = NULL;
// **********************************************************************
// ************************* ComputeLoss ********************************
@@ -171,7 +168,7 @@ void G4Electron::BuildRangeVector(const G4Material* aMaterial,
for (i=0; i<NumEl; i++)
{
G4bool isOut;
G4int IndEl = (*elementVector)(i)->GetIndex();
G4int IndEl = (*elementVector)[i]->GetIndex();
loss += atomicNumDensityVector[i]*
(*aLossTable)[IndEl]->GetValue(tlim,isOut);
}
@@ -205,6 +202,11 @@ void G4Electron::BuildRangeVector(const G4Material* aMaterial,
}
}
G4Electron* G4Electron::Electron()
{
return &theElectron;
}
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4LeptonConstructor.cc,v 1.2.4.1 2001/06/28 19:11:01 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4LeptonConstructor.cc,v 1.3 2001/07/11 10:01:53 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// --------------------------------------------------------------
+7 -4
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4MuonMinus.cc,v 1.4.4.2 2001/06/28 20:19:07 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4MuonMinus.cc,v 1.7 2001/10/16 08:16:17 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ----------------------------------------------------------------------
@@ -97,5 +97,8 @@ G4MuonMinus G4MuonMinus::theMuonMinus(
);
G4MuonMinus* G4MuonMinus::MuonMinusDefinition() {return &theMuonMinus;}
G4double G4MuonMinus::theMuonMinusLengthCut = -1.0;
G4double* G4MuonMinus::theMuonMinusKineticEnergyCuts = NULL;
G4MuonMinus* G4MuonMinus::MuonMinus()
{
return &theMuonMinus;
}
+7 -8
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4MuonPlus.cc,v 1.4.4.2 2001/06/28 20:19:07 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4MuonPlus.cc,v 1.7 2001/10/16 08:16:18 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ----------------------------------------------------------------------
@@ -97,12 +97,11 @@ G4MuonPlus G4MuonPlus::theMuonPlus(
);
G4MuonPlus* G4MuonPlus::MuonPlusDefinition() {return &theMuonPlus;}
// initialization for static cut values
G4double G4MuonPlus::theMuonPlusLengthCut = -1.0;
G4double* G4MuonPlus::theMuonPlusKineticEnergyCuts = NULL;
G4MuonPlus* G4MuonPlus::MuonPlus()
{
return &theMuonPlus;
}
+8 -25
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4NeutrinoE.cc,v 1.4.2.1 2001/06/28 19:11:01 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4NeutrinoE.cc,v 1.10 2001/10/28 05:05:30 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ----------------------------------------------------------------------
@@ -79,36 +79,19 @@ G4NeutrinoE G4NeutrinoE::theNeutrinoE(
);
G4NeutrinoE* G4NeutrinoE::NeutrinoEDefinition() {return &theNeutrinoE;}
// initialization for static cut values
G4double G4NeutrinoE::theNeutrinoELengthCut = -1.0;
G4double* G4NeutrinoE::theNeutrinoEKineticEnergyCuts = NULL;
G4NeutrinoE* G4NeutrinoE::NeutrinoE() {return &theNeutrinoE;}
// **********************************************************************
// **************************** SetCuts *********************************
// **********************************************************************
void G4NeutrinoE::SetCuts(G4double aCut)
void G4NeutrinoE::CalcEnergyCuts( const G4Material* )
{
theCutInMaxInteractionLength = aCut;
const G4MaterialTable* materialTable = G4Material::GetMaterialTable();
// Create the vector of cuts in energy
// corresponding to the stopping range cut
if(theKineticEnergyCuts) delete [] theKineticEnergyCuts;
theKineticEnergyCuts = new G4double [materialTable->length()];
// Build range vector for every material, convert cut into energy-cut,
// fill theKineticEnergyCuts and delete the range vector
for (size_t J=0; J<materialTable->length(); J++)
{
theKineticEnergyCuts[J] = 0.0*keV;
}
theNeutrinoELengthCut = theCutInMaxInteractionLength;
theNeutrinoEKineticEnergyCuts = theKineticEnergyCuts;
// Rebuild the physics tables for every process for this particle type
// Set Energy Cut values to lowest for all materials
SetEnergyCutValues(0.0*keV);
}
+11 -22
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4NeutrinoMu.cc,v 1.4.2.1 2001/06/28 19:11:01 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4NeutrinoMu.cc,v 1.10 2001/10/28 05:05:30 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ----------------------------------------------------------------------
@@ -82,31 +82,20 @@ G4NeutrinoMu* G4NeutrinoMu::NeutrinoMuDefinition()
{
return &theNeutrinoMu;
}
G4double G4NeutrinoMu::theNeutrinoMuLengthCut = -1.0;
G4double* G4NeutrinoMu::theNeutrinoMuKineticEnergyCuts = NULL;
G4NeutrinoMu* G4NeutrinoMu::NeutrinoMu()
{
return &theNeutrinoMu;
}
// **********************************************************************
// **************************** SetCuts *********************************
// **********************************************************************
void G4NeutrinoMu::SetCuts(G4double aCut)
void G4NeutrinoMu::CalcEnergyCuts( const G4Material* )
{
theCutInMaxInteractionLength = aCut;
const G4MaterialTable* materialTable = G4Material::GetMaterialTable();
// Create the vector of cuts in energy
// corresponding to the stopping range cut
if(theKineticEnergyCuts) delete [] theKineticEnergyCuts;
theKineticEnergyCuts = new G4double [materialTable->length()];
// Build range vector for every material, convert cut into energy-cut,
// fill theKineticEnergyCuts and delete the range vector
for (size_t J=0; J<materialTable->length(); J++)
{
theKineticEnergyCuts[J] = 0.0*keV;
}
theNeutrinoMuLengthCut = theCutInMaxInteractionLength;
theNeutrinoMuKineticEnergyCuts = theKineticEnergyCuts;
// Rebuild the physics tables for every process for this particle type
// Set Energy Cut values to lowest for all materials
SetEnergyCutValues(0.0*keV);
}
+7 -23
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4NeutrinoTau.cc,v 1.4.2.1 2001/06/28 19:11:01 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4NeutrinoTau.cc,v 1.10 2001/10/28 05:05:30 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ----------------------------------------------------------------------
@@ -79,32 +79,16 @@ G4NeutrinoTau G4NeutrinoTau::theNeutrinoTau(
);
G4NeutrinoTau* G4NeutrinoTau::NeutrinoTauDefinition(){return &theNeutrinoTau;}
G4double G4NeutrinoTau::theNeutrinoTauLengthCut = -1.0;
G4double* G4NeutrinoTau::theNeutrinoTauKineticEnergyCuts = NULL;
G4NeutrinoTau* G4NeutrinoTau::NeutrinoTau(){return &theNeutrinoTau;}
// **********************************************************************
// **************************** SetCuts *********************************
// **********************************************************************
void G4NeutrinoTau::SetCuts(G4double aCut)
void G4NeutrinoTau::CalcEnergyCuts( const G4Material* )
{
theCutInMaxInteractionLength = aCut;
const G4MaterialTable* materialTable = G4Material::GetMaterialTable();
// Create the vector of cuts in energy
// corresponding to the stopping range cut
if(theKineticEnergyCuts) delete [] theKineticEnergyCuts;
theKineticEnergyCuts = new G4double [materialTable->length()];
// Build range vector for every material, convert cut into energy-cut,
// fill theKineticEnergyCuts and delete the range vector
for (size_t J=0; J<materialTable->length(); J++)
{
theKineticEnergyCuts[J] = 0.0*keV;
}
theNeutrinoTauLengthCut = theCutInMaxInteractionLength;
theNeutrinoTauKineticEnergyCuts = theKineticEnergyCuts;
// Rebuild the physics tables for every process for this particle type
}
// Set Energy Cut values to lowest for all materials
SetEnergyCutValues(0.0*keV);
}
+7 -5
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4Positron.cc,v 1.3.4.2 2001/06/28 20:19:07 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4Positron.cc,v 1.6 2001/10/16 08:16:18 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ----------------------------------------------------------------------
@@ -83,9 +83,6 @@ G4Positron G4Positron::thePositron(
);
G4Positron* G4Positron::PositronDefinition() {return &thePositron;}
// initialization for static cut values
G4double G4Positron::thePositronLengthCut = -1.0;
G4double* G4Positron::thePositronKineticEnergyCuts = NULL;
// **********************************************************************
// ************************* ComputeLoss ********************************
@@ -163,3 +160,8 @@ void G4Positron::BuildRangeVector(const G4Material* aMaterial,
aMass,
rangeVector);
}
G4Positron* G4Positron::Positron()
{
return &thePositron;
}
+7 -6
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4TauMinus.cc,v 1.4.4.2 2001/06/28 20:19:07 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4TauMinus.cc,v 1.7 2001/10/16 08:16:18 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ----------------------------------------------------------------------
@@ -122,9 +122,10 @@ G4TauMinus G4TauMinus::theTauMinus(
);
G4TauMinus* G4TauMinus::TauMinusDefinition() {return &theTauMinus;}
// initialization for static cut values
G4double G4TauMinus::theTauMinusLengthCut = -1.0;
G4double* G4TauMinus::theTauMinusKineticEnergyCuts = NULL;
G4TauMinus* G4TauMinus::TauMinus()
{
return &theTauMinus;
}
+6 -9
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4TauPlus.cc,v 1.4.4.2 2001/06/28 20:19:08 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4TauPlus.cc,v 1.7 2001/10/16 08:16:19 kurasige Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// ----------------------------------------------------------------------
@@ -123,12 +123,9 @@ G4TauPlus G4TauPlus::theTauPlus(
);
G4TauPlus* G4TauPlus::TauPlusDefinition(){return &theTauPlus;}
// initialization for static cut values
G4double G4TauPlus::theTauPlusLengthCut = -1.0;
G4double* G4TauPlus::theTauPlusKineticEnergyCuts = NULL;
G4TauPlus* G4TauPlus::TauPlus()
{
return &theTauPlus;
}
+2 -2
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4VLepton.cc,v 1.2.4.2 2001/06/28 20:19:08 gunter Exp $
// GEANT4 tag $Name: $
// $Id: G4VLepton.cc,v 1.3 2001/07/11 10:01:54 gunter Exp $
// GEANT4 tag $Name: geant4-04-00 $
//
//
// --------------------------------------------------------------