Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4ReactionProduct Class Reference

#include <G4ReactionProduct.hh>

Public Member Functions

 G4ReactionProduct ()
 
 G4ReactionProduct (const G4ParticleDefinition *aParticleDefinition)
 
 ~G4ReactionProduct ()
 
 G4ReactionProduct (const G4ReactionProduct &right)
 
voidoperator new (size_t)
 
void operator delete (void *aReactionProduct)
 
G4ReactionProductoperator= (const G4ReactionProduct &right)
 
G4ReactionProductoperator= (const G4DynamicParticle &right)
 
G4ReactionProductoperator= (const G4HadProjectile &right)
 
G4bool operator== (const G4ReactionProduct &right) const
 
G4bool operator!= (const G4ReactionProduct &right) const
 
const G4ParticleDefinitionGetDefinition () const
 
void SetDefinition (const G4ParticleDefinition *aParticleDefinition)
 
void SetDefinitionAndUpdateE (const G4ParticleDefinition *aParticleDefinition)
 
void SetMomentum (const G4double x, const G4double y, const G4double z)
 
void SetMomentum (const G4double x, const G4double y)
 
void SetMomentum (const G4double z)
 
void SetMomentum (const G4ThreeVector &mom)
 
G4ThreeVector GetMomentum () const
 
G4double GetTotalMomentum () const
 
G4double GetTotalEnergy () const
 
void SetKineticEnergy (const G4double en)
 
G4double GetKineticEnergy () const
 
void SetTotalEnergy (const G4double en)
 
void SetMass (const G4double mas)
 
G4double GetMass () const
 
void SetTOF (const G4double t)
 
G4double GetTOF () const
 
void SetSide (const G4int sid)
 
G4int GetSide () const
 
void SetCreatorModel (const G4int mod)
 
G4int GetCreatorModel () const
 
void SetNewlyAdded (const G4bool f)
 
G4bool GetNewlyAdded () const
 
void SetMayBeKilled (const G4bool f)
 
G4bool GetMayBeKilled () const
 
void SetZero ()
 
void Lorentz (const G4ReactionProduct &p1, const G4ReactionProduct &p2)
 
G4double Angle (const G4ReactionProduct &p) const
 
void SetPositionInNucleus (G4double x, G4double y, G4double z)
 
void SetPositionInNucleus (G4ThreeVector &aPosition)
 
G4ThreeVector GetPositionInNucleus () const
 
G4double GetXPositionInNucleus () const
 
G4double GetYPositionInNucleus () const
 
G4double GetZPositionInNucleus () const
 
void SetFormationTime (G4double aTime)
 
G4double GetFormationTime () const
 
void HasInitialStateParton (G4bool aFlag)
 
G4bool HasInitialStateParton () const
 

Friends

G4ReactionProduct operator+ (const G4ReactionProduct &p1, const G4ReactionProduct &p2)
 
G4ReactionProduct operator- (const G4ReactionProduct &p1, const G4ReactionProduct &p2)
 
G4ReactionProduct operator* (const G4double aDouble, const G4ReactionProduct &p2)
 

Detailed Description

Definition at line 53 of file G4ReactionProduct.hh.

Constructor & Destructor Documentation

G4ReactionProduct::G4ReactionProduct ( )

Definition at line 36 of file G4ReactionProduct.cc.

36  :
37  theParticleDefinition(NULL),
38  formationTime(0.0),
39  hasInitialStateParton(false),
40  mass(0.0),
41  totalEnergy(0.0),
42  kineticEnergy(0.0),
43  timeOfFlight(0.0),
44  side(0),
45  theCreatorModel(-1),
46  NewlyAdded(false),
47  MayBeKilled(true)
48  {
49  SetMomentum( 0.0, 0.0, 0.0 );
50  SetPositionInNucleus( 0.0, 0.0, 0.0 );
51  }
void SetPositionInNucleus(G4double x, G4double y, G4double z)
void SetMomentum(const G4double x, const G4double y, const G4double z)

Here is the call graph for this function:

G4ReactionProduct::G4ReactionProduct ( const G4ParticleDefinition aParticleDefinition)

Definition at line 53 of file G4ReactionProduct.cc.

