-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update of TPC Splines: non-uniform grid for TPC residuals #13042
base: dev
Are you sure you want to change the base?
Conversation
REQUEST FOR PRODUCTION RELEASES:
This will add The following labels are available |
Error while checking build/O2/fullCI for 1b64788 at 2024-04-25 20:50:
Full log here. |
Seems like fullCI is having some unrelated problems. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4ddd7a0
to
a9b3754
Compare
Error while checking build/O2/fullCI for a9b3754 at 2024-05-21 14:29:
Full log here. |
@sgorbuno , unfortunately this did not work. I guess code parts that are not supposed to run on GPU need protection. I think default header files will not work, I overlooked that. If min / max etc. is supposed to run also on GPU you could use https://github.com/AliceO2Group/AliceO2/blob/dev/GPU/Common/GPUCommonMath.h#L331. Please check what would be appropriate. |
Hi @wiechula , I'm not allowed to see the build log when clicking on "Details": "Unauthorized to log in. A missing role is required to access this application. Please contact the application owner to get access." Can it be fixed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @sgorbuno !
Just a few minor comments.
if (1) { // read transformation from the file | ||
|
||
// const char* fileName = "master/out.root"; | ||
|
||
const char* fileName = outFileName; | ||
|
||
std::cout << "load corrections from file " << fileName << std::endl; | ||
|
||
fastTransform->cloneFromObject(*TPCFastTransform::loadFromFile(fileName, "ccdb_object"), nullptr); | ||
|
||
o2::gpu::TPCFastSpaceChargeCorrection& corr = fastTransform->getCorrection(); | ||
|
||
if (0) { | ||
std::cout << "check the loaded correction ..." << std::endl; | ||
|
||
const o2::gpu::TPCFastTransformGeo& geo = helper->getGeometry(); | ||
|
||
// for (int iRoc = 0; iRoc < geo.getNumberOfSlices(); iRoc++) { | ||
for (int iRoc = 0; iRoc < 1; iRoc++) { | ||
for (int iRow = 0; iRow < geo.getNumberOfRows(); iRow++) { | ||
auto& info = corr.getSliceRowInfo(iRoc, iRow); | ||
std::cout << "roc " << iRoc << " row " << iRow | ||
<< " gridV0 " << info.gridV0 << " gridCorrU0 " << info.gridCorrU0 << " gridCorrV0 " << info.gridCorrV0 | ||
<< " scaleCorrUtoGrid " << info.scaleCorrUtoGrid << " scaleCorrVtoGrid " << info.scaleCorrVtoGrid | ||
<< " gridU0 " << info.gridU0 << " scaleUtoGrid " << info.scaleUtoGrid << " scaleVtoGrid " << info.scaleVtoGrid | ||
<< std::endl; | ||
} | ||
} | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are the data written to file and read back?
Is this only for debugging? If so, please add a comment.
// duplicate of debugVox | ||
debugFile->cd(); | ||
TNtuple* debugCorrVox = | ||
new TNtuple("corrvox", "corrvox", "iRoc:iRow:n:x:y:z:vx:vy:vz:cx:cy:cz"); | ||
|
||
debugCorrVox->SetMarkerStyle(8); | ||
debugCorrVox->SetMarkerSize(0.8); | ||
debugCorrVox->SetMarkerColor(kMagenta); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this added? It indeed seems to be an exact copy of debugVox
filled with the same entries below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only reason is to have the tree in two different colors and marker sizes. One can then draw vx,vy, and vz in red color and cx,cy, and cz in magenta without much typing in the command line. One can put these values in different trees, but sometimes I want to see cx-vx, cy-vy etc.
Error while checking build/O2/fullCI for 71eac44 at 2024-05-25 00:33:
Full log here. |
Co-authored-by: wiechula <11199190+wiechula@users.noreply.github.com>
@wiechula, I mark the PR draft again. Alexander Schmah sees some problems; It makes sense to fix them first. |
The PR contains several commits:
non-uniform grid that corresponds to the track residual voxels
limits for SC correction values per TPC row
multithreaded reading of the residual tree
fix propagation of the track residual data to the TPC row edges
fix initialization of the track residuals in the test macro