|
ATLAS Offline Software
|
Go to the documentation of this file.
14 #include "GeoModelKernel/GeoNameTag.h"
15 #include "GeoModelKernel/GeoSerialDenominator.h"
16 #include "GeoModelKernel/GeoSerialIdentifier.h"
27 , m_serialDenominator(nullptr)
29 , m_serialIdentifier(nullptr)
31 setDepthLimit (depthLimit);
40 , m_serialDenominator(nullptr)
42 , m_serialIdentifier(nullptr)
44 setDepthLimit (depthLimit);
60 if(getPath()->getLength()-1 == 0)
63 const static std::string anon =
"ANON";
73 transform = GeoTrf::Transform3D::Identity();
74 defTransform = GeoTrf::Transform3D::Identity();
82 defTransform = defTransform *
t->getDefTransform(
nullptr);
132 const GeoVPhysVol* vol = &*sT->getVolume();
133 unsigned int ncopies = sT->getNCopies();
143 transform = GeoTrf::Transform3D::Identity();
144 defTransform = GeoTrf::Transform3D::Identity();
152 defTransform = defTransform *
t->getDefTransform(
nullptr);
157 for (
unsigned int i = 0;
i < ncopies;
i++) {
174 defTransform * sT->getTransform (
i));
216 ret.reserve (sizeHint);
219 const GeoVPhysVol* volume,
222 { ret.emplace_back (volume,
transform); },
239 std::vector<const GeoVPhysVol*>
244 std::vector<const GeoVPhysVol*> ret;
245 ret.reserve (sizeHint);
248 const GeoVPhysVol* volume)
249 { ret.push_back (volume); },
virtual void handleFullPhysVol(const GeoFullPhysVol *vol) override
Handles a physical volume.
void geoVisitVolumesNoXform(FUNCTION f, const GeoGraphNode *node, int depthLimit=1)
Template helper for running the visitor.
std::vector< std::pair< const GeoVPhysVol *, GeoTrf::Transform3D > > GeoVolumeVec_t
Return the child volumes and associated transforms.
virtual void handleIdentifierTag(const GeoIdentifierTag *idTag) override
Handles an Identifier Tag.
const GeoIdentifierTag * m_idTag
A pointer to an identifier tag. If the volume is identified.
virtual void handleNameTag(const GeoNameTag *nameTag) override
Handles a Name Tag.
virtual void handleSerialTransformer(const GeoSerialTransformer *sT) override
Handles a Serial Transformer.
void handleVol(const GeoVPhysVol *vol)
virtual void handleSerialDenominator(const GeoSerialDenominator *sD) override
Handles a Serial Denominator.
std::vector< const GeoVPhysVol * > geoGetVolumesNoXform(const GeoGraphNode *node, int depthLimit, int sizeHint)
Return the child volumes.
std::vector< const GeoTransform * > m_pendingTransformList
List of Pending Transformations.
const GeoSerialDenominator * m_serialDenominator
A pointer to a serial denominator. If one exists.
Visitor to process all volumes under a GeoModel node.
Eigen::Affine3d Transform3D
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
GeoVolumeVec_t geoGetVolumes(const GeoGraphNode *node, int depthLimit, int sizeHint)
Return the child volumes and associated transforms.
GeoVisitVolumes(IGeoVisitVolumesAction &action, int depthLimit=1)
Initialize to visit volumes keeping track of transformations.
std::string to_string(const DetectorType &type)
virtual void handlePhysVol(const GeoPhysVol *vol) override
Handles a physical volume.
std::variant< IGeoVisitVolumesAction *, IGeoVisitVolumesNoXformAction * > m_action
Callback.
Define a simple callback for each volume found.
const GeoNameTag * m_nameTag
A pointer to a name tag. If the volume is named.
virtual void handleSerialIdentifier(const GeoSerialIdentifier *sI) override
Handles an Serial Identifier.
const GeoSerialIdentifier * m_serialIdentifier
virtual void handleTransform(const GeoTransform *xform) override
Handles a Transform.
void geoVisitVolumes(FUNCTION f, const GeoGraphNode *node, int depthLimit=1)
Template helper for running the visitor.