55  {
56  SetMomentum( 0.0, 0.0, 0.0 );
57  SetPositionInNucleus( 0.0, 0.0, 0.0 );
58  formationTime = 0.0;
59  hasInitialStateParton = false;
60  theParticleDefinition = aParticleDefinition;
61  mass = aParticleDefinition->GetPDGMass();
62  totalEnergy = mass;
63  kineticEnergy = 0.0;
64  (aParticleDefinition->GetPDGEncoding()<0) ? timeOfFlight=-1.0 : timeOfFlight=1.0;
65  side = 0;
66  theCreatorModel = -1;
67  NewlyAdded = false;
68  MayBeKilled = true;
69  }
void SetPositionInNucleus(G4double x, G4double y, G4double z)
void SetMomentum(const G4double x, const G4double y, const G4double z)
G4double GetPDGMass() const

Here is the call graph for this function:

G4ReactionProduct::~G4ReactionProduct ( )
inline

Definition at line 77 of file G4ReactionProduct.hh.

77 {}
G4ReactionProduct::G4ReactionProduct ( const G4ReactionProduct right)

Definition at line 71 of file G4ReactionProduct.cc.

73  {
74  theParticleDefinition = right.theParticleDefinition;
75  positionInNucleus = right.positionInNucleus;
76  formationTime = right.formationTime;
77  hasInitialStateParton = right.hasInitialStateParton;
78  momentum = right.momentum;
79  mass = right.mass;
80  totalEnergy = right.totalEnergy;
81  kineticEnergy = right.kineticEnergy;
82  timeOfFlight = right.timeOfFlight;
83  side = right.side;
84  theCreatorModel = right.theCreatorModel;
85  NewlyAdded = right.NewlyAdded;
86  MayBeKilled = right.MayBeKilled;
87  }

Member Function Documentation

G4double G4ReactionProduct::Angle ( const G4ReactionProduct p) const

Definition at line 225 of file G4ReactionProduct.cc.

227  {
228  G4ThreeVector tM = momentum;
229  G4ThreeVector pM = p.momentum;
230  G4double tx = tM.x(); G4double ty = tM.y(); G4double tz = tM.z();
231  G4double px = pM.x(); G4double py = pM.y(); G4double pz = pM.z();
232  G4double a = std::sqrt( ( px*px + py*py + pz*pz ) * ( tx*tx + ty*ty + tz*tz ) );
233  if( a == 0.0 ) {
234  return 0.0;
235  } else {
236  a = ( tx*px + ty*py + tz*pz ) / a;
237  if( std::fabs(a) > 1.0 ) { a<0.0 ? a=-1.0 : a=1.0; }
238  return std::acos( a );
239  }
240  }
double x() const
double z() const
double y() const
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:

G4int G4ReactionProduct::GetCreatorModel ( ) const
inline

Definition at line 168 of file G4ReactionProduct.hh.

169  { return theCreatorModel; }
const G4ParticleDefinition* G4ReactionProduct::GetDefinition ( ) const
inline

Definition at line 107 of file G4ReactionProduct.hh.

108  { return theParticleDefinition; }

Here is the caller graph for this function:

G4double G4ReactionProduct::GetFormationTime ( ) const
inline

Definition at line 208 of file G4ReactionProduct.hh.

208 { return formationTime; }
G4double G4ReactionProduct::GetKineticEnergy ( ) const
inline

Definition at line 138 of file G4ReactionProduct.hh.

139  { return kineticEnergy; }

Here is the caller graph for this function:

G4double G4ReactionProduct::GetMass ( ) const
inline

Definition at line 150 of file G4ReactionProduct.hh.

151  { return mass; }

Here is the caller graph for this function:

G4bool G4ReactionProduct::GetMayBeKilled ( ) const
inline

Definition at line 180 of file G4ReactionProduct.hh.

181  { return MayBeKilled; }
G4ThreeVector G4ReactionProduct::GetMomentum ( void  ) const
inline

Definition at line 123 of file G4ReactionProduct.hh.

124  { return momentum; }
G4bool G4ReactionProduct::GetNewlyAdded ( ) const
inline

Definition at line 174 of file G4ReactionProduct.hh.

175  { return NewlyAdded; }
G4ThreeVector G4ReactionProduct::GetPositionInNucleus ( ) const
inline

Definition at line 201 of file G4ReactionProduct.hh.

201 { return positionInNucleus; }
G4int G4ReactionProduct::GetSide ( ) const
inline

Definition at line 162 of file G4ReactionProduct.hh.

163  { return side; }

Here is the caller graph for this function:

