21 using namespace DD4hep;
22 using namespace DD4hep::Geometry;
33 vol.setVisAttributes(lcdd, x_det.
visStr());
39 vol.setSensitiveDetector(sens);
50 sdet.setPlacement(phv);
Handle class to hold the information of a sensitive detector.
Handle class holding a placed volume (also called physical volume)
virtual Volume pickMotherVolume(const DetElement &sd) const =0
Access mother volume by detector element.
double rmax() const
Access min/max parameters: rmax.
Dimension position(bool throw_if_not_present=true) const
Child access: position.
Dimension rotation(bool throw_if_not_present=true) const
Child access: rotation.
double rmin() const
Access min/max parameters: rmin.
Handle_t child(const Strng_t &tag_value, bool except=true) const
Access child by tag name. Thow an exception if required in case the child is not present.
std::string typeStr() const
Access "type" attribute as STL string.
std::string regionStr() const
Access region attribute as STL string. If not present empty return empty string.
XML Handle class extending the XML handle Dimension.
SensitiveDetector & setType(const std::string &typ)
Set detector type (structure, tracker, calorimeter, etc.).
Handle class holding a placed volume (also called physical volume)
std::string visStr() const
Access vis attribute as STL string. If not present empty return empty string.
static Ref_t create_element(LCDD &lcdd, xml_h e, Ref_t sens)
std::string materialStr() const
Access material attribute as STL string. If not present empty return empty string.
std::string limitsStr() const
Access limits attribute as STL string. If not present empty return empty string.
double z() const
Access parameters: z.
ROOT::Math::RotationZYX RotationZYX
int id() const
Access parameters: id.
bool hasAttr(const XmlChar *name) const
Check for the existence of a named attribute.
#define DECLARE_DETELEMENT(name, func)
XML Handle class extending the XML handle Dimension.
ROOT::Math::XYZVector Position
double zhalf() const
Access Tube parameters: zhalf.
Dimension tubs(bool throw_if_not_present=true) const
Child access: tubs.
#define DECLARE_DEPRECATED_DETELEMENT(name, func)
Handle class describing a detector element.
double y() const
Access parameters: y.
bool isSensitive() const
Check if xml detector element is sensitive.
XML Handle to xml elements with predefined attribute access.
PlacedVolume & addPhysVolID(const std::string &name, int value)
Add identifier.
The main interface to the DD4hep detector description package.
Class to easily access the properties of single XmlElements.
virtual Material material(const std::string &name) const =0
Retrieve a matrial by it's name from the detector description.
std::string nameStr() const
Access "name" attribute as STL string.
ROOT::Math::Transform3D Transform3D
double x() const
Access parameters: x.
Class describing a tube shape of a section of a tube.