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

tag geant4.9.4 beta 1 + modifs locales

Location:
trunk/examples/extended/eventgenerator/HepMC/HepMCEx02/src
Files:
3 edited

Legend:

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

    r807 r1337  
    2727//
    2828//   HepMCG4AsciiReader.cc
    29 //   $Id: HepMCG4AsciiReader.cc,v 1.5 2006/06/29 17:12:09 gunter Exp $
     29//   $Id: HepMCG4AsciiReader.cc,v 1.6 2010/05/24 05:29:44 kmura Exp $
    3030//
    3131// ====================================================================
     
    4141////////////////////////////////////////
    4242{
    43   asciiInput= new HepMC::IO_Ascii(filename.c_str(), std::ios::in);
     43  asciiInput= new HepMC::IO_AsciiParticles(filename.c_str(), std::ios::in);
    4444
    4545  messenger= new HepMCG4AsciiReaderMessenger(this);
     
    6060  delete asciiInput;
    6161
    62   asciiInput= new HepMC::IO_Ascii(filename.c_str(), std::ios::in);
     62  asciiInput= new HepMC::IO_AsciiParticles(filename.c_str(), std::ios::in);
    6363  asciiInput-> print();
    6464}
  • 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);
  • trunk/examples/extended/eventgenerator/HepMC/HepMCEx02/src/HepMCG4PythiaInterface.cc

    r807 r1337  
    2727//
    2828//   HepMCG4PythiaInterface.cc
    29 //   $Id: HepMCG4PythiaInterface.cc,v 1.6 2006/07/05 12:04:13 gcosmo Exp $
     29//   $Id: HepMCG4PythiaInterface.cc,v 1.7 2010/05/24 05:29:44 kmura Exp $
    3030//
    3131// ====================================================================
     
    3737
    3838#include "HepMC/GenEvent.h"
    39 #include "HepMC/PythiaWrapper6_152.h"
     39#include "HepMC/PythiaWrapper6_4.h"
    4040
    4141// additional pythia calls
Note: See TracChangeset for help on using the changeset viewer.