Skip to content

This MR includes minor changes to eliminate compiler warnings and enhance code robustness.#126

Merged
mnovak42 merged 9 commits intomasterfrom
ezaz
Jun 3, 2025
Merged

This MR includes minor changes to eliminate compiler warnings and enhance code robustness.#126
mnovak42 merged 9 commits intomasterfrom
ezaz

Conversation

@mnovak42
Copy link
Copy Markdown
Owner

@mnovak42 mnovak42 commented Jun 3, 2025

No description provided.

mnovak42 added 9 commits June 2, 2025 16:26
We check if the tracking manager is supported (by the utilised Geant4
version) by using a small cxx code when configuring and installing G4HepEm.
The G4HepEm_HAS_G4VTRACKINGMANAGER variable is set to True if the code
compiles while the G4HepEm_trackingmanager_FOUND variable goes to the
G4HepEm config file with a True value. The first is availabel in the same
unit, i.e. when building the example application together with G4HepEm
e.g. during testing, while only the other is available when using an
already installed G4HepEm version. This modification ensures that the
application builds as expected in both cases.
An EM parameter, that corresponds to the G4 LateralDisplacement, has been
added to the HepEm parameters. It's initial value is taken from the
G4EmParameters at init and controls if lateral displacement is computed
in MSC. It allows a bit of optimisation in case of large volumes and
used by default in the option2 G4 EM physics constructor (by LHCb).

The additional parameter is a tracking cut for gamma which do not exist
in G4 in this form. It behaves similarly to the corresponding tracking cut
for electron: the gamma tracking is stoped when its energy drops below this
energy limit and the current kinetic energy is deposited at that point.
This can be achived in several ways inside G4 (e.g. user stepping action or
G4UserLimits, etc.). Such a tracking cut is applied by LHCb and this is
why it has been introduced now. The default value is zero, i.e. no any
tracking cut for gamma by default, that can be changed when constructing
the tracking manager.
@mnovak42 mnovak42 merged commit b934c4b into master Jun 3, 2025
5 checks passed
@mnovak42 mnovak42 deleted the ezaz branch June 3, 2025 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant