Problem with CalcHep 3.6.25 and LHAPDF5

Asked by Andre

 Dear Developers

 I am trying to use LHAPDF 5.9.1 with Calchep 3.6.25, but I get error in the structure function (CH Error 2) in batch mode.

 It works fine in the GUI.

 Here is the relevant piece of my batch

pdf1: LHA:cteq6ll.LHpdf:0:1
pdf2: LHA:cteq6ll.LHpdf:0:1

 The batch runs fine if I use one of the PDTs pdfs:

pdf1: cteq6l (proton)
pdf2: cteq6l (proton)

 Any clues ?

 Thanks
 Andre

Question information

Language:
English Edit question
Status:
Solved
For:
CalcHEP Edit question
Assignee:
No assignee Edit question
Solved by:
Andre
Solved:
Last query:
Last reply:
Revision history for this message
Andre (feynman2012) said :
#1

    Hi

 I seems that it works when we use lhapdf-getdata *only* from the directory lhapdf-5.9.x/bin. Using it from other folder downloads the pdf but Calchep, in the batch mode, does not recognize it.

  Cheers
  Andre

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

More likely you forget to define path to LHAPDF library in
calchep_batch. Something like

  export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/Packages/lhapdf-5.9.1/install/lib

But in last CalcHEP versions there is another way to mount LHAPDF.
You have to define external variable

  export LHAPDFPATH=..../lib

Then it will work both in batch and GUI modes. You don't need to add
this path to extlib.mdl if you use
LHAPDFPATH

Best
      Alexander Pukhov

02/15/2016 10:57 PM, Andre пишет:
> Question #285677 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/285677
>
> Status: Open => Solved
>
> Andre confirmed that the question is solved:
>
> Hi
>
> I seems that it works when we use lhapdf-getdata *only* from the
> directory lhapdf-5.9.x/bin. Using it from other folder downloads the
> pdf but Calchep, in the batch mode, does not recognize it.
>
> Cheers
> Andre
>

Revision history for this message
Andre (feynman2012) said :
#3

  Hi Alexander

  Thanks for the tip.

  Cheers
  Andre