Min/Max distance between jet and bottom quark

Asked by Andrew Larkoski

I just wanted some clarification about specifying the minimum or maximum Delta R distance between a bottom quark and a (light) jet. In the run card for LO generation, one can specify the minimum distance between the bottom and a jet, and the maximum distance. My understanding is that if I demand that the minimum distance between the bottom and the jet is R0, then there will be no jets within R0 of the bottom.

On the other hand, if I set the maximum distance between the bottom and a jet to be R0, I think this means that *all* light jets in the final state lie within R0 of the bottom. Is this correct? Or, is it an OR relationship? That is, if I set the maximum distance to R0, will there be at least one jet within R0 of the bottom?

Thanks!
Andrew

Question information

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

I guess the cleanest answer to this is the code itself:

 c
 c deltaR min & max cuts
 c
       do i=nincoming+1,nexternal-1
          do j=i+1,nexternal
             if(debug) write (*,*) 'r2(',i, ',' ,j,')=',dsqrt(r2(p(0,i),p(0,j)))
             if(debug) write (*,*) dsqrt(r2min(j,i)),dsqrt(r2max(j,i))
             if(r2min(j,i).gt.0.or.r2max(j,i).ge.0d0) then
                tmp=r2(p(0,i),p(0,j))
                notgood=(tmp .lt. r2min(j,i)).or.
      $ (r2max(j,i).ge.0d0 .and. tmp .gt. r2max(j,i))
                if (notgood) then
                   if(debug) write (*,*) i,j,' -> fails'
                   passcuts=.false.
                   return
                endif
             endif
          enddo
       enddo

So you can see that indeed that they are no "or" type of logic, and that indeed this means that all light jet need to be within that given distance.

Cheers,

Olivier

> On 19 Sep 2025, at 19:50, Andrew Larkoski <email address hidden> wrote:
>
> New question #822544 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/822544
>
> I just wanted some clarification about specifying the minimum or maximum Delta R distance between a bottom quark and a (light) jet. In the run card for LO generation, one can specify the minimum distance between the bottom and a jet, and the maximum distance. My understanding is that if I demand that the minimum distance between the bottom and the jet is R0, then there will be no jets within R0 of the bottom.
>
> On the other hand, if I set the maximum distance between the bottom and a jet to be R0, I think this means that *all* light jets in the final state lie within R0 of the bottom. Is this correct? Or, is it an OR relationship? That is, if I set the maximum distance to R0, will there be at least one jet within R0 of the bottom?
>
> Thanks!
> Andrew
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Andrew Larkoski (alarkoski) said :
#2

Hi Olivier,

Great, thanks! That answers my question.

Best,
Andrew

Revision history for this message
Andrew Larkoski (alarkoski) said :
#3

Thanks Olivier Mattelaer, that solved my question.