#include <MuonGeoUtilityTool.h>
Definition at line 18 of file MuonGeoUtilityTool.h.
◆ ~MuonGeoUtilityTool()
MuonGMR4::MuonGeoUtilityTool::~MuonGeoUtilityTool |
( |
| ) |
|
|
finaloverridevirtualdefault |
◆ dumpShape()
std::string MuonGMR4::MuonGeoUtilityTool::dumpShape |
( |
const GeoShape * |
inShape | ) |
const |
|
finaloverride |
◆ dumpVolume()
std::string MuonGMR4::MuonGeoUtilityTool::dumpVolume |
( |
const PVConstLink & |
physVol | ) |
const |
|
finaloverride |
◆ extractShape() [1/2]
const GeoShape * MuonGMR4::MuonGeoUtilityTool::extractShape |
( |
const GeoShape * |
inShape | ) |
const |
|
finaloverride |
Definition at line 40 of file MuonGeoUtilitiyTool.cxx.
42 if (inShape->typeID() == GeoShapeShift::getClassTypeID()) {
43 const auto shift = dynamic_pointer_cast<const GeoShapeShift>(compressShift(inShape));
46 <<
". Continue navigation "<<printGeoShape(shift));
49 if (inShape->typeID() == GeoShapeSubtraction::getClassTypeID()){
51 "Shape is a subtraction. Extract the basic shape. Continue navigation "<<inShape);
52 const GeoShapeSubtraction* subtract =
static_cast<const GeoShapeSubtraction*
>(inShape);
◆ extractShape() [2/2]
const GeoShape * MuonGMR4::MuonGeoUtilityTool::extractShape |
( |
const PVConstLink & |
physVol | ) |
const |
|
finaloverride |
◆ findAlignableTransform()
const GeoAlignableTransform * MuonGMR4::MuonGeoUtilityTool::findAlignableTransform |
( |
const PVConstLink & |
physVol | ) |
const |
|
finaloverride |
Definition at line 59 of file MuonGeoUtilitiyTool.cxx.
60 PVConstLink
parent{physVol->getParent()}, child{physVol};
62 const GeoGraphNode *
const * node1 =
parent->findChildNode(child);
63 const GeoGraphNode *
const * fence =
parent->getChildNode(0);
66 if (
dynamic_cast<const GeoVPhysVol*
>(
node)) {
69 const GeoAlignableTransform* alignTrans{
dynamic_cast<const GeoAlignableTransform*
>(
node)};
75 parent = child->getParent();
◆ findAllLeafNodesByName()
std::vector< MuonGeoUtilityTool::physVolWithTrans > MuonGMR4::MuonGeoUtilityTool::findAllLeafNodesByName |
( |
const PVConstLink & |
physVol, |
|
|
const std::string & |
volumeName |
|
) |
| const |
|
finaloverride |
◆ getComponents()
std::vector< const GeoShape * > MuonGMR4::MuonGeoUtilityTool::getComponents |
( |
const GeoShape * |
booleanShape | ) |
const |
|
finaloverride |
◆ polygonEdges()
std::vector< Amg::Vector2D > MuonGMR4::MuonGeoUtilityTool::polygonEdges |
( |
const GeoSimplePolygonBrep & |
polygon | ) |
const |
|
override |
Transforms the vertices of the Polygon shape into a std::vector consisting of Amg::Vector2D objects.
Definition at line 89 of file MuonGeoUtilitiyTool.cxx.
92 for (
unsigned int i = 0;
i < polygon.getNVertices(); ++
i) {
93 polygonEdges.emplace_back(polygon.getXVertex(
i), polygon.getYVertex(
i));
◆ shapeEdges()
The documentation for this class was generated from the following files: