Message: HepMCG4Interface.cc - vector conversion problem Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question HepMCG4Interface.cc - vector conversion problem 

Forum: Event and Track Management
Date: 10 Sep, 2010
From: Katalin Nikolics <Katalin Nikolics>

Hello,

I'm trying to use Pythia as an event generator with the help of the HepMC interface provided in the example eventgenerators/HepMC/HepMC01 However, I encounter a problem that's been reported previously already, but I still don't know the solution:

Compiling HepMCG4Interface.cc ... src/HepMCG4Interface.cc: In member function ‘void HepMCG4Interface::HepMC2G4(const HepMC::GenEvent*, G4Event*)’: src/HepMCG4Interface.cc:67: error: cannot convert ‘const HepMC::FourVector’ to ‘G4LorentzVector*’ in initialization src/HepMCG4Interface.cc:69: error: request for member ‘vect’ in ‘xvtx’, which is of non-class type ‘G4LorentzVector*’ src/HepMCG4Interface.cc:73: error: request for member ‘x’ in ‘xvtx’, which is of non-class type ‘G4LorentzVector*’ src/HepMCG4Interface.cc:73: error: request for member ‘y’ in ‘xvtx’, which is of non-class type ‘G4LorentzVector*’ src/HepMCG4Interface.cc:73: error: request for member ‘z’ in ‘xvtx’, which is of non-class type ‘G4LorentzVector*’ src/HepMCG4Interface.cc:74: error: request for member ‘t’ in ‘xvtx’, which is of non-class type ‘G4LorentzVector*’ src/HepMCG4Interface.cc:83: error: conversion from ‘const HepMC::FourVector’ to non-scalar type ‘CLHEP::HepLorentzVector’ requested

I tried all kinds of other declarations for the vector, but nothing works... I'm using the latest (2.06.01) distribution of HepMC...

Thanks for your help, Kati

 Add Message Add Message
to: "HepMCG4Interface.cc - vector conversion problem"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]