- Timestamp:
- Apr 6, 2009, 12:30:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/rpg/src/G4RPGTwoCluster.cc
r819 r962 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4RPGTwoCluster.cc,v 1. 2 2007/08/15 20:38:48dennis Exp $27 // GEANT4 tag $Name: geant4-09-0 1-patch-02 $26 // $Id: G4RPGTwoCluster.cc,v 1.5 2008/06/09 18:13:35 dennis Exp $ 27 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 28 28 // 29 29 … … 128 128 G4double bMass = backwardMass; 129 129 130 G4int backwardNucleonCount = 1; // number of nucleons in backward hemisphere130 // G4int backwardNucleonCount = 1; // number of nucleons in backward hemisphere 131 131 132 132 for( i=0; i<vecLen; ++i ) … … 163 163 164 164 if(atomicWeight<1.0001) nuclearExcitationCount = 0; 165 G4int extraNucleonCount = 0;166 G4double extraMass = 0.0;167 G4double extraNucleonMass = 0.0;165 // G4int extraNucleonCount = 0; 166 // G4double extraMass = 0.0; 167 // G4double extraNucleonMass = 0.0; 168 168 if( nuclearExcitationCount > 0 ) 169 169 { … … 183 183 else 184 184 pVec->SetDefinition( aNeutron ); 185 ++backwardNucleonCount;186 ++extraNucleonCount;187 extraNucleonMass += pVec->GetMass()/GeV;185 // Not used ++backwardNucleonCount; 186 // Not used ++extraNucleonCount; 187 // Not used extraNucleonMass += pVec->GetMass()/GeV; 188 188 } 189 189 else … … 196 196 else 197 197 pVec->SetDefinition( aPiMinus ); 198 199 // DHW: add following two lines to correct energy balance 200 // ++backwardCount; 201 // backwardMass += pVec->GetMass()/GeV; 198 202 } 199 203 pVec->SetSide( -2 ); // backside particle 200 extraMass += pVec->GetMass()/GeV;204 // Not used extraMass += pVec->GetMass()/GeV; 201 205 pVec->SetNewlyAdded( true ); 202 206 vec.SetElement( vecLen++, pVec ); … … 204 208 } 205 209 206 // Masses of particles added from cascade not included in energy balance 210 // Masses of particles added from cascade not included in energy balance. 211 // That's correct for nucleons from the intra-nuclear cascade but not for 212 // pions from the cascade. 213 207 214 G4double forwardEnergy = (centerofmassEnergy-cMass-bMass)/2.0 +cMass - forwardMass; 208 215 G4double backwardEnergy = (centerofmassEnergy-cMass-bMass)/2.0 +bMass - backwardMass; … … 779 786 const G4double pnCutOff = 0.001; // GeV 780 787 const G4double dtaCutOff = 0.001; // GeV 781 const G4double kineticMinimum = 1.e-6;782 const G4double kineticFactor = -0.005;788 // const G4double kineticMinimum = 1.e-6; 789 // const G4double kineticFactor = -0.005; 783 790 784 G4double sprob = 0.0; // sprob = probability of self-absorption in791 // G4double sprob = 0.0; // sprob = probability of self-absorption in 785 792 // heavy molecules 786 const G4double ekIncident = originalIncident->GetKineticEnergy()/GeV;787 if( ekIncident >= 5.0 )sprob = std::min( 1.0, 0.6*std::log(ekIncident-4.0) );793 // Not currently used (DHW 9 June 2008) const G4double ekIncident = originalIncident->GetKineticEnergy()/GeV; 794 // if( ekIncident >= 5.0 )sprob = std::min( 1.0, 0.6*std::log(ekIncident-4.0) ); 788 795 789 796 if( epnb >= pnCutOff ) … … 803 810 // DEBUGGING --> DumpFrames::DumpFrame(vec, vecLen); 804 811 805 AddBlackTrackParticles(epnb, npnb, edta, ndta, sprob, kineticMinimum, 806 kineticFactor, modifiedOriginal, 812 AddBlackTrackParticles(epnb, npnb, edta, ndta, modifiedOriginal, 807 813 PinNucleus, NinNucleus, targetNucleus, 808 814 vec, vecLen );
Note: See TracChangeset
for help on using the changeset viewer.