Fork me on GitHub

Opened 8 years ago

Last modified 8 years ago

#1050 new Bug

Problems reading a HepMC file

Reported by: roberto ruiz Owned by:
Priority: major Milestone:
Component: Delphes code Version: Delphes 3
Keywords: Cc:

Description

Dear developers,

I am trying to use delphes with a HepMC file and it fails. I have tried to find out the reason and the issue is related with this:

static const int kBufferSize = 1024;

in HepMCReader.cc.
Basically the string the code has to read is very large and therefore is cut. So it is not read in a proper way.

In order you get a feeling about the size of the string that the function ReadDbl has to read I attach the entrance in the HepMC file where it fails.

All the best,
Roberto


Attachments (1)

HepMC.txt (2.7 KB ) - added by roberto ruiz 8 years ago.
txt

Download all attachments as: .zip

Change History (2)

by roberto ruiz, 8 years ago

Attachment: HepMC.txt added

txt

comment:1 by Pavel Demin, 8 years ago

Dear Roberto,

Thank you for finding this problem. I suppose it can be easily fixed by setting kBufferSize to a higher value.

I've just replaced 1024 with 16384: c6667c0b9a201c743a992c626db39c2c6d00d855/git

Best regards,

Pavel

Note: See TracTickets for help on using tickets.