|
DD4hep
1.28.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
35 class SensitiveDetector;
52 typedef std::set<const TGeoVolume*> ConstVolumeSet;
53 typedef std::map<SensitiveDetector, ConstVolumeSet> SensitiveVolumes;
54 typedef std::map<Region, ConstVolumeSet> RegionVolumes;
55 typedef std::map<LimitSet, ConstVolumeSet> LimitVolumes;
56 typedef std::map<int, std::set<const TGeoNode*> > Data;
57 typedef std::set<SensitiveDetector> SensitiveDetectorSet;
58 typedef std::set<Region> RegionSet;
59 typedef std::set<LimitSet> LimitSetSet;
60 typedef std::set<TNamed*> ObjectSet;
73 std::set<VisAttr>
vis;
78 std::vector<std::pair<std::string, TGeoMatrix*> >
trafos;
98 std::map<int, std::set<const TGeoNode*> >*
m_data;
102 const TGeoNode* node,
118 GeoHandler(std::map<
int, std::set<const TGeoNode*> >* ptr);
128 std::map<int, std::set<const TGeoNode*> >*
release();
140 std::map<int, std::set<const TGeoNode*> >*
m_data;
154 #endif // DD4HEP_GEOHANDLER_H
std::map< int, std::set< const TGeoNode * > > * m_data
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
Data container to store information obtained during the geometry scan.
GeoHandler & operator=(const GeoHandler &)
Never call assignment operator.
Geometry scanner (handle object)
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::set< TGeoElement * > elements
Handle class describing a region as used in simulation.
GeoHandler()
Default constructor.
std::map< int, std::set< const TGeoNode * > > * release()
Access to collected node list.
std::set< TGeoShape * > solids
virtual GeoScan & operator()()
Work callback.
bool setPropagateRegions(bool value)
Propagate regions. Returns the previous value.
Namespace for the AIDA detector description toolkit.
std::map< int, std::set< const TGeoNode * > > * m_data
Data holder.
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.