G4double G4ReactionProduct::GetTOF ( ) const
inline

Definition at line 156 of file G4ReactionProduct.hh.

157  { return timeOfFlight; }

Here is the caller graph for this function:

G4double G4ReactionProduct::GetTotalEnergy ( void  ) const
inline

Definition at line 129 of file G4ReactionProduct.hh.

130  { return totalEnergy; }

Here is the caller graph for this function:

G4double G4ReactionProduct::GetTotalMomentum ( ) const
inline

Definition at line 126 of file G4ReactionProduct.hh.

127  { return std::sqrt(std::abs(kineticEnergy*(totalEnergy+mass))); }

Here is the caller graph for this function:

G4double G4ReactionProduct::GetXPositionInNucleus ( ) const
inline

Definition at line 202 of file G4ReactionProduct.hh.

202 { return positionInNucleus.x(); }
double x() const

Here is the call graph for this function:

G4double G4ReactionProduct::GetYPositionInNucleus ( ) const
inline

Definition at line 203 of file G4ReactionProduct.hh.

203 { return positionInNucleus.y(); }
double y() const

Here is the call graph for this function:

G4double G4ReactionProduct::GetZPositionInNucleus ( ) const
inline

Definition at line 204 of file G4ReactionProduct.hh.

204 { return positionInNucleus.z(); }
double z() const

Here is the call graph for this function:

void G4ReactionProduct::HasInitialStateParton ( G4bool  aFlag)
inline

Definition at line 210 of file G4ReactionProduct.hh.

210 { hasInitialStateParton = aFlag; }

Here is the caller graph for this function:

G4bool G4ReactionProduct::HasInitialStateParton ( ) const
inline

Definition at line 212 of file G4ReactionProduct.hh.

212 { return hasInitialStateParton; }
void G4ReactionProduct::Lorentz ( const G4ReactionProduct p1,
const G4ReactionProduct p2 
)

Definition at line 206 of file G4ReactionProduct.cc.

208  {
209  G4ThreeVector p1M = p1.momentum;
210  G4ThreeVector p2M = p2.momentum;
211  G4double p1x = p1M.x(); G4double p1y = p1M.y(); G4double p1z = p1M.z();
212  G4double p2x = p2M.x(); G4double p2y = p2M.y(); G4double p2z = p2M.z();
213  G4double a = ( (p1x*p2x+p1y*p2y+p1z*p2z)/(p2.totalEnergy+p2.mass) -
214  p1.totalEnergy ) / p2.mass;
215  G4double x = p1x+a*p2x;
216  G4double y = p1y+a*p2y;
217  G4double z = p1z+a*p2z;
218  G4double p = std::sqrt(x*x+y*y+z*z);
219  SetMass( p1.mass );
220  SetTotalEnergy( std::sqrt( (p1.mass+p)*(p1.mass+p) - 2.*p1.mass*p ) );
221  //SetTotalEnergy( std::sqrt( p1.mass*p1.mass + x*x + y*y + z*z ) );
222  SetMomentum( x, y, z );
223  }
double x() const
void SetMomentum(const G4double x, const G4double y, const G4double z)
const char * p
Definition: xmltok.h:285
double z() const
void SetMass(const G4double mas)
void SetTotalEnergy(const G4double en)
double y() const
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:

Here is the caller graph for this function:

void G4ReactionProduct::operator delete ( void aReactionProduct)
inline

Definition at line 91 of file G4ReactionProduct.hh.

91  {
92  aRPAllocator->FreeSingle((G4ReactionProduct*)aReactionProduct);
93  }
G4DLLIMPORT G4ThreadLocal G4Allocator< G4ReactionProduct > * aRPAllocator
void* G4ReactionProduct::operator new ( size_t  )
inline

Definition at line 82 of file G4ReactionProduct.hh.

82  {
84  return (void *)aRPAllocator->MallocSingle();
85  }
G4DLLIMPORT G4ThreadLocal G4Allocator< G4ReactionProduct > * aRPAllocator
G4bool G4ReactionProduct::operator!= ( const G4ReactionProduct right) const
inline

Definition at line 104 of file G4ReactionProduct.hh.

105  { return ( this != (G4ReactionProduct*) &right ); }
G4ReactionProduct & G4ReactionProduct::operator= ( const G4ReactionProduct right)

Definition at line 89 of file G4ReactionProduct.cc.

