[12gevmoller_sim] [JeffersonLab/remoll] 2667c5: Define new InitializeMaterials to do proper krypto...

GitHub noreply at github.com
Wed Nov 8 18:12:26 EST 2017


  Branch: refs/heads/hotfix-issue-44
  Home:   https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_JeffersonLab_remoll&d=DwICaQ&c=lz9TcOasaINaaC3U7FbMev2lsutwpI4--09aP8Lu18s&r=3B3cpV8BW_CcRY44e0IgDNmqzlTXeeJsbWtRdt_HYCM&m=-siautV5MlnuVURS0EVbHuluAU5Z_VAscU-sDfFv2jI&s=L2KZW98AC1Vu5E4R-1HcTRnMBu3jihALtmv5qrzdchU&e= 
  Commit: 2667c5ad523ba82e410c6f1462b8e10f8f9043c2
      https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_JeffersonLab_remoll_commit_2667c5ad523ba82e410c6f1462b8e10f8f9043c2&d=DwICaQ&c=lz9TcOasaINaaC3U7FbMev2lsutwpI4--09aP8Lu18s&r=3B3cpV8BW_CcRY44e0IgDNmqzlTXeeJsbWtRdt_HYCM&m=-siautV5MlnuVURS0EVbHuluAU5Z_VAscU-sDfFv2jI&s=kQQUKD2t-gCp1RlE0ioqPKD5MbHEgohRdHXbJQKN18o&e= 
  Author: Wouter Deconinck <wdeconinck at wm.edu>
  Date:   2017-11-08 (Wed, 08 Nov 2017)

  Changed paths:
    M include/remollSteppingAction.hh
    M src/remollSteppingAction.cc

  Log Message:
  -----------
  Define new InitializeMaterials to do proper kryptonite detection

Previously the constructor of UserSteppingAction defined the list of
kryptonite materials by looping over the materials database. That's
before any materials are defined, however, so the list remained empty.

With a static local flag in the main UserSteppingAction, we now init
the list when the first track is used. That's guaranteed to have the
geometry at that point.

Caveat. Multiple runs with changes in geometry will have the same
kryptonite materials list. I.e. if you do change the material of
something from a kryptonite to a non-kryptonite material between
two /run/beamOn commands, you'll get wrong results in the second call.




More information about the 12gevmoller_sim mailing list