File ConvertDD4hepMaterial.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.

Functions

void addCylinderLayerProtoMaterial(dd4hep::DetElement detElement, Layer &cylinderLayer, Logging::Level loggingLevel = Logging::Level::INFO)

Helper method to translate DD4hep material to Acts::ISurfaceMaterial.

This is used to assign proto material to Cylinder Layers

Parameters
  • detElement – the DD4hep detector element for which this material is assigned

  • cylinderLayer – is the target layer

  • loggingLevel – is the output level for the conversion

void addDiscLayerProtoMaterial(dd4hep::DetElement detElement, Layer &discLayer, Logging::Level loggingLevel = Logging::Level::INFO)

Helper method to translate DD4hep material to Acts::ISurfaceMaterial.

Thisis used to assign proto material to Disc Layers

Parameters
  • detElement – the DD4hep detector element for which this material is assigned

  • discLayer – is the target layer

  • loggingLevel – is the output level for the conversion

void addLayerProtoMaterial(const ActsExtension &actsExtension, Layer &layer, const std::vector<std::pair<const std::string, Acts::BinningOption>> &binning)

Helper method to be called for Cylinder and Disc Proto material.

For both, cylinder and disc, the closed binning value is “binPhi”

Parameters
  • actsExtension – the ActsExtension for the binning parameters

  • layer – the Layer to assign the proto material

  • binning – the Binning prescription for the ActsExtension

std::shared_ptr<Acts::ProtoSurfaceMaterial> createProtoMaterial(const ActsExtension &actsExtension, const std::string &valueTag, const std::vector<std::pair<const std::string, Acts::BinningOption>> &binning)

Helper method to create proto material - to be called from the addProto(…) methods.

Parameters
  • actsExtension – the ActExtension to be checked

  • valueTag – the xml tag for to ActsExtension to be parsed

  • binning – the Binning prescription for the ActsExtension

void xmlToProtoSurfaceMaterial(const xml_comp_t &x_material, ActsExtension &actsExtension, const std::string &baseTag)

Helper method that decorates an ActsExtension with proto material description for boundaries.

  • it assigns bins for inner / representing / outer Helper method that decorates an ActsExtension with proto material description,

  • it assigns bins for inner / representing / outer

Parameters
  • x_material – the material tag to be inspected

  • actsExtension – the extension that is augmented

  • baseTag – the xml tag to be checked