|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
13 #ifndef DD4HEP_GEOHANDLER_H
14 #define DD4HEP_GEOHANDLER_H
38 class SensitiveDetector;
66 std::set<VisAttr>
vis;
71 std::vector<std::pair<std::string, TGeoMatrix*> >
trafos;
93 std::map<int, std::vector<const TGeoNode*> >*
m_data {
nullptr };
95 std::map<int, std::set<const TGeoNode*> >*
m_set_data {
nullptr };
97 std::map<const TGeoNode*, std::vector<TGeoNode*> >*
m_daughters {
nullptr };
100 const TGeoNode* node,
116 GeoHandler(std::map<
int, std::vector<const TGeoNode*> >* ptr,
117 std::map<
int, std::set<const TGeoNode*> >* ptr_set,
118 std::map<
const TGeoNode*, std::vector<TGeoNode*> >* daus =
nullptr);
128 std::map<int, std::vector<const TGeoNode*> >*
release();
140 std::map<int, std::vector<const TGeoNode*> >*
m_data;
154 #endif // DD4HEP_GEOHANDLER_H
std::map< const TGeoNode *, std::vector< TGeoNode * > > * m_daughters
std::vector< TGeoShape * > solids
std::vector< std::pair< std::string, TGeoMatrix * > > trafos
std::size_t info(const std::string &src, const std::string &msg)
GeoHandler & i_collect(const TGeoNode *parent, const TGeoNode *node, int level, Region rg, LimitSet ls)
Internal helper to collect geometry information from traversal.
std::set< Volume > volumeSet
std::map< int, std::vector< const TGeoNode * > > * m_data
Data holder.
Data container to store information obtained during the geometry scan.
std::set< TGeoShape * > solid_set
GeoHandler & operator=(const GeoHandler &)
Never call assignment operator.
Geometry scanner (handle object)
std::map< int, std::set< const TGeoNode * > > * m_set_data
redundant container with std::set (for lookup purpose)
Handle class describing a detector element.
GeoHandler(const GeoHandler &)
Never call Copy constructor.
The base class for all dd4hep geometry crawlers.
GeoScan(DetElement e)
Initializing constructor.
virtual ~GeoHandler()
Default destructor.
Handle class describing a set of limits as they are used for simulation.
std::map< int, std::vector< const TGeoNode * > > * release()
Access to collected node list.
std::set< TGeoElement * > elements
Handle class describing a region as used in simulation.
GeoHandler()
Default constructor.
std::map< int, std::vector< const TGeoNode * > > * m_data
actual container with std::vector (preserves order)
virtual GeoScan & operator()()
Work callback.
bool setPropagateRegions(bool value)
Propagate regions. Returns the previous value.
Namespace for the AIDA detector description toolkit.
virtual ~GeoScan()
Default destructor.
std::set< TGeoMedium * > media
std::vector< Volume > volumes
std::set< Material > materials
Defintion of the object types used by generic geometry handlers.
GeoHandler & collect(DetElement top)
Collect geometry information from traversal.