91  {
92  if( this != &right ) {
93  theParticleDefinition = right.theParticleDefinition;
94  positionInNucleus = right.positionInNucleus;
95  formationTime = right.formationTime;
96  hasInitialStateParton = right.hasInitialStateParton;
97  momentum = right.momentum;
98  mass = right.mass;
99  totalEnergy = right.totalEnergy;
100  kineticEnergy = right.kineticEnergy;
101  timeOfFlight = right.timeOfFlight;
102  side = right.side;
103  theCreatorModel = right.theCreatorModel;
104  NewlyAdded = right.NewlyAdded;
105  MayBeKilled = right.MayBeKilled;
106  }
107  return *this;
108  }
G4ReactionProduct & G4ReactionProduct::operator= ( const G4DynamicParticle right)

Definition at line 110 of file G4ReactionProduct.cc.

112  {
113  theParticleDefinition = right.GetDefinition();
114  SetPositionInNucleus( 0.0, 0.0, 0.0 );
115  formationTime = 0.0;
116  hasInitialStateParton = false;
117  momentum = right.GetMomentum();
118  mass = right.GetDefinition()->GetPDGMass();
119  totalEnergy = right.GetTotalEnergy();
120  kineticEnergy = right.GetKineticEnergy();
121  (right.GetDefinition()->GetPDGEncoding()<0) ? timeOfFlight=-1.0 : timeOfFlight=1.0;
122  side = 0;
123  theCreatorModel = -1;
124  NewlyAdded = false;
125  MayBeKilled = true;
126  return *this;
127  }
void SetPositionInNucleus(G4double x, G4double y, G4double z)
G4double GetKineticEnergy() const
G4double GetTotalEnergy() const
G4ParticleDefinition * GetDefinition() const
G4double GetPDGMass() const
G4ThreeVector GetMomentum() const

Here is the call graph for this function:

G4ReactionProduct & G4ReactionProduct::operator= ( const G4HadProjectile right)

Definition at line 129 of file G4ReactionProduct.cc.

131  {
132  theParticleDefinition = right.GetDefinition();
133  SetPositionInNucleus( 0.0, 0.0, 0.0 );
134  formationTime = 0.0;
135  hasInitialStateParton = false;
136  momentum = right.Get4Momentum().vect();
137  mass = right.GetDefinition()->GetPDGMass();
138  totalEnergy = right.Get4Momentum().e();
139  kineticEnergy = right.GetKineticEnergy();
140  (right.GetDefinition()->GetPDGEncoding()<0) ? timeOfFlight=-1.0 : timeOfFlight=1.0;
141  side = 0;
142  theCreatorModel = -1;
143  NewlyAdded = false;
144  MayBeKilled = true;
145  return *this;
146  }
void SetPositionInNucleus(G4double x, G4double y, G4double z)
Hep3Vector vect() const
const G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
const G4LorentzVector & Get4Momentum() const
G4double GetPDGMass() const

Here is the call graph for this function:

G4bool G4ReactionProduct::operator== ( const G4ReactionProduct right) const
inline

Definition at line 101 of file G4ReactionProduct.hh.

102  { return ( this == (G4ReactionProduct*) &right ); }
void G4ReactionProduct::SetCreatorModel ( const G4int  mod)
inline

Definition at line 165 of file G4ReactionProduct.hh.

166  { theCreatorModel = mod; }
void G4ReactionProduct::SetDefinition ( const G4ParticleDefinition aParticleDefinition)

Definition at line 160 of file G4ReactionProduct.cc.

162  {
163  theParticleDefinition = aParticleDefinition;
164  mass = aParticleDefinition->GetPDGMass();
165  totalEnergy = mass;
166  kineticEnergy = 0.0;
167  (aParticleDefinition->GetPDGEncoding()<0) ?
168  timeOfFlight=-1.0 : timeOfFlight=1.0;
169  }
G4double GetPDGMass() const

Here is the call graph for this function:

Here is the caller graph for this function:

void G4ReactionProduct::SetDefinitionAndUpdateE ( const G4ParticleDefinition aParticleDefinition)

Definition at line 148 of file G4ReactionProduct.cc.

