- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/extended/eventgenerator/HepMC/HepMCEx02/src/HepMCG4Interface.cc
r807 r1337 27 27 // 28 28 // HepMCG4Interface.cc 29 // $Id: HepMCG4Interface.cc,v 1. 4 2006/06/29 17:12:24 gunterExp $29 // $Id: HepMCG4Interface.cc,v 1.5 2010/05/24 05:29:44 kmura Exp $ 30 30 // 31 31 // ==================================================================== … … 91 91 92 92 // 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()); 94 95 if (! CheckVertexInsideWorld(xvtx.vect()*mm)) continue; 95 96 … … 106 107 107 108 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()); 109 111 G4PrimaryParticle* g4prim= 110 112 new G4PrimaryParticle(pdgcode, p.x()*GeV, p.y()*GeV, p.z()*GeV);
Note: See TracChangeset
for help on using the changeset viewer.