ldmx-sw icon indicating copy to clipboard operation
ldmx-sw copied to clipboard

Testbeam reconstruction wrong barID assignment

Open PeterGy opened this issue 3 years ago • 3 comments

Describe the bug During reconstruction, each pair of bars is assigned the same ID, one of them being correct and the other wrong.

To Reproduce Steps to reproduce the behavior:

  1. Decode a testbeam run, in this case run 287 fpga0, using decode.py found in ldmx-tb-online
  2. List every reconstructed barID in an event. You will find that half are missing while the others are duplicates.

Desired behavior Bars recieving their correct IDs.

Screenshots One image shows the mapping of hits. Mapped distribution of number of hits of each bar___fpga0_287 Here is a full list of the present reco and digi IDs in an event. The true or false refers to whether the recoID translated from the digiID is in the event or not. Debug.txt As produced by the code snippet image (1)

Environment:

  • Inside the container:
    • Reconstruction performed on latest ldmx-sw with main container
    • Analysis performed on latest ldmx-sw ldmx use dev iss41-boost-python and the iss1048-detectorID-bindings branch
  • Outside the container:
    • Reconstruction performed on Lunarc
    • Analysis performed on WSL

Additional context Clearly ldmx-sw correctly converts digiIDs to recoIDs in general, but fails to do so somewhere along the testbeam reco. The simulation reco works as intended.

PeterGy avatar May 10 '22 15:05 PeterGy

Was able to reproduce this issue. It is a bug on the HcalRecProducer, fixed with this commit. Should be integrated when issue 40 is fully tested.

cmantill avatar May 16 '22 17:05 cmantill

@cmantill given your commit above, is this issue fixed and ready to be closed?

tvami avatar Sep 17 '24 21:09 tvami

It looks like this branch was never integrated. But the reconstruction got split into two different files: https://github.com/LDMX-Software/ldmx-sw/blob/trunk/Hcal/src/Hcal/HcalDoubleEndRecProducer.cxx https://github.com/LDMX-Software/ldmx-sw/blob/trunk/Hcal/src/Hcal/HcalSingleEndRecProducer.cxx

and the first file contains this fix. I am not sure if this needs to be propagated to HcalRecProducer.

cmantill avatar Sep 18 '24 13:09 cmantill