Skip to content

Conversation

@ChSonnabend
Copy link
Collaborator

This PR intends to bring the functionality to use the reference or derivative map for the SC distortion corrections depending on a flag that is specified by the user.

@ChSonnabend
Copy link
Collaborator Author

Pinging @wiechula

@ChSonnabend ChSonnabend marked this pull request as ready for review July 1, 2023 18:50
Copy link
Collaborator

@wiechula wiechula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChSonnabend , a few more comments, please mark each as solved once done.

Copy link
Collaborator

@wiechula wiechula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few more things that should be fixed.

@wiechula wiechula changed the title Derivative map implementation TPC: Derivative map implementation Jul 5, 2023
{CDBType::CalCorrMap, "TPC/Calib/CorrectionMap"},
{CDBType::CalCorrMapRef, "TPC/Calib/CorrectionMapRef"},
// derivative map correction
{CDBType::CalCorrDerivMap, "TPC/Calib/CorrectionDerivativeMap"},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{CDBType::CalCorrDerivMap, "TPC/Calib/CorrectionDerivativeMap"},
{CDBType::CalCorrDerivMap, "TPC/Calib/CorrectionMapDerivative"},

mUpdatedFlags = 0;
mInstLumi = 0.f;
mMeanLumi = 0.f;
mLumiScaleMode = 0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this change the lumi mode during run time?

Suggested change
mLumiScaleMode = 0;

@wiechula wiechula marked this pull request as draft July 6, 2023 11:38
Copy link
Collaborator

@wiechula wiechula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, looks fine so far I think. I converted it to a draft until we tested it.

Copy link
Collaborator

@wiechula wiechula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks fine to me.

@davidrohr davidrohr marked this pull request as ready for review July 12, 2023 19:36
@davidrohr
Copy link
Collaborator

let's start the CI then :)

@wiechula
Copy link
Collaborator

The errors look unrelated.

@davidrohr davidrohr merged commit 939bab9 into AliceO2Group:dev Jul 13, 2023
@martenole
Copy link
Contributor

Hi @ChSonnabend and @davidrohr
this PR breaks my local CTF reprocessing. I get the following errors:

[2819465:gpu-reconstruction]: Error in <TBufferFile::ReadClassBuffer>: Could not find the StreamerInfo for version 3 of the class o2::gpu::TPCFastTransform, object skipped at offset 83
[2819465:gpu-reconstruction]: Error in <TBufferFile::CheckByteCount>: object of class o2::gpu::TPCFastTransform read too few bytes: 2 instead of 158030113

followed by a segfault of the GPU reconstruction.

Any ideas?

@martenole
Copy link
Contributor

Looking at slide 8 of https://docs.google.com/presentation/d/1WPNixo57zAn_gM6vMCIBOHs-DZqcKAkLX0CwUgO_VYg/edit#slide=id.g123dba8cd3d_0_0 it seems the schema evolution is not working and all objects from TPC/Calib/CorrectionMap and TPC/Calib/CorrectionMapRef cannot be read anymore, can this be?

@shahor02
Copy link
Collaborator

Corrmap is a FlatObject, it is not streamed by the root but is cast from the memory block, so it has no schema evolution

@davidrohr
Copy link
Collaborator

davidrohr commented Jul 14, 2023 via email

@shahor02
Copy link
Collaborator

shahor02 commented Jul 14, 2023 via email

@martenole
Copy link
Contributor

Weird, why was this not seen by the CI? Kind Regards David Rohr Sent from my mobile. (Excuse the typos!)

On 14 July 2023 19:27:35 CEST, Ole Schmidt @.> wrote: Hi @ChSonnabend and @davidrohr this PR breaks my local CTF reprocessing. I get the following errors: [2819465:gpu-reconstruction]: Error in <TBufferFile::ReadClassBuffer>: Could not find the StreamerInfo for version 3 of the class o2::gpu::TPCFastTransform, object skipped at offset 83 [2819465:gpu-reconstruction]: Error in <TBufferFile::CheckByteCount>: object of class o2::gpu::TPCFastTransform read too few bytes: 2 instead of 158030113 followed by a segfault of the GPU reconstruction. Any ideas? -- Reply to this email directly or view it on GitHub: #11585 (comment) You are receiving this because you were mentioned. Message ID: @.>

I am not sure. But in the CI the ideal correction map is loaded, a dummy object. When I reconstruct some recent run then the analytical map is used and that fails.
Should we revert for now? The FST seems fine, but if we want to run with the new O2 version I just installed on the EPNs then we use the analytical maps and this I fear will not work. So we would need to upload new obects with fixed class version.
If in any case we should use a new CCDB path I think it would be better to revert this PR and then do another iteration with the changes and simultaneously fix the CCDB path.
Likely also others have problems when they try to re-reconstruct some data using O2@dev at the moment

martenole added a commit to martenole/AliceO2 that referenced this pull request Jul 14, 2023
@martenole
Copy link
Contributor

PR with the revert is here: #11658
Let me know what you think @davidrohr or @shahor02

@shahor02
Copy link
Collaborator

If we don't have the maps in the new layout to upload to alternative ccdb path together with PR pointing to it, then it is fine to revert it.

@ChSonnabend
Copy link
Collaborator Author

This is something that only @wiechula can answer to; However, I think they are not available currently.

martenole added a commit that referenced this pull request Jul 14, 2023
* Revert "TPC: Derivative map implementation (#11585)"

This reverts commit 939bab9.

* Clang format
@ChSonnabend ChSonnabend deleted the derivative_map branch July 23, 2023 18:42
mwinn2 pushed a commit to mwinn2/AliceO2 that referenced this pull request Aug 24, 2023
* Adding option for using derivative map

* Fixing formatting

* Please consider the following formatting changes

* Flag passing from the tpc-reco-workflow to gpu configs

* Please consider the following formatting changes

* Setting path to derivative map CCDB objects

* Please consider the following formatting changes

* Removing unnecessary CDB element for derivative map

* Please consider the following formatting changes

* Updating workflow and removing obsolete functions

* Setting mLumiScaleMode at loading of CCDB object

* [BugFix] Fixing accidental deletion of function

---------

Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
mwinn2 pushed a commit to mwinn2/AliceO2 that referenced this pull request Aug 24, 2023
…ceO2Group#11658)

* Revert "TPC: Derivative map implementation (AliceO2Group#11585)"

This reverts commit 939bab9.

* Clang format
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.

6 participants