Class Acts::ActsExtension¶
-
class Acts::ActsExtension¶
Extension of the DD4hep DetElement needed for translation into the Acts tracking geometry.
This is a simple value / flag container to be:
filled by the Detector constructors if Acts is needed
interpreted by the DD4Hep layer builders and detector converters
The minimal requirement for an ActsExtension is to define how the DD4hep (TGeo) element is oriented with respect to the Acts definition
Public Functions
-
ActsExtension(const std::string &axes = "XYZ")¶
Minimal constructor, sets the defail of the axis.
-
ActsExtension(const ActsExtension &ext) = default¶
Standard copy constructor.
- Parameters
ext – the source extension
-
ActsExtension(const ActsExtension &ext, const dd4hep::DetElement &elem)¶
Copy constructor with element for DD4hep::DetElement::clone.
- Parameters
ext – the source extension
elem – the detector element
-
~ActsExtension() = default¶
Destructor.
-
void addType(const std::string &type, const std::string &category = "", const std::string &word = "")¶
Add the characteristics.
- Parameters
type – the primary identifier in the flag store
category – the (optional) category in the flag store
word – the word to be stored
-
void addValue(double value, const std::string &tag, const std::string &category = "")¶
Add the parameter to the store.
- Parameters
value – the value to be added
tag – the entry identifier in the value store
category – the (optional) category in the value store
-
const std::string getType(const std::string &type, const std::string &category = "") const noexcept(false)¶
Get the string content.
- Parameters
type – the primary identifier in the flag store
category – the (optional) category in the flag store
-
double getValue(const std::string &tag, const std::string &category = "") const noexcept(false)¶
Get the value.
- Parameters
tag – the entry identifier in the value store
category – the (optional) category in the value store
-
bool hasCategory(const std::string &category) const¶
Check if the ActsExtension has a category.
- Parameters
category – the category in the flag store
-
bool hasType(const std::string &type, const std::string &category = "") const¶
Check if the ActsExtension has a value (with optional category)
- Parameters
type – the primary identifier in the flag store
category – the (optional) category in the flag store
-
bool hasValue(const std::string &tag, const std::string &category = "") const¶
Check if the ActsExtension has a value (with optional category)
- Parameters
tag – the primary identifier in the flag store
category – the (optional) category in the flag store
-
std::string toString() const¶
Output to string.