~maddevelopers/mg5amcnlo/simple_unlops

« back to all changes in this revision

Viewing changes to Template/LO/Source/dsample.f

  • Committer: olivier-mattelaer
  • Date: 2021-11-12 09:29:31 UTC
  • mfrom: (967.1.15 3.3.0)
  • Revision ID: olivier-mattelaer-20211112092931-4ec9qfzgxkeovqog
versionĀ 3.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1459
1459
      COMMON/TO_CUTSDONE/CUTSDONE,CUTSPASSED
1460
1460
 
1461
1461
      CHARACTER*7         PDLABEL,EPA_LABEL
 
1462
      character*7 pdsublabel(2)
1462
1463
      INTEGER       LHAID
1463
 
      COMMON/TO_PDF/LHAID,PDLABEL,EPA_LABEL
 
1464
      COMMON/TO_PDF/LHAID,PDLABEL,EPA_LABEL,pdsublabel
1464
1465
c     
1465
1466
c     Begin code
1466
1467
c
1467
1468
c       It is important to divide the wgt stored in the grid by the 
1468
1469
c       corresponding jacobian otherwise it flattens the sampled
1469
1470
c       distribution.
1470
 
C       Also, if HEL_PICKED is equal to -1, it means that MadEvent
 
1471
C       Also, if HEL_PICKED is greater than 0, it means that MadEvent
1471
1472
C       is in the initialization stage where all helicity were probed
1472
1473
c       and added individually to the grid directly by matrix<i>.f so
1473
1474
c       that they shouldn't be added here.
1474
 
        if(ISUM_HEL.ne.0.and.HEL_PICKED.ne.-1.and.
 
1475
        if(ISUM_HEL.ne.0.and.HEL_PICKED.gt.0.and.
1475
1476
     &                            (.NOT.CUTSDONE.or.CUTSPASSED)) then
1476
1477
          call DS_add_entry('Helicity',HEL_PICKED,(wgt/hel_jacobian))
1477
1478
        endif