Import Geant4 10.7.0 source tree
This commit is contained in:
+11
-25
@@ -105,7 +105,7 @@ class G4FragmentingString
|
||||
private:
|
||||
G4ParticleDefinition *LeftParton, *RightParton;
|
||||
G4ThreeVector Ptleft,Ptright; // Pt (px,py) for partons (pz ignored!)
|
||||
G4double Pplus, Pminus; // p-, p+ of string, Plus ass. to Left!
|
||||
G4double Pplus, Pminus; // p-, p+ of string, Plus associated to Left!
|
||||
|
||||
G4ParticleDefinition * theStableParton, * theDecayParton;
|
||||
|
||||
@@ -180,38 +180,24 @@ G4LorentzRotation G4FragmentingString::TransformToCenterOfMass()
|
||||
return toCMS;
|
||||
}
|
||||
|
||||
inline
|
||||
G4LorentzRotation G4FragmentingString::TransformToAlignedCms()
|
||||
{
|
||||
G4LorentzVector momentum=Pstring;
|
||||
G4LorentzRotation toAlignedCms(-1*momentum.boostVector());
|
||||
|
||||
momentum= toAlignedCms* Pleft;
|
||||
toAlignedCms.rotateZ(-1*momentum.phi());
|
||||
toAlignedCms.rotateY(-1*momentum.theta());
|
||||
|
||||
Pleft *= toAlignedCms;
|
||||
Pright *= toAlignedCms;
|
||||
Pstring *= toAlignedCms;
|
||||
|
||||
Ptleft = G4ThreeVector(0.,0.,0.);
|
||||
Ptright = G4ThreeVector(0.,0.,0.);
|
||||
Pplus = Pstring.plus();
|
||||
Pminus = Pstring.minus();
|
||||
|
||||
return toAlignedCms;
|
||||
}
|
||||
|
||||
inline
|
||||
void G4FragmentingString::SetPleft(G4LorentzVector a4momentum)
|
||||
{
|
||||
Pleft = a4momentum;
|
||||
Pleft = a4momentum;
|
||||
Ptleft = Pleft.vect(); Ptleft.setZ(0.);
|
||||
Pstring = Pleft + Pright;
|
||||
Pplus = Pstring.plus();
|
||||
Pminus = Pstring.minus();
|
||||
}
|
||||
|
||||
inline
|
||||
void G4FragmentingString::SetPright(G4LorentzVector a4momentum)
|
||||
{
|
||||
Pright = a4momentum;
|
||||
Pright = a4momentum;
|
||||
Ptright = Pright.vect(); Ptright.setZ(0.);
|
||||
Pstring = Pleft + Pright;
|
||||
Pplus = Pstring.plus();
|
||||
Pminus = Pstring.minus();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
+3
@@ -107,6 +107,9 @@ class G4LundStringFragmentation: public G4VLongitudinalStringDecay
|
||||
G4ParticleDefinition * & RightHadron );
|
||||
|
||||
G4int SampleState(void);
|
||||
|
||||
G4double Tmt; // "Temperature" for sampling Pt of hadrons
|
||||
|
||||
};
|
||||
|
||||
//******************************************************************************
|
||||
|
||||
+2
-2
@@ -51,8 +51,8 @@ class G4QGSMFragmentation:public G4VLongitudinalStringDecay
|
||||
G4bool operator!=(const G4QGSMFragmentation &right) const;
|
||||
|
||||
private:
|
||||
virtual G4bool StopFragmenting(const G4FragmentingString * const string);
|
||||
virtual G4bool IsItFragmentable(const G4FragmentingString * const string);
|
||||
virtual G4bool StopFragmenting(const G4FragmentingString * string);
|
||||
virtual G4bool IsItFragmentable(const G4FragmentingString * string);
|
||||
|
||||
virtual G4bool SplitLast(G4FragmentingString * string,
|
||||
G4KineticTrackVector * LeftVector,
|
||||
|
||||
Reference in New Issue
Block a user