Skip to content
Snippets Groups Projects

Introduce examine_material.C

Merged Eoin Clerkin requested to merge e.clerkin/cbmroot:examine_material into master
2 files
+ 271
0
Compare changes
  • Side-by-side
  • Inline
Files
2
  • 9fd4f2ad
    Introduce examine_material.C · 9fd4f2ad
    Eoin Clerkin authored
    Macro which compares the names of materials as generated from a simulation
    to those obtained directly from opening the gemometry binaries directory.
    User specifies the setup he wishes to examine. Readme includes suggested
    commands.
+ 18
0
@@ -203,3 +203,21 @@ Allows to run the `check_radlen` script on sets of geometries present in the sub
Example for a version: `./macro/geometry/check_radlen_bulk.sh v22a` \
Special tags which cannot be used in this way: `git`, `all`, `main`
---
## examine_materials.C
Root macro which compares the materials in the simulated TGeoManager to the materials as extracted from the geometry
binaries for a specified setup. Compares only the names.
Sugggested commands
root -q examine_materials.C
root -q 'examine_materials.C("sis100_muon_jpsi_DEC21")'
for file in `ls ../../geometry/setup/setup_mcbm_beam_2022_*`; do tag=`echo $file | awk -F'/' '{print $5}' | sed 's|setup_|"|' | sed 's_.C$_"_'`; echo $tag; root -q './examine_material.C('$tag')'; done > MCBM_2022_EXAMINE
Loading