Import Geant4 1.1.0 source tree
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ExcitedString.hh,v 1.3.2.1.2.1 1999/12/07 20:51:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#ifndef G4ExcitedString_h
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ExcitedStringVector.hh,v 1.1.8.1.2.1 1999/12/07 20:51:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#ifndef G4ExcitedStringVector_h
|
||||
#define G4ExcitedStringPartonVector_h 1
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Fancy3DNucleus.hh,v 1.4.6.1.2.1 1999/12/07 20:51:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#ifndef G4Fancy3DNucleus_h
|
||||
#define G4Fancy3DNucleus_h 1
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4FermiMomentum.hh,v 1.1.10.1 1999/12/07 20:51:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#ifndef G4FermiMomentum_h
|
||||
#define G4FermiMomentum_h 1
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Fragment.hh,v 1.5.6.1.2.1 1999/12/07 20:51:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4Fragment.hh,v 1.5.6.1.2.1.2.3 1999/12/14 07:08:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// Hadronic Process: Nuclear De-excitations
|
||||
// by V. Lara (May 1998)
|
||||
@@ -15,7 +15,7 @@
|
||||
#define G4Fragment_h 1
|
||||
|
||||
#include "G4ios.hh"
|
||||
#include <iomanip.h>
|
||||
#include "g4std/iomanip"
|
||||
#include "g4rw/tpordvec.h"
|
||||
|
||||
#include "globals.hh"
|
||||
@@ -70,8 +70,8 @@ public:
|
||||
G4bool operator==(const G4Fragment &right) const;
|
||||
G4bool operator!=(const G4Fragment &right) const;
|
||||
|
||||
friend ostream& operator<<(ostream&, const G4Fragment*);
|
||||
friend ostream& operator<<(ostream&, const G4Fragment&);
|
||||
friend G4std::ostream& operator<<(G4std::ostream&, const G4Fragment*);
|
||||
friend G4std::ostream& operator<<(G4std::ostream&, const G4Fragment&);
|
||||
|
||||
|
||||
inline G4double GetA(void) const;
|
||||
@@ -180,7 +180,7 @@ inline G4double G4Fragment::GetExcitationEnergy() const
|
||||
inline void G4Fragment::SetExcitationEnergy(const G4double value)
|
||||
{
|
||||
// theExcitationEnergy = value;
|
||||
G4cout << "Warning: G4Fragment::SetExcitationEnergy() is a dummy method. Please, avoid to use it." << endl;
|
||||
G4cout << "Warning: G4Fragment::SetExcitationEnergy() is a dummy method. Please, avoid to use it." << G4endl;
|
||||
}
|
||||
|
||||
inline const G4LorentzVector G4Fragment::GetMomentum() const
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4FragmentVector.hh,v 1.1.10.1 1999/12/07 20:51:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// Hadronic Process: Nuclear De-excitations
|
||||
// by V. Lara (May 1998)
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4GeneralPhaseSpaceDecay.hh,v 1.2.4.1 1999/12/07 20:51:58 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//$Id: G4GeneralPhaseSpaceDecay.hh,v 1.1 1997/05/21
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4KineticTrack.hh,v 1.1.10.1 1999/12/07 20:51:59 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// $Id: G4KineticTrack.hh,v 1.0 1998/05/20
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4KineticTrackVector.hh,v 1.1.8.1.2.1 1999/12/07 20:51:59 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
|
||||
// Modified at 8-Oct-1998 by Maxim Komogorov. Methods BoostBeam,Boost,Shift
|
||||
// were added.
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4NuclearFermiDensity.hh,v 1.1.10.1 1999/12/07 20:51:59 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#ifndef G4NuclearFermiDensity_h
|
||||
#define G4NuclearFermiDensity_h 1
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4NuclearShellModelDensity.hh,v 1.1.10.1 1999/12/07 20:51:59 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#ifndef G4NuclearShellModelDensity_h
|
||||
#define G4NuclearShellModelDensity_h 1
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Nucleon.hh,v 1.2.8.1 1999/12/07 20:51:59 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4Nucleon.hh,v 1.2.8.1.2.1 1999/12/08 17:34:44 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#ifndef G4Nucleon_h
|
||||
#define G4Nucleon_h 1
|
||||
@@ -85,7 +85,7 @@ class G4Nucleon : public G4VKineticNucleon
|
||||
|
||||
};
|
||||
|
||||
ostream & operator << (ostream &, const G4Nucleon&);
|
||||
G4std::ostream & operator << (G4std::ostream &, const G4Nucleon&);
|
||||
|
||||
inline int G4Nucleon::operator==(const G4Nucleon &right) const
|
||||
{
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Parton.hh,v 1.6.8.1 1999/12/07 20:51:59 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4Parton.hh,v 1.6.8.1.2.2 1999/12/14 07:08:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#ifndef G4Parton_h
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "globals.hh"
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "G4LorentzVector.hh"
|
||||
#include <iostream.h>
|
||||
#include "g4std/iostream"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
class G4Parton
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4PartonVector.hh,v 1.1.8.1.2.1 1999/12/07 20:51:59 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#ifndef G4PartonVector_h
|
||||
#define G4PartonVector_h 1
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ExcitedString.cc,v 1.2.4.1 1999/12/07 20:52:00 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// 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: G4Fancy3DNucleus.cc,v 1.4.6.1.2.1 1999/12/07 20:52:00 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4Fancy3DNucleus.cc,v 1.4.6.1.2.1.2.1 1999/12/08 17:34:44 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
@@ -34,7 +34,7 @@ G4Fancy3DNucleus::G4Fancy3DNucleus()
|
||||
currentNucleon=-1;
|
||||
myA=0;
|
||||
myZ=0;
|
||||
//G4cout <<"G4Fancy3DNucleus::G4Fancy3DNucleus()"<<endl;
|
||||
//G4cout <<"G4Fancy3DNucleus::G4Fancy3DNucleus()"<<G4endl;
|
||||
}
|
||||
|
||||
/* No use for these
|
||||
@@ -66,7 +66,7 @@ G4Fancy3DNucleus::~G4Fancy3DNucleus()
|
||||
void G4Fancy3DNucleus::Init(G4double theA, G4double theZ)
|
||||
{
|
||||
G4int i;
|
||||
// G4cout << "G4Fancy3DNucleus::Init(theA, theZ) called"<<endl;
|
||||
// G4cout << "G4Fancy3DNucleus::Init(theA, theZ) called"<<G4endl;
|
||||
currentNucleon=-1;
|
||||
if(theNucleons!=NULL) delete [] theNucleons;
|
||||
|
||||
@@ -77,7 +77,7 @@ void G4Fancy3DNucleus::Init(G4double theA, G4double theZ)
|
||||
|
||||
theNucleons = new G4Nucleon[myA];
|
||||
|
||||
// G4cout << "myA, myZ" << myA << ", " << myZ << endl;
|
||||
// G4cout << "myA, myZ" << myA << ", " << myZ << G4endl;
|
||||
|
||||
if(theDensity!=NULL) delete theDensity;
|
||||
if ( myA < 17 ) {
|
||||
@@ -242,7 +242,7 @@ void G4Fancy3DNucleus::ChooseNucleons()
|
||||
{
|
||||
theNucleons[nucleons++].SetParticleType(G4Neutron::Neutron());
|
||||
}
|
||||
else G4cout << "G4Fancy3DNucleus::ChooseNucleons not efficient" << endl;
|
||||
else G4cout << "G4Fancy3DNucleus::ChooseNucleons not efficient" << G4endl;
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -294,13 +294,13 @@ void G4Fancy3DNucleus::ChooseFermiMomenta()
|
||||
|
||||
if (ReduceSum(momentum,fermiM) )
|
||||
break;
|
||||
// G4cout <<" G4FancyNucleus: iterating to find momenta: "<< ntry<< endl;
|
||||
// G4cout <<" G4FancyNucleus: iterating to find momenta: "<< ntry<< G4endl;
|
||||
}
|
||||
|
||||
// G4ThreeVector sum;
|
||||
// for (G4int index=0; index<myA;sum+=momentum[index++])
|
||||
// ;
|
||||
// cout << "final sum / mag() " << sum << " / " << sum.mag() << endl;
|
||||
// cout << "final sum / mag() " << sum << " / " << sum.mag() << G4endl;
|
||||
|
||||
|
||||
G4double energy;
|
||||
@@ -344,10 +344,10 @@ void G4Fancy3DNucleus::ChooseFermiMomenta()
|
||||
private:
|
||||
G4Fancy3DNucleusHelper operator =(const G4Fancy3DNucleusHelper &right) const
|
||||
{
|
||||
G4cout <<" G4Fancy3DNucleus::G4Fancy3DNucleusHelper op = called------------------" << endl;
|
||||
G4cout <<" G4Fancy3DNucleus::G4Fancy3DNucleusHelper op = called------------------" << G4endl;
|
||||
return G4Fancy3DNucleusHelper();
|
||||
}
|
||||
G4Fancy3DNucleusHelper(): Vector(0), Size(0), anInt(0) {G4cout << "def ctor for MixMasch" << endl;}
|
||||
G4Fancy3DNucleusHelper(): Vector(0), Size(0), anInt(0) {G4cout << "def ctor for MixMasch" << G4endl;}
|
||||
const G4ThreeVector Vector;
|
||||
const G4double Size;
|
||||
const G4int anInt;
|
||||
@@ -423,11 +423,11 @@ G4bool G4Fancy3DNucleus::ReduceSum(G4ThreeVector * momentum, G4double *pFermiM)
|
||||
|
||||
// Now we have a nucleon with a bigger Fermi Momentum.
|
||||
// Exchange with last nucleon.. and iterate.
|
||||
// G4cout << " Nucleon to swap with : " << swapit << endl;
|
||||
// G4cout << " Nucleon to swap with : " << swapit << G4endl;
|
||||
// G4cout << " Fermi momentum test, and better.. " << PFermi << " / "
|
||||
// << theFermi.GetFermiMomentum(theDensity->GetDensity(theNucleons[swapit].GetPosition())) << endl;
|
||||
// cout << theNucleons[swapit]<< endl << theNucleons[myA-1] << endl;
|
||||
// cout << momentum[swapit] << endl << momentum[myA-1] << endl;
|
||||
// << theFermi.GetFermiMomentum(theDensity->GetDensity(theNucleons[swapit].GetPosition())) << G4endl;
|
||||
// cout << theNucleons[swapit]<< G4endl << theNucleons[myA-1] << G4endl;
|
||||
// cout << momentum[swapit] << G4endl << momentum[myA-1] << G4endl;
|
||||
G4Nucleon swap= theNucleons[swapit];
|
||||
G4ThreeVector mom_swap=momentum[swapit];
|
||||
G4double pf=pFermiM[swapit];
|
||||
@@ -437,7 +437,7 @@ G4bool G4Fancy3DNucleus::ReduceSum(G4ThreeVector * momentum, G4double *pFermiM)
|
||||
theNucleons[myA-1]=swap;
|
||||
momentum[myA-1]=mom_swap;
|
||||
pFermiM[myA-1]=pf;
|
||||
// cout << "after swap" <<endl<< theNucleons[swapit] << endl << theNucleons[myA-1] << endl;
|
||||
// cout << momentum[swapit] << endl << momentum[myA-1] << endl;
|
||||
// cout << "after swap" <<G4endl<< theNucleons[swapit] << G4endl << theNucleons[myA-1] << G4endl;
|
||||
// cout << momentum[swapit] << G4endl << momentum[myA-1] << G4endl;
|
||||
return ReduceSum(momentum,pFermiM);
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4FermiMomentum.cc,v 1.1.10.1 1999/12/07 20:52:00 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#include "G4FermiMomentum.hh"
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Fragment.cc,v 1.4.8.1 1999/12/07 20:52:00 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4Fragment.cc,v 1.4.8.1.2.3 1999/12/09 17:45:00 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// Hadronic Process: Nuclear De-excitations
|
||||
// by V. Lara (May 1998)
|
||||
@@ -67,8 +67,8 @@ G4Fragment::G4Fragment(const G4int A, const G4int Z, const G4LorentzVector aMome
|
||||
theExcitationEnergy = 0.0;
|
||||
else
|
||||
{
|
||||
cout << "A, Z, momentum, theExcitationEnergy"<<
|
||||
A<<" "<<Z<<" "<<aMomentum<<" "<<theExcitationEnergy<<endl;
|
||||
G4cout << "A, Z, momentum, theExcitationEnergy"<<
|
||||
A<<" "<<Z<<" "<<aMomentum<<" "<<theExcitationEnergy<<G4endl;
|
||||
G4Exception( "G4Fragment::G4Fragment Excitation Energy < 0.0!" );
|
||||
}
|
||||
}
|
||||
@@ -155,17 +155,17 @@ G4bool G4Fragment::operator!=(const G4Fragment &right) const
|
||||
}
|
||||
|
||||
|
||||
ostream& operator << (ostream &out, const G4Fragment *theFragment)
|
||||
G4std::ostream& operator << (G4std::ostream &out, const G4Fragment *theFragment)
|
||||
{
|
||||
long old_floatfield = out.setf(0,ios::floatfield);
|
||||
long old_floatfield = out.setf(0,G4std::ios::floatfield);
|
||||
|
||||
out
|
||||
<< "Fragment: A = " << setprecision(3) << theFragment->theA
|
||||
<< ", Z = " << setprecision(3) << theFragment->theZ ;
|
||||
out.setf(ios::scientific,ios::floatfield);
|
||||
<< "Fragment: A = " << G4std::setprecision(3) << theFragment->theA
|
||||
<< ", Z = " << G4std::setprecision(3) << theFragment->theZ ;
|
||||
out.setf(G4std::ios::scientific,G4std::ios::floatfield);
|
||||
out
|
||||
<< ", U = " << theFragment->theExcitationEnergy/MeV
|
||||
<< " MeV" << endl
|
||||
<< " MeV" << G4endl
|
||||
<< " P = ("
|
||||
<< theFragment->theMomentum.x()/MeV << ","
|
||||
<< theFragment->theMomentum.y()/MeV << ","
|
||||
@@ -176,19 +176,19 @@ ostream& operator << (ostream &out, const G4Fragment *theFragment)
|
||||
// What about Angular momentum???
|
||||
|
||||
if (theFragment->numberOfExcitons != 0) {
|
||||
out << endl;
|
||||
out << G4endl;
|
||||
out << " "
|
||||
<< "#Excitons = " << theFragment->numberOfExcitons
|
||||
<< ", #Holes = " << theFragment->numberOfHoles
|
||||
<< ", #Charged = " << theFragment->numberOfCharged;
|
||||
}
|
||||
out.setf(old_floatfield,ios::floatfield);
|
||||
out.setf(old_floatfield,G4std::ios::floatfield);
|
||||
|
||||
return out;
|
||||
|
||||
}
|
||||
|
||||
ostream& operator << (ostream &out, const G4Fragment &theFragment)
|
||||
G4std::ostream& operator << (G4std::ostream &out, const G4Fragment &theFragment)
|
||||
{
|
||||
out << &theFragment;
|
||||
return out;
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4GeneralPhaseSpaceDecay.cc,v 1.1.10.1 1999/12/07 20:52:01 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4GeneralPhaseSpaceDecay.cc,v 1.1.10.1.2.1 1999/12/08 17:34:44 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// $Id: G4GeneralSpaceDecay.cc,v 1.0 1998/05/21
|
||||
// ----------------------------------------------------------------
|
||||
@@ -33,7 +33,7 @@
|
||||
G4GeneralPhaseSpaceDecay::G4GeneralPhaseSpaceDecay(G4int Verbose) :
|
||||
G4VDecayChannel("Phase Space", Verbose)
|
||||
{
|
||||
if (GetVerboseLevel()>1) G4cout << "G4GeneralPhaseSpaceDecay:: constructor " << endl;
|
||||
if (GetVerboseLevel()>1) G4cout << "G4GeneralPhaseSpaceDecay:: constructor " << G4endl;
|
||||
}
|
||||
|
||||
G4GeneralPhaseSpaceDecay::G4GeneralPhaseSpaceDecay(const G4String& theParentName,
|
||||
@@ -49,7 +49,7 @@ G4GeneralPhaseSpaceDecay::G4GeneralPhaseSpaceDecay(const G4String& theParentName
|
||||
theDaughterName2,
|
||||
theDaughterName3)
|
||||
{
|
||||
if (GetVerboseLevel()>1) G4cout << "G4GeneralPhaseSpaceDecay:: constructor " << endl;
|
||||
if (GetVerboseLevel()>1) G4cout << "G4GeneralPhaseSpaceDecay:: constructor " << G4endl;
|
||||
|
||||
// Set the parent particle (resonance) mass to the (default) PDG vale
|
||||
if (parent != NULL)
|
||||
@@ -73,7 +73,7 @@ G4GeneralPhaseSpaceDecay::G4GeneralPhaseSpaceDecay(const G4String& theParentName
|
||||
theDaughterName2,
|
||||
theDaughterName3)
|
||||
{
|
||||
if (GetVerboseLevel()>1) G4cout << "G4GeneralPhaseSpaceDecay:: constructor " << endl;
|
||||
if (GetVerboseLevel()>1) G4cout << "G4GeneralPhaseSpaceDecay:: constructor " << G4endl;
|
||||
}
|
||||
|
||||
G4GeneralPhaseSpaceDecay::~G4GeneralPhaseSpaceDecay()
|
||||
@@ -92,7 +92,7 @@ G4DecayProducts *G4GeneralPhaseSpaceDecay::DecayIt(G4double)
|
||||
case 0:
|
||||
if (GetVerboseLevel()>0) {
|
||||
G4cout << "G4GeneralPhaseSpaceDecay::DecayIt ";
|
||||
G4cout << " daughters not defined " <<endl;
|
||||
G4cout << " daughters not defined " <<G4endl;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
@@ -110,7 +110,7 @@ G4DecayProducts *G4GeneralPhaseSpaceDecay::DecayIt(G4double)
|
||||
}
|
||||
if ((products == NULL) && (GetVerboseLevel()>0)) {
|
||||
G4cout << "G4GeneralPhaseSpaceDecay::DecayIt ";
|
||||
G4cout << *parent_name << " can not decay " << endl;
|
||||
G4cout << *parent_name << " can not decay " << G4endl;
|
||||
DumpInfo();
|
||||
}
|
||||
return products;
|
||||
@@ -118,7 +118,7 @@ G4DecayProducts *G4GeneralPhaseSpaceDecay::DecayIt(G4double)
|
||||
|
||||
G4DecayProducts *G4GeneralPhaseSpaceDecay::OneBodyDecayIt()
|
||||
{
|
||||
if (GetVerboseLevel()>1) G4cout << "G4GeneralPhaseSpaceDecay::OneBodyDecayIt()"<<endl;
|
||||
if (GetVerboseLevel()>1) G4cout << "G4GeneralPhaseSpaceDecay::OneBodyDecayIt()"<<G4endl;
|
||||
|
||||
G4double daughtermass = daughters[0]->GetPDGMass();
|
||||
|
||||
@@ -137,7 +137,7 @@ G4DecayProducts *G4GeneralPhaseSpaceDecay::OneBodyDecayIt()
|
||||
if (GetVerboseLevel()>1)
|
||||
{
|
||||
G4cout << "G4GeneralPhaseSpaceDecay::OneBodyDecayIt ";
|
||||
G4cout << " create decay products in rest frame " <<endl;
|
||||
G4cout << " create decay products in rest frame " <<G4endl;
|
||||
products->DumpInfo();
|
||||
}
|
||||
return products;
|
||||
@@ -145,7 +145,7 @@ G4DecayProducts *G4GeneralPhaseSpaceDecay::OneBodyDecayIt()
|
||||
|
||||
G4DecayProducts *G4GeneralPhaseSpaceDecay::TwoBodyDecayIt()
|
||||
{
|
||||
if (GetVerboseLevel()>1) G4cout << "G4GeneralPhaseSpaceDecay::TwoBodyDecayIt()"<<endl;
|
||||
if (GetVerboseLevel()>1) G4cout << "G4GeneralPhaseSpaceDecay::TwoBodyDecayIt()"<<G4endl;
|
||||
|
||||
//daughters'mass
|
||||
G4double daughtermass[2];
|
||||
@@ -178,7 +178,7 @@ G4DecayProducts *G4GeneralPhaseSpaceDecay::TwoBodyDecayIt()
|
||||
if (GetVerboseLevel()>1)
|
||||
{
|
||||
G4cout << "G4GeneralPhaseSpaceDecay::TwoBodyDecayIt ";
|
||||
G4cout << " create decay products in rest frame " <<endl;
|
||||
G4cout << " create decay products in rest frame " <<G4endl;
|
||||
products->DumpInfo();
|
||||
}
|
||||
return products;
|
||||
@@ -187,7 +187,7 @@ G4DecayProducts *G4GeneralPhaseSpaceDecay::TwoBodyDecayIt()
|
||||
G4DecayProducts *G4GeneralPhaseSpaceDecay::ThreeBodyDecayIt()
|
||||
// algorism of this code is originally written in GDECA3 of GEANT3
|
||||
{
|
||||
if (GetVerboseLevel()>1) G4cout << "G4GeneralPhaseSpaceDecay::ThreeBodyDecayIt()"<<endl;
|
||||
if (GetVerboseLevel()>1) G4cout << "G4GeneralPhaseSpaceDecay::ThreeBodyDecayIt()"<<G4endl;
|
||||
|
||||
//daughters'mass
|
||||
G4double daughtermass[3];
|
||||
@@ -247,10 +247,10 @@ G4DecayProducts *G4GeneralPhaseSpaceDecay::ThreeBodyDecayIt()
|
||||
|
||||
// output message
|
||||
if (GetVerboseLevel()>1) {
|
||||
G4cout << " daughter 0:" << daughtermomentum[0]/GeV << "[GeV/c]" <<endl;
|
||||
G4cout << " daughter 1:" << daughtermomentum[1]/GeV << "[GeV/c]" <<endl;
|
||||
G4cout << " daughter 2:" << daughtermomentum[2]/GeV << "[GeV/c]" <<endl;
|
||||
G4cout << " momentum sum:" << momentumsum/GeV << "[GeV/c]" <<endl;
|
||||
G4cout << " daughter 0:" << daughtermomentum[0]/GeV << "[GeV/c]" <<G4endl;
|
||||
G4cout << " daughter 1:" << daughtermomentum[1]/GeV << "[GeV/c]" <<G4endl;
|
||||
G4cout << " daughter 2:" << daughtermomentum[2]/GeV << "[GeV/c]" <<G4endl;
|
||||
G4cout << " momentum sum:" << momentumsum/GeV << "[GeV/c]" <<G4endl;
|
||||
}
|
||||
|
||||
//create daughter G4DynamicParticle
|
||||
@@ -287,7 +287,7 @@ G4DecayProducts *G4GeneralPhaseSpaceDecay::ThreeBodyDecayIt()
|
||||
|
||||
if (GetVerboseLevel()>1) {
|
||||
G4cout << "G4GeneralPhaseSpaceDecay::ThreeBodyDecayIt ";
|
||||
G4cout << " create decay products in rest frame " <<endl;
|
||||
G4cout << " create decay products in rest frame " <<G4endl;
|
||||
products->DumpInfo();
|
||||
}
|
||||
return products;
|
||||
@@ -307,7 +307,7 @@ G4DecayProducts *G4GeneralPhaseSpaceDecay::ManyBodyDecayIt()
|
||||
//return value
|
||||
G4DecayProducts *products;
|
||||
|
||||
if (GetVerboseLevel()>1) G4cout << "G4GeneralPhaseSpaceDecay::ManyBodyDecayIt()"<<endl;
|
||||
if (GetVerboseLevel()>1) G4cout << "G4GeneralPhaseSpaceDecay::ManyBodyDecayIt()"<<G4endl;
|
||||
|
||||
//daughters'mass
|
||||
G4double *daughtermass = new G4double[numberOfDaughters];
|
||||
@@ -353,7 +353,7 @@ G4DecayProducts *G4GeneralPhaseSpaceDecay::ManyBodyDecayIt()
|
||||
temp -= daughtermass[index1];
|
||||
if (GetVerboseLevel()>1) {
|
||||
G4cout << index1 << " rundom number:" << rd[index1];
|
||||
G4cout << " virtual mass:" << sm[index1]/GeV << "[GeV/c/c]" <<endl;
|
||||
G4cout << " virtual mass:" << sm[index1]/GeV << "[GeV/c/c]" <<G4endl;
|
||||
}
|
||||
}
|
||||
delete [] rd;
|
||||
@@ -364,7 +364,7 @@ G4DecayProducts *G4GeneralPhaseSpaceDecay::ManyBodyDecayIt()
|
||||
daughtermomentum[index1]= Pmx( sm[index1-1],daughtermass[index1-1],sm[index1]);
|
||||
if (GetVerboseLevel()>1) {
|
||||
G4cout << " daughter " << index1 << ":" << *daughters_name[index1];
|
||||
G4cout << " momentum:" << daughtermomentum[index1]/GeV << "[GeV/c]" <<endl;
|
||||
G4cout << " momentum:" << daughtermomentum[index1]/GeV << "[GeV/c]" <<G4endl;
|
||||
}
|
||||
for(index1 =numberOfDaughters-2; index1>=0; index1--) {
|
||||
// calculate
|
||||
@@ -373,12 +373,12 @@ G4DecayProducts *G4GeneralPhaseSpaceDecay::ManyBodyDecayIt()
|
||||
// !!! illegal momentum !!!
|
||||
if (GetVerboseLevel()>0) {
|
||||
G4cout << "G4GeneralPhaseSpaceDecay::ManyBodyDecayIt ";
|
||||
G4cout << " can not calculate daughter momentum " <<endl;
|
||||
G4cout << " can not calculate daughter momentum " <<G4endl;
|
||||
G4cout << " parent:" << *parent_name;
|
||||
G4cout << " mass:" << parentmass/GeV << "[GeV/c/c]" <<endl;
|
||||
G4cout << " mass:" << parentmass/GeV << "[GeV/c/c]" <<G4endl;
|
||||
G4cout << " daughter " << index1 << ":" << *daughters_name[index1];
|
||||
G4cout << " mass:" << daughtermass[index1]/GeV << "[GeV/c/c]" ;
|
||||
G4cout << " mass:" << daughtermomentum[index1]/GeV << "[GeV/c]" <<endl;
|
||||
G4cout << " mass:" << daughtermomentum[index1]/GeV << "[GeV/c]" <<G4endl;
|
||||
}
|
||||
delete [] sm;
|
||||
delete [] daughtermass;
|
||||
@@ -390,19 +390,19 @@ G4DecayProducts *G4GeneralPhaseSpaceDecay::ManyBodyDecayIt()
|
||||
weight *= daughtermomentum[index1]/sm[index1];
|
||||
if (GetVerboseLevel()>1) {
|
||||
G4cout << " daughter " << index1 << ":" << *daughters_name[index1];
|
||||
G4cout << " momentum:" << daughtermomentum[index1]/GeV << "[GeV/c]" <<endl;
|
||||
G4cout << " momentum:" << daughtermomentum[index1]/GeV << "[GeV/c]" <<G4endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (GetVerboseLevel()>1) {
|
||||
G4cout << " weight: " << weight <<endl;
|
||||
G4cout << " weight: " << weight <<G4endl;
|
||||
}
|
||||
|
||||
// exit if number of Try exceeds 100
|
||||
if (numberOfTry++ >100) {
|
||||
if (GetVerboseLevel()>0) {
|
||||
G4cout << "G4GeneralPhaseSpaceDecay::ManyBodyDecayIt: ";
|
||||
G4cout << " can not determine Decay Kinematics " << endl;
|
||||
G4cout << " can not determine Decay Kinematics " << G4endl;
|
||||
}
|
||||
delete [] sm;
|
||||
delete [] daughtermass;
|
||||
@@ -411,7 +411,7 @@ G4DecayProducts *G4GeneralPhaseSpaceDecay::ManyBodyDecayIt()
|
||||
}
|
||||
} while ( weight > G4UniformRand());
|
||||
if (GetVerboseLevel()>1) {
|
||||
G4cout << "Start calulation of daughters momentum vector "<<endl;
|
||||
G4cout << "Start calulation of daughters momentum vector "<<G4endl;
|
||||
}
|
||||
|
||||
G4double costheta, sintheta, phi;
|
||||
@@ -466,7 +466,7 @@ G4DecayProducts *G4GeneralPhaseSpaceDecay::ManyBodyDecayIt()
|
||||
}
|
||||
if (GetVerboseLevel()>1) {
|
||||
G4cout << "G4GeneralPhaseSpaceDecay::ManyBodyDecayIt ";
|
||||
G4cout << " create decay products in rest frame " << endl;
|
||||
G4cout << " create decay products in rest frame " << G4endl;
|
||||
products->DumpInfo();
|
||||
}
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4KineticTrack.cc,v 1.3.8.1 1999/12/07 20:52:01 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4KineticTrack.cc,v 1.3.8.1.2.1 1999/12/08 17:34:44 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// $Id: G4KineticTrack.cc,v 1.0 1998/05/20
|
||||
// -----------------------------------------------------------------------------
|
||||
@@ -54,9 +54,9 @@ G4KineticTrack::G4KineticTrack() :
|
||||
////////////////
|
||||
|
||||
/*
|
||||
G4cerr << endl << endl << endl;
|
||||
G4cerr << G4endl << G4endl << G4endl;
|
||||
G4cerr << " G4KineticTrack default constructor invoked! \n";
|
||||
G4cerr << " =========================================== \n" << endl;
|
||||
G4cerr << " =========================================== \n" << G4endl;
|
||||
*/
|
||||
}
|
||||
|
||||
@@ -89,9 +89,9 @@ G4KineticTrack::G4KineticTrack(const G4KineticTrack &right)
|
||||
////////////////
|
||||
|
||||
/*
|
||||
G4cerr << endl << endl << endl;
|
||||
G4cerr << G4endl << G4endl << G4endl;
|
||||
G4cerr << " G4KineticTrack copy constructor invoked! \n";
|
||||
G4cerr << " ======================================== \n" <<endl;
|
||||
G4cerr << " ======================================== \n" <<G4endl;
|
||||
*/
|
||||
}
|
||||
|
||||
@@ -183,7 +183,7 @@ G4KineticTrack::G4KineticTrack(G4ParticleDefinition* aDefinition,
|
||||
if ( !theDaughterIsShortLived[0] && !theDaughterIsShortLived[1] )
|
||||
{
|
||||
|
||||
// G4cout << endl << "Both the " << nDaughters <<
|
||||
// G4cout << G4endl << "Both the " << nDaughters <<
|
||||
// " decay products are stable!";
|
||||
|
||||
theActualMom = EvaluateCMMomentum(theActualMass,
|
||||
@@ -195,7 +195,7 @@ G4KineticTrack::G4KineticTrack(G4ParticleDefinition* aDefinition,
|
||||
else if ( !theDaughterIsShortLived[0] && theDaughterIsShortLived[1] )
|
||||
{
|
||||
|
||||
// G4cout << endl << "Only the first of the " << nDaughters <<
|
||||
// G4cout << G4endl << "Only the first of the " << nDaughters <<
|
||||
// " decay products is stable!";
|
||||
|
||||
theActualMom = IntegrateCMMomentum();
|
||||
@@ -205,7 +205,7 @@ G4KineticTrack::G4KineticTrack(G4ParticleDefinition* aDefinition,
|
||||
else if ( theDaughterIsShortLived[0] && !theDaughterIsShortLived[1] )
|
||||
{
|
||||
|
||||
// G4cout << endl << "Only the second of the " << nDaughters <<
|
||||
// G4cout << G4endl << "Only the second of the " << nDaughters <<
|
||||
// " decay products is stable!";
|
||||
|
||||
//
|
||||
@@ -222,7 +222,7 @@ G4KineticTrack::G4KineticTrack(G4ParticleDefinition* aDefinition,
|
||||
else if ( theDaughterIsShortLived[0] && theDaughterIsShortLived[1] )
|
||||
{
|
||||
|
||||
// G4cout << endl << "Both the " << nDaughters <<
|
||||
// G4cout << G4endl << "Both the " << nDaughters <<
|
||||
// " decay products are resonances!";
|
||||
|
||||
/* @@@@@@ code has to be implemented */
|
||||
@@ -258,14 +258,14 @@ G4KineticTrack::G4KineticTrack(G4ParticleDefinition* aDefinition,
|
||||
|
||||
// for (G4int y = nChannels - 1; y >= 0; y--)
|
||||
// {
|
||||
// G4cout << endl << theActualWidth[y];
|
||||
// G4cout << G4endl << theActualWidth[y];
|
||||
// }
|
||||
// G4cout << endl << endl << endl;
|
||||
// G4cout << G4endl << G4endl << G4endl;
|
||||
|
||||
/*
|
||||
G4cerr << endl << endl << endl;
|
||||
G4cerr << G4endl << G4endl << G4endl;
|
||||
G4cerr << " G4KineticTrack by argument constructor invoked! \n";
|
||||
G4cerr << " =============================================== \n" << endl;
|
||||
G4cerr << " =============================================== \n" << G4endl;
|
||||
*/
|
||||
|
||||
}
|
||||
@@ -462,8 +462,8 @@ G4double G4KineticTrack::IntegrateCMMomentum() const
|
||||
theUpperLimit,
|
||||
nIterations);
|
||||
|
||||
// G4cout << endl << "Inside IntegrateCMMomentum (actual mass case): ";
|
||||
// G4cout << endl << " Integration result = " << theIntegralOverMass2;
|
||||
// G4cout << G4endl << "Inside IntegrateCMMomentum (actual mass case): ";
|
||||
// G4cout << G4endl << " Integration result = " << theIntegralOverMass2;
|
||||
|
||||
return theIntegralOverMass2;
|
||||
}
|
||||
@@ -478,8 +478,8 @@ G4double G4KineticTrack::IntegrateCMMomentum(const G4double polemass) const
|
||||
theUpperLimit,
|
||||
nIterations);
|
||||
|
||||
// G4cout << endl << "Inside IntegrateCMMomentum (pole mass case): ";
|
||||
// G4cout << endl << " Integration result = " << theIntegralOverMass2;
|
||||
// G4cout << G4endl << "Inside IntegrateCMMomentum (pole mass case): ";
|
||||
// G4cout << G4endl << " Integration result = " << theIntegralOverMass2;
|
||||
|
||||
return theIntegralOverMass2;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4NuclearFermiDensity.cc,v 1.1.10.1 1999/12/07 20:52:01 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#include "G4NuclearFermiDensity.hh"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4NuclearShellModelDensity.cc,v 1.1.10.1 1999/12/07 20:52:01 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
|
||||
#include "G4NuclearShellModelDensity.hh"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Nucleon.cc,v 1.2.8.1 1999/12/07 20:52:01 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4Nucleon.cc,v 1.2.8.1.2.3 1999/12/14 07:08:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#include "G4Nucleon.hh"
|
||||
|
||||
@@ -41,13 +41,13 @@ void G4Nucleon::Boost(const G4LorentzVector & aMomentum)
|
||||
theMomentum.setVect(factor*aMomentum.vect() + theMomentum.vect());
|
||||
}
|
||||
|
||||
#include <iostream.h>
|
||||
ostream & operator << (ostream &s, const G4Nucleon& nucleon)
|
||||
#include "g4std/iostream"
|
||||
G4std::ostream & operator << (G4std::ostream &s, const G4Nucleon& nucleon)
|
||||
{
|
||||
// s<< nucleon.GetDefinition()->GetParticleName()
|
||||
// << " is " << nucleon.AreYouHit() ? " " : "not"
|
||||
// << " hit. Momentum/position:" << endl;
|
||||
s<< " momentum : " << nucleon.Get4Momentum() << endl;
|
||||
// << " hit. Momentum/position:" << G4endl;
|
||||
s<< " momentum : " << nucleon.Get4Momentum() << G4endl;
|
||||
s<< " position : " << nucleon.GetPosition() ;
|
||||
return s;
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Parton.cc,v 1.3.8.1 1999/12/07 20:52:01 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4Parton.cc,v 1.3.8.1.2.2 1999/12/09 17:44:08 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
@@ -27,7 +27,7 @@ G4Parton::G4Parton(G4int PDGcode)
|
||||
theDefinition=G4ParticleTable::GetParticleTable()->FindParticle(PDGencoding);;
|
||||
if (theDefinition == NULL)
|
||||
{
|
||||
cout << "Encoding = "<<PDGencoding<<endl;
|
||||
G4cout << "Encoding = "<<PDGencoding<<G4endl;
|
||||
G4Exception("G4Parton::GetDefinition(): Encoding not in particle table");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user