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: 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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user