Ignore:
Timestamp:
Dec 22, 2010, 3:52:27 PM (15 years ago)
Author:
garnier
Message:

geant4 tag 9.4

Location:
trunk/source/processes/hadronic/models/abrasion
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/abrasion/History

    r1340 r1347  
    1414     ---------------------------------------------------------------
    1515
     1612-Nov-2010, Dennis Wright                  (had-abrasion-V09-03-01)
     17--------------------------------------------------------------------
     18- G4WilsonAbrasionModel.cc : initialize r0sq in ctor (CoVerity)
     19- G4NuclearAbrasionGeometry::GetExcitationEnergyOfTarget :
     20   fix memory leak by deleting revAbrasionGeometry  (CoVerity)
     21
    162208-Sep-2010, Gunter Folger                  (had-abrasion-V09-03-00)
     23--------------------------------------------------------------------
    1724- G4WilsonAbrasionModel.cc: remove several unused #includes
    1825
  • trunk/source/processes/hadronic/models/abrasion/src/G4NuclearAbrasionGeometry.cc

    r819 r1347  
    194194  return Es;
    195195}
    196 //////////////////////////////////////////////////////////////////////////////////////
    197 //
     196
     197
    198198G4double G4NuclearAbrasionGeometry::GetExcitationEnergyOfTarget ()
    199199{
    200 //
    201 //
    202 // This member function declares a new G4NuclearAbrasionGeometry object but with the
    203 // projectile and target exchanged to determine the values for F and P.  Determination
    204 // of the excess surface area and excitation energy is as above.
    205 //
    206   G4NuclearAbrasionGeometry *revAbrasionGeometry =
     200  // This member function declares a new G4NuclearAbrasionGeometry object
     201  // but with the projectile and target exchanged to determine the values
     202  // for F and P.  Determination of the excess surface area and excitation
     203  // energy is as above.
     204
     205  G4NuclearAbrasionGeometry* revAbrasionGeometry =
    207206    new G4NuclearAbrasionGeometry(AT, AP, r);
    208207  G4double F1 = revAbrasionGeometry->F();
     
    212211  Es = 0.95 * MeV * 4.0 * pi * rT*rT/fermi/fermi *
    213212       (1.0+P1-std::pow(1.0-F1,2.0/3.0));
     213
    214214//  if (rP < rT && r < rT-rP)
    215   if ((r-rT)/rP < rth)
    216   {
     215  if ((r-rT)/rP < rth) {
    217216    G4double omega = 0.0;
    218217    if      (AT < 12.0)  omega = 1500.0;
     
    225224  else if (Es > B * AT)
    226225    Es = B * AT;
     226
     227  delete revAbrasionGeometry;
     228
    227229  return Es;
    228230}
    229 ////////////////////////////////////////////////////////////////////////////////
    230 //
  • trunk/source/processes/hadronic/models/abrasion/src/G4WilsonAbrasionModel.cc

    r1340 r1347  
    3434// ********************************************************************
    3535//
    36 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     36// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    3737//
    3838// MODULE:              G4WilsonAbrasionModel.cc
     
    4545// Contract:            17191/03/NL/LvH
    4646//
    47 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     47// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    4848//
    4949// CHANGE HISTORY
     
    7272// Additional clauses have been included in
    7373//    G4WilsonAbrasionModel::GetNucleonInducedExcitation
    74 // Previously it was possible to get sqrt of negative number as Wilson algorithm
    75 // not properly defined if either:
     74// Previously it was possible to get sqrt of negative number as Wilson
     75// algorithm not properly defined if either:
    7676//    rT > rP && rsq < rTsq - rPsq) or (rP > rT && rsq < rPsq - rTsq)
    7777//
    78 // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    79 ////////////////////////////////////////////////////////////////////////////////
    80 //
     78// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     79///////////////////////////////////////////////////////////////////////////////
     80
    8181#include "G4WilsonAbrasionModel.hh"
    8282#include "G4WilsonRadius.hh"
     
    9999#include "G4IonTable.hh"
    100100#include "globals.hh"
    101 ////////////////////////////////////////////////////////////////////////////////
    102 //
     101
     102
    103103G4WilsonAbrasionModel::G4WilsonAbrasionModel (G4bool useAblation1)
    104104  :G4HadronicInteraction("G4WilsonAbrasion")
    105105{
    106 //
    107 //
    108 // Send message to stdout to advise that the G4Abrasion model is being used.
    109 //
     106  // Send message to stdout to advise that the G4Abrasion model is being used.
    110107  PrintWelcomeMessage();
    111 //
    112 //
    113 // Set the default verbose level to 0 - no output.
    114 //
     108
     109  // Set the default verbose level to 0 - no output.
    115110  verboseLevel = 0;
    116111  useAblation  = useAblation1;
    117 //
    118 //
    119 // No de-excitation handler has been supplied - define the default handler.
    120 //
     112
     113  // No de-excitation handler has been supplied - define the default handler.
     114
    121115  theExcitationHandler  = new G4ExcitationHandler;
    122116  theExcitationHandlerx = new G4ExcitationHandler;
     
    146140    theExcitationHandlerx->SetMaxAandZForFermiBreakUp(12, 6);
    147141  }
    148 //
    149 //
    150 // Set the minimum and maximum range for the model (despite nomanclature, this
    151 // is in energy per nucleon number). 
    152 //
     142
     143  // Set the minimum and maximum range for the model (despite nomanclature,
     144  // this is in energy per nucleon number). 
     145
    153146  SetMinEnergy(70.0*MeV);
    154147  SetMaxEnergy(10.1*GeV);
    155148  isBlocked = false;
    156 //
    157 //
    158 // npK, when mutiplied by the nuclear Fermi momentum, determines the range of
    159 // momentum over which the secondary nucleon momentum is sampled.
    160 //
    161   npK              = 5.0;
    162   B                = 10.0 * MeV;
    163   third            = 1.0 / 3.0;
    164   fradius          = 0.99;
    165   conserveEnergy   = false;
     149
     150  // npK, when mutiplied by the nuclear Fermi momentum, determines the range of
     151  // momentum over which the secondary nucleon momentum is sampled.
     152
     153  r0sq = 0.0;
     154  npK = 5.0;
     155  B = 10.0 * MeV;
     156  third = 1.0 / 3.0;
     157  fradius = 0.99;
     158  conserveEnergy = false;
    166159  conserveMomentum = true;
    167160}
    168 ////////////////////////////////////////////////////////////////////////////////
    169 //
     161
     162
    170163G4WilsonAbrasionModel::G4WilsonAbrasionModel (G4ExcitationHandler *aExcitationHandler)
    171164{
Note: See TracChangeset for help on using the changeset viewer.