Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Proximity matching should not necessarily require matching PIDs #435

@cpecar

Description

@cpecar

In MatchParticleProximity::Run, the following lines require that the bank-A and bank-B particles have matching PID,

      // loop over ALL bank-B particles, and find the one with the smallest proximity to
      // the current bank-A particle
      for(int row_b = 0; row_b < bank_b.getRows(); row_b++) {
        // PID must match
        if(pid_a == bank_b.getInt("pid", row_b)) {

while documentation only states that matching is done using Euclidean distance in (theta, phi). Maybe this should be changed to a check that the particle charges match.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Unsorted

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions