CalcHEP and LHAPDF 6

Asked by Fernando Marroquim

Hi,
I installed the LHAPDF 5.x and it is working fine together with CalHEP.
 I am trying now to link the LHAPDF 6. x which is written in C++ to CalcHEP.

I add the following line to my calchep script file in my work directory
export LD_RUN_PATH=$HOME/LHAPDF6/lib/ -lLHAPDF

then I add the following line to my external libraries
-L/$HOME/LHAPDF6/lib/ -lLHAPDF

and I received the following message
./n_calchep: error while loading shared libraries: libLHAPDF.so: cannot open shared object file: No such file or directory

Am I missing something ?

Fernando

Question information

Language:
English Edit question
Status:
Answered
For:
CalcHEP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alexander Pukhov (pukhov) said :
#1

-L/$HOME/LHAPDF6/lib/ -lLHAPDF

I guess the problem is coused by first slash. Try

-L $HOME/LHAPDF6/lib/ -lLHAPDF

With space after L or without (in general both should work). But -L/$HOME for sure is wrong because $HOME is started from /

Best
  Alexander Pukhov

Revision history for this message
Fernando Marroquim (fmarroquim) said :
#2

Hi Alexander,
Thank you for your answer.
For your information I am using CalcHep3.4.6 and Ubuntu 12.04.

As you wrote above both options work
-L/$HOME.......
-L $HOME.......

Now, I received no error messages any more but in the numerical menu
 IN state > S.F.1 >
The option LHA: does not appear.

It appears only the option OFF and PDT.

Regards
Fernando Marroquim

On Fri, Apr 11, 2014 at 7:01 PM, Alexander Pukhov <
<email address hidden>> wrote:

> Your question #246885 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/246885
>
> Status: Open => Answered
>
> Alexander Pukhov proposed the following answer:
> -L/$HOME/LHAPDF6/lib/ -lLHAPDF
>
> I guess the problem is coused by first slash. Try
>
> -L $HOME/LHAPDF6/lib/ -lLHAPDF
>
> With space after L or without (in general both should work). But -L/$HOME
> for sure is wrong because $HOME is started from /
>
> Best
> Alexander Pukhov
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/calchep/+question/246885/+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/calchep/+question/246885
>
> You received this question notification because you asked the question.
>

--
Fernando Marroquim Leao de Almeida Junior
Depto. Ciencias Naturais
Univ Federal de Sao Joao del Rei
Sao Joao del Rei, MG
36301-160, BRASIL

Revision history for this message
Alexander Pukhov (pukhov) said :
#3

I have not expearience with LHAPDF-6. I'll try it today.

Revision history for this message
Alexander Pukhov (pukhov) said :
#4

I don't find in LHAPDF6 the Fortran interface needed by CalcHEP. In principle we can make this interface using C++ routines. From the other side, the structure of pdfset data in version 6 is changed. Now any set is stored in separate directory. So, even when this interface will be created, we will need to improve CalcHEP interface.

May be somedody know, does version 6 supports threading?

Revision history for this message
Alexander Belyaev (alexander.belyaev) said :
#5

Dear Fernando,

here is just to confirm that at the moment CalcHEP does not support LHAPDF6
since the interface to LHAPDF6 has been re-written on C++ versus Fortran for LHAPDF5.

So, please use LHAPDF5 -- it works fine with CalcHEP

Sasha

Revision history for this message
Saurabh Niyogi (saurabh12102003) said :
#6

Hello,

 I am facing similar problem with Calchep v 3.6.23 interfacing with LHAPDF 5.9.0.

  I have linked the models with proper paths and can see the .LHGRID PDFs in via GUI while running a process. However, certain PDFs are not working. MRST2004nlo, MRST2004qed are working fine, but NNPDF_23_nlo_as_0118_qed is not working. I can select these PDFs, but after selecting the X11 window is disappearing.

 Another point: I want to use photon inside proton. But when I decalre p to be u,U,d,D,G,A while choosing structure functions it says "structure function for this particle are not known"
 But these PDFs do have photon distribution, right (http://arxiv.org/abs/1606.00523) ?

What is wrong ? Is it anything in my implementation, or it is that calchep can not understand photon as parton inside proton ?
Thanks,

Saurabh

Revision history for this message
Alexander Pukhov (pukhov) said :
#7

Dear Saurabh,
please download
   http://theory.sinp.msu.ru/~pukhov/calchep_3.6.27.tgz
To work with LHAPDF5/6 you have to define global environment variable
    LHAPDFPATH
( export LHAPDFPATH=/...)
It should be a path to LHAPDF library. In particular you should see file

       $LHAPDFPATH/libLHAPDF.so

Nothing more needs to use LHAPDF in CalcHEP.
This version supports photon component in proton but only for LHPDF6.
Let me know if something does not work properly. I am going to put this
version on WEB soon.

Best
    Alexander Pukhov

On 06/25/2016 01:57 PM, Saurabh Niyogi wrote:
> Question #246885 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/246885
>
> Saurabh Niyogi posted a new comment:
> Hello,
>
> I am facing similar problem with Calchep v 3.6.23 interfacing with
> LHAPDF 5.9.0.
>
> I have linked the models with proper paths and can see the .LHGRID
> PDFs in via GUI while running a process. However, certain PDFs are not
> working. MRST2004nlo, MRST2004qed are working fine, but
> NNPDF_23_nlo_as_0118_qed is not working. I can select these PDFs, but
> after selecting the X11 window is disappearing.
>
> Another point: I want to use photon inside proton. But when I decalre p to be u,U,d,D,G,A while choosing structure functions it says "structure function for this particle are not known"
> But these PDFs do have photon distribution, right (http://arxiv.org/abs/1606.00523) ?
>
> What is wrong ? Is it anything in my implementation, or it is that calchep can not understand photon as parton inside proton ?
> Thanks,
>
> Saurabh
>

Revision history for this message
Saurabh Niyogi (saurabh12102003) said :
#8

Hello sir,

 Thanks a lot for the answer.

 I am not sure if this is a right question to ask you. I tried to install LHAPDF 6 (latest version), but gives the following error messages while running "make" command

lhapdf.cpp:4:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
make[2]: *** [all-local] Error 1
make[2]: Leaving directory `/home/packages/LHAPDF-6.1.6/wrappers/python'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/packages/LHAPDF-6.1.6/wrappers'
make: *** [all-recursive] Error 1

I am installing in local (i.e. /home) directory. I have given paths etc while doing configure. I must say that I have worked with LHAPDF 5 and it works fine. I have written ti LHAPDF authors, but yet to receive any reply. It would be really helpful if you can help. Thanks a lot.

 Regards,
Saurabh Niyogi

Revision history for this message
Alexander Pukhov (pukhov) said :
#9

Try

./configure ..... --disable-python

Best
     Alexander Pukhov

On 06/29/2016 09:57 AM, Saurabh Niyogi wrote:
> Question #246885 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/246885
>
> Saurabh Niyogi requested more information:
> Hello sir,
>
> Thanks a lot for the answer.
>
> I am not sure if this is a right question to ask you. I tried to
> install LHAPDF 6 (latest version), but gives the following error
> messages while running "make" command
>
> lhapdf.cpp:4:20: fatal error: Python.h: No such file or directory
> compilation terminated.
> error: command 'gcc' failed with exit status 1
> make[2]: *** [all-local] Error 1
> make[2]: Leaving directory `/home/packages/LHAPDF-6.1.6/wrappers/python'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/packages/LHAPDF-6.1.6/wrappers'
> make: *** [all-recursive] Error 1
>
> I am installing in local (i.e. /home) directory. I have given paths etc
> while doing configure. I must say that I have worked with LHAPDF 5 and
> it works fine. I have written ti LHAPDF authors, but yet to receive any
> reply. It would be really helpful if you can help. Thanks a lot.
>
> Regards,
> Saurabh Niyogi
>

Revision history for this message
Saurabh Niyogi (saurabh12102003) said :
#10

Ah, thanks a lot, sir. It works..
Even removing the wrapper in the Makefile also works. But yours one is the best thing to do. Thanks again.

 Regards,
Saurabh

Revision history for this message
Saurabh Niyogi (saurabh12102003) said :
#11

Dear Prof. Pukhov,

 Sorry to bother you again. But the structure function for photon is still not working.

 I have installed latest version calchep_3.6.25 and also LHAPDF-6.1.6. I have given LHAPDF path in the model file (extlib) properly. So the PDF are linking fine and I check with t, T with all the new PDFs.

 But when I define p as u,U,d,D,G,A it makes the n_calchep but then says

File 'session.dat': error in structure function specification

 Can you kindly look into it and suggest any solution ? Thank a lot for your help.

Regards,
Saurabh

Revision history for this message
Alexander Pukhov (pukhov) said :
#12

please check
http://theory.sinp.msu.ru/~pukhov/calchep_3.6.27.tgz

Best
    Alexander Pukhov

On 07/03/2016 05:57 PM, Saurabh Niyogi wrote:
> Question #246885 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/246885
>
> Saurabh Niyogi requested more information:
> Dear Prof. Pukhov,
>
> Sorry to bother you again. But the structure function for photon is
> still not working.
>
> I have installed latest version calchep_3.6.25 and also LHAPDF-6.1.6. I
> have given LHAPDF path in the model file (extlib) properly. So the PDF
> are linking fine and I check with t, T with all the new PDFs.
>
> But when I define p as u,U,d,D,G,A it makes the n_calchep but then says
>
> File 'session.dat': error in structure function specification
>
> Can you kindly look into it and suggest any solution ? Thank a lot for
> your help.
>
> Regards,
> Saurabh
>

Revision history for this message
Saurabh Niyogi (saurabh12102003) said :
#13

Ah, sorry I missed your previous link. Yes, now photons as parton works !! Thanks a lot.

Btw, I notice calchep now provides events in LHE format directly. Are these events reliable for further use (for showering and detector study) ?

 Regards,
Saurabh

Revision history for this message
Alexander Pukhov (pukhov) said :
#14

Yes, one can pass events generated by calchep_batch or subproc_cycle to
Pythia for showering.
You can find example in "examples" directory of Pythia. Generated hepmc
file can be passed to CheckMATE or MadAnalysis.
We can help you in case of problems.

Best
    Alexander Pukhov

On 07/03/2016 09:32 PM, Saurabh Niyogi wrote:
> Question #246885 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/246885
>
> Saurabh Niyogi requested more information:
> Ah, sorry I missed your previous link. Yes, now photons as parton works
> !! Thanks a lot.
>
> Btw, I notice calchep now provides events in LHE format directly. Are
> these events reliable for further use (for showering and detector study)
> ?
>
> Regards,
> Saurabh
>

Revision history for this message
Saurabh Niyogi (saurabh12102003) said :
#15

Dear Prof. Pukhov,

 The batch file in this version is not working; even the default one !! I just run
$ ./calchep_batch batch_file

Is this enough, or I have to make changes elsewhere ?

Ok, let me ask the actual point. I need batch file to include ISR effect (I notice ISR can be on in batch mode). But if I just generate 2->2 process in calchep (without batch) and then pass the LHE file through pythia keeping ISR on there, does it work ?

Just a mention: I ask this similar question to Madgraph people, they said it works that way in MG5.

Thank you.
Regards,
Saurabh

Revision history for this message
Alexander Pukhov (pukhov) said :
#16

Yes, default batch files do not work!! Because they use obsolete
cteq6l. I deleted is but forget to improve batches.
Fine! I'll improve it today before put version on WEB. Thank you for
your note!

My recommendation. Check calculation of cross section in GUI mode.
After that leave GUI mode, go to directory results/
and call
     ../bin/subproc_cycle number_of_events
It will created lhe file with decay tables of BSM particles inside.

Surely you can do the same by MG5.

Best
    Alexander Pukhov

On 07/04/2016 03:32 PM, Saurabh Niyogi wrote:
> Question #246885 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/246885
>
> Saurabh Niyogi requested more information:
> Dear Prof. Pukhov,
>
> The batch file in this version is not working; even the default one !! I just run
> $ ./calchep_batch batch_file
>
> Is this enough, or I have to make changes elsewhere ?
>
> Ok, let me ask the actual point. I need batch file to include ISR effect
> (I notice ISR can be on in batch mode). But if I just generate 2->2
> process in calchep (without batch) and then pass the LHE file through
> pythia keeping ISR on there, does it work ?
>
> Just a mention: I ask this similar question to Madgraph people, they
> said it works that way in MG5.
>
> Thank you.
> Regards,
> Saurabh
>

Revision history for this message
Saurabh Niyogi (saurabh12102003) said :
#17

Ok, sir. Thanks a lot.

Regards,
Saurabh

Can you help with this problem?

Provide an answer of your own, or ask Fernando Marroquim for more information if necessary.

To post a message you must log in.