File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Detectors/MUON/MCH/Geometry/Transformer Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 77Here you will find functions to perform transformations on MCH geometry : local
88to global, global to local, and various (mis)alignement ones.
99
10- # MCH Transformations in JSON format
10+ ## MCH Transformations in JSON format
1111
1212Also available is a CLI utility to extract MCH transformations (rotations and
1313translations) from a Root geometry file and export them in JSON format :
@@ -16,11 +16,21 @@ translations) from a Root geometry file and export them in JSON format :
1616o2-mch-convert-geometry --geom o2sim_geometry.root > geom.json
1717```
1818
19- The JSON output can be manipulated (like any other json file) with e.g. [ jq ] ( https://stedolan. github.io/jq/ )
19+ The JSON output is compact on purpose, to save some space ( e.g. on github).
2020
21- For instance, to sort the output per detection element id :
21+ But as any JSON it can be manipulated further with e.g. [ jq] ( https://stedolan.github.io/jq/ )
22+
23+ For instance you can pretty-print it :
24+
25+ ``` shell
26+ cat output.json | jq .
27+ ```
28+
29+ Or sort the output per detection element id :
2230
2331``` shell
2432cat output.json | jq ' .alignables|=sort_by(.deid)'
2533```
2634
35+ That last command being the one that was used to produce the example [ ideal-geometry-o2.json] ( ../Test/ideal-geometry-o2.json ) file.
36+
You can’t perform that action at this time.
0 commit comments