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
+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 $
//
//
// --------------------------------------------------------------