150  { G4double aKineticEnergy = GetKineticEnergy();
151  G4double pp = GetMomentum().mag();
152  G4ThreeVector aMomentum = GetMomentum();
153  SetDefinition( aParticleDefinition );
154  SetKineticEnergy( aKineticEnergy );
155  if( pp > DBL_MIN )
156  SetMomentum( aMomentum * (std::sqrt(aKineticEnergy*aKineticEnergy +
157  2*aKineticEnergy*GetMass())/pp) );
158  }
void SetKineticEnergy(const G4double en)
void SetMomentum(const G4double x, const G4double y, const G4double z)
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
G4double GetKineticEnergy() const
#define DBL_MIN
Definition: templates.hh:75
G4ThreeVector GetMomentum() const
double G4double
Definition: G4Types.hh:76
double mag() const
G4double GetMass() const

Here is the call graph for this function:

Here is the caller graph for this function:

void G4ReactionProduct::SetFormationTime ( G4double  aTime)
inline

Definition at line 206 of file G4ReactionProduct.hh.

206 { formationTime = aTime; }

Here is the caller graph for this function:

void G4ReactionProduct::SetKineticEnergy ( const G4double  en)
inline

Definition at line 132 of file G4ReactionProduct.hh.

133  {
134  kineticEnergy = en;
135  totalEnergy = kineticEnergy + mass;
136  }

Here is the caller graph for this function:

void G4ReactionProduct::SetMass ( const G4double  mas)
inline

Definition at line 147 of file G4ReactionProduct.hh.

148  { mass = mas; }

Here is the caller graph for this function:

void G4ReactionProduct::SetMayBeKilled ( const G4bool  f)
inline

Definition at line 177 of file G4ReactionProduct.hh.

178  { MayBeKilled = f; }

Here is the caller graph for this function:

void G4ReactionProduct::SetMomentum ( const G4double  x,
const G4double  y,
const G4double  z 
)

Definition at line 171 of file G4ReactionProduct.cc.

173  {
174  momentum.setX( x );
175  momentum.setY( y );
176  momentum.setZ( z );
177  }
void setY(double)
void setZ(double)
void setX(double)

Here is the call graph for this function:

void G4ReactionProduct::SetMomentum ( const G4double  x,
const G4double  y 
)

Definition at line 179 of file G4ReactionProduct.cc.

181  {
182  momentum.setX( x );
183  momentum.setY( y );
184  }
void setY(double)
void setX(double)

Here is the call graph for this function:

void G4ReactionProduct::SetMomentum ( const G4double  z)

Definition at line 186 of file G4ReactionProduct.cc.

187  {
188  momentum.setZ( z );
189  }
void setZ(double)

Here is the call graph for this function:

void G4ReactionProduct::SetMomentum ( const G4ThreeVector mom)
inline

Definition at line 120 of file G4ReactionProduct.hh.

121  { momentum = mom; }
void G4ReactionProduct::SetNewlyAdded ( const G4bool  f)
inline

Definition at line 171 of file G4ReactionProduct.hh.

172  { NewlyAdded = f; }

Here is the caller graph for this function:

void G4ReactionProduct::SetPositionInNucleus ( G4double  x,
G4double  y,
G4double  z 
)
inline

Definition at line 189 of file G4ReactionProduct.hh.

190  {
191  positionInNucleus.setX(x);
192  positionInNucleus.setY(y);
193  positionInNucleus.setZ(z);
194  }
void setY(double)
void setZ(double)
void setX(double)

Here is the call graph for this function:

Here is the caller graph for this function:

void G4ReactionProduct::SetPositionInNucleus ( G4ThreeVector aPosition)
inline

Definition at line 196 of file G4ReactionProduct.hh.

197  {
198  positionInNucleus = aPosition;
199  }
void G4ReactionProduct::SetSide ( const G4int  sid)
inline

Definition at line 159 of file G4ReactionProduct.hh.

160  { side = sid; }

Here is the caller graph for this function:

void G4ReactionProduct::SetTOF ( const G4double  t)
inline

Definition at line 153 of file G4ReactionProduct.hh.

154  { timeOfFlight = t; }

Here is the caller graph for this function:

void G4ReactionProduct::SetTotalEnergy ( const G4double  en)
inline

Definition at line 141 of file G4ReactionProduct.hh.

142  {
143  totalEnergy = en;
144  kineticEnergy = totalEnergy - mass;
145  }

Here is the caller graph for this function:

void G4ReactionProduct::SetZero ( )

Definition at line 191 of file G4ReactionProduct.cc.

