SysCalc

Asked by Patricia Rebello Teles

Dear experts

trying to compile SysCalc I have received this error msg. Could you please help me to fix it? Thank you. Regards Patricia.

patricia@patricia-Inspiron-N5110:~/MG5_aMC_v2_1_0/SysCalc$ make
cd src; make
make[1]: Entering directory `/home/patricia/MG5_aMC_v2_1_0/SysCalc/src'
g++ -O -DDROP_CGAL -I../include -c SysCalc.cc
SysCalc.cc: In constructor ‘SysCalc::SysCalc(std::istream&, std::string, std::string, int, int, int)’:
SysCalc.cc:217:14: error: ‘initLHAPDF’ was not declared in this scope
   initLHAPDF();
              ^
SysCalc.cc:219:38: error: ‘getMaxNumSets’ was not declared in this scope
   if(_PDFsets.size() > getMaxNumSets()-1) {
                                      ^
make[1]: *** [SysCalc.o] Error 1
make[1]: Leaving directory `/home/patricia/MG5_aMC_v2_1_0/SysCalc/src'
make: *** [all] Error 2

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Hi,

Did you have lhapdf install globally on your system and accessible via your path?

Cheers,

Olivier
On Mar 24, 2014, at 12:02 AM, Patricia Rebello Teles <email address hidden> wrote:

> New question #245943 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/245943
>
> Dear experts
>
> trying to compile SysCalc I have received this error msg. Could you please help me to fix it? Thank you. Regards Patricia.
>
> patricia@patricia-Inspiron-N5110:~/MG5_aMC_v2_1_0/SysCalc$ make
> cd src; make
> make[1]: Entering directory `/home/patricia/MG5_aMC_v2_1_0/SysCalc/src'
> g++ -O -DDROP_CGAL -I../include -c SysCalc.cc
> SysCalc.cc: In constructor ‘SysCalc::SysCalc(std::istream&, std::string, std::string, int, int, int)’:
> SysCalc.cc:217:14: error: ‘initLHAPDF’ was not declared in this scope
> initLHAPDF();
> ^
> SysCalc.cc:219:38: error: ‘getMaxNumSets’ was not declared in this scope
> if(_PDFsets.size() > getMaxNumSets()-1) {
> ^
> make[1]: *** [SysCalc.o] Error 1
> make[1]: Leaving directory `/home/patricia/MG5_aMC_v2_1_0/SysCalc/src'
> make: *** [all] Error 2
>
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Patricia Rebello Teles (athenafma) said :
#2

Hi Olivier

I have installed LHAPDF at /home/patricia/LHAPDFinstall where I have bin/
, include/ , lib/ and share/ subdirectories

I have made a symbolic link of /home/patricia/LHAPDFinstall/include/LHAPDF
at

/home/patricia/MG5_aMC_v2_1_0/SysCalc/include

I have also

export LD_LIBRARY_PATH=/home/patricia/LHAPDFinstall/lib:$LD_LIBRARY_PATH
export PATH=/home/patricia/LHAPDFinstall/bin:$PATH

Should I do anything else?

Thank you.

Cheers Patricia

2014-03-23 21:16 GMT-03:00 Olivier Mattelaer <
<email address hidden>>:

> Your question #245943 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/245943
>
> Status: Open => Answered
>
> Olivier Mattelaer proposed the following answer:
> Hi,
>
> Did you have lhapdf install globally on your system and accessible via
> your path?
>
> Cheers,
>
> Olivier
> On Mar 24, 2014, at 12:02 AM, Patricia Rebello Teles <
> <email address hidden>> wrote:
>
> > New question #245943 on MadGraph5_aMC@NLO:
> > https://answers.launchpad.net/mg5amcnlo/+question/245943
> >
> > Dear experts
> >
> > trying to compile SysCalc I have received this error msg. Could you
> please help me to fix it? Thank you. Regards Patricia.
> >
> > patricia@patricia-Inspiron-N5110:~/MG5_aMC_v2_1_0/SysCalc$ make
> > cd src; make
> > make[1]: Entering directory `/home/patricia/MG5_aMC_v2_1_0/SysCalc/src'
> > g++ -O -DDROP_CGAL -I../include -c SysCalc.cc
> > SysCalc.cc: In constructor 'SysCalc::SysCalc(std::istream&, std::string,
> std::string, int, int, int)':
> > SysCalc.cc:217:14: error: 'initLHAPDF' was not declared in this scope
> > initLHAPDF();
> > ^
> > SysCalc.cc:219:38: error: 'getMaxNumSets' was not declared in this scope
> > if(_PDFsets.size() > getMaxNumSets()-1) {
> > ^
> > make[1]: *** [SysCalc.o] Error 1
> > make[1]: Leaving directory `/home/patricia/MG5_aMC_v2_1_0/SysCalc/src'
> > make: *** [all] Error 2
> >
> >
> >
> > --
> > You received this question notification because you are an answer
> > contact for MadGraph5_aMC@NLO.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/mg5amcnlo/+question/245943/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/mg5amcnlo/+question/245943
>
> You received this question notification because you asked the question.
>

Revision history for this message
Markus Ebert (markus-ebert) said :
#3

Hi Patricia,

in case you did not solve the issue yet, you also need to adjust the Makefile in <PATH TO MG>/SysCalc/src.
You should replace lines 1-4 of the original Makefile by
COPTS = -O -DDROP_CGAL
INCLUDES = -I../include -I<PATH TO LHAPDF>/include
OBJECTS = SysCalc.o tinyxml2.o
LIBS = -L<PATH TO LHAPDF>/lib -lLHAPDF

This should be sufficient to compile SysCalc.
For running SysCalc, you need to add LHAPDF to PATH, as you did.
Also note that it does not work with LHAPDF 6, so you should use version 5 instead.

Cheers,
Markus

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#4

Should be it.

Cheers,

Olivier
On Mar 24, 2014, at 1:16 AM, Patricia Rebello Teles <email address hidden> wrote:

> Question #245943 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/245943
>
> Status: Answered => Open
>
> Patricia Rebello Teles is still having a problem:
> Hi Olivier
>
>
> I have installed LHAPDF at /home/patricia/LHAPDFinstall where I have bin/
> , include/ , lib/ and share/ subdirectories
>
> I have made a symbolic link of /home/patricia/LHAPDFinstall/include/LHAPDF
> at
>
> /home/patricia/MG5_aMC_v2_1_0/SysCalc/include
>
> I have also
>
> export LD_LIBRARY_PATH=/home/patricia/LHAPDFinstall/lib:$LD_LIBRARY_PATH
> export PATH=/home/patricia/LHAPDFinstall/bin:$PATH
>
> Should I do anything else?
>
> Thank you.
>
> Cheers Patricia
>
>
>
> 2014-03-23 21:16 GMT-03:00 Olivier Mattelaer <
> <email address hidden>>:
>
>> Your question #245943 on MadGraph5_aMC@NLO changed:
>> https://answers.launchpad.net/mg5amcnlo/+question/245943
>>
>> Status: Open => Answered
>>
>> Olivier Mattelaer proposed the following answer:
>> Hi,
>>
>> Did you have lhapdf install globally on your system and accessible via
>> your path?
>>
>> Cheers,
>>
>> Olivier
>> On Mar 24, 2014, at 12:02 AM, Patricia Rebello Teles <
>> <email address hidden>> wrote:
>>
>>> New question #245943 on MadGraph5_aMC@NLO:
>>> https://answers.launchpad.net/mg5amcnlo/+question/245943
>>>
>>> Dear experts
>>>
>>> trying to compile SysCalc I have received this error msg. Could you
>> please help me to fix it? Thank you. Regards Patricia.
>>>
>>> patricia@patricia-Inspiron-N5110:~/MG5_aMC_v2_1_0/SysCalc$ make
>>> cd src; make
>>> make[1]: Entering directory `/home/patricia/MG5_aMC_v2_1_0/SysCalc/src'
>>> g++ -O -DDROP_CGAL -I../include -c SysCalc.cc
>>> SysCalc.cc: In constructor 'SysCalc::SysCalc(std::istream&, std::string,
>> std::string, int, int, int)':
>>> SysCalc.cc:217:14: error: 'initLHAPDF' was not declared in this scope
>>> initLHAPDF();
>>> ^
>>> SysCalc.cc:219:38: error: 'getMaxNumSets' was not declared in this scope
>>> if(_PDFsets.size() > getMaxNumSets()-1) {
>>> ^
>>> make[1]: *** [SysCalc.o] Error 1
>>> make[1]: Leaving directory `/home/patricia/MG5_aMC_v2_1_0/SysCalc/src'
>>> make: *** [all] Error 2
>>>
>>>
>>>
>>> --
>>> You received this question notification because you are an answer
>>> contact for MadGraph5_aMC@NLO.
>>
>> --
>> If this answers your question, please go to the following page to let us
>> know that it is solved:
>>
>> https://answers.launchpad.net/mg5amcnlo/+question/245943/+confirm?answer_id=0
>>
>> If you still need help, you can reply to this email or go to the
>> following page to enter your feedback:
>> https://answers.launchpad.net/mg5amcnlo/+question/245943
>>
>> You received this question notification because you asked the question.
>>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Can you help with this problem?

Provide an answer of your own, or ask Patricia Rebello Teles for more information if necessary.

To post a message you must log in.