From c43f5697f45d84feb6a8e9b11d66d065735210d2 Mon Sep 17 00:00:00 2001 From: Andre Sailer <andre.philippe.sailer@cern.ch> Date: Wed, 26 Feb 2020 13:25:25 +0100 Subject: [PATCH] HepMC3Reader: vertex[3] is also in length, need to convert to time --- DDG4/hepmc/HepMC3EventReader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DDG4/hepmc/HepMC3EventReader.cpp b/DDG4/hepmc/HepMC3EventReader.cpp index 63f4ceb5b..4f993de58 100644 --- a/DDG4/hepmc/HepMC3EventReader.cpp +++ b/DDG4/hepmc/HepMC3EventReader.cpp @@ -84,8 +84,8 @@ HEPMC3EventReader::readParticles(int event_number, Vertices& vertices, Particles p->psx = mom.get_component(0) * mom_unit; p->psy = mom.get_component(1) * mom_unit; p->psz = mom.get_component(2) * mom_unit; - p->time = vsx.get_component(3) * CLHEP::ns; // FIXME - p->properTime = vsx.get_component(3) * CLHEP::ns; // FIXME + p->time = vsx.get_component(3) * len_unit / CLHEP::c_light; // FIXME + p->properTime = vsx.get_component(3) * len_unit / CLHEP::c_light; // FIXME p->vsx = vsx.get_component(0) * len_unit; p->vsy = vsx.get_component(1) * len_unit; p->vsz = vsx.get_component(2) * len_unit; -- GitLab