File ConvertDD4hepMaterial.hpp

namespace Acts

Note

This file is foreseen for the Geometry module to replace Extent

Functions

void addCylinderLayerProtoMaterial(dd4hep::DetElement detElement, Layer &cylinderLayer, const Logger &logger = getDummyLogger())

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

  • logger – a Logger for output

void addDiscLayerProtoMaterial(dd4hep::DetElement detElement, Layer &discLayer, const Logger &logger = getDummyLogger())

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

  • logger – a Logger for output

void addLayerProtoMaterial(const dd4hep::rec::VariantParameters &params, Layer &layer, const std::vector<std::pair<const std::string, Acts::BinningOption>> &binning, const Logger &logger = getDummyLogger())

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

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

Parameters
  • params – An instance of DD4hep::VariantParameters

  • layer – the Layer to assign the proto material

  • binning – the Binning prescription for the ActsExtension

  • logger – a Logger for output

std::shared_ptr<Acts::ProtoSurfaceMaterial> createProtoMaterial(const dd4hep::rec::VariantParameters &params, const std::string &valueTag, const std::vector<std::pair<const std::string, Acts::BinningOption>> &binning, const Logger &logger = getDummyLogger())

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

Parameters
  • params – An instance of DD4hep::VariantParameters

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

  • binning – the Binning prescription for the ActsExtension

  • logger – a Logger for output