|
DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Go to the documentation of this file.
25 string name = x_det.nameStr();
31 Volume det_vol(name+
"_vol",
Box(box.x(),box.y(),box.z()), mat);
47 det_vol.setVisAttributes(description, x_det.visStr());
48 det_vol.setLimitSet(description, x_det.limitsStr());
49 det_vol.setRegion(description, x_det.regionStr());
50 if ( x_det.isSensitive() ) {
53 det_vol.setSensitiveDetector(sens);
56 if ( x_det.hasAttr(
_U(
id)) ) {
59 det.setPlacement(phv);
Handle class to hold the information of a sensitive detector.
#define DECLARE_DETELEMENT(name, func)
Handle class holding a placed volume (also called physical volume)
PlacedVolume & addPhysVolID(const std::string &name, int value)
Add identifier.
Handle: a templated class like a shared pointer, which allows specialized access to tgeometry objects...
ROOT::Math::Rotation3D Rotation3D
virtual Volume pickMotherVolume(const DetElement &sd) const =0
Access mother volume by detector element.
Class to easily access the properties of single XmlElements.
PlacedVolume placeVolume(const Volume &volume) const
Place daughter volume. The position and rotation are the identity.
dd4hep::xml::Component xml_comp_t
Handle class describing a material.
virtual Material material(const std::string &name) const =0
Retrieve a matrial by its name from the detector description.
Handle class describing a detector element.
Handle class holding a placed volume (also called physical volume)
DD4hep internal namespace.
dd4hep::xml::DetElement xml_det_t
ROOT::Math::Transform3D Transform3D
ROOT::Math::XYZVector Position
Class describing a box shape.
Namespace for the AIDA detector description toolkit.
The main interface to the dd4hep detector description package.
ROOT::Math::RotationZYX RotationZYX
dd4hep::xml::Dimension xml_dim_t
SensitiveDetector & setType(const std::string &typ)
Set detector type (structure, tracker, calorimeter, etc.).