Fork me on GitHub

Opened 12 years ago

Closed 12 years ago

#151 closed Bug (fixed)

HepMC Reader problem

Reported by: cakir Owned by:
Priority: major Milestone:
Component: Delphes code Version:
Keywords: Cc:

Description

Dear Delphes team,

I have just installed Sherpa MC in order to use via Delphes. However, I am not able to read HepMC format via Delphes and it complains with the following error:

####### Start conversion to TRoot format ########
HepMC::Version
ERROR: File format not identified -- Exiting...

since I checked the output file from Sherpa and it seems fine.

HepMC::Version 2.06.09
HepMC::IO_GenEvent-START_EVENT_LISTING
E 1 -1 -1.000000000000e+00 -1.000000000000e+00 -1.000000000000e+00 0 0 1 10001 10002 0 1 2.251175403896e+01
N 1 "0"
U GEV MM
C 1.552195213248e+04 1.552195213248e+04
F 2 -1 5.915061267418e-01 1.061799879907e-03 4.911984989468e+01 5.671168379402e-02 1.320935438652e+00 0 0
V -1 0 0 0 0 0 2 78 0
P 10001 2212 0 0 9.799995508395e+02 9.800000000000e+02 9.382720000133e-01 2 0 0 -1 0
P 10002 -2212 0 0 -9.799995508395e+02 9.800000000000e+02 9.382720000133e-01 2 0 0 -1 0
P 10003 12 9.357520723444e+00 1.073620034619e+01 4.315312777533e+02 4.317662247923e+02 -9.344061823971e-06 1 0 0 0 0
P 10004 -11 -2.185890757924e+01 -1.155060583046e+01 1.598306861442e+02 1.617314952914e+02 5.109950380180e-04 1 0 0 0 0
P 10005 22 -2.701070739906e-01 -2.334456694785e-02 1.234787577983e+00 1.264200602344e+00 2.107342425545e-08 1 0 0 0 0
P 10006 22 -3.767368692550e-02 -1.634166359489e-02 2.613878010313e-01 2.645939137312e-01 3.725290298462e-09 1 0 0 0 0
P 10007 22 -1.641967389222e-02 -8.630771807758e-03 1.196934804668e-01 1.211223562312e-01 1.317089015965e-09 1 0 0 0 0
P 10008 321 1.408367674298e-02 1.010887644650e+00 2.906183337761e+00 3.116361781479e+00 4.936770000000e-01 1 0 0 0 0
P 10009 -211 6.638549078094e-01 -2.828826014556e-01 -7.205774210213e+00 7.243161440855e+00 1.395699999999e-01 1 0 0 0 0
P 10010 211 1.536288661551e-01 -2.368963444664e-01 -7.200944345298e-01 7.859627765222e-01 1.395700000000e-01 1 0 0 0 0
P 10011 -211 -5.188906080736e-02 -1.374519816152e-01 5.382486125866e-01 5.751320506917e-01 1.395700000000e-01 1 0 0 0 0
P 10012 211 4.085194969281e-01 2.878101861529e-01 -1.187308881368e+01 1.188442008030e+01 1.395700000003e-01 1 0 0 0 0
P 10013 22 1.386239192077e-03 3.808016510638e-05 -9.573642311637e-02 9.574646635941e-02 0 1 0 0 0 0

....

I used the recent version of HepMC program. Did you see this error before?

Thanks in advance,
Altan.

I use Delphes-2.0.3

Change History (2)

comment:1 by lmitzka, 12 years ago

Hi!

I got the same error a few minutes ago.
In my case it was a pretty trivial user error:
The command has to look like

Usage: ./Delphes input_file output_file [detector_card] [trigger_card]
input_list - list of files in Ntpl, StdHep, HepMC or LHEF format,

My mistake was not to give a list of files as first argument, but my hepmc file directly
./Delphes [myfile].hepmc output.root

Which resulted in the error
####### Start conversion to TRoot format ########
HepMC::Version
ERROR: File format not identified -- Exiting...

Good luck
Lukas

comment:2 by favereau, 12 years ago

Resolution: fixed
Status: newclosed

The usage line is indeed a tad misleading.

duely noted.

Note: See TracTickets for help on using tickets.