Import Geant4 6.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 10:41:53 +02:00
parent 4aea781e80
commit 96686e0c8f
6560 changed files with 153347 additions and 238155 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4ParticleDefinition.cc,v 1.17.2.1 2003/06/16 17:18:49 gunter Exp $
// GEANT4 tag $Name: geant4-05-02 $
// $Id: G4ParticleDefinition.cc,v 1.20 2003/09/19 18:44:05 kurasige Exp $
// GEANT4 tag $Name: geant4-06-00 $
//
//
// --------------------------------------------------------------
@@ -159,7 +159,7 @@ G4int G4ParticleDefinition::FillQuarkContents()
// this->thePDGEncoding.
{
G4int flavor;
for (flavor= 0; flavor<NumberOfQuarkFlavor-1; flavor++){
for (flavor= 0; flavor<NumberOfQuarkFlavor; flavor++){
theQuarkContent[flavor] = 0;
theAntiQuarkContent[flavor] = 0;
}
@@ -169,7 +169,7 @@ G4int G4ParticleDefinition::FillQuarkContents()
G4int temp = checker.CheckPDGCode(thePDGEncoding, theParticleType);
if ( temp != 0) {
for (flavor= 0; flavor<NumberOfQuarkFlavor-1; flavor++){
for (flavor= 0; flavor<NumberOfQuarkFlavor; flavor++){
theQuarkContent[flavor] = checker.GetQuarkContent(flavor);
theAntiQuarkContent[flavor] = checker.GetAntiQuarkContent(flavor);
}
@@ -266,114 +266,6 @@ void G4ParticleDefinition::SetApplyCutsFlag(G4bool flg)
}
}
// Following methods are moved from G4ParticleWithCuts class
// for keeping backward compatibility. These methods are obsolete
// and will be completely removed away in near future.
#include "G4MaterialCutsCouple.hh"
#include "G4ProductionCuts.hh"
#include "G4ProductionCutsTable.hh"
void G4ParticleDefinition::SetCuts(G4double aCut)
{
G4cerr << "Warning : you invoked G4ParticleDefinition::SetCuts." << G4endl;
G4cerr << " This method is obsolete and will be removed soon." << G4endl;
G4cerr << " Use G4ProductionCuts class." << G4endl;
G4ProductionCuts* defaultCuts
= G4ProductionCutsTable::GetProductionCutsTable()->GetDefaultProductionCuts();
defaultCuts->SetProductionCut(aCut,this);
}
void G4ParticleDefinition::SetRangeCut(G4double aCut, const G4Material*)
{
G4cerr << "Warning : you invoked G4ParticleDefinition::SetRangeCut." << G4endl;
G4cerr << " This method is obsolete and will be removed soon." << G4endl;
G4cerr << " Use G4ProductionCuts class." << G4endl;
G4ProductionCuts* defaultCuts
= G4ProductionCutsTable::GetProductionCutsTable()->GetDefaultProductionCuts();
defaultCuts->SetProductionCut(aCut,this);
}
void G4ParticleDefinition::SetRangeCutVector(std::vector<G4double>& vec)
{
G4cerr << "Warning : you invoked G4ParticleDefinition::SetRangeCutVector." << G4endl;
G4cerr << " This method is obsolete and will be removed soon." << G4endl;
G4cerr << " Use G4ProductionCuts class." << G4endl;
G4ProductionCuts* defaultCuts
= G4ProductionCutsTable::GetProductionCutsTable()->GetDefaultProductionCuts();
defaultCuts->SetProductionCut(vec[0],this);
}
G4double* G4ParticleDefinition::GetLengthCuts() const
{
G4cerr << "Warning : you invoked G4ParticleDefinition::GetLengthCuts." << G4endl;
G4cerr << " This method is obsolete and will be removed soon." << G4endl;
G4cerr << " Use G4ProductionCuts class." << G4endl;
G4int idx = G4ProductionCuts::GetIndex(this);
if(idx<0) return NULL;
return G4ProductionCutsTable::GetProductionCutsTable()->GetRangeCutsDoubleVector(idx);
}
G4double G4ParticleDefinition::GetRangeThreshold(const G4Material* aMat) const
{
G4cerr << "Warning : you invoked G4ParticleDefinition::GetLengthThreshold." << G4endl;
G4cerr << " This method is obsolete and will be removed soon." << G4endl;
G4cerr << " Use G4ProductionCuts class." << G4endl;
G4int idx = G4ProductionCuts::GetIndex(this);
if(idx<0) return -1.;
G4ProductionCuts* defaultCuts
= G4ProductionCutsTable::GetProductionCutsTable()->GetDefaultProductionCuts();
const G4MaterialCutsCouple* materialCutsCouple
= G4ProductionCutsTable::GetProductionCutsTable()->GetMaterialCutsCouple(aMat,defaultCuts);
if(materialCutsCouple==NULL) return -1.;
G4double* vec
= G4ProductionCutsTable::GetProductionCutsTable()->GetRangeCutsDoubleVector(idx);
return vec[materialCutsCouple->GetIndex()];
}
G4double* G4ParticleDefinition::GetEnergyCuts() const
{
G4cerr << "Warning : you invoked G4ParticleDefinition::GetEnergyCuts." << G4endl;
G4cerr << " This method is obsolete and will be removed soon." << G4endl;
G4cerr << " Use G4ProductionCuts class." << G4endl;
G4int idx = G4ProductionCuts::GetIndex(this);
if(idx<0) return NULL;
return G4ProductionCutsTable::GetProductionCutsTable()->GetEnergyCutsDoubleVector(idx);
}
G4double G4ParticleDefinition::GetEnergyThreshold(const G4Material* aMat) const
{
G4cerr << "Warning : you invoked G4ParticleDefinition::GetEnergyThreshold." << G4endl;
G4cerr << " This method is obsolete and will be removed soon." << G4endl;
G4cerr << " Use G4ProductionCuts class." << G4endl;
G4int idx = G4ProductionCuts::GetIndex(this);
if(idx<0) return -1.;
G4ProductionCuts* defaultCuts
= G4ProductionCutsTable::GetProductionCutsTable()->GetDefaultProductionCuts();
const G4MaterialCutsCouple* materialCutsCouple
= G4ProductionCutsTable::GetProductionCutsTable()->GetMaterialCutsCouple(aMat,defaultCuts);
if(materialCutsCouple==NULL) return -1.;
G4double* vec
= G4ProductionCutsTable::GetProductionCutsTable()->GetEnergyCutsDoubleVector(idx);
return vec[materialCutsCouple->GetIndex()];
}
#include "G4VRangeToEnergyConverter.hh"
void G4ParticleDefinition::SetEnergyRange(G4double lowedge, G4double highedge)
{
G4VRangeToEnergyConverter::SetEnergyRange(lowedge, highedge);
}