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/G4InuclElementaryParticle.cc

    r1337 r1340  
    2424// ********************************************************************
    2525//
    26 // $Id: G4InuclElementaryParticle.cc,v 1.7 2010/06/25 09:44:38 gunter Exp $
    27 // Geant4 tag: $Name: geant4-09-04-beta-01 $
     26// $Id: G4InuclElementaryParticle.cc,v 1.10 2010/09/23 05:33:56 mkelsey Exp $
     27// Geant4 tag: $Name: hadr-casc-V09-03-85 $
    2828//
    2929// 20100428  M. Kelsey -- Use G4InuclParticleNames enums instead of numbers,
    3030//              add Omega and antinucleons.
    3131// 20100429  M. Kelsey -- Change "case gamma:" to "case photon:"
     32// 20100923  M. Kelsey -- Drop "uups" message when converting G4PartDef to code
    3233
    3334#include "G4InuclElementaryParticle.hh"
     
    120121  if (pd == G4Dineutron::Definition())    return dineutron; // Bertini class!
    121122
    122   G4cerr << " uups, unknown G4ParticleDefinition type" << G4endl;
    123   return 0;
     123  return 0;     // Unknown objects return zero (e.g., nuclei)
    124124}
    125125
     
    147147  return pd ? pd->GetPDGMass()*MeV/GeV : 0.0;   // From G4 to Bertini units
    148148}
     149
     150
     151// Print particle parameters
     152
     153void G4InuclElementaryParticle::printParticle() const {
     154  G4InuclParticle::printParticle();
     155  G4cout << " Particle: " << getDefinition()->GetParticleName()
     156         << " type " << type() << " mass " << getMass()
     157         << " ekin " << getKineticEnergy() << G4endl;
     158}
     159
Note: See TracChangeset for help on using the changeset viewer.