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/include/G4InuclElementaryParticle.hh

    r1337 r1340  
    2424// ********************************************************************
    2525//
    26 // $Id: G4InuclElementaryParticle.hh,v 1.23 2010/06/25 09:43:24 gunter Exp $
    27 // Geant4 tag: $Name: geant4-09-04-beta-01 $
     26// $Id: G4InuclElementaryParticle.hh,v 1.25 2010/09/16 05:21:00 mkelsey Exp $
     27// Geant4 tag: $Name: hadr-casc-V09-03-85 $
    2828//
    2929// 20100114  M. Kelsey -- Remove G4CascadeMomentum, use G4LorentzVector directly
    3030// 20100409  M. Kelsey -- Drop unused string argument from ctors.
    3131// 20100429  M. Kelsey -- Change "photon()" to "isPhoton()", use enum names
     32// 20100914  M. Kelsey -- Move printout to .cc file
     33// 20100915  M. Kelsey -- Add hyperon() identification function, ctor for
     34//              G4DynamicParticle
    3235
    3336#ifndef G4INUCL_ELEMENTARY_PARTICLE_HH
     
    4750  explicit G4InuclElementaryParticle(G4int type)
    4851    : G4InuclParticle(makeDefinition(type)), generation(0) {}
     52
     53  G4InuclElementaryParticle(const G4DynamicParticle& dynPart, G4int model=0)
     54    : G4InuclParticle(dynPart), generation(0) {
     55    setModel(model);
     56  }
    4957
    5058  G4InuclElementaryParticle(const G4LorentzVector& mom,
     
    8189  }
    8290
     91  G4bool hyperon() const {
     92    return (baryon() && getStrangeness() != 0.);
     93  }
     94
    8395  G4bool quasi_deutron() const { return (type() > 100); }
     96
     97  G4double getStrangeness() const { return getStrangeness(type()); }
    8498
    8599  G4bool valid() const { return type()>0; }
    86100
    87   virtual void printParticle() const {
    88     G4InuclParticle::printParticle();
    89     G4cout << " Particle: type " << type() << " mass " << getMass()
    90            << " ekin " << getKineticEnergy() << G4endl;
    91   }
     101  virtual void printParticle() const;
    92102
    93103  void setGeneration(G4int gen) { generation = gen; }
Note: See TracChangeset for help on using the changeset viewer.