Changeset 962 for trunk/source/processes/hadronic/models/parton_string/hadronization/src/G4FragmentingString.cc
- Timestamp:
- Apr 6, 2009, 12:30:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/parton_string/hadronization/src/G4FragmentingString.cc
r819 r962 80 80 if ( old.decaying == Left ) 81 81 { 82 //G4cout<<" Left "<<G4endl; 83 //G4cout<<"Pt right "<<Ptright<<G4endl; 84 //G4cout<<"Pt left "<<Ptleft <<G4endl; 82 85 RightParton= old.RightParton; 83 86 Ptright = old.Ptright; … … 85 88 Ptleft = old.Ptleft - momentum->vect(); 86 89 Ptleft.setZ(0.); 90 //G4cout<<"Pt right "<<Ptright<<G4endl; 91 //G4cout<<"Pt left "<<Ptleft <<G4endl; 87 92 } else if ( old.decaying == Right ) 88 93 { 94 //G4cout<<" Right "<<G4endl; 95 //G4cout<<"Pt right "<<Ptright<<G4endl; 96 //G4cout<<"Pt left "<<Ptleft <<G4endl; 89 97 RightParton = newdecay; 90 98 Ptright = old.Ptright - momentum->vect(); … … 92 100 LeftParton = old.LeftParton; 93 101 Ptleft = old.Ptleft; 102 //G4cout<<"Pt right "<<Ptright<<G4endl; 103 //G4cout<<"Pt left "<<Ptleft <<G4endl; 94 104 } else 95 105 { … … 106 116 //--------------------------------------------------------------------------------- 107 117 118 G4FragmentingString::G4FragmentingString(const G4FragmentingString &old, // Uzhi 119 G4ParticleDefinition * newdecay) // Uzhi 120 { // Uzhi 121 decaying=None; // Uzhi 122 if ( old.decaying == Left ) // Uzhi 123 { // Uzhi 124 RightParton= old.RightParton; // Uzhi 125 LeftParton = newdecay; // Uzhi 126 } else if ( old.decaying == Right ) // Uzhi 127 { // Uzhi 128 RightParton = newdecay; // Uzhi 129 LeftParton = old.LeftParton; // Uzhi 130 } else // Uzhi 131 { 132 throw G4HadronicException(__FILE__, __LINE__, "G4FragmentingString::G4FragmentingString: no decay Direction defined"); 133 } 134 } 135 136 137 //--------------------------------------------------------------------------------- 138 108 139 G4FragmentingString::~G4FragmentingString() 109 140 {} … … 215 246 return std::sqrt(this->Mass2()); 216 247 } 248 249 G4double G4FragmentingString::MassT2() const 250 { 251 return Pplus*Pminus; 252 }
Note: See TracChangeset
for help on using the changeset viewer.