|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
13 #ifndef DD4HEP_DD4HEPROOTPERSISTENCY_H
14 #define DD4HEP_DD4HEPROOTPERSISTENCY_H
28 typedef std::map<std::string, dd4hep::Handle<dd4hep::NamedObject> >
HandleMap;
33 std::map<dd4hep::Readout,std::pair<dd4hep::IDDescriptor,dd4hep::DDSegmentation::Segmentation*> >
m_segments;
35 std::map<dd4hep::DetElement,dd4hep::AlignmentCondition>
nominals;
44 static int save(
dd4hep::Detector& description,
const char* fname,
const char* instance =
"Geometry");
46 static int load(
dd4hep::Detector& description,
const char* fname,
const char* instance =
"Geometry");
123 std::pair<std::size_t, std::size_t>
checkRegions()
const;
127 std::pair<std::size_t, std::size_t>
checkIdSpecs()
const;
144 #endif // DD4HEP_DD4HEPROOTPERSISTENCY_H
dd4hep::Volume trackingVolume() const
Return handle to the world volume containing the volume with the tracking devices.
TGeoManager & manager() const
Access the geometry manager of this instance.
const HandleMap & regions() const
Accessor to the map of region settings.
const HandleMap & sensitiveDetectors() const
Retrieve a sensitive detector by its name from the detector description.
dd4hep::VolumeManager volumeManager() const
Return handle to the VolumeManager.
ObjectHandleMap m_sensitive
The map of top level sub-detector sensitive detector objects indexed by the detector name.
dd4hep::DetElement world() const
Return reference to the top-most (world) detector element.
ObjectHandleMap m_display
The map of display attributes in use.
ClassDef(DD4hepRootPersistency, 1)
ROOT implementation macro.
std::pair< std::size_t, std::size_t > checkSegmentations() const
Call to check segmentations starting from the top level Detector element.
dd4hep::Volume worldVolume() const
Return handle to the world volume containing everything.
std::pair< std::size_t, std::size_t > checkLimitSets() const
Call to check a limit-set object.
const HandleMap & constants() const
Accessor to the map of constants.
Handle class describing visualization attributes.
static int load(dd4hep::Detector &description, const char *fname, const char *instance="Geometry")
Load an detector description from a ROOT file to memory.
std::pair< std::size_t, std::size_t > checkRegions() const
Call to check a Region object.
DD4hepRootCheck(dd4hep::Detector *o)
Initializing constructor.
const HandleMap & limitsets() const
Accessor to the map of limit settings.
std::pair< std::size_t, std::size_t > checkReadouts() const
Call to check a Readout object.
std::pair< std::size_t, std::size_t > checkDetectors() const
Call to check a top level Detector element (subdetector)
Helper class to support ROOT persistency of Detector objects.
static int save(dd4hep::Detector &description, const char *fname, const char *instance="Geometry")
Save an existing detector description in memory to a ROOT file.
DD4hepRootPersistency()
Default constructor.
ObjectHandleMap m_idDict
Map of readout IDDescriptors indexed by hit collection name.
dd4hep::VisAttr invisible() const
Return handle to "invisible" visualization attributes.
std::pair< std::size_t, std::size_t > checkIdSpecs() const
Call to check an ID specification.
Class describing a field overlay with several sources.
dd4hep::DetElement trackers() const
Return reference to detector element with all tracker devices.
Helper class to check various ingredients of the Detector object after loaded from ROOT.
Handle class describing a material.
size_t checkFields() const
Call to theck the DD4hep fields.
dd4hep::Material vacuum() const
Return handle to material describing vacuum.
ObjectHandleMap m_regions
Map of regions settings for the simulation.
const HandleMap & fields() const
Accessor to the map of field entries, which together form the global field.
std::pair< std::size_t, std::size_t > checkVolManager() const
Call to check the volume manager hierarchy.
Handle class describing a detector element.
dd4hep::Header header() const
Accessor to the header entry.
Handle class holding a placed volume (also called physical volume)
Class to support the retrieval of detector elements and volumes given a valid identifier.
virtual ~DD4hepRootPersistency()
Default destructor.
VolumeManager m_volManager
Volume manager reference.
ObjectHandleMap m_readouts
Map of readout descriptors indexed by subdetector name.
dd4hep::DetectorData * m_data
The main data block.
const HandleMap & idSpecifications() const
Accessor to the map of ID specifications.
const HandleMap & detectors() const
Accessor to the map of sub-detectors.
ObjectHandleMap m_detectors
The map of top level sub-detector objects indexed by name.
size_t checkAll() const
Check all of the above.
DD4hepRootCheck & operator=(const DD4hepRootCheck ©)=default
Assignment operator.
std::map< std::string, dd4hep::Handle< dd4hep::NamedObject > > HandleMap
Class of the ROOT toolkit. See http://root.cern.ch/root/htmldoc/ClassIndex.html.
std::map< dd4hep::DetElement, dd4hep::AlignmentCondition > nominals
Helper to save alignment conditions from the DetElement nominals.
std::pair< std::size_t, std::size_t > checkSensitives() const
Call to check a sensitive detector.
std::pair< std::size_t, std::size_t > checkNominals() const
Call to check the nominal alignments in the DetElement hierarchy.
DD4hepRootCheck()=default
Default constructor.
ObjectHandleMap m_fields
The map of electro magnet field components for the global overlay field.
size_t checkMaterials() const
Call to check a Material object.
std::map< dd4hep::Readout, std::pair< dd4hep::IDDescriptor, dd4hep::DDSegmentation::Segmentation * > > m_segments
Helper since plain segmentations cannot be saved.
virtual ~DD4hepRootCheck()=default
Default destructor.
Material m_materialVacuum
dd4hep::Material air() const
Return handle to material describing air.
Data implementation class of the Detector interface.
dd4hep::OverlayedField field() const
Return handle to the combined electromagentic field description.
The main interface to the dd4hep detector description package.
DD4hepRootCheck(const DD4hepRootCheck ©)=default
Copy constructor.
TGeoManager * m_manager
Reference to the geometry manager object from ROOT.
const HandleMap & readouts() const
Accessor to the map of readout structures.
size_t checkProperties() const
Check detector description properties (string defines)
size_t checkConstants() const
Check the collection of define statements.
ObjectHandleMap m_limits
Map of limit sets.
dd4hep::Detector * object
Reference to the detector model object.
const HandleMap & visAttributes() const
Accessor to the map of visualisation attributes.