Ignore:
Timestamp:
Sep 30, 2010, 2:47:17 PM (14 years ago)
Author:
garnier
Message:

tag geant4.9.4 beta 1 + modifs locales

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/extended/eventgenerator/HepMC/HepMCEx02/src/HepMCG4Interface.cc

    r807 r1337  
    2727//
    2828//   HepMCG4Interface.cc
    29 //   $Id: HepMCG4Interface.cc,v 1.4 2006/06/29 17:12:24 gunter Exp $
     29//   $Id: HepMCG4Interface.cc,v 1.5 2010/05/24 05:29:44 kmura Exp $
    3030//
    3131// ====================================================================
     
    9191
    9292    // check world boundary
    93     G4LorentzVector xvtx= (*vitr)-> position();
     93    HepMC::FourVector pos= (*vitr)-> position();
     94    G4LorentzVector xvtx(pos.x(), pos.y(), pos.z(), pos.t());
    9495    if (! CheckVertexInsideWorld(xvtx.vect()*mm)) continue;
    9596
     
    106107
    107108      G4int pdgcode= (*vpitr)-> pdg_id();
    108       G4LorentzVector p= (*vpitr)-> momentum();
     109      pos= (*vpitr)-> momentum();
     110      G4LorentzVector p(pos.px(), pos.py(), pos.pz(), pos.e());
    109111      G4PrimaryParticle* g4prim=
    110112        new G4PrimaryParticle(pdgcode, p.x()*GeV, p.y()*GeV, p.z()*GeV);
Note: See TracChangeset for help on using the changeset viewer.