Import Geant4 4.0.0 source tree
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4DMesonZero.cc,v 1.5.2.1 2001/06/28 19:10:55 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4DMesonZero.cc,v 1.10 2001/10/28 05:01:33 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
@@ -83,9 +83,6 @@ G4DMesonZero G4DMesonZero::theDMesonZero(
|
||||
|
||||
G4DMesonZero* G4DMesonZero::DMesonZeroDefinition(){return &theDMesonZero;}
|
||||
G4DMesonZero* G4DMesonZero::DMesonZero(){return &theDMesonZero;}
|
||||
// initialization for static cut values
|
||||
G4double G4DMesonZero::theDMesonZeroLengthCut = -1.0;
|
||||
G4double* G4DMesonZero::theDMesonZeroKineticEnergyCuts = NULL;
|
||||
|
||||
// **********************************************************************
|
||||
// **************************** SetCuts *********************************
|
||||
@@ -93,24 +90,13 @@ G4double* G4DMesonZero::theDMesonZeroKineticEnergyCuts = NULL;
|
||||
// In this version Input Cut Value is meaning less
|
||||
// theKineticEnergyCuts for all materials are set to LowestEnergy
|
||||
|
||||
void G4DMesonZero::SetCuts(G4double aCut)
|
||||
void G4DMesonZero::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()];
|
||||
// Set Energy Cut values to lowest for all materials
|
||||
SetEnergyCutValues(LowestEnergy);
|
||||
|
||||
// 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] = LowestEnergy;
|
||||
}
|
||||
theDMesonZeroLengthCut = theCutInMaxInteractionLength;
|
||||
theDMesonZeroKineticEnergyCuts = theKineticEnergyCuts;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user