DD4hep  1.36.0
Detector Description Toolkit for High Energy Physics
Classes | Public Member Functions | Public Attributes | List of all members
dd4hep::detail::Vis2XmlExtract Class Reference

Geometry converter from dd4hep to Geant 4 in Detector format. More...

#include <Vis2XmlExtract.h>

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

Classes

class  GeometryInfo
 Data structure of the geometry converter from dd4hep to extract visualization information. More...
 

Public Member Functions

 Vis2XmlExtract (Detector &description)
 Initializing Constructor. More...
 
virtual ~Vis2XmlExtract ()
 Standard destructor. More...
 
xml_doc_t createVis (DetElement top)
 Create geometry conversion in Vis format. More...
 
virtual xml_h handleVolume (const std::string &name, Volume volume) const
 Analyze Volume in the geometry hierarchy. More...
 
virtual xml_h handleVolumeVis (const std::string &name, const TGeoVolume *volume) const
 Analyze Visualization attributes of Volume in the geometry hierarchy. More...
 
virtual xml_h handleVis (const std::string &name, VisAttr vis) const
 Convert the geometry visualisation attributes to the corresponding Xml object(s). 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...
 

Public Attributes

Detectorm_detDesc
 Reference to detector description. More...
 
GeometryInfom_dataPtr
 

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 converter from dd4hep to Geant 4 in Detector format.

Author
M.Frank
Version
1.0

Definition at line 40 of file Vis2XmlExtract.h.

Constructor & Destructor Documentation

◆ Vis2XmlExtract()

dd4hep::detail::Vis2XmlExtract::Vis2XmlExtract ( Detector description)

Initializing Constructor.

Definition at line 37 of file Vis2XmlExtract.cpp.

◆ ~Vis2XmlExtract()

dd4hep::detail::Vis2XmlExtract::~Vis2XmlExtract ( )
virtual

Standard destructor.

Definition at line 41 of file Vis2XmlExtract.cpp.

Member Function Documentation

◆ createVis()

xml_doc_t dd4hep::detail::Vis2XmlExtract::createVis ( DetElement  top)

Create geometry conversion in Vis format.

Create geometry conversion.

Definition at line 129 of file Vis2XmlExtract.cpp.

◆ handleVis()

xml_h dd4hep::detail::Vis2XmlExtract::handleVis ( const std::string &  name,
VisAttr  vis 
) const
virtual

Convert the geometry visualisation attributes to the corresponding Xml object(s).

Convert the geometry visualisation attributes to the corresponding Detector object(s).

Definition at line 95 of file Vis2XmlExtract.cpp.

◆ handleVolume()

xml_h dd4hep::detail::Vis2XmlExtract::handleVolume ( const std::string &  name,
Volume  volume 
) const
virtual

Analyze Volume in the geometry hierarchy.

Dump logical volume in GDML format to output stream.

Definition at line 48 of file Vis2XmlExtract.cpp.

◆ handleVolumeVis()

xml_h dd4hep::detail::Vis2XmlExtract::handleVolumeVis ( const std::string &  name,
const TGeoVolume *  volume 
) const
virtual

Analyze Visualization attributes of Volume in the geometry hierarchy.

Dump logical volume in GDML format to output stream.

Definition at line 75 of file Vis2XmlExtract.cpp.

Member Data Documentation

◆ m_dataPtr

GeometryInfo* dd4hep::detail::Vis2XmlExtract::m_dataPtr

Definition at line 60 of file Vis2XmlExtract.h.

◆ m_detDesc

Detector& dd4hep::detail::Vis2XmlExtract::m_detDesc

Reference to detector description.

Definition at line 59 of file Vis2XmlExtract.h.


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