Ignore:
Timestamp:
Apr 6, 2009, 12:30:29 PM (15 years ago)
Author:
garnier
Message:

update processes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/rpg/src/G4RPGTwoCluster.cc

    r819 r962  
    2424// ********************************************************************
    2525//
    26 // $Id: G4RPGTwoCluster.cc,v 1.2 2007/08/15 20:38:48 dennis Exp $
    27 // GEANT4 tag $Name: geant4-09-01-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 $
    2828//
    2929
     
    128128  G4double bMass = backwardMass;
    129129
    130   G4int backwardNucleonCount = 1;  // number of nucleons in backward hemisphere
     130  //  G4int backwardNucleonCount = 1;  // number of nucleons in backward hemisphere
    131131   
    132132  for( i=0; i<vecLen; ++i )
     
    163163
    164164  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;
    168168  if( nuclearExcitationCount > 0 )
    169169  {
     
    183183        else
    184184          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;
    188188      }
    189189      else
     
    196196        else
    197197          pVec->SetDefinition( aPiMinus );
     198
     199        // DHW: add following two lines to correct energy balance
     200        //        ++backwardCount;
     201        //        backwardMass += pVec->GetMass()/GeV;
    198202      }
    199203      pVec->SetSide( -2 );    // backside particle
    200       extraMass += pVec->GetMass()/GeV;
     204      // Not used     extraMass += pVec->GetMass()/GeV;
    201205      pVec->SetNewlyAdded( true );
    202206      vec.SetElement( vecLen++, pVec );
     
    204208  }
    205209
    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 
    207214  G4double forwardEnergy = (centerofmassEnergy-cMass-bMass)/2.0 +cMass - forwardMass;
    208215  G4double backwardEnergy = (centerofmassEnergy-cMass-bMass)/2.0 +bMass - backwardMass;
     
    779786    const G4double pnCutOff = 0.001;     // GeV
    780787    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;
    783790     
    784     G4double sprob = 0.0;   // sprob = probability of self-absorption in
     791    //    G4double sprob = 0.0;   // sprob = probability of self-absorption in
    785792                            // 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) );
    788795     
    789796    if( epnb >= pnCutOff )
     
    803810    // DEBUGGING --> DumpFrames::DumpFrame(vec, vecLen);
    804811
    805     AddBlackTrackParticles(epnb, npnb, edta, ndta, sprob, kineticMinimum,
    806                            kineticFactor, modifiedOriginal,
     812    AddBlackTrackParticles(epnb, npnb, edta, ndta, modifiedOriginal,
    807813                           PinNucleus, NinNucleus, targetNucleus,
    808814                           vec, vecLen );
Note: See TracChangeset for help on using the changeset viewer.