Skip to content

Conversation

@shahor02
Copy link
Collaborator

See the macro O2/Detectors/Base/test/rescaleLUT.C as an example, which writes a rescaled LUT to the <original_name>_rescaled.root file.
The rescaling parameters are provided as a set of RescRange structs: radial range + scaling coefficient.
It uses a method o2::base::MatLayerCylSet::scaleLayersByR(rmin,rmax, factor, bool scaleX2X0=true, bool scaleRho=true).
All LUT layers overlapping with rmin:rmax range will be rescaled. Alternatively, one can use directly the method o2::base::MatLayerCylSet::scaleLayersByID(lrIDmin,lrIDmax, factor, bool scaleX2X0=true, bool scaleRho=true)
to scale a set of layers [lrIDmin:lrIDmax].

Ping to @f3sch

@shahor02 shahor02 requested a review from sawenzel as a code owner September 25, 2025 19:46
@github-actions
Copy link
Contributor

REQUEST FOR PRODUCTION RELEASES:
To request your PR to be included in production software, please add the corresponding labels called "async-" to your PR. Add the labels directly (if you have the permissions) or add a comment of the form (note that labels are separated by a ",")

+async-label <label1>, <label2>, !<label3> ...

This will add <label1> and <label2> and removes <label3>.

The following labels are available
async-2023-pbpb-apass4
async-2023-pp-apass4
async-2024-pp-apass1
async-2022-pp-apass7
async-2024-pp-cpass0
async-2024-PbPb-apass1
async-2024-ppRef-apass1
async-2024-PbPb-apass2
async-2023-PbPb-apass5

@alibuild
Copy link
Collaborator

Error while checking build/O2/fullCI_slc9 for dad9665 at 2025-09-25 22:32:

## sw/BUILD/O2-latest/log
/sw/SOURCES/O2/14695-slc9_x86-64/0/Detectors/Base/src/MatLayerCyl.cxx:326:6: error: no declaration matches 'void o2::base::MatLayerCyl::scale(float, bool, bool)'
make[2]: *** [CMakeFiles/standalone_support.dir/build.make:205: CMakeFiles/standalone_support.dir/sw/SOURCES/O2/14695-slc9_x86-64/0/Detectors/Base/src/MatLayerCyl.cxx.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:639: CMakeFiles/standalone_support.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:136: all] Error 2

Full log here.

See the macro O2/Detectors/Base/test/rescaleLUT.C as an example, which writes a rescaled LUT to the <original_name>_rescaled.root file.
The rescaling parameters are provided as a set of RescRange structs: radial range + scaling coefficient.
It uses a method o2::base::MatLayerCylSet::scaleLayersByR(rmin,rmax, factor, bool scaleX2X0=true, bool scaleRho=true).
All LUT layers overlapping with rmin:rmax range will be rescaled. Alternatively, one can use directly the method o2::base::MatLayerCylSet::scaleLayersByID(lrIDmin,lrIDmax, factor, bool scaleX2X0=true, bool scaleRho=true)
to scale a set of layers [lrIDmin:lrIDmax].
@shahor02 shahor02 merged commit 8ce25b7 into AliceO2Group:dev Sep 27, 2025
11 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.

2 participants