![]() |
ATLAS Offline Software
|
A Helper Class that facilitates navigation through GeoModel tree. More...
#include <GMTreeBrowser.h>
Public Member Functions | |
| GMTreeBrowser ()=default | |
| Default constructor. | |
| ~GMTreeBrowser ()=default | |
| Destructor. | |
| int | compareGeoVolumes (const GeoVPhysVol *gv1, const GeoVPhysVol *gv2, double tolerance, bool printFullInfo=false, int level=0) const |
| Recursive comparison of trees/branches/volumes : in quiet mode (printFullInfo=False) , returns the indicator of first encountered difference ( 0 if none), in verbose mode (printFullInfo=True), returns the indicator of last encountered difference ( 0 if none) level argument is used to find the depth of the difference in the tree. | |
| bool | compareShapes (const GeoShape *gs1, const GeoShape *gv2, double tolerance) const |
| shape comparison | |
| bool | findNamePattern (const GeoVPhysVol *gv, std::string_view name) const |
| search of matching name patterns | |
Static Public Member Functions | |
| static const GeoVPhysVol * | findTopBranch (const GeoVPhysVol *gv, std::string_view name) |
| search of top branch : returns mother volume for children matching name | |
Static Private Member Functions | |
| static bool | identity_check (GeoTrf::RotationMatrix3D rotation, double tol) |
| check of rotation invariance | |
| static void | printTranslationDiff (GeoTrf::Transform3D trtest, GeoTrf::Transform3D trref, double tolerance) |
| printout diff - unify output | |
| static void | printRotationDiff (const GeoTrf::Transform3D &trtest, const GeoTrf::Transform3D &trref, double tolerance) |
A Helper Class that facilitates navigation through GeoModel tree.
To be replaced by equivalent GeoModel functionality when available.
Definition at line 30 of file GMTreeBrowser.h.
|
default |
Default constructor.
|
default |
Destructor.
| int Trk::GMTreeBrowser::compareGeoVolumes | ( | const GeoVPhysVol * | gv1, |
| const GeoVPhysVol * | gv2, | ||
| double | tolerance, | ||
| bool | printFullInfo = false, | ||
| int | level = 0 ) const |
Recursive comparison of trees/branches/volumes : in quiet mode (printFullInfo=False) , returns the indicator of first encountered difference ( 0 if none), in verbose mode (printFullInfo=True), returns the indicator of last encountered difference ( 0 if none) level argument is used to find the depth of the difference in the tree.
Definition at line 48 of file GMTreeBrowser.cxx.
| bool Trk::GMTreeBrowser::compareShapes | ( | const GeoShape * | gs1, |
| const GeoShape * | gv2, | ||
| double | tolerance ) const |
shape comparison
Definition at line 185 of file GMTreeBrowser.cxx.
| bool Trk::GMTreeBrowser::findNamePattern | ( | const GeoVPhysVol * | gv, |
| std::string_view | name ) const |
search of matching name patterns
Definition at line 190 of file GMTreeBrowser.cxx.
|
static |
search of top branch : returns mother volume for children matching name
Definition at line 233 of file GMTreeBrowser.cxx.
|
staticprivate |
check of rotation invariance
Definition at line 241 of file GMTreeBrowser.cxx.
|
staticprivate |
Definition at line 274 of file GMTreeBrowser.cxx.
|
staticprivate |
printout diff - unify output
Definition at line 254 of file GMTreeBrowser.cxx.