Problem Showering with Pythia8 at NLO

Asked by Matthieu Marinangeli

Dear Experts,

I want to generate p p > mu+ mu- [QCD] and shower the events with PYTHIA8.

PYTHIA8 = parton_shower
3 = ickkw

are set in run_card.dat.

After launching the generation works well and ends up here:

#############

   --------------------------------------------------------------
      Summary:
      Process p p > mu+ mu- [QCD]
      Run at p-p collider (6500.0 + 6500.0 GeV)
      Number of events generated: 10000
      Total cross section: 2.185e+03 +- 5.0e+00 pb
   --------------------------------------------------------------
      Scale variation (computed from LHE events):
          Dynamical_scale_choice -1 (envelope of 9 values):
              2.182e+03 pb +3.1% -6.9%
   --------------------------------------------------------------

INFO: The /Users/matthieumarinangeli/MG5_aMC_v2_5_5/amcatnlorun/Events/run/events.lhe.gz file has been generated.

INFO: Events generated

#############

But after that

#############

reweight -from_cards
decay_events -from_cards
INFO: Preparing MCatNLO run
For consistency in the FxFx merging, 'jetradius' has been set to 1.0
INFO: Compiling MCatNLO for PYTHIA8...
INFO: ... done
INFO: Showering events...
INFO: (Running in /Users/matthieumarinangeli/MG5_aMC_v2_5_5/amcatnlorun/MCatNLO/RUN_PYTHIA8_1)
INFO: Idle: 1, Running: 0, Completed: 0 [ current time: 11h45 ]
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/amcatnlorun/MCatNLO/RUN_PYTHIA8_1/shower.sh: line 41: 33502 Abort trap: 6 ./Pythia8.exe Pythia8.cmd > mcatnlo_run.log 2>&1
mv: rename Pythia8.hep to events.hepmc: No such file or directory
gzip: can't stat: events.hepmc (events.hepmc): No such file or directory
INFO: Idle: 0, Running: 0, Completed: 1 [ 0.04s ]
INFO: Idle: 0, Running: 0, Completed: 0 [ current time: 11h45 ]
Command "launch auto --name run" interrupted with error:
IOError : [Errno 2] No such file or directory: '/Users/matthieumarinangeli/MG5_aMC_v2_5_5/amcatnlorun/MCatNLO/RUN_PYTHIA8_1/events.hepmc.gz'
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in '/Users/matthieumarinangeli/MG5_aMC_v2_5_5/amcatnlorun/run_tag_1_debug.log'.
Please attach this file to your report.

#############

Content of run_tag_1_debug.log here:

#############

