Skip to content
Snippets Groups Projects

Bug fix SensorSimPlanarTool.cxx

Merged Eric Ballabene requested to merge patch-7 into 21.3

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
  • Eric Ballabene added 1 commit

    added 1 commit

    • 2bd15ea9 - Update SensorSimPlanarTool.cxx

    Compare with previous version

  • Author Developer

    I initializated scale_i, scale_f_e and scale_f_h to 1. so that we can skip the checks for columnwidth being 0.4 or 0.25. However, doing so, we should leave out the part with the Athena message Not column width has been found, leaving., otherwise this appears when columnWidth is 0.4 or 0.25. I debugged my code and this never happens, so I modified my commit leaving out the printout message and, as suggested, the float casting (by declaring double each variable).

    Edited by Eric Ballabene
  • I would add back a final else as otherwise the code is vulerable to some change in behaviour of p_design.widthFromColumnRange(...). You still need to avoid the float equality checks.

  • This merge request affects 1 package:

    • InnerDetector/InDetDigitization/PixelRadDamDigitization

    Adding @jchapman ,@goetz ,@battagl ,@sroe ,@stsuno as watchers

  • Author Developer

    How can I avoid the quality checks? I don't know how to implement in another way

  • Hi @eballabe, the 'usual' way is to implement your own equality function with a tolerance. In your case, with the numbers being close to one, this would work well. StackOverflow is your friend in this case.:-)

  • :white_check_mark: CI Result SUCCESS (hash 2bd15ea9)

    Athena
    externals :white_check_mark:
    cmake :white_check_mark:
    make :white_check_mark:
    required tests :white_check_mark:
    optional tests :white_check_mark:

    Full details available on this CI monitor view
    :white_check_mark: Athena: number of compilation errors 0, warnings 0
    :pencil: For experts only: Jenkins output [CI-MERGE-REQUEST 43175]

  • Yeah, sorry again for missing those yesterday -- thanks for taking the time to implement the feedback from @jchapman! Please re-add the review-pending-level-1 label when the threads are resolved. It will automatically be put back after additional pushes are made, anyway.

    Cheers, MLB (L1)

  • Eric Ballabene added 1 commit

    added 1 commit

    • 69422ed9 - Update SensorSimPlanarTool.cxx

    Compare with previous version

  • This merge request affects 1 package:

    • InnerDetector/InDetDigitization/PixelRadDamDigitization

    Adding @jchapman ,@goetz ,@battagl ,@sroe ,@stsuno as watchers

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading