Quick way to validate changes to the geometry library...
Updated on Wed, 2015-11-04 11:00. Originally created by jwebb on 2015-11-04 11:00.
1) Export original geometry to a CINT file
gGeoManager->Export("original.C")
2) Export modified geometry to a CINT file
gGeoManager->Export("modified.C")
3) Strip out patterns which match a pointer reference
sed '/_[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]/d' original.C > original.stripped
sed '/_[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]/d' original.C > modified.stripped
4) diff will reveal any problems
diff original.stripped modified.stripped
»
- jwebb's blog
- Login or register to post comments