launch auto --name run
Traceback (most recent call last):
  File "/Users/matthieumarinangeli/MG5_aMC_v2_5_5/madgraph/interface/extended_cmd.py", line 1430, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/Users/matthieumarinangeli/MG5_aMC_v2_5_5/madgraph/interface/extended_cmd.py", line 1384, in onecmd_orig
    return func(arg, **opt)
  File "/Users/matthieumarinangeli/MG5_aMC_v2_5_5/madgraph/interface/amcatnlo_run_interface.py", line 1246, in do_launch
    self.run_mcatnlo(evt_file, options)
  File "/Users/matthieumarinangeli/MG5_aMC_v2_5_5/madgraph/interface/amcatnlo_run_interface.py", line 3457, in run_mcatnlo
    files.mv(os.path.join(rundir, 'events.%s.gz' % ext), hep_file)
  File "/Users/matthieumarinangeli/MG5_aMC_v2_5_5/madgraph/iolibs/files.py", line 172, in mv
    shutil.move(path1, path2)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
    copy2(src, real_dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 130, in copy2
    copyfile(src, dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/Users/matthieumarinangeli/MG5_aMC_v2_5_5/amcatnlorun/MCatNLO/RUN_PYTHIA8_1/events.hepmc.gz'
Related File: /Users/matthieumarinangeli/MG5_aMC_v2_5_5/amcatnlorun/MCatNLO/RUN_PYTHIA8_1/events.hepmc.gz

#############

Do you have any idea what is the problem ?

Thank you,
Matthieu

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
Valentin Hirschi Edit question
Solved by:
Matthieu Marinangeli
Solved:
Last query:
Last reply:
Revision history for this message
Rikkert Frederix (frederix) said :
#1

Dear Matthieu,

It's is probably an inconsistency in your input parameters. See also here http://amcatnlo.web.cern.ch/amcatnlo/FxFx_merging.htm .

What is the 'ptj' parameter in the run_card?
What do you use as merging scale 'Qcut' in the shower_card? And for 'njmax'?

Best,
Rikkert

Revision history for this message
Matthieu Marinangeli (marinang) said :
#2

To be honest I didn't touch these parameters so they are set at default values which are ptj = 10.0, Qcut = -1.0 and njmax = 0.

But I tried without FxFx merging, ickkw = 0, I get exactly the same error ...

Matt

Revision history for this message
Rikkert Frederix (frederix) said :
#3

Dear Matt,

Leaving the parameters at their default values is clearly inconsistent, see also the information in found via the link I pasted above.

However, the fact that it also doesn't work with ickkw=0 hints also to another problem. What's inside the mcatnlo_run.log file? That file should either by in your ./Events/runXXX/ directory, or in the ./MCatNLO/RUN_PYTHIA8_XXX/ directory (or a subdirectory of the latter). Does it say anything useful?

Best,
Rikkert

Revision history for this message
Matthieu Marinangeli (marinang) said :
#4

Yes indeed, here it is,

dyld: Library not loaded: /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/lib/libHepMC.4.dylib
  Referenced from: /Users/matthieumarinangeli/MG5_aMC_v2_5_5/amcatnlorun1/MCatNLO/RUN_PYTHIA8_1/./Pythia8.exe
  Reason: Incompatible library version: Pythia8.exe requires version 5.0.0 or later, but libHepMC.4.dylib provides version 4.0.0

So does it mean that HepMC that download from the madgraph interface is not the latest?

Cheers,
Matt

Revision history for this message
Rikkert Frederix (frederix) said :
#5

Dear Matt,

I have never seen your problem.
I've forwarded your message to Valentin.
He might be able to help you further.

best,
Rikkert

Revision history for this message
Valentin Hirschi (valentin-hirschi) said :
#6

The version of HEPMC automatically installed by MG5_aMC is of the 2.06.XXX series, not HEPMC3 (since this is what we need for our LO Pythia8 driver).

All v2.06.XXX wil generate libHepMC.4.dylib type of shared libraries and apparently the NLO driver you are using requires v5 which I guess is the signature of HEPMC3 (but I don't know this for sure).
If this is the case, then indeed you need to install your own separate version of HEPMC3 and make sure you link against this one when running the NLO shower. You can easily do this by making sure that the lib path to HEPMC3 appears first in your (DY)LD_LIBRARY_PATH , LIBRARY_PATH and PATH environment variables.

With this change you should still be able to run MG5_aMC at LO with PYTHIA8 without problem because I "force" the linking against the locally installed HEPMC version (i.e. the one in HEPTools) when running the LO shower.

Revision history for this message
Valentin Hirschi (valentin-hirschi) said :
#7

The version of HEPMC automatically installed by MG5_aMC is of the 2.06.XXX series, not HEPMC3 (since this is what we need for our LO Pythia8 driver).

All v2.06.XXX wil generate libHepMC.4.dylib type of shared libraries and apparently the NLO driver you are using requires v5 which I guess is the signature of HEPMC3 (but I don't know this for sure).
If this is the case, then indeed you need to install your own separate version of HEPMC3 and make sure you link against this one when running the NLO shower. You can easily do this by making sure that the lib path to HEPMC3 appears first in your (DY)LD_LIBRARY_PATH , LIBRARY_PATH and PATH environment variables.

With this change you should still be able to run MG5_aMC at LO with PYTHIA8 without problem because I "force" the linking against the locally installed HEPMC version (i.e. the one in HEPTools) when running the LO shower.

Revision history for this message
Valentin Hirschi (valentin-hirschi) said :
#8

LO and NLO probably requiring different HEPMC version for certain NLO PY8 drivers.

Revision history for this message
Matthieu Marinangeli (marinang) said :
#9

Thank you for the tip,

but even though I do that It is still using the HEPMC from HEPTools. The only solution I found to use HEPMC3 I've installed is to put it in HEPTools but then other errors arised....

###################

INFO: Preparing MCatNLO run
INFO: Compiling MCatNLO for PYTHIA8...
In file included from Pythia82.cc:4:
In file included from /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:17:
In file included from /usr/local/include/HepMC/IO_BaseClass.h:22:
In file included from /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/include/HepMC/GenEvent.h:16:

/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/include/HepMC/Data/SmartPointer.h:25:2: error: At least partial C++ 2011 support is required!
#error At least partial C++ 2011 support is required!
 ^
In file included from Pythia82.cc:4:
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:154:33: error: no mePythia8 compilation did not succeed, exiting
ts'
  double momFac = HepMC::Units::conversion_factor(HepMC::Units::GEV,
                  ~~~~~~~~~~~~~~^
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:156:33: error: no member named 'conversion_factor' in 'HepMC::Units'
  double lenFac = HepMC::Units::conversion_factor(HepMC::Units::MM,
                  ~~~~~~~~~~~~~~^
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:171:32: error: allocation of incomplete type 'HepMC::GenVertex'
    GenVertex* prod_vtx0 = new GenVertex();
                               ^~~~~~~~~
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/include/HepMC/Data/SmartPointer.h:140:32: note: forward declaration of 'HepMC::GenVertex'
    typedef SmartPointer<class GenVertex> GenVertexPtr; //!< Smart pointer to GenVertex
                               ^
In file included from Pythia82.cc:4:
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:172:14: error: member access into incomplete type 'HepMC::GenVertex'
    prod_vtx0->add_particle_in( rootParticle );
             ^
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/include/HepMC/Data/SmartPointer.h:140:32: note: forward declaration of 'HepMC::GenVertex'
    typedef SmartPointer<class GenVertex> GenVertexPtr; //!< Smart pointer to GenVertex
                               ^
In file included from Pythia82.cc:4:
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:187:24: error: member access into incomplete type 'HepMC::GenParticle'
    hepevt_particles[i]->suggest_barcode( (append) ? newBarcode : i );
                       ^
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/include/HepMC/Data/SmartPointer.h:139:32: note: forward declaration of 'HepMC::GenParticle'
    typedef SmartPointer<class GenParticle> GenParticlePtr; //!< Smart pointer to GenParticle
                               ^
In file included from Pythia82.cc:4:
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:188:24: error: member access into incomplete type 'HepMC::GenParticle'
    hepevt_particles[i]->set_generated_mass( momFac * pyev[i].m() );
                       ^
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/include/HepMC/Data/SmartPointer.h:139:32: note: forward declaration of 'HepMC::GenParticle'
    typedef SmartPointer<class GenParticle> GenParticlePtr; //!< Smart pointer to GenParticle
                               ^
In file included from Pythia82.cc:4:
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:193:26: error: member access into incomplete type 'HepMC::GenParticle'
      hepevt_particles[i]->set_flow(1, pyev[i].col());
                         ^
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/include/HepMC/Data/SmartPointer.h:139:32: note: forward declaration of 'HepMC::GenParticle'
    typedef SmartPointer<class GenParticle> GenParticlePtr; //!< Smart pointer to GenParticle
                               ^
In file included from Pythia82.cc:4:
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:195:26: error: member access into incomplete type 'HepMC::GenParticle'
      hepevt_particles[i]->set_flow(2, pyev[i].acol());
                         ^
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/include/HepMC/Data/SmartPointer.h:139:32: note: forward declaration of 'HepMC::GenParticle'
    typedef SmartPointer<class GenParticle> GenParticlePtr; //!< Smart pointer to GenParticle
                               ^
In file included from Pythia82.cc:4:
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:214:28: error: member access into incomplete type 'HepMC::GenParticle'
    GenVertex* prod_vtx = p->production_vertex();
                           ^
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/include/HepMC/Data/SmartPointer.h:139:32: note: forward declaration of 'HepMC::GenParticle'
    typedef SmartPointer<class GenParticle> GenParticlePtr; //!< Smart pointer to GenParticle
                               ^
In file included from Pythia82.cc:4:
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:216:56: error: member access into incomplete type 'HepMC::GenParticle'
      prod_vtx = (append && mother == 1) ? rootParticle->end_vertex()
                                                       ^
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/include/HepMC/Data/SmartPointer.h:139:32: note: forward declaration of 'HepMC::GenParticle'
    typedef SmartPointer<class GenParticle> GenParticlePtr; //!< Smart pointer to GenParticle
                               ^
In file included from Pythia82.cc:4:
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:216:58: error: expected ':'
      prod_vtx = (append && mother == 1) ? rootParticle->end_vertex()
                                                         ^
                                                         :
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:216:42: note: to match this '?'
      prod_vtx = (append && mother == 1) ? rootParticle->end_vertex()
                                         ^
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:216:58: error: use of undeclared identifier 'end_vertex'
      prod_vtx = (append && mother == 1) ? rootParticle->end_vertex()
                                                         ^
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:218:29: error: member access into incomplete type 'HepMC::GenVertex'
      if (prod_vtx) prod_vtx->add_particle_out( p );
                            ^
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/include/HepMC/Data/SmartPointer.h:140:32: note: forward declaration of 'HepMC::GenVertex'
    typedef SmartPointer<class GenVertex> GenVertexPtr; //!< Smart pointer to GenVertex
                               ^
In file included from Pythia82.cc:4:
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:227:22: error: allocation of incomplete type 'HepMC::GenVertex'
      prod_vtx = new GenVertex();
                     ^~~~~~~~~
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/include/HepMC/Data/SmartPointer.h:140:32: note: forward declaration of 'HepMC::GenVertex'
    typedef SmartPointer<class GenVertex> GenVertexPtr; //!< Smart pointer to GenVertex
                               ^
In file included from Pythia82.cc:4:
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:228:15: error: member access into incomplete type 'HepMC::GenVertex'
      prod_vtx->add_particle_out( p );
              ^
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/include/HepMC/Data/SmartPointer.h:140:32: note: forward declaration of 'HepMC::GenVertex'
    typedef SmartPointer<class GenVertex> GenVertexPtr; //!< Smart pointer to GenVertex
                               ^
In file included from Pythia82.cc:4:
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:233:30: error: member access into incomplete type 'HepMC::GenVertex'
    if ( prod_vtx && prod_vtx->position() == FourVector() )
                             ^
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/include/HepMC/Data/SmartPointer.h:140:32: note: forward declaration of 'HepMC::GenVertex'
    typedef SmartPointer<class GenVertex> GenVertexPtr; //!< Smart pointer to GenVertex
                               ^
In file included from Pythia82.cc:4:
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:234:15: error: member access into incomplete type 'HepMC::GenVertex'
      prod_vtx->set_position( prod_pos );
              ^
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/include/HepMC/Data/SmartPointer.h:140:32: note: forward declaration of 'HepMC::GenVertex'
    typedef SmartPointer<class GenVertex> GenVertexPtr; //!< Smart pointer to GenVertex
                               ^
In file included from Pythia82.cc:4:
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/Pythia8Plugins/HepMC2.h:245:16: error: member access into incomplete type 'HepMC::GenParticle'
      if ( !ppp->end_vertex() ) {
               ^
/Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/include/HepMC/Data/SmartPointer.h:139:32: note: forward declaration of 'HepMC::GenParticle'
    typedef SmartPointer<class GenParticle> GenParticlePtr; //!< Smart pointer to GenParticle
                               ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Pythia82] Error 1

Error detected in "launch auto --name run"
write debug file /Users/matthieumarinangeli/MG5_aMC_v2_5_5/amcatnlorun/run_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
aMCatNLOError : Compilation failed, check /Users/matthieumarinangeli/MG5_aMC_v2_5_5/amcatnlorun/mcatnlo.log for details

###################

Cheers,

Matt

Revision history for this message
Valentin Hirschi (valentin-hirschi) said :
#10

I am not expert in how the shower compilation is steered at NLO, but it
might be using the MG5 interface option 'hepmc_path'. So make sure it is
set to the path of the HEPMC version you wish to use (and make sure it is
also correctly set in your
'<PROCESS_OUTPUT>/Cards/amcatnlo_configuration.txt' file).

Regarding the follow-up errors you reported, I can only guess it is some
incompatibility with your Pythia8 version/installation and the active
version of HEPMC you selected.
I therefore suggest trying to reinstall Pythia8 by explicitly selecting the
desired HEPMC version along with your other ./configure options:

--with-hepmc3=<path_to_hepmc3_main_installation_path>
--with-hepmc3-include=<path_to_hepmc3_include_path>

Alternatively, if you are not set on using a specific version of
Pythia8/hepmc, you can simply try using the version of Pythia8
automatically installed by MG5_aMC (using the command MG5_aMC> install
pythia8). When doing that however, make sure to remove the hepmc_path
specification and the hepmc foldfer in HEPTools so that MG5_aMC also
automatically re-installs the appropriate verison of hepmc.

If all fails, I can only suggest to report the compilation error you
stumbled upon to a PY8 author.

On Tue, Jul 25, 2017 at 5:14 PM, Matthieu Marinangeli <
<email address hidden>> wrote:

> Question #652284 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/652284
>
> Status: Answered => Open
>
> Matthieu Marinangeli is still having a problem:
> Thank you for the tip,
>
> but even though I do that It is still using the HEPMC from HEPTools. The
> only solution I found to use HEPMC3 I've installed is to put it in
> HEPTools but then other errors arised....
>
> ###################
>
> INFO: Preparing MCatNLO run
> INFO: Compiling MCatNLO for PYTHIA8...
> In file included from Pythia82.cc:4:
> In file included from /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/
> pythia8/include/Pythia8Plugins/HepMC2.h:17:
> In file included from /usr/local/include/HepMC/IO_BaseClass.h:22:
> In file included from /Users/matthieumarinangeli/
> MG5_aMC_v2_5_5/HEPTools/hepmc/include/HepMC/GenEvent.h:16:
>
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/
> include/HepMC/Data/SmartPointer.h:25:2: error: At least partial C++ 2011
> support is required!
> #error At least partial C++ 2011 support is required!
> ^
> In file included from Pythia82.cc:4:
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/
> Pythia8Plugins/HepMC2.h:154:33: error: no mePythia8 compilation did not
> succeed, exiting
> ts'
> double momFac = HepMC::Units::conversion_factor(HepMC::Units::GEV,
> ~~~~~~~~~~~~~~^
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/
> Pythia8Plugins/HepMC2.h:156:33: error: no member named
> 'conversion_factor' in 'HepMC::Units'
> double lenFac = HepMC::Units::conversion_factor(HepMC::Units::MM,
> ~~~~~~~~~~~~~~^
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/
> Pythia8Plugins/HepMC2.h:171:32: error: allocation of incomplete type
> 'HepMC::GenVertex'
> GenVertex* prod_vtx0 = new GenVertex();
> ^~~~~~~~~
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/
> include/HepMC/Data/SmartPointer.h:140:32: note: forward declaration of
> 'HepMC::GenVertex'
> typedef SmartPointer<class GenVertex> GenVertexPtr; //!< Smart
> pointer to GenVertex
> ^
> In file included from Pythia82.cc:4:
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/
> Pythia8Plugins/HepMC2.h:172:14: error: member access into incomplete type
> 'HepMC::GenVertex'
> prod_vtx0->add_particle_in( rootParticle );
> ^
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/
> include/HepMC/Data/SmartPointer.h:140:32: note: forward declaration of
> 'HepMC::GenVertex'
> typedef SmartPointer<class GenVertex> GenVertexPtr; //!< Smart
> pointer to GenVertex
> ^
> In file included from Pythia82.cc:4:
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/
> Pythia8Plugins/HepMC2.h:187:24: error: member access into incomplete type
> 'HepMC::GenParticle'
> hepevt_particles[i]->suggest_barcode( (append) ? newBarcode : i );
> ^
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/
> include/HepMC/Data/SmartPointer.h:139:32: note: forward declaration of
> 'HepMC::GenParticle'
> typedef SmartPointer<class GenParticle> GenParticlePtr; //!< Smart
> pointer to GenParticle
> ^
> In file included from Pythia82.cc:4:
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/
> Pythia8Plugins/HepMC2.h:188:24: error: member access into incomplete type
> 'HepMC::GenParticle'
> hepevt_particles[i]->set_generated_mass( momFac * pyev[i].m() );
> ^
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/
> include/HepMC/Data/SmartPointer.h:139:32: note: forward declaration of
> 'HepMC::GenParticle'
> typedef SmartPointer<class GenParticle> GenParticlePtr; //!< Smart
> pointer to GenParticle
> ^
> In file included from Pythia82.cc:4:
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/
> Pythia8Plugins/HepMC2.h:193:26: error: member access into incomplete type
> 'HepMC::GenParticle'
> hepevt_particles[i]->set_flow(1, pyev[i].col());
> ^
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/
> include/HepMC/Data/SmartPointer.h:139:32: note: forward declaration of
> 'HepMC::GenParticle'
> typedef SmartPointer<class GenParticle> GenParticlePtr; //!< Smart
> pointer to GenParticle
> ^
> In file included from Pythia82.cc:4:
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/
> Pythia8Plugins/HepMC2.h:195:26: error: member access into incomplete type
> 'HepMC::GenParticle'
> hepevt_particles[i]->set_flow(2, pyev[i].acol());
> ^
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/
> include/HepMC/Data/SmartPointer.h:139:32: note: forward declaration of
> 'HepMC::GenParticle'
> typedef SmartPointer<class GenParticle> GenParticlePtr; //!< Smart
> pointer to GenParticle
> ^
> In file included from Pythia82.cc:4:
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/
> Pythia8Plugins/HepMC2.h:214:28: error: member access into incomplete type
> 'HepMC::GenParticle'
> GenVertex* prod_vtx = p->production_vertex();
> ^
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/
> include/HepMC/Data/SmartPointer.h:139:32: note: forward declaration of
> 'HepMC::GenParticle'
> typedef SmartPointer<class GenParticle> GenParticlePtr; //!< Smart
> pointer to GenParticle
> ^
> In file included from Pythia82.cc:4:
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/
> Pythia8Plugins/HepMC2.h:216:56: error: member access into incomplete type
> 'HepMC::GenParticle'
> prod_vtx = (append && mother == 1) ? rootParticle->end_vertex()
> ^
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/
> include/HepMC/Data/SmartPointer.h:139:32: note: forward declaration of
> 'HepMC::GenParticle'
> typedef SmartPointer<class GenParticle> GenParticlePtr; //!< Smart
> pointer to GenParticle
> ^
> In file included from Pythia82.cc:4:
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/
> Pythia8Plugins/HepMC2.h:216:58: error: expected ':'
> prod_vtx = (append && mother == 1) ? rootParticle->end_vertex()
> ^
> :
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/
> Pythia8Plugins/HepMC2.h:216:42: note: to match this '?'
> prod_vtx = (append && mother == 1) ? rootParticle->end_vertex()
> ^
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/
> Pythia8Plugins/HepMC2.h:216:58: error: use of undeclared identifier
> 'end_vertex'
> prod_vtx = (append && mother == 1) ? rootParticle->end_vertex()
> ^
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/
> Pythia8Plugins/HepMC2.h:218:29: error: member access into incomplete type
> 'HepMC::GenVertex'
> if (prod_vtx) prod_vtx->add_particle_out( p );
> ^
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/
> include/HepMC/Data/SmartPointer.h:140:32: note: forward declaration of
> 'HepMC::GenVertex'
> typedef SmartPointer<class GenVertex> GenVertexPtr; //!< Smart
> pointer to GenVertex
> ^
> In file included from Pythia82.cc:4:
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/
> Pythia8Plugins/HepMC2.h:227:22: error: allocation of incomplete type
> 'HepMC::GenVertex'
> prod_vtx = new GenVertex();
> ^~~~~~~~~
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/
> include/HepMC/Data/SmartPointer.h:140:32: note: forward declaration of
> 'HepMC::GenVertex'
> typedef SmartPointer<class GenVertex> GenVertexPtr; //!< Smart
> pointer to GenVertex
> ^
> In file included from Pythia82.cc:4:
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/
> Pythia8Plugins/HepMC2.h:228:15: error: member access into incomplete type
> 'HepMC::GenVertex'
> prod_vtx->add_particle_out( p );
> ^
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/
> include/HepMC/Data/SmartPointer.h:140:32: note: forward declaration of
> 'HepMC::GenVertex'
> typedef SmartPointer<class GenVertex> GenVertexPtr; //!< Smart
> pointer to GenVertex
> ^
> In file included from Pythia82.cc:4:
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/
> Pythia8Plugins/HepMC2.h:233:30: error: member access into incomplete type
> 'HepMC::GenVertex'
> if ( prod_vtx && prod_vtx->position() == FourVector() )
> ^
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/
> include/HepMC/Data/SmartPointer.h:140:32: note: forward declaration of
> 'HepMC::GenVertex'
> typedef SmartPointer<class GenVertex> GenVertexPtr; //!< Smart
> pointer to GenVertex
> ^
> In file included from Pythia82.cc:4:
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/
> Pythia8Plugins/HepMC2.h:234:15: error: member access into incomplete type
> 'HepMC::GenVertex'
> prod_vtx->set_position( prod_pos );
> ^
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/
> include/HepMC/Data/SmartPointer.h:140:32: note: forward declaration of
> 'HepMC::GenVertex'
> typedef SmartPointer<class GenVertex> GenVertexPtr; //!< Smart
> pointer to GenVertex
> ^
> In file included from Pythia82.cc:4:
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/pythia8/include/
> Pythia8Plugins/HepMC2.h:245:16: error: member access into incomplete type
> 'HepMC::GenParticle'
> if ( !ppp->end_vertex() ) {
> ^
> /Users/matthieumarinangeli/MG5_aMC_v2_5_5/HEPTools/hepmc/
> include/HepMC/Data/SmartPointer.h:139:32: note: forward declaration of
> 'HepMC::GenParticle'
> typedef SmartPointer<class GenParticle> GenParticlePtr; //!< Smart
> pointer to GenParticle
> ^
> fatal error: too many errors emitted, stopping now [-ferror-limit=]
> 20 errors generated.
> make: *** [Pythia82] Error 1
>
> Error detected in "launch auto --name run"
> write debug file /Users/matthieumarinangeli/MG5_aMC_v2_5_5/amcatnlorun/
> run_tag_1_debug.log
> If you need help with this issue please contact us on
> https://answers.launchpad.net/mg5amcnlo
> aMCatNLOError : Compilation failed, check /Users/matthieumarinangeli/
> MG5_aMC_v2_5_5/amcatnlorun/mcatnlo.log for details
>
>
> ###################
>
>
> Cheers,
>
> Matt
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.
>

--
Valentin

Revision history for this message
Matthieu Marinangeli (marinang) said :
#11

Hi,

Indeed the error comes from Pythia8, I had a version of Pythia8 installed which was first in LD_LIBRARY_PATH but was not build with hepmc, I removed it from LD_LIBRARY_PATH to use the one in HEPTools and now it is working :).

Thank you very much,

Matt