Installing Delphes in Madgraph Directory

Asked by Lopamudra Mukherjee on 2019-09-09

I have downloaded Delphes-3.2.0 and was trying to install it within the MG directory. After untaring it, when I try to 'make' it, the following error appears :

$ make
>> Compiling tmp/external/ExRootAnalysis/ExRootAnalysisDict.cc
In file included from /home/lopamudra/HEP_Packages/MG5_aMC_v2.5.5/MG5_aMC_v2_5_5/root-6.18.02/include/ROOT/TIOFeatures.hxx:19:0,
                 from /home/lopamudra/HEP_Packages/MG5_aMC_v2.5.5/MG5_aMC_v2_5_5/root-6.18.02/include/TTree.h:30,
                 from /home/lopamudra/HEP_Packages/MG5_aMC_v2.5.5/MG5_aMC_v2_5_5/root-6.18.02/include/TChain.h:24,
                 from external/ExRootAnalysis/ExRootTreeReader.h:14,
                 from tmp/external/ExRootAnalysis/ExRootAnalysisDict.cc:12:
/usr/include/c++/7/sstream:300:7: error: ‘struct std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs’ redeclared with different access
       struct __xfer_bufptrs
       ^~~~~~
Makefile:2004: recipe for target 'tmp/external/ExRootAnalysis/ExRootAnalysisDict.o' failed
make: *** [tmp/external/ExRootAnalysis/ExRootAnalysisDict.o] Error 1

I have already installed Root in the system and it is working fine when I call it.

I also tried to install Delphes within MG using the command "install Delphes" but it fails to identify root installed in the system.

MG5_aMC>install Delphes
Command "install Delphes" interrupted with error:
InvalidCmd : In order to install ExRootAnalysis, you need to install Root on your computer first.
 please follow information on http://root.cern.ch/drupal/content/downloading-root

Please help me solve this issue.

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Lopamudra Mukherjee
Solved:
2019-09-16
Last query:
2019-09-16
Last reply:
2019-09-14
Lopamudra Mukherjee (madgraph) said : #1

I would like to update the issue which I posted earlier. I tried installing Delphes-3.4.2 independently using make and I could succesfully install it without any error. However, I am unable to link it with Madgraph. So I tried to install it within the MG using the command "install Delphes". But I once again face the following error :

MG5_aMC>install Delphes
   You are installing 'Delphes', please cite ref(s): arXiv:1307.6346.
Downloading http://cp3.irmp.ucl.ac.be/downloads/Delphes-3-current.tar.gz
--2019-09-09 16:29:28-- http://cp3.irmp.ucl.ac.be/downloads/Delphes-3-current.tar.gz
Resolving cp3.irmp.ucl.ac.be (cp3.irmp.ucl.ac.be)... 130.104.48.109
Connecting to cp3.irmp.ucl.ac.be (cp3.irmp.ucl.ac.be)|130.104.48.109|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5338460 (5.1M) [application/x-gzip]
Saving to: ‘Delphes.tgz’

Delphes.tgz 100%[=====================================================================================>] 5.09M 983KB/s in 5.3s

2019-09-09 16:30:06 (983 KB/s) - ‘Delphes.tgz’ saved [5338460/5338460]

compile Delphes. This might take a while.
>> Compiling tmp/external/ExRootAnalysis/ExRootAnalysisDict.cc
In file included from /home/lopamudra/HEP_Packages/MG5_aMC_v2.5.5/MG5_aMC_v2_5_5/root-6.18.02/include/ROOT/TIOFeatures.hxx:19:0,
                 from /home/lopamudra/HEP_Packages/MG5_aMC_v2.5.5/MG5_aMC_v2_5_5/root-6.18.02/include/TTree.h:30,
                 from /home/lopamudra/HEP_Packages/MG5_aMC_v2.5.5/MG5_aMC_v2_5_5/root-6.18.02/include/TChain.h:24,
                 from external/ExRootAnalysis/ExRootTreeReader.h:14,
                 from tmp/external/ExRootAnalysis/ExRootAnalysisDict.cc:12:
/usr/include/c++/7/sstream:300:7: error: ‘struct std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs’ redeclared with different access
       struct __xfer_bufptrs
       ^~~~~~
Makefile:2004: recipe for target 'tmp/external/ExRootAnalysis/ExRootAnalysisDict.o' failed
make: *** [tmp/external/ExRootAnalysis/ExRootAnalysisDict.o] Error 1

Please help.

To link a local install of Delphes you just have to edit the file
input/mg5_configuration.txt
and you put a line defining delphes_path (and be sure to uncomment that line)

Cheers,

Olivier

> On 9 Sep 2019, at 13:14, Lopamudra Mukherjee <email address hidden> wrote:
>
> Question #683767 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/683767
>
> Lopamudra Mukherjee gave more information on the question:
> I would like to update the issue which I posted earlier. I tried
> installing Delphes-3.4.2 independently using make and I could
> succesfully install it without any error. However, I am unable to link
> it with Madgraph. So I tried to install it within the MG using the
> command "install Delphes". But I once again face the following error :
>
> MG5_aMC>install Delphes
> You are installing 'Delphes', please cite ref(s): arXiv:1307.6346.
> Downloading http://cp3.irmp.ucl.ac.be/downloads/Delphes-3-current.tar.gz
> --2019-09-09 16:29:28-- http://cp3.irmp.ucl.ac.be/downloads/Delphes-3-current.tar.gz
> Resolving cp3.irmp.ucl.ac.be (cp3.irmp.ucl.ac.be)... 130.104.48.109
> Connecting to cp3.irmp.ucl.ac.be (cp3.irmp.ucl.ac.be)|130.104.48.109|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 5338460 (5.1M) [application/x-gzip]
> Saving to: ‘Delphes.tgz’
>
> Delphes.tgz
> 100%[=====================================================================================>]
> 5.09M 983KB/s in 5.3s
>
> 2019-09-09 16:30:06 (983 KB/s) - ‘Delphes.tgz’ saved [5338460/5338460]
>
> compile Delphes. This might take a while.
>>> Compiling tmp/external/ExRootAnalysis/ExRootAnalysisDict.cc
> In file included from /home/lopamudra/HEP_Packages/MG5_aMC_v2.5.5/MG5_aMC_v2_5_5/root-6.18.02/include/ROOT/TIOFeatures.hxx:19:0,
> from /home/lopamudra/HEP_Packages/MG5_aMC_v2.5.5/MG5_aMC_v2_5_5/root-6.18.02/include/TTree.h:30,
> from /home/lopamudra/HEP_Packages/MG5_aMC_v2.5.5/MG5_aMC_v2_5_5/root-6.18.02/include/TChain.h:24,
> from external/ExRootAnalysis/ExRootTreeReader.h:14,
> from tmp/external/ExRootAnalysis/ExRootAnalysisDict.cc:12:
> /usr/include/c++/7/sstream:300:7: error: ‘struct std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs’ redeclared with different access
> struct __xfer_bufptrs
> ^~~~~~
> Makefile:2004: recipe for target 'tmp/external/ExRootAnalysis/ExRootAnalysisDict.o' failed
> make: *** [tmp/external/ExRootAnalysis/ExRootAnalysisDict.o] Error 1
>
> Please help.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Lopamudra Mukherjee (madgraph) said : #3

Thanks. I have been able to install Delphes.