Skip to content

Fix in Propagator::initFieldFromGRP - #15637

Merged
shahor02 merged 1 commit into
AliceO2Group:devfrom
shahor02:pr_fixBGrp
Jul 28, 2026
Merged

Fix in Propagator::initFieldFromGRP#15637
shahor02 merged 1 commit into
AliceO2Group:devfrom
shahor02:pr_fixBGrp

Conversation

@shahor02

Copy link
Copy Markdown
Collaborator

The field normally should not be deleted since this would invalidate the field pointers cached elsewhere (e.g. by the double version of the Propagator if it was requested). Instead, the existing field should be scaled by the newly provided current values.
The exception is the marginal case when the scaling is not possible, e.g. when switching from a 5 kGauss map to a 2 kGauss (which should be avoided for other reasons). In this case, the field will be recreated, and the warning will be printed about possible invalidation of cached pointers.

This PR overrides #15632

The field normally should not be deleted since this would invalidate the field
pointers cached elsewhere (e.g. by the double version of the Propagator if it was
requested). Instead, the existing field should be scaled by the newly provided
current values.
The exception is the marginal case when the scaling is not possible, e.g. when
switching from 5kGauss map to 2kGauss (which should be avoided for other reasons).
In this case the field will be recreated and the warning will be printed about
possible invalidation of cached pointers.
@shahor02
shahor02 requested a review from sawenzel as a code owner July 27, 2026 11:53
@shahor02
shahor02 merged commit b6647b4 into AliceO2Group:dev Jul 28, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant