Skip to content

[PWGEM,Photon] Fix VDriftManager update call - #17673

Open
mhemmer-cern wants to merge 1 commit into
AliceO2Group:masterfrom
mhemmer-cern:master
Open

[PWGEM,Photon] Fix VDriftManager update call#17673
mhemmer-cern wants to merge 1 commit into
AliceO2Group:masterfrom
mhemmer-cern:master

Conversation

@mhemmer-cern

Copy link
Copy Markdown
Collaborator

Currently the VDriftManager was called in an extra function updateCCDB. This function is called for each collision, which results in a lot of LOG spam.
This commit updates init, initCCDB and updateCCDB.
In the init function we now initialize the VDriftManger just once with the BasicCCDBManager.
In the initCCDB we get the magnetic field from either CCDB or override value and set it for KFParticle and the Propagator. Here we also call setMatLUT if needed. The init CCDB is also only called once now at the beginning with the very first BC.
In the updateCCDB function we now check if the timestamp is different than before and update the VDrift if it's different. Then we check the run number of the BC and update the magnetic filed with the filed from the current run.

Currently the VDriftManager was called in an extra function `updateCCDB`. This function is called for each collision, which results in a lot of LOG spam.
This commit updates `init`, `initCCDB` and `updateCCDB`.
In the `init` function we now initialize the VDriftManger just once with the `BasicCCDBManager`.
In the `initCCDB` we get the magnetic field from either CCDB or override value and set it for `KFParticle` and the `Propagator`. Here we also call `setMatLUT` if needed. The init CCDB is also only called once now at the beginning with the very first BC.
In the `updateCCDB` function we now check if the timestamp is different than before and update the VDrift if it's different. Then we check the run number of the BC and update the magnetic filed with the filed from the current run.
@github-actions github-actions Bot added pwgem photon Photon and neutral meson PAG label labels Aug 31, 2026
@github-actions

Copy link
Copy Markdown

O2 linter results: ❌ 31 errors, ⚠️ 69 warnings, 🔕 16 disabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

photon Photon and neutral meson PAG label pwgem

Development

Successfully merging this pull request may close these issues.

1 participant