~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

Viewing changes to Template/LO/Source/PDF/pdg2pdf.f

  • Committer: olivier-mattelaer
  • Date: 2020-08-21 09:16:56 UTC
  • mfrom: (284.2.24 python3)
  • Revision ID: olivier-mattelaer-20200821091656-iizux2mj94tkssuo
pass to 2.8.0 (and move to python3 branch)

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
      integer mode,Irt,i,j
25
25
      double precision xlast(2),xmulast(2),pdflast(-7:7,2),q2max
26
26
      character*7 pdlabellast(2)
27
 
      double precision epa_electron,epa_proton
 
27
      double precision epa_lepton,epa_proton
28
28
      integer ipart,ireuse,iporg,ihlast(2)
29
29
      save xlast,xmulast,pdflast,pdlabellast,ihlast
30
30
      data xlast/2*-99d9/
131
131
 
132
132
      if(iabs(ipart).eq.7.and.ih.gt.1) then
133
133
         q2max=xmu*xmu
134
 
         if(ih.eq.3) then       !from the electron
135
 
            pdg2pdf=epa_electron(x,q2max)
 
134
         if(abs(ih).eq.3.or.abs(ih).eq.4) then       !from the electron or muonn
 
135
            pdg2pdf=epa_lepton(x,q2max, ih)
136
136
         elseif(ih .eq. 2) then !from a proton without breaking
137
137
            pdg2pdf=epa_proton(x,q2max,beamid)
138
138
         endif