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

geant4 tag 9.4

Location:
trunk/source/processes/hadronic/stopping
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/stopping/History

    r1340 r1347  
    1515     ---------------------------------------------------------------
    1616
     1711-Nov-2010 Dennis Wright        (hadr-stopping-V09-03-01)
     18----------------------------------------------------------
     19- G4MuonMinusCaptureAtRest::DoMuCapture : fix unused branch 
     20    pd = G4Deuteron::Deuteron() in mass calculation
     21- G4PiMinusStopMaterial: theR was used but uninitialized.  Now init'ed
     22    to 0.5 in ctor
     23- G4PiMinusAbsorptionAtRest: remove null test for vector pointer
     24    in dtor
     25- G4StopDummyDeexcitation: initialize pointer _products in ctor
     26- G4KaonMinusAbsorptionAtRest::SigmaLambdaConversion : add dummy
     27    particles to default of switch/case to avoid possible NULL
     28    pointers
     29 
    173020-Sep-2010 Gunter Folger        (hadr-stopping-V09-03-00)
    1831----------------------------------------------------------
  • trunk/source/processes/hadronic/stopping/src/G4KaonMinusAbsorptionAtRest.cc

    r1196 r1347  
    502502  default:
    503503    sigmaLambdaConversionRate = 0.;
     504    // Add dummy particles to avoid possibility of passing NULL pointers
     505    inNucleonDef   = G4Proton::Proton();
     506    outNucleonDef  = G4Proton::Proton();
    504507  }
    505508 
  • trunk/source/processes/hadronic/stopping/src/G4PiMinusAbsorptionAtRest.cc

    r1196 r1347  
    209209    }
    210210
    211   G4int index = 3;
    212   if (Z <= 3) { index = 3;}
    213   if (Z > 3 && Z<= 6) {index = 6;}
     211  G4int index = 0;
     212  if (Z > 0 && Z < 4) {index = 3;}
     213  if (Z > 3 && Z < 7) {index = 6;}
    214214  if (Z == 7) {index = 7;}
    215215  if (Z >= 8 && Z<= 11) {index = 8;}
  • trunk/source/processes/hadronic/stopping/src/G4PiMinusStopMaterial.cc

    r1196 r1347  
    5454
    5555G4PiMinusStopMaterial::G4PiMinusStopMaterial()
    56  
    5756{
    5857  _definitions = 0;
     
    6059  _distributionE = 0;
    6160  _distributionAngle = 0;
    62 
     61  theR = 0.5;
    6362}
    6463
     
    6867G4PiMinusStopMaterial::~G4PiMinusStopMaterial()
    6968{
    70   //  _definitions->clear();
    7169  if (_definitions != 0) delete _definitions;
    7270  _definitions = 0;
    7371
    74   for(unsigned int i=0; i<_momenta->size(); i++) delete(*_momenta)[i];
     72  for (unsigned int i=0; i<_momenta->size(); i++) delete(*_momenta)[i];
    7573  if (_momenta != 0) delete _momenta;
    7674
     
    9492}
    9593
    96 std::vector<G4LorentzVector*>* G4PiMinusStopMaterial::P4Vector(const G4double binding,
    97                                                                       const G4double massNucleus)
     94std::vector<G4LorentzVector*>*
     95G4PiMinusStopMaterial::P4Vector(const G4double binding,
     96                                const G4double massNucleus)
    9897{
    99 
    100   // Generate energy of direct absorption products according to experimental data
    101   // The energy distribution of the two nucleons is assumed to be the same
    102   // for protons and neutrons 
    103 
     98  // Generate energy of direct absorption products according to experimental
     99  // data.  The energy distribution of the two nucleons is assumed to be the
     100  // same for protons and neutrons. 
    104101
    105102  G4double eKin1;
     
    191188}
    192189
    193 
    194 
    195 
    196 
    197 
    198 
    199 
    200 
    201 
  • trunk/source/processes/hadronic/stopping/src/G4StopDummyDeexcitation.cc

    r819 r1347  
    4242// Constructor
    4343
    44 G4StopDummyDeexcitation::G4StopDummyDeexcitation()
    45  
    46 {}
     44G4StopDummyDeexcitation::G4StopDummyDeexcitation() 
     45{
     46  _products = 0;
     47}
    4748
    4849
Note: See TracChangeset for help on using the changeset viewer.