Skip to content
Snippets Groups Projects

Make number of bunch crossings for RPC L1 simulation configurable

Merged Savanna Shaw requested to merge sshaw/athena:rpc-config into 24.0
All threads resolved!

As discussed in ATR-28396, the number of bunch crossings being readout by the RPCs changed partway through 2023, but the L1 trigger simulation uses hardcoded values for the number of bunch crossings, and which bunch crossing is the central one. This makes both values configurable via flags so that the L1 simulation can be run on data from both before and after the readout changes.

Overall this is done by setting configurable properties in a few places (the DigitToRDO conversion, the RDO decoder, and the RPC trigger simlation alg), and then using two added flags to configure these properties consistently. The values for the number of bunch crossings and central value are then passed through to other places that need them (the Matrix, sector logic, etc).

One thing to note is that there are a lot of arrays that depend on the number of bunch crossings when setting the array lengths. I assumed that we wouldn't go back to reading out more than 8 bunch crossings, and kept the dependence on the number of bunch crossings on the array lengths in the comments in case it needs to be adjusted in the future. In the end, when we use the arrays, we always loop over up to the configured number of bunch crossings. So we are defining arrays that have a length longer than needed, but the only other way around this would be to move everything to vectors, and that was a larger intervention than I was willing to do for this.

Validation plots added to ATR-28396.

cc @mcorradi

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Just one small point to clarify, otherwise looks good.

    Best, Thomas - L1

  • Savanna Shaw added 1 commit

    added 1 commit

    • 7d7a49f4 - Add error messages to prevent configuring NOBXS>8

    Compare with previous version

  • Savanna Shaw resolved all threads

    resolved all threads

  • This merge request affects 7 packages:

    • MuonSpectrometer/MuonCnv/MuonByteStreamCnvTest
    • MuonSpectrometer/MuonCnv/MuonRPC_CnvTools
    • MuonSpectrometer/MuonConfig
    • Trigger/TrigT1/TrigT1RPChardware
    • Trigger/TrigT1/TrigT1RPClogic
    • Trigger/TrigT1/TrigT1RPCsteering
    • Trigger/TriggerCommon/TriggerJobOpts

    Affected files list will not be printed in this case

    Adding @rosati ,@martindl ,@pscholer ,@kluit ,@jojungge ,@fpastore ,@stavrop ,@jchapman ,@fwinkl ,@apsallid as watchers

  • :x: CI Result FAILURE (hash 7d7a49f4)

    Athena AthSimulation
    externals :white_check_mark: :white_check_mark:
    cmake :white_check_mark: :white_check_mark:
    make :white_check_mark: :white_check_mark:
    tests :white_check_mark: :o:

    Full details available on this CI monitor view. Check the JIRA CI status board for known problems
    :white_check_mark: Athena: number of compilation errors 0, warnings 0
    :white_check_mark: AthSimulation: number of compilation errors 0, warnings 0
    :pencil: For experts only: Jenkins output [CI-MERGE-REQUEST-EL9 6092] (remote access info)

  • 679/679 Test #179: AthExHive_AthExHiveCond_test_ctest ........................................***Timeout 300.05 sec

    shows up in AthSimulation unit tests

    This doesn't seem to be related to your changes, @sshaw?

    L1 shifter

  • Author Developer

    No I don't think the timeout can be related to the changes. I tried locally running the test with/without the changes in the MR and it took the same amount of time for both (about a minute). In the previous CI round, the time for the test also seemed pretty reasonable, and I didn't change anything that would impact this in between.

  • Changes look good from L1 side, unit test timeout is unrelated based on local tests by developer - approving

    L1 shifter

  • added review-approved label and removed review-pending-level-1 label

  • mentioned in commit 15068d62

  • Vakhtang Tsulaia mentioned in merge request !69668 (merged)

    mentioned in merge request !69668 (merged)

  • Please register or sign in to reply
    Loading