File ActsExtension.hpp¶
-
namespace Acts
Set the Geometry Context PLUGIN.
Set the Calibration Context PLUGIN.
Convenience functions to ease creation of and Acts::InterpolatedMaterialMap and to avoid code duplication.
Set the Mangetic Field Context PLUGIN.
Convenience functions to ease creation of and Acts::InterpolatedBFieldMap and to avoid code duplication.
Currently implemented for the two most common formats: rz and xyz.
-
class ActsExtension
- #include <Acts/Plugins/DD4hep/ActsExtension.hpp>
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.
Private Functions
-
template<typename T>
void addT(std::map<std::string, T> &map, const T &val, const std::string &tag, const std::string &category, const T &catDeco)¶ Templated helper method.
-
class ActsExtension