192  {
193  SetMomentum( 0.0, 0.0, 0.0 );
194  totalEnergy = 0.0;
195  kineticEnergy = 0.0;
196  mass = 0.0;
197  timeOfFlight = 0.0;
198  side = 0;
199  theCreatorModel = -1;
200  NewlyAdded = false;
201  SetPositionInNucleus( 0.0, 0.0, 0.0 );
202  formationTime = 0.0;
203  hasInitialStateParton = false;
204  }
void SetPositionInNucleus(G4double x, G4double y, G4double z)
void SetMomentum(const G4double x, const G4double y, const G4double z)

Here is the call graph for this function:

Friends And Related Function Documentation

G4ReactionProduct operator* ( const G4double  aDouble,
const G4ReactionProduct p2 
)
friend

Definition at line 61 of file G4ReactionProduct.hh.

63  {
65  result.SetMomentum(aDouble*p2.GetMomentum());
66  result.SetMass(p2.GetMass());
67  result.SetTotalEnergy(std::sqrt(result.GetMass()*result.GetMass()+
68  result.GetMomentum()*result.GetMomentum()));
69  return result;
70  }
G4double G4ParticleHPJENDLHEData::G4double result
void SetMomentum(const G4double x, const G4double y, const G4double z)
void SetMass(const G4double mas)
void SetTotalEnergy(const G4double en)
G4ThreeVector GetMomentum() const
G4double GetMass() const
G4ReactionProduct operator+ ( const G4ReactionProduct p1,
const G4ReactionProduct p2 
)
friend

Definition at line 242 of file G4ReactionProduct.cc.

244  {
245  G4double totEnergy = p1.totalEnergy + p2.totalEnergy;
246  G4double x = p1.momentum.x() + p2.momentum.x();
247  G4double y = p1.momentum.y() + p2.momentum.y();
248  G4double z = p1.momentum.z() + p2.momentum.z();
249  G4double newMass = totEnergy*totEnergy - ( x*x + y*y + z*z );
250  if( newMass < 0.0 )
251  newMass = -1. * std::sqrt( -newMass );
252  else
253  newMass = std::sqrt( newMass );
255  result.SetMass( newMass );
256  result.SetMomentum( x, y, z );
257  result.SetTotalEnergy( totEnergy );
258  result.SetPositionInNucleus( 0.0, 0.0, 0.0 );
259  result.SetFormationTime(0.0);
260  result.HasInitialStateParton(false);
261  return result;
262  }
G4double G4ParticleHPJENDLHEData::G4double result
void SetPositionInNucleus(G4double x, G4double y, G4double z)
void HasInitialStateParton(G4bool aFlag)
double x() const
void SetMomentum(const G4double x, const G4double y, const G4double z)
double z() const
void SetMass(const G4double mas)
void SetTotalEnergy(const G4double en)
double y() const
void SetFormationTime(G4double aTime)
double G4double
Definition: G4Types.hh:76
G4ReactionProduct operator- ( const G4ReactionProduct p1,
const G4ReactionProduct p2 
)
friend

Definition at line 264 of file G4ReactionProduct.cc.

266  {
267  G4double totEnergy = p1.totalEnergy - p2.totalEnergy;
268  G4double x = p1.momentum.x() - p2.momentum.x();
269  G4double y = p1.momentum.y() - p2.momentum.y();
270  G4double z = p1.momentum.z() - p2.momentum.z();
271  G4double newMass = totEnergy*totEnergy - ( x*x + y*y + z*z );
272  if( newMass < 0.0 )
273  newMass = -1. * std::sqrt( -newMass );
274  else
275  newMass = std::sqrt( newMass );
277  result.SetMass( newMass );
278  result.SetMomentum( x, y, z );
279  result.SetTotalEnergy( totEnergy );
280  result.SetPositionInNucleus( 0.0, 0.0, 0.0 );
281  result.SetFormationTime(0.0);
282  result.HasInitialStateParton(false);
283  return result;
284  }
G4double G4ParticleHPJENDLHEData::G4double result
void SetPositionInNucleus(G4double x, G4double y, G4double z)
void HasInitialStateParton(G4bool aFlag)
double x() const
void SetMomentum(const G4double x, const G4double y, const G4double z)
double z() const
void SetMass(const G4double mas)
void SetTotalEnergy(const G4double en)
double y() const
void SetFormationTime(G4double aTime)
double G4double
Definition: G4Types.hh:76

The documentation for this class was generated from the following files: