DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | List of all members
dd4hep::detail::GeometryTreeDump Class Reference

Geometry to screen dump action. More...

#include <GeometryTreeDump.h>

Inheritance diagram for dd4hep::detail::GeometryTreeDump:
dd4hep::detail::GeoHandler dd4hep::detail::GeoHandlerTypes

Public Member Functions

 GeometryTreeDump ()=default
 
virtual ~GeometryTreeDump ()=default
 Standard destructor. More...
 
void create (DetElement top)
 Main entry point: create required object(s) More...
 
virtual void * handleVolume (const std::string &name, Volume volume) const
 Dump logical volume in GDML format to output stream. More...
 
virtual void * handleTransformation (const std::string &name, const TGeoMatrix *matrix) const
 Dump single volume transformation in GDML format to output stream. More...
 
virtual void * handleSolid (const std::string &name, const TGeoShape *volume) const
 Dump solid in GDML format to output stream. More...
 
virtual void handleDefines (const Detector::HandleMap &defs) const
 Dump all constants in GDML format to output stream. More...
 
void handleVisualisation (const Detector::HandleMap &vis) const
 Dump all visualisation specs in Detector format to output stream. More...
 
virtual void handleSolids (const std::set< TGeoShape * > &solids) const
 Dump all solids in GDML format to output stream. More...
 
virtual void handleTransformations (const std::vector< std::pair< std::string, TGeoMatrix * > > &trafos) const
 Dump Transformations in GDML format to output stream. More...
 
virtual void handleStructure (const std::set< Volume > &volset) const
 Dump structure information in GDML format to output stream. More...
 
- Public Member Functions inherited from dd4hep::detail::GeoHandler
 GeoHandler ()
 Default constructor. More...
 
 GeoHandler (std::map< int, std::vector< const TGeoNode * > > *ptr, std::map< int, std::set< const TGeoNode * > > *ptr_set, std::map< const TGeoNode *, std::vector< TGeoNode * > > *daus=nullptr)
 Initializing constructor. More...
 
virtual ~GeoHandler ()
 Default destructor. More...
 
bool setPropagateRegions (bool value)
 Propagate regions. Returns the previous value. More...
 
GeoHandlercollect (DetElement top)
 Collect geometry information from traversal. More...
 
GeoHandlercollect (DetElement top, GeometryInfo &info)
 Collect geometry information from traversal with aggregated information. More...
 
std::map< int, std::vector< const TGeoNode * > > * release ()
 Access to collected node list. More...
 

Additional Inherited Members

- Protected Member Functions inherited from dd4hep::detail::GeoHandler
GeoHandleri_collect (const TGeoNode *parent, const TGeoNode *node, int level, Region rg, LimitSet ls)
 Internal helper to collect geometry information from traversal. More...
 
- Protected Attributes inherited from dd4hep::detail::GeoHandler
bool m_propagateRegions { false }
 
std::map< int, std::vector< const TGeoNode * > > * m_data { nullptr }
 actual container with std::vector (preserves order) More...
 
std::map< int, std::set< const TGeoNode * > > * m_set_data { nullptr }
 redundant container with std::set (for lookup purpose) More...
 
std::map< const TGeoNode *, std::vector< TGeoNode * > > * m_daughters { nullptr }
 

Detailed Description

Geometry to screen dump action.

Author
M.Frank
Version
1.0

Definition at line 41 of file GeometryTreeDump.h.

Constructor & Destructor Documentation

◆ GeometryTreeDump()

dd4hep::detail::GeometryTreeDump::GeometryTreeDump ( )
default

◆ ~GeometryTreeDump()

virtual dd4hep::detail::GeometryTreeDump::~GeometryTreeDump ( )
virtualdefault

Standard destructor.

Member Function Documentation

◆ create()

void detail::GeometryTreeDump::create ( DetElement  top)

Main entry point: create required object(s)

Definition at line 294 of file GeometryTreeDump.cpp.

◆ handleDefines()

void detail::GeometryTreeDump::handleDefines ( const Detector::HandleMap defs) const
virtual

Dump all constants in GDML format to output stream.

Definition at line 239 of file GeometryTreeDump.cpp.

◆ handleSolid()

void * detail::GeometryTreeDump::handleSolid ( const std::string &  name,
const TGeoShape *  volume 
) const
virtual

Dump solid in GDML format to output stream.

Definition at line 107 of file GeometryTreeDump.cpp.

◆ handleSolids()

void detail::GeometryTreeDump::handleSolids ( const std::set< TGeoShape * > &  solids) const
virtual

Dump all solids in GDML format to output stream.

Definition at line 231 of file GeometryTreeDump.cpp.

◆ handleStructure()

void detail::GeometryTreeDump::handleStructure ( const std::set< Volume > &  volset) const
virtual

Dump structure information in GDML format to output stream.

Definition at line 192 of file GeometryTreeDump.cpp.

◆ handleTransformation()

void * detail::GeometryTreeDump::handleTransformation ( const std::string &  name,
const TGeoMatrix *  matrix 
) const
virtual

Dump single volume transformation in GDML format to output stream.

Definition at line 200 of file GeometryTreeDump.cpp.

◆ handleTransformations()

void detail::GeometryTreeDump::handleTransformations ( const std::vector< std::pair< std::string, TGeoMatrix * > > &  trafos) const
virtual

Dump Transformations in GDML format to output stream.

Definition at line 223 of file GeometryTreeDump.cpp.

◆ handleVisualisation()

void detail::GeometryTreeDump::handleVisualisation ( const Detector::HandleMap vis) const

Dump all visualisation specs in Detector format to output stream.

Definition at line 248 of file GeometryTreeDump.cpp.

◆ handleVolume()

void * detail::GeometryTreeDump::handleVolume ( const std::string &  name,
Volume  volume 
) const
virtual

Dump logical volume in GDML format to output stream.

Definition at line 72 of file GeometryTreeDump.cpp.


The documentation for this class was generated from the following files: