Ignore:
Timestamp:
Nov 5, 2010, 3:45:55 PM (14 years ago)
Author:
garnier
Message:

update ti head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/cascade/cascade/src/G4InuclEvaporation.cc

    r1337 r1340  
    2424// ********************************************************************
    2525//
    26 // $Id: G4InuclEvaporation.cc,v 1.19 2010/06/25 09:44:40 gunter Exp $
    27 // Geant4 tag: $Name: geant4-09-04-beta-01 $
     26// $Id: G4InuclEvaporation.cc,v 1.22 2010/09/24 21:09:01 mkelsey Exp $
     27// Geant4 tag: $Name: hadr-casc-V09-03-85 $
    2828//
    2929// 20100114  M. Kelsey -- Remove G4CascadeMomentum, use G4LorentzVector directly
     
    3838//              G4CollisionOutput, copy G4DynamicParticle directly from
    3939//              G4InuclParticle, no switch-block required.  Fix scaling factors.
     40// 20100914  M. Kelsey -- Migrate to integer A and Z
     41// 20100924  M. Kelsey -- Migrate to "OutgoingNuclei" names in CollisionOutput
    4042
     43#include "G4InuclEvaporation.hh"
    4144#include <numeric>
    4245#include "G4IonTable.hh"
     
    4548#include "G4DynamicParticleVector.hh"
    4649#include "G4EvaporationInuclCollider.hh"
    47 #include "G4InuclEvaporation.hh"
    4850#include "G4InuclNuclei.hh"
    4951#include "G4Track.hh"
     
    102104  }
    103105
    104   G4double A = theNucleus.GetA();
    105   G4double Z = theNucleus.GetZ();
     106  G4int A = theNucleus.GetA_asInt();
     107  G4int Z = theNucleus.GetZ_asInt();
    106108  G4double mTar  = G4NucleiProperties::GetNuclearMass(A, Z); // Mass of the target nucleus
    107109
     
    131133  evaporator->collide(0, nucleus, output);
    132134
    133   const std::vector<G4InuclNuclei>& nucleiFragments = output.getNucleiFragments();
     135  const std::vector<G4InuclNuclei>& outgoingNuclei = output.getOutgoingNuclei();
    134136  const std::vector<G4InuclElementaryParticle>& particles = output.getOutgoingParticles();
    135137
     
    158160  }
    159161
    160   //  G4cout << "# fragments " << output.getNucleiFragments().size() << G4endl;
     162  //  G4cout << "# fragments " << output.getOutgoingNuclei().size() << G4endl;
    161163  i=1;
    162   if (!nucleiFragments.empty()) {
    163     nucleiIterator ifrag = nucleiFragments.begin();
    164     for (; ifrag != nucleiFragments.end(); ifrag++) {
     164  if (!outgoingNuclei.empty()) {
     165    nucleiIterator ifrag = outgoingNuclei.begin();
     166    for (; ifrag != outgoingNuclei.end(); ifrag++) {
    165167      if (verboseLevel > 2) {
    166168        G4cout << " Nuclei fragment: " << i << G4endl; i++;
     
    171173      G4LorentzVector vlab = ifrag->getMomentum().boost(boostToLab);
    172174 
    173       G4int A = G4int(ifrag->getA());
    174       G4int Z = G4int(ifrag->getZ());
     175      G4int A = ifrag->getA();
     176      G4int Z = ifrag->getZ();
    175177      if (verboseLevel > 2) {
    176178        G4cout << "boosted v" << vlab << G4endl;
Note: See TracChangeset for help on using the changeset viewer.