Add macro to print/dump alignment matrices in human readable text form
The tool allow to compare the content of the standard alignment root files, and can be run in any folder after loading the Cbmroot environment (so you can copy it somewhere else if you find it easier) Probably of interest to @a.bercuci @a.toia @n.herrmann @sturm
Usage:
root -l -b -q 'print_alignment.C(<setup tag>)'
Example:
root -l -b -q 'print_alignment.C("mcbm_beam_2022_05_23_nickel")'
Processing print_alignment.C("mcbm_beam_2022_05_23_nickel")...
Reading alignment for file /home/ploizeau_localadmin/cbmsoft/cbmroot/parameters/mcbm/AlignmentMatrices_mcbm_beam_2022_05_23_nickel.root
Filename: /home/ploizeau_localadmin/cbmsoft/cbmroot/parameters/mcbm/AlignmentMatrices_mcbm_beam_2022_05_23_nickel.root
===========================
/cave_1/sts_v22f_mcbm_0/Station01_1
matrix - tr=1 rot=1 refl=0 scl=0 shr=0 reg=0 own=0
1.000000 0.000000 0.000000 Tx = 0.262000
0.000000 1.000000 0.000000 Ty = -0.682000
0.000000 0.000000 1.000000 Tz = -3.500000
===========================
===========================
/cave_1/sts_v22f_mcbm_0/Station01_1/Ladder09_1/HalfLadder09d_2/HalfLadder09d_Module03_1
matrix - tr=1 rot=1 refl=0 scl=0 shr=0 reg=0 own=0
1.000000 0.000000 0.000000 Tx = -0.030633
0.000000 1.000000 0.000000 Ty = -0.016190
0.000000 0.000000 1.000000 Tz = -0.050000
===========================
[...]
===========================
/cave_1/trd_v22h_mcbm_0/layer02_10202/module8_101002001
matrix - tr=1 rot=1 refl=0 scl=0 shr=0 reg=0 own=0
1.000000 0.000000 0.000000 Tx = -2.900000
0.000000 1.000000 0.000000 Ty = -0.400000
0.000000 0.000000 1.000000 Tz = -2.000000
===========================
===========================
/cave_1/trd_v22h_mcbm_0/layer03_11303/module8_101303001
matrix - tr=1 rot=1 refl=0 scl=0 shr=0 reg=0 own=0
1.000000 0.000000 0.000000 Tx = 1.300000
0.000000 1.000000 0.000000 Ty = -2.900000
0.000000 0.000000 1.000000 Tz = -2.800000
===========================
(bool) true
root -l -b -q 'print_alignment.C("mcbm_beam_2025_02_14_silver")' > mcbm_beam_2025_02_14_silver_dump.txt
root -l -b -q 'print_alignment.C("mcbm_beam_2024_05_08_nickel")' > mcbm_beam_2024_05_08_nickel_dump.txt
meld mcbm_beam_2024_05_08_nickel_dump.txt mcbm_beam_2025_02_14_silver_dump.txt
Edited by Pierre-Alain Loizeau
Merge request reports
Activity
Filter activity
Please register or sign in to reply