Import Geant4 1.1.0 source tree
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4EvtBiasMechanism.cc,v 1.2.8.1 1999/12/07 20:53:01 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4EvtBiasMechanism.cc,v 1.3 1999/12/15 14:53:55 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Mars5GeVMechanism.cc,v 1.3.8.1 1999/12/07 20:53:01 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4Mars5GeVMechanism.cc,v 1.4 1999/12/15 14:53:55 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
@@ -84,7 +84,7 @@ void G4Mars5GeVMechanism::GetTargetNuclei(const G4Material* material)
|
||||
const G4int numberOfElements = material->GetNumberOfElements() ;
|
||||
#ifdef G4VERBOSE
|
||||
if (GetVerboseLevel() > 2) {
|
||||
G4cout << " G4Mars5GeVMechanism::GetTargetNuclei" << endl;
|
||||
G4cout << " G4Mars5GeVMechanism::GetTargetNuclei" << G4endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -99,7 +99,7 @@ void G4Mars5GeVMechanism::GetTargetNuclei(const G4Material* material)
|
||||
if (GetVerboseLevel() > 2) {
|
||||
G4cout << iel << ": " << theAtomicNumDensityVector[iel];
|
||||
G4cout << " Z=" << (*theElementVector)(iel)->GetZ() << " A=" << (*theElementVector)(iel)->GetN();
|
||||
G4cout << endl;
|
||||
G4cout << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -109,7 +109,7 @@ void G4Mars5GeVMechanism::GetTargetNuclei(const G4Material* material)
|
||||
if (GetVerboseLevel() > 2) {
|
||||
G4cout << "<Z>=" << fZNucl;
|
||||
G4cout << "<A>=" << fANucl;
|
||||
G4cout << endl;
|
||||
G4cout << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -126,7 +126,7 @@ void G4Mars5GeVMechanism::Treem5()
|
||||
if (GetVerboseLevel() > 2) {
|
||||
G4cout << " G4Mars5GeVMechanism::Treem5() ";
|
||||
G4cout << " Incident Particle: " << incidentParticle->GetDefinition()->GetParticleName();
|
||||
G4cout << " : energy = " << pE/GeV << "[GeV]" << endl;
|
||||
G4cout << " : energy = " << pE/GeV << "[GeV]" << G4endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -178,7 +178,7 @@ G4bool G4Mars5GeVMechanism::CoulombBarrier(G4int pType, G4double pE){
|
||||
if ( rCoulomb < RCoulombTh ) {
|
||||
#ifdef G4VERBOSE
|
||||
if (GetVerboseLevel() > 2) {
|
||||
G4cout << " Can not interact because of Coulomb Barrier " << endl;
|
||||
G4cout << " Can not interact because of Coulomb Barrier " << G4endl;
|
||||
}
|
||||
#endif
|
||||
return true;
|
||||
@@ -192,7 +192,7 @@ void G4Mars5GeVMechanism::CreateNucleon(G4int ib, G4int pType, G4double pE)
|
||||
{
|
||||
#ifdef G4VERBOSE
|
||||
if (GetVerboseLevel() > 2) {
|
||||
G4cout << " G4Mars5GeVMechanism::CreateNucleon()" << endl;
|
||||
G4cout << " G4Mars5GeVMechanism::CreateNucleon()" << G4endl;
|
||||
}
|
||||
#endif
|
||||
if ( pType == MarsGAM) {
|
||||
@@ -231,7 +231,7 @@ void G4Mars5GeVMechanism::CreatePion(G4int ib, G4int pType, G4double pE)
|
||||
{
|
||||
#ifdef G4VERBOSE
|
||||
if (GetVerboseLevel() > 2) {
|
||||
G4cout << " G4Mars5GeVMechanism::CreatePion()" << endl;
|
||||
G4cout << " G4Mars5GeVMechanism::CreatePion()" << G4endl;
|
||||
}
|
||||
#endif
|
||||
static const G4double PionProductionEth = 0.28*GeV;
|
||||
@@ -283,7 +283,7 @@ void G4Mars5GeVMechanism::CreatePionZero(G4int ib, G4int pType, G4double pE)
|
||||
{
|
||||
#ifdef G4VERBOSE
|
||||
if (GetVerboseLevel() > 2) {
|
||||
G4cout << " G4Mars5GeVMechanism::CreatePionZero()" << endl;
|
||||
G4cout << " G4Mars5GeVMechanism::CreatePionZero()" << G4endl;
|
||||
}
|
||||
#endif
|
||||
static const G4double PionProductionEth = 0.28*GeV;
|
||||
@@ -319,11 +319,11 @@ void G4Mars5GeVMechanism::AddSecondary()
|
||||
{
|
||||
#ifdef G4VERBOSE
|
||||
if (GetVerboseLevel() > 2) {
|
||||
G4cout << " G4Mars5GeVMechanism::AddSecondary()" << endl;
|
||||
G4cout << " G4Mars5GeVMechanism::AddSecondary()" << G4endl;
|
||||
G4cout << " Particle :" << selec1.Tprod;
|
||||
G4cout << ":" << GetParticleName(selec1.Tprod) <<endl;
|
||||
G4cout << " Energy :" << selec1.EN <<endl;
|
||||
G4cout << "Weight :" << selec1.V * incidentWeight << endl;
|
||||
G4cout << ":" << GetParticleName(selec1.Tprod) <<G4endl;
|
||||
G4cout << " Energy :" << selec1.EN <<G4endl;
|
||||
G4cout << "Weight :" << selec1.V * incidentWeight << G4endl;
|
||||
}
|
||||
#endif
|
||||
// determine direction cosine
|
||||
@@ -370,11 +370,11 @@ G4double G4Mars5GeVMechanism::SelBS(G4int pType, G4double aNucl, G4double zNucl)
|
||||
|
||||
#ifdef G4VERBOSE
|
||||
if (GetVerboseLevel() > 2) {
|
||||
G4cout << " G4Mars5GeVMechanism::SelBS" << endl;
|
||||
G4cout << " pType = " << pType << " e0 = " << e0 << endl;
|
||||
G4cout << " aNucl = " << aNucl << " zNucl = " << zNucl << endl;
|
||||
G4cout << " G4Mars5GeVMechanism::SelBS" << G4endl;
|
||||
G4cout << " pType = " << pType << " e0 = " << e0 << G4endl;
|
||||
G4cout << " aNucl = " << aNucl << " zNucl = " << zNucl << G4endl;
|
||||
G4cout << " Treac = " <<selec1.Treac;
|
||||
G4cout << " Tprod = " <<selec1.Tprod << endl;
|
||||
G4cout << " Tprod = " <<selec1.Tprod << G4endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -410,7 +410,7 @@ G4double G4Mars5GeVMechanism::SelBS(G4int pType, G4double aNucl, G4double zNucl)
|
||||
|
||||
#ifdef G4VERBOSE
|
||||
if (GetVerboseLevel() > 2) {
|
||||
G4cout << "selec1.EN = " << en << endl;
|
||||
G4cout << "selec1.EN = " << en << G4endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -452,7 +452,7 @@ G4double G4Mars5GeVMechanism::SelBS(G4int pType, G4double aNucl, G4double zNucl)
|
||||
#ifdef G4VERBOSE
|
||||
if (GetVerboseLevel() > 2) {
|
||||
G4cout << " D2N2 = " << v2/(dw*da*(selec1.V10));
|
||||
G4cout << " v2 = " << v2 << endl;
|
||||
G4cout << " v2 = " << v2 << G4endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -462,7 +462,7 @@ G4double G4Mars5GeVMechanism::SelBS(G4int pType, G4double aNucl, G4double zNucl)
|
||||
selec1.V = 0.0;
|
||||
#ifdef G4VERBOSE
|
||||
if (GetVerboseLevel() > 2) {
|
||||
G4cout << "exceed retry limit !!" << endl;
|
||||
G4cout << "exceed retry limit !!" << G4endl;
|
||||
}
|
||||
#endif
|
||||
return selec1.V;
|
||||
@@ -880,7 +880,7 @@ void G4Mars5GeVMechanism::Trans(G4ThreeVector* d1,G4ThreeVector* d2)
|
||||
|
||||
#ifdef G4VERBOSE
|
||||
if (GetVerboseLevel() > 2) {
|
||||
G4cout << " G4Mars5GeVMechanism::Trans() " << endl;
|
||||
G4cout << " G4Mars5GeVMechanism::Trans() " << G4endl;
|
||||
}
|
||||
#endif
|
||||
// Direction cosine transformation
|
||||
@@ -925,7 +925,7 @@ G4VParticleChange* G4Mars5GeVMechanism::ApplyMath(
|
||||
G4VParticleChange* pChange = (pVPChange);
|
||||
#ifdef G4VERBOSE
|
||||
if (GetVerboseLevel() > 2) {
|
||||
G4cout << " G4Mars5GeVMechanism::ApplyMath" << endl;
|
||||
G4cout << " G4Mars5GeVMechanism::ApplyMath" << G4endl;
|
||||
}
|
||||
#endif
|
||||
G4Track* incidentTrack = aStep.GetTrack();
|
||||
@@ -940,7 +940,7 @@ G4VParticleChange* G4Mars5GeVMechanism::ApplyMath(
|
||||
if ( !IsApplicable(incidentMarsEncoding) ) return pChange;
|
||||
#ifdef G4VERBOSE
|
||||
if (GetVerboseLevel() > 2) {
|
||||
G4cout << " OK the particle is applicable" << endl;
|
||||
G4cout << " OK the particle is applicable" << G4endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ParticleChange.cc,v 1.7.6.1 1999/12/07 20:53:01 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4ParticleChange.cc,v 1.9 2000/01/18 02:54:14 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
@@ -36,7 +36,7 @@ G4ParticleChange::G4ParticleChange():G4VParticleChange(false)
|
||||
{
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>2) {
|
||||
G4cout << "G4ParticleChange::G4ParticleChange() " << endl;
|
||||
G4cout << "G4ParticleChange::G4ParticleChange() " << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -45,7 +45,7 @@ G4ParticleChange::G4ParticleChange(G4bool useEB):G4VParticleChange(useEB)
|
||||
{
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>2) {
|
||||
G4cout << "G4ParticleChange::G4ParticleChange() " << endl;
|
||||
G4cout << "G4ParticleChange::G4ParticleChange() " << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -54,7 +54,7 @@ G4ParticleChange::~G4ParticleChange()
|
||||
{
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>2) {
|
||||
G4cout << "G4ParticleChange::~G4ParticleChange() " << endl;
|
||||
G4cout << "G4ParticleChange::~G4ParticleChange() " << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -63,7 +63,7 @@ G4ParticleChange::~G4ParticleChange()
|
||||
G4ParticleChange::G4ParticleChange(const G4ParticleChange &right): G4VParticleChange(right)
|
||||
{
|
||||
if (verboseLevel>1) {
|
||||
G4cout << "G4ParticleChange:: copy constructor is called " << endl;
|
||||
G4cout << "G4ParticleChange:: copy constructor is called " << G4endl;
|
||||
}
|
||||
theMomentumDirectionChange = right.theMomentumDirectionChange;
|
||||
thePolarizationChange = right.thePolarizationChange;
|
||||
@@ -79,7 +79,7 @@ G4ParticleChange::G4ParticleChange(const G4ParticleChange &right): G4VParticleCh
|
||||
G4ParticleChange & G4ParticleChange::operator=(const G4ParticleChange &right)
|
||||
{
|
||||
if (verboseLevel>1) {
|
||||
G4cout << "G4ParticleChange:: assignment operator is called " << endl;
|
||||
G4cout << "G4ParticleChange:: assignment operator is called " << G4endl;
|
||||
}
|
||||
if (this != &right)
|
||||
{
|
||||
@@ -366,52 +366,50 @@ void G4ParticleChange::DumpInfo() const
|
||||
G4cout.precision(3);
|
||||
|
||||
G4cout << " Mass (GeV) : "
|
||||
<< setw(20) << theMassChange/GeV
|
||||
<< endl;
|
||||
<< G4std::setw(20) << theMassChange/GeV
|
||||
<< G4endl;
|
||||
G4cout << " Charge (eplus) : "
|
||||
<< setw(20) << theChargeChange/eplus
|
||||
<< endl;
|
||||
<< G4std::setw(20) << theChargeChange/eplus
|
||||
<< G4endl;
|
||||
G4cout << " Position - x (mm) : "
|
||||
<< setw(20) << thePositionChange.x()/mm
|
||||
<< endl;
|
||||
<< G4std::setw(20) << thePositionChange.x()/mm
|
||||
<< G4endl;
|
||||
G4cout << " Position - y (mm) : "
|
||||
<< setw(20) << thePositionChange.y()/mm
|
||||
<< endl;
|
||||
<< G4std::setw(20) << thePositionChange.y()/mm
|
||||
<< G4endl;
|
||||
G4cout << " Position - z (mm) : "
|
||||
<< setw(20) << thePositionChange.z()/mm
|
||||
<< endl;
|
||||
<< G4std::setw(20) << thePositionChange.z()/mm
|
||||
<< G4endl;
|
||||
G4cout << " Time (ns) : "
|
||||
<< setw(20) << theTimeChange/ns
|
||||
<< endl;
|
||||
<< G4std::setw(20) << theTimeChange/ns
|
||||
<< G4endl;
|
||||
G4cout << " Proper Time (ns) : "
|
||||
<< setw(20) << theProperTimeChange/ns
|
||||
<< endl;
|
||||
<< G4std::setw(20) << theProperTimeChange/ns
|
||||
<< G4endl;
|
||||
G4cout << " Momentum Direct - x : "
|
||||
<< setw(20) << theMomentumDirectionChange.x()
|
||||
<< endl;
|
||||
<< G4std::setw(20) << theMomentumDirectionChange.x()
|
||||
<< G4endl;
|
||||
G4cout << " Momentum Direct - y : "
|
||||
<< setw(20) << theMomentumDirectionChange.y()
|
||||
<< endl;
|
||||
<< G4std::setw(20) << theMomentumDirectionChange.y()
|
||||
<< G4endl;
|
||||
G4cout << " Momentum Direct - z : "
|
||||
<< setw(20) << theMomentumDirectionChange.z()
|
||||
<< endl;
|
||||
<< G4std::setw(20) << theMomentumDirectionChange.z()
|
||||
<< G4endl;
|
||||
G4cout << " Kinetic Energy (MeV): "
|
||||
<< setw(20) << theEnergyChange/MeV
|
||||
<< endl;
|
||||
<< G4std::setw(20) << theEnergyChange/MeV
|
||||
<< G4endl;
|
||||
G4cout << " Polarization - x : "
|
||||
<< setw(20) << thePolarizationChange.x()
|
||||
<< endl;
|
||||
<< G4std::setw(20) << thePolarizationChange.x()
|
||||
<< G4endl;
|
||||
G4cout << " Polarization - y : "
|
||||
<< setw(20) << thePolarizationChange.y()
|
||||
<< endl;
|
||||
<< G4std::setw(20) << thePolarizationChange.y()
|
||||
<< G4endl;
|
||||
G4cout << " Polarization - z : "
|
||||
<< setw(20) << thePolarizationChange.z()
|
||||
<< endl;
|
||||
if (fUseEB) {
|
||||
G4cout << " Track Weight : "
|
||||
<< setw(20) << theWeightChange
|
||||
<< endl;
|
||||
}
|
||||
<< G4std::setw(20) << thePolarizationChange.z()
|
||||
<< G4endl;
|
||||
G4cout << " Track Weight : "
|
||||
<< G4std::setw(20) << theWeightChange
|
||||
<< G4endl;
|
||||
}
|
||||
|
||||
G4bool G4ParticleChange::CheckIt(const G4Track& aTrack)
|
||||
@@ -430,8 +428,8 @@ G4bool G4ParticleChange::CheckIt(const G4Track& aTrack)
|
||||
accuracy = abs(theMomentumDirectionChange.mag2()-1.0);
|
||||
if (accuracy > accuracyForWarning) {
|
||||
G4cout << " G4ParticleChange::CheckIt : ";
|
||||
G4cout << "the Momentum Change is not unit vector !!" << endl;
|
||||
G4cout << " Difference: " << accuracy << endl;
|
||||
G4cout << "the Momentum Change is not unit vector !!" << G4endl;
|
||||
G4cout << " Difference: " << accuracy << G4endl;
|
||||
itsOKforMomentum = false;
|
||||
if (accuracy > accuracyForException) exitWithError = true;
|
||||
}
|
||||
@@ -442,8 +440,8 @@ G4bool G4ParticleChange::CheckIt(const G4Track& aTrack)
|
||||
accuracy = (aTrack.GetGlobalTime()- theTimeChange)/ns;
|
||||
if (accuracy > accuracyForWarning) {
|
||||
G4cout << " G4ParticleChange::CheckIt : ";
|
||||
G4cout << "the global time goes back !!" << endl;
|
||||
G4cout << " Difference: " << accuracy << "[ns] " <<endl;
|
||||
G4cout << "the global time goes back !!" << G4endl;
|
||||
G4cout << " Difference: " << accuracy << "[ns] " <<G4endl;
|
||||
itsOKforGlobalTime = false;
|
||||
if (accuracy > accuracyForException) exitWithError = true;
|
||||
}
|
||||
@@ -452,8 +450,8 @@ G4bool G4ParticleChange::CheckIt(const G4Track& aTrack)
|
||||
accuracy = (aTrack.GetProperTime() - theProperTimeChange )/ns;
|
||||
if (accuracy > accuracyForWarning) {
|
||||
G4cout << " G4ParticleChange::CheckIt : ";
|
||||
G4cout << "the proper time goes back !!" << endl;
|
||||
G4cout << " Difference: " << accuracy << "[ns] " <<endl;
|
||||
G4cout << "the proper time goes back !!" << G4endl;
|
||||
G4cout << " Difference: " << accuracy << "[ns] " <<G4endl;
|
||||
itsOKforProperTime = false;
|
||||
if (accuracy > accuracyForException) exitWithError = true;
|
||||
}
|
||||
@@ -463,8 +461,8 @@ G4bool G4ParticleChange::CheckIt(const G4Track& aTrack)
|
||||
accuracy = -1.0*theEnergyChange/MeV;
|
||||
if (accuracy > accuracyForWarning) {
|
||||
G4cout << " G4ParticleChange::CheckIt : ";
|
||||
G4cout << "the kinetic energy is negative !!" << endl;
|
||||
G4cout << " Difference: " << accuracy << "[MeV] " <<endl;
|
||||
G4cout << "the kinetic energy is negative !!" << G4endl;
|
||||
G4cout << " Difference: " << accuracy << "[MeV] " <<G4endl;
|
||||
itsOKforEnergy = false;
|
||||
if (accuracy > accuracyForException) exitWithError = true;
|
||||
}
|
||||
@@ -472,8 +470,8 @@ G4bool G4ParticleChange::CheckIt(const G4Track& aTrack)
|
||||
G4bool itsOK = itsOKforMomentum && itsOKforEnergy && itsOKforProperTime && itsOKforGlobalTime;
|
||||
// dump out information of this particle change
|
||||
if (!itsOK) {
|
||||
G4cout << " G4ParticleChange::CheckIt " <<endl;
|
||||
G4cout << " pointer : " << this <<endl ;
|
||||
G4cout << " G4ParticleChange::CheckIt " <<G4endl;
|
||||
G4cout << " pointer : " << this <<G4endl ;
|
||||
DumpInfo();
|
||||
}
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ParticleChangeForDecay.cc,v 1.3.8.1 1999/12/07 20:53:01 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4ParticleChangeForDecay.cc,v 1.4 1999/12/15 14:53:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
@@ -31,7 +31,7 @@ G4ParticleChangeForDecay::G4ParticleChangeForDecay():G4VParticleChange()
|
||||
{
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>2) {
|
||||
G4cout << "G4ParticleChangeForDecay::G4ParticleChangeForDecay() " << endl;
|
||||
G4cout << "G4ParticleChangeForDecay::G4ParticleChangeForDecay() " << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -40,7 +40,7 @@ G4ParticleChangeForDecay::~G4ParticleChangeForDecay()
|
||||
{
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>2) {
|
||||
G4cout << "G4ParticleChangeForDecay::~G4ParticleChangeForDecay() " << endl;
|
||||
G4cout << "G4ParticleChangeForDecay::~G4ParticleChangeForDecay() " << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -135,8 +135,8 @@ void G4ParticleChangeForDecay::DumpInfo() const
|
||||
|
||||
G4cout.precision(3);
|
||||
G4cout << " Time (ns) : "
|
||||
<< setw(20) << theTimeChange/ns
|
||||
<< endl;
|
||||
<< G4std::setw(20) << theTimeChange/ns
|
||||
<< G4endl;
|
||||
}
|
||||
|
||||
G4bool G4ParticleChangeForDecay::CheckIt(const G4Track& aTrack)
|
||||
@@ -150,16 +150,16 @@ G4bool G4ParticleChangeForDecay::CheckIt(const G4Track& aTrack)
|
||||
accuracy = -1.0*(theTimeChange - aTrack.GetGlobalTime())/ns;
|
||||
if (accuracy > accuracyForWarning) {
|
||||
G4cout << " G4ParticleChangeForDecay::CheckIt : ";
|
||||
G4cout << "the global time goes back !!" << endl;
|
||||
G4cout << " Difference: " << accuracy << "[ns] " <<endl;
|
||||
G4cout << "the global time goes back !!" << G4endl;
|
||||
G4cout << " Difference: " << accuracy << "[ns] " <<G4endl;
|
||||
itsOK = false;
|
||||
if (accuracy > accuracyForException) exitWithError = true;
|
||||
}
|
||||
|
||||
// dump out information of this particle change
|
||||
if (!itsOK) {
|
||||
G4cout << " G4ParticleChangeForDecay::CheckIt " <<endl;
|
||||
G4cout << " pointer : " << this <<endl ;
|
||||
G4cout << " G4ParticleChangeForDecay::CheckIt " <<G4endl;
|
||||
G4cout << " pointer : " << this <<G4endl ;
|
||||
DumpInfo();
|
||||
}
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ParticleChangeForLoss.cc,v 1.3.8.1 1999/12/07 20:53:02 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4ParticleChangeForLoss.cc,v 1.4 1999/12/15 14:53:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
@@ -31,7 +31,7 @@ G4ParticleChangeForLoss::G4ParticleChangeForLoss():G4VParticleChange()
|
||||
debugFlag = false;
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>2) {
|
||||
G4cout << "G4ParticleChangeForLoss::G4ParticleChangeForLoss() " << endl;
|
||||
G4cout << "G4ParticleChangeForLoss::G4ParticleChangeForLoss() " << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -40,7 +40,7 @@ G4ParticleChangeForLoss::~G4ParticleChangeForLoss()
|
||||
{
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>2) {
|
||||
G4cout << "G4ParticleChangeForLoss::~G4ParticleChangeForLoss() " << endl;
|
||||
G4cout << "G4ParticleChangeForLoss::~G4ParticleChangeForLoss() " << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -49,7 +49,7 @@ G4ParticleChangeForLoss::~G4ParticleChangeForLoss()
|
||||
G4ParticleChangeForLoss::G4ParticleChangeForLoss(const G4ParticleChangeForLoss &right): G4VParticleChange(right)
|
||||
{
|
||||
if (verboseLevel>1) {
|
||||
G4cout << "G4ParticleChangeForLoss:: copy constructor is called " << endl;
|
||||
G4cout << "G4ParticleChangeForLoss:: copy constructor is called " << G4endl;
|
||||
}
|
||||
theEnergyChange = right.theEnergyChange;
|
||||
}
|
||||
@@ -58,7 +58,7 @@ G4ParticleChangeForLoss::G4ParticleChangeForLoss(const G4ParticleChangeForLoss &
|
||||
G4ParticleChangeForLoss & G4ParticleChangeForLoss::operator=(const G4ParticleChangeForLoss &right)
|
||||
{
|
||||
if (verboseLevel>1) {
|
||||
G4cout << "G4ParticleChangeForLoss:: assignment operator is called " << endl;
|
||||
G4cout << "G4ParticleChangeForLoss:: assignment operator is called " << G4endl;
|
||||
}
|
||||
if (this != &right)
|
||||
{
|
||||
@@ -140,8 +140,8 @@ void G4ParticleChangeForLoss::DumpInfo() const
|
||||
|
||||
G4cout.precision(3);
|
||||
G4cout << " Kinetic Energy (MeV): "
|
||||
<< setw(20) << theEnergyChange/MeV
|
||||
<< endl;
|
||||
<< G4std::setw(20) << theEnergyChange/MeV
|
||||
<< G4endl;
|
||||
}
|
||||
|
||||
G4bool G4ParticleChangeForLoss::CheckIt(const G4Track& aTrack)
|
||||
@@ -155,16 +155,16 @@ G4bool G4ParticleChangeForLoss::CheckIt(const G4Track& aTrack)
|
||||
accuracy = ( theEnergyChange - aTrack.GetKineticEnergy())/MeV;
|
||||
if (accuracy > accuracyForWarning) {
|
||||
G4cout << " G4ParticleChangeForLoss::CheckIt : ";
|
||||
G4cout << "the energy becoes larger than the initial value !!" << endl;
|
||||
G4cout << " Difference: " << accuracy << "[MeV] " <<endl;
|
||||
G4cout << "the energy becoes larger than the initial value !!" << G4endl;
|
||||
G4cout << " Difference: " << accuracy << "[MeV] " <<G4endl;
|
||||
itsOK = false;
|
||||
if (accuracy > accuracyForException) exitWithError = true;
|
||||
}
|
||||
|
||||
// dump out information of this particle change
|
||||
if (!itsOK) {
|
||||
G4cout << " G4ParticleChangeForLoss::CheckIt " <<endl;
|
||||
G4cout << " pointer : " << this <<endl ;
|
||||
G4cout << " G4ParticleChangeForLoss::CheckIt " <<G4endl;
|
||||
G4cout << " pointer : " << this <<G4endl ;
|
||||
DumpInfo();
|
||||
}
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ParticleChangeForMSC.cc,v 1.4.8.1 1999/12/07 20:53:02 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4ParticleChangeForMSC.cc,v 1.5 1999/12/15 14:53:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
@@ -30,7 +30,7 @@ G4ParticleChangeForMSC::G4ParticleChangeForMSC():G4VParticleChange()
|
||||
{
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>2) {
|
||||
G4cout << "G4ParticleChangeForMSC::G4ParticleChangeForMSC() " << endl;
|
||||
G4cout << "G4ParticleChangeForMSC::G4ParticleChangeForMSC() " << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -39,7 +39,7 @@ G4ParticleChangeForMSC::~G4ParticleChangeForMSC()
|
||||
{
|
||||
#ifdef G4VERBOSE
|
||||
if (verboseLevel>2) {
|
||||
G4cout << "G4ParticleChangeForMSC::~G4ParticleChangeForMSC() " << endl;
|
||||
G4cout << "G4ParticleChangeForMSC::~G4ParticleChangeForMSC() " << G4endl;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@@ -48,7 +48,7 @@ G4ParticleChangeForMSC::G4ParticleChangeForMSC(
|
||||
const G4ParticleChangeForMSC &right): G4VParticleChange(right)
|
||||
{
|
||||
if (verboseLevel>1) {
|
||||
G4cout << "G4ParticleChangeForMSC:: copy constructor is called " << endl;
|
||||
G4cout << "G4ParticleChangeForMSC:: copy constructor is called " << G4endl;
|
||||
}
|
||||
theMomentumDirectionChange = right.theMomentumDirectionChange;
|
||||
thePositionChange = right.thePositionChange;
|
||||
@@ -60,7 +60,7 @@ G4ParticleChangeForMSC & G4ParticleChangeForMSC::operator=(
|
||||
const G4ParticleChangeForMSC &right)
|
||||
{
|
||||
if (verboseLevel>1) {
|
||||
G4cout << "G4ParticleChangeForMSC:: assignment operator is called " << endl;
|
||||
G4cout << "G4ParticleChangeForMSC:: assignment operator is called " << G4endl;
|
||||
}
|
||||
if (this != &right)
|
||||
{
|
||||
@@ -153,23 +153,23 @@ void G4ParticleChangeForMSC::DumpInfo() const
|
||||
|
||||
G4cout.precision(3);
|
||||
G4cout << " Position - x (mm) : "
|
||||
<< setw(20) << thePositionChange.x()/mm
|
||||
<< endl;
|
||||
<< G4std::setw(20) << thePositionChange.x()/mm
|
||||
<< G4endl;
|
||||
G4cout << " Position - y (mm) : "
|
||||
<< setw(20) << thePositionChange.y()/mm
|
||||
<< endl;
|
||||
<< G4std::setw(20) << thePositionChange.y()/mm
|
||||
<< G4endl;
|
||||
G4cout << " Position - z (mm) : "
|
||||
<< setw(20) << thePositionChange.z()/mm
|
||||
<< endl;
|
||||
<< G4std::setw(20) << thePositionChange.z()/mm
|
||||
<< G4endl;
|
||||
G4cout << " Momentum Direction - x : "
|
||||
<< setw(20) << theMomentumDirectionChange.x()
|
||||
<< endl;
|
||||
<< G4std::setw(20) << theMomentumDirectionChange.x()
|
||||
<< G4endl;
|
||||
G4cout << " Momentum Direction - y : "
|
||||
<< setw(20) << theMomentumDirectionChange.y()
|
||||
<< endl;
|
||||
<< G4std::setw(20) << theMomentumDirectionChange.y()
|
||||
<< G4endl;
|
||||
G4cout << " Momentum Direction - z : "
|
||||
<< setw(20) << theMomentumDirectionChange.z()
|
||||
<< endl;
|
||||
<< G4std::setw(20) << theMomentumDirectionChange.z()
|
||||
<< G4endl;
|
||||
}
|
||||
|
||||
|
||||
@@ -186,16 +186,16 @@ G4bool G4ParticleChangeForMSC::CheckIt(const G4Track& aTrack)
|
||||
accuracy = abs(theMomentumDirectionChange.mag2()-1.0);
|
||||
if (accuracy > accuracyForWarning) {
|
||||
G4cout << " G4ParticleChangeForMSC::CheckIt : ";
|
||||
G4cout << "the Momentum Change is not unit vector !!" << endl;
|
||||
G4cout << " Difference: " << accuracy << endl;
|
||||
G4cout << "the Momentum Change is not unit vector !!" << G4endl;
|
||||
G4cout << " Difference: " << accuracy << G4endl;
|
||||
itsOK = false;
|
||||
if (accuracy > accuracyForException) exitWithError = true;
|
||||
}
|
||||
|
||||
// dump out information of this particle change
|
||||
if (!itsOK) {
|
||||
G4cout << " G4ParticleChangeForMSC::CheckIt " <<endl;
|
||||
G4cout << " pointer : " << this <<endl ;
|
||||
G4cout << " G4ParticleChangeForMSC::CheckIt " <<G4endl;
|
||||
G4cout << " pointer : " << this <<G4endl ;
|
||||
DumpInfo();
|
||||
}
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ParticleChangeForTransport.cc,v 1.4.8.1 1999/12/07 20:53:02 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4ParticleChangeForTransport.cc,v 1.5 1999/12/15 14:53:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
@@ -31,14 +31,14 @@
|
||||
G4ParticleChangeForTransport::G4ParticleChangeForTransport():G4ParticleChange()
|
||||
{
|
||||
if (verboseLevel>2) {
|
||||
G4cout << "G4ParticleChangeForTransport::G4ParticleChangeForTransport() " << endl;
|
||||
G4cout << "G4ParticleChangeForTransport::G4ParticleChangeForTransport() " << G4endl;
|
||||
}
|
||||
}
|
||||
|
||||
G4ParticleChangeForTransport::~G4ParticleChangeForTransport()
|
||||
{
|
||||
if (verboseLevel>2) {
|
||||
G4cout << "G4ParticleChangeForTransport::~G4ParticleChangeForTransport() " << endl;
|
||||
G4cout << "G4ParticleChangeForTransport::~G4ParticleChangeForTransport() " << G4endl;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ G4ParticleChangeForTransport::~G4ParticleChangeForTransport()
|
||||
G4ParticleChangeForTransport::G4ParticleChangeForTransport(const G4ParticleChangeForTransport &right):G4ParticleChange(right)
|
||||
{
|
||||
if (verboseLevel>0) {
|
||||
G4cout << "G4ParticleChangeForTransport:: copy constructor is called " << endl;
|
||||
G4cout << "G4ParticleChangeForTransport:: copy constructor is called " << G4endl;
|
||||
}
|
||||
theTouchableChange = right.theTouchableChange;
|
||||
}
|
||||
@@ -55,7 +55,7 @@ G4ParticleChangeForTransport::G4ParticleChangeForTransport(const G4ParticleChang
|
||||
G4ParticleChangeForTransport & G4ParticleChangeForTransport::operator=(const G4ParticleChangeForTransport &right)
|
||||
{
|
||||
if (verboseLevel>1) {
|
||||
G4cout << "G4ParticleChangeForTransport:: assignment operator is called " << endl;
|
||||
G4cout << "G4ParticleChangeForTransport:: assignment operator is called " << G4endl;
|
||||
}
|
||||
if (this != &right)
|
||||
{
|
||||
@@ -84,8 +84,8 @@ G4Step* G4ParticleChangeForTransport::UpdateStepForAtRest(G4Step* pStep)
|
||||
{
|
||||
// Nothing happens for AtRestDoIt
|
||||
if (verboseLevel>0) {
|
||||
G4cout << "G4ParticleChangeForTransport::UpdateStepForAtRest() is called" << endl;
|
||||
G4cout << " Nothing happens for this method " << endl;
|
||||
G4cout << "G4ParticleChangeForTransport::UpdateStepForAtRest() is called" << G4endl;
|
||||
G4cout << " Nothing happens for this method " << G4endl;
|
||||
}
|
||||
// Update the G4Step specific attributes
|
||||
return UpdateStepInfo(pStep);
|
||||
@@ -198,8 +198,8 @@ void G4ParticleChangeForTransport::DumpInfo() const
|
||||
|
||||
G4cout.precision(3);
|
||||
G4cout << " Touchable (pointer) : "
|
||||
<< setw(20) << theTouchableChange
|
||||
<< endl;
|
||||
<< G4std::setw(20) << theTouchableChange
|
||||
<< G4endl;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Step.cc,v 1.3.8.1 1999/12/07 20:53:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4Step.cc,v 1.4 1999/12/15 14:53:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4StepPoint.cc,v 1.1.10.1 1999/12/07 20:53:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4StepPoint.cc,v 1.2 1999/12/15 14:53:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Track.cc,v 1.2.6.1 1999/12/07 20:53:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4Track.cc,v 1.3 1999/12/15 14:53:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VEvtBiasMechanism.cc,v 1.1.8.1 1999/12/07 20:53:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4VEvtBiasMechanism.cc,v 1.2 1999/12/15 14:53:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VParticleChange.cc,v 1.3.8.1 1999/12/07 20:53:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4VParticleChange.cc,v 1.4 1999/12/15 14:53:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
@@ -153,31 +153,31 @@ void G4VParticleChange::DumpInfo() const
|
||||
// Show header
|
||||
G4cout.precision(3);
|
||||
G4cout << " -----------------------------------------------"
|
||||
<< endl;
|
||||
G4cout << " G4ParticleChange Information " << setw(20) << endl;
|
||||
<< G4endl;
|
||||
G4cout << " G4ParticleChange Information " << G4std::setw(20) << G4endl;
|
||||
G4cout << " -----------------------------------------------"
|
||||
<< endl;
|
||||
<< G4endl;
|
||||
|
||||
G4cout << " # of 2ndaries : "
|
||||
<< setw(20) << theNumberOfSecondaries
|
||||
<< endl;
|
||||
<< G4std::setw(20) << theNumberOfSecondaries
|
||||
<< G4endl;
|
||||
|
||||
if (theNumberOfSecondaries >0) {
|
||||
G4cout << " Pointer to 2ndaries : "
|
||||
<< setw(20) << GetSecondary(0)
|
||||
<< endl;
|
||||
<< G4std::setw(20) << GetSecondary(0)
|
||||
<< G4endl;
|
||||
G4cout << " (Showed only 1st one)"
|
||||
<< endl;
|
||||
<< G4endl;
|
||||
}
|
||||
G4cout << " -----------------------------------------------"
|
||||
<< endl;
|
||||
<< G4endl;
|
||||
|
||||
G4cout << " Energy Deposit (MeV): "
|
||||
<< setw(20) << theLocalEnergyDeposit/MeV
|
||||
<< endl;
|
||||
<< G4std::setw(20) << theLocalEnergyDeposit/MeV
|
||||
<< G4endl;
|
||||
|
||||
G4cout << " Track Status : "
|
||||
<< setw(20);
|
||||
<< G4std::setw(20);
|
||||
if( theStatusChange == fAlive ){
|
||||
G4cout << " Alive";
|
||||
} else if( theStatusChange == fStopButAlive ){
|
||||
@@ -191,20 +191,20 @@ void G4VParticleChange::DumpInfo() const
|
||||
} else if( theStatusChange == fPostponeToNextEvent ){
|
||||
G4cout << " PostponeToNextEvent";
|
||||
}
|
||||
G4cout << endl;
|
||||
G4cout << G4endl;
|
||||
G4cout << " True Path Length (mm) : "
|
||||
<< setw(20) << theTrueStepLength/mm
|
||||
<< endl;
|
||||
<< G4std::setw(20) << theTrueStepLength/mm
|
||||
<< G4endl;
|
||||
G4cout << " Stepping Control : "
|
||||
<< setw(20) << theSteppingControlFlag
|
||||
<< endl;
|
||||
<< G4std::setw(20) << theSteppingControlFlag
|
||||
<< G4endl;
|
||||
G4cout << " Event Biasing : ";
|
||||
if (fUseEB) {
|
||||
G4cout << setw(20) << theEBMechanism->GetName();
|
||||
G4cout << G4std::setw(20) << theEBMechanism->GetName();
|
||||
} else {
|
||||
G4cout << " not used ";
|
||||
}
|
||||
G4cout << endl;
|
||||
G4cout << G4endl;
|
||||
}
|
||||
|
||||
G4bool G4VParticleChange::CheckIt(const G4Track& aTrack)
|
||||
@@ -219,8 +219,8 @@ G4bool G4VParticleChange::CheckIt(const G4Track& aTrack)
|
||||
accuracy = -1.0*theLocalEnergyDeposit/MeV;
|
||||
if (accuracy > accuracyForWarning) {
|
||||
G4cout << " G4VParticleChange::CheckIt : ";
|
||||
G4cout << "the energy deposit is negative !!" << endl;
|
||||
G4cout << " Difference: " << accuracy << "[MeV] " <<endl;
|
||||
G4cout << "the energy deposit is negative !!" << G4endl;
|
||||
G4cout << " Difference: " << accuracy << "[MeV] " <<G4endl;
|
||||
itsOKforEnergy = false;
|
||||
if (accuracy > accuracyForException) exitWithError = true;
|
||||
}
|
||||
@@ -230,8 +230,8 @@ G4bool G4VParticleChange::CheckIt(const G4Track& aTrack)
|
||||
accuracy = -1.0*theTrueStepLength/mm;
|
||||
if (accuracy > accuracyForWarning) {
|
||||
G4cout << " G4VParticleChange::CheckIt : ";
|
||||
G4cout << "the true step length is negative !!" << endl;
|
||||
G4cout << " Difference: " << accuracy << "[MeV] " <<endl;
|
||||
G4cout << "the true step length is negative !!" << G4endl;
|
||||
G4cout << " Difference: " << accuracy << "[MeV] " <<G4endl;
|
||||
itsOKforStepLength = false;
|
||||
if (accuracy > accuracyForException) exitWithError = true;
|
||||
}
|
||||
@@ -239,8 +239,8 @@ G4bool G4VParticleChange::CheckIt(const G4Track& aTrack)
|
||||
G4bool itsOK = itsOKforStepLength && itsOKforEnergy ;
|
||||
// dump out information of this particle change
|
||||
if (! itsOK ){
|
||||
G4cout << " G4VParticleChange::CheckIt " <<endl;
|
||||
G4cout << " pointer : " << this <<endl ;
|
||||
G4cout << " G4VParticleChange::CheckIt " <<G4endl;
|
||||
G4cout << " pointer : " << this <<G4endl ;
|
||||
DumpInfo();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user