ATLAS Offline Software
MuonDetectorBuilderTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
5 
13 #include "GeoModelHelpers/TransformToStringConverter.h"
14 
15 #include "Acts/ActsVersion.hpp"
16 #include "Acts/Geometry/CutoutCylinderVolumeBounds.hpp"
17 #include "Acts/Geometry/CylinderVolumeBounds.hpp"
18 #include "Acts/Geometry/TrapezoidVolumeBounds.hpp"
19 #include "Acts/Visualization/GeometryView3D.hpp"
20 #include "Acts/Detector/DetectorVolume.hpp"
21 #include "Acts/Detector/PortalGenerators.hpp"
22 #include "Acts/Material/HomogeneousVolumeMaterial.hpp"
23 #include "Acts/Material/HomogeneousSurfaceMaterial.hpp"
24 #include "Acts/Material/MaterialSlab.hpp"
25 #include "Acts/Navigation/DetectorVolumeFinders.hpp"
26 #include "Acts/Navigation/InternalNavigation.hpp"
27 #include "Acts/Navigation/NavigationDelegates.hpp"
28 #include "Acts/Navigation/NavigationState.hpp"
29 #include "Acts/Visualization/ObjVisualization3D.hpp"
30 #include "Acts/Detector/MultiWireStructureBuilder.hpp"
31 #include "Acts/Geometry/GeometryIdentifier.hpp"
32 #include "Acts/Plugins/GeoModel/GeoModelMaterialConverter.hpp"
33 #include "Acts/Plugins/GeoModel/GeoModelToDetectorVolume.hpp"
34 #include "Acts/Surfaces/TrapezoidBounds.hpp"
35 #include "Acts/Surfaces/RectangleBounds.hpp"
36 #include "Acts/Surfaces/ConvexPolygonBounds.hpp"
37 #include "Acts/Surfaces/PlaneSurface.hpp"
38 
39 #include <GeoModelKernel/GeoSimplePolygonBrep.h>
40 #include <GeoModelKernel/GeoShapeSubtraction.h>
41 #include <GeoModelKernel/GeoBox.h>
42 #include <GeoModelKernel/GeoTrd.h>
43 #include "GeoModelHelpers/getChildNodesWithTrf.h"
45 #include <set>
46 #include <climits>
47 #include <format>
48 #include <GeoModelHelpers/StringUtils.h>
49 
50 
51 
54 namespace ActsTrk {
55 
56  inline std::string objFileName(std::string str) {
57  str = GeoStrUtils::replaceExpInString(str, " ", "_");
58  str = GeoStrUtils::replaceExpInString(str, "-", "M");
59  return std::format("{:}.obj", str);
60  }
61 
62  using volumePtr= std::shared_ptr<DetectorVolume>;
63  using surfacePtr = std::shared_ptr<Acts::Surface>;
65 
66  MuonDetectorBuilderTool::MuonDetectorBuilderTool( const std::string& type, const std::string& name, const IInterface* parent ):
67  base_class(type, name, parent){}
68 
71  ATH_CHECK(m_idHelperSvc.retrieve());
72  ATH_MSG_DEBUG("ACTS version is: v"<< Acts::VersionMajor << "." << Acts::VersionMinor << "." << Acts::VersionPatch << " [" << Acts::CommitHash << "]");
73 
74  return StatusCode::SUCCESS;
75  }
76 
77  Acts::Experimental::DetectorComponent MuonDetectorBuilderTool::construct(const Acts::GeometryContext& context) const{
78  ATH_MSG_DEBUG("Building Muon Detector Volume");
79  const MuonChamberSet chambers = m_detMgr->getAllChambers();
80  const ActsGeometryContext* gctx = context.get<const ActsGeometryContext* >();
81  std::vector< volumePtr > detectorVolumeBoundingVolumes{};
82  std::vector< volumePtr > detectorVolumePassiveVolumes{};
83 
84  detectorVolumeBoundingVolumes.reserve(chambers.size());
85  std::vector<surfacePtr> surfaces{};
86  std::vector<surfacePtr> materialSurfaces{};
87 
88  auto portalGenerator = Acts::Experimental::defaultPortalAndSubPortalGenerator();
89  unsigned int numChambers = chambers.size();
90 
91  BlendedBoundSet materialBounds{};
92  for(const MuonGMR4::Chamber* chamber : chambers){
93  unsigned int num = 0;
94  //Gather the passives in each chamber
95  surfacePtr material{getChamberMaterial(*chamber, chamber->localToGlobalTrans(*gctx), materialSurfaces.size(), materialBounds)};
96  std::shared_ptr<Acts::TrapezoidVolumeBounds> bounds = chamber->bounds();
97  materialSurfaces.push_back(material);
98  std::pair<std::vector<volumePtr>, std::vector<surfacePtr>> readoutElements =
99  constructElements(*gctx, *chamber, std::make_pair(numChambers,num));
100  readoutElements.second.push_back(material);
101  volumePtr detectorVolume = Acts::Experimental::DetectorVolumeFactory::construct(portalGenerator,
102  gctx->context(),
103  chamber->identString(),
104  chamber->localToGlobalTrans(*gctx),
105  bounds, readoutElements.second,
106  readoutElements.first,
107  Acts::Experimental::tryAllSubVolumes(),
108  Acts::Experimental::tryAllPortalsAndSurfaces());
109 
110  detectorVolume->assignGeometryId(Acts::GeometryIdentifier{}.setLayer(numChambers--));
112  //If we want to view each volume independently
113  Acts::ObjVisualization3D helper;
114  Acts::GeometryView3D::drawDetectorVolume(helper, *detectorVolume, gctx->context());
115  helper.write(objFileName(chamber->identString()));
116  helper.clear();
117  }
118  detectorVolumeBoundingVolumes.push_back(std::move(detectorVolume));
119  readoutElements.first.clear();
120  readoutElements.second.clear();
121  }
122 
124  Acts::ObjVisualization3D helper;
125  for (const auto& surf : materialSurfaces){
126  Acts::GeometryView3D::drawSurface(helper, *surf, gctx->context());
127  }
128  helper.write("materialSurfaces.obj");
129  helper.clear();
130  }
131 
132  ATH_MSG_VERBOSE("Number of detector volumes: "<< detectorVolumeBoundingVolumes.size());
133  ATH_MSG_VERBOSE("Number of chamber passives volumes: "<< detectorVolumePassiveVolumes.size());
134  std::vector<GeoChildNodeWithTrf> childNodes = getChildrenWithRef(m_detMgr->getTreeTop(0), false);
135  std::set<std::string> skipNodes{"MuonBarrel", "NSW", "MuonEndcap_sideA", "MuonEndcap_sideC","TGCSystem"};
136  for (const GeoChildNodeWithTrf& node : childNodes){
137  //These are taken care of in the chambers
138  if(skipNodes.count(node.nodeName)) {
139  ATH_MSG_VERBOSE("Skipping volume "<<node.nodeName);
140  continue;
141  }
142  ATH_MSG_VERBOSE("Processing passive node "<<node.nodeName);
143  // processPassiveNodes(*gctx, node, node.nodeName, detectorVolumePassiveVolumes, node.transform);
144  }
145  ATH_MSG_VERBOSE("Number of total passive volumes: "<< detectorVolumePassiveVolumes.size());
146 
147  if (m_dumpPassive){
148  ATH_MSG_VERBOSE("Writing passiveVolumes.obj");
149  Acts::ObjVisualization3D helper;
150  for (const auto& vol : detectorVolumePassiveVolumes){
151  Acts::GeometryView3D::drawDetectorVolume(helper, *vol, gctx->context());
152  }
153  helper.write(objFileName("passiveVolumes"));
154  helper.clear();
155  }
156 
157  //Add the passive volumes to the end of detectorVolumeBoundingVolumes
158  detectorVolumeBoundingVolumes.insert(detectorVolumeBoundingVolumes.end(), detectorVolumePassiveVolumes.begin(), detectorVolumePassiveVolumes.end());
159 
160  std::unique_ptr<Acts::CutoutCylinderVolumeBounds> msBounds = std::make_unique<Acts::CutoutCylinderVolumeBounds>(0, 4000, 14500, 22500, 3200);
161  volumePtr msDetectorVolume = Acts::Experimental::DetectorVolumeFactory::construct(
162  portalGenerator, gctx->context(), "Muon Spectrometer Envelope",
163  Acts::Transform3::Identity(), std::move(msBounds), surfaces,
164  detectorVolumeBoundingVolumes, Acts::Experimental::tryAllSubVolumes(),
165  Acts::Experimental::tryAllPortalsAndSurfaces());
166  msDetectorVolume->assignGeometryId(Acts::GeometryIdentifier{}.setVolume(15));
167 
168  if (m_dumpDetector) {
169  ATH_MSG_VERBOSE("Writing detector.obj");
170  Acts::ObjVisualization3D helper;
171  Acts::GeometryView3D::drawDetectorVolume(helper, *msDetectorVolume, gctx->context());
172  helper.write(objFileName("detector"));
173  helper.clear();
174  }
175 
176  Acts::Experimental::DetectorComponent::PortalContainer portalContainer;
177  for (auto [ip, p] : Acts::enumerate(msDetectorVolume->portalPtrs())) {
178  portalContainer[ip] = p;
179  }
180  detectorVolumeBoundingVolumes.push_back(msDetectorVolume);
181  return Acts::Experimental::DetectorComponent{
182  {detectorVolumeBoundingVolumes},
183  portalContainer,
184  {{msDetectorVolume}, Acts::Experimental::tryAllSubVolumes()}};
185  }
186 
187 std::pair<std::vector<volumePtr>,std::vector<surfacePtr>>
189  const MuonGMR4::Chamber& mChamber,
190  std::pair<unsigned int, unsigned int> chId) const{
191 
192  std::vector<volumePtr> readoutDetectorVolumes{};
193  std::vector<surfacePtr> readoutSurfaces{};
194  if(!m_buildSensitives) return std::make_pair(readoutDetectorVolumes, readoutSurfaces);
195  Acts::GeometryIdentifier::Value surfId{1};
196  Acts::GeometryIdentifier::Value mdtId{1};
197 
198  const MuonGMR4::Chamber::ReadoutSet& readoutElements = mChamber.readoutEles();
199 
200  for(const MuonGMR4::MuonReadoutElement* ele : readoutElements){
201  switch (ele->detectorType()) {
202  case DetectorType::Mdt: {
203  ATH_MSG_VERBOSE("Building MultiLayer for MDT Detector Volume");
204  const auto* mdtReadoutEle = static_cast<const MuonGMR4::MdtReadoutElement*>(ele);
205  const MuonGMR4::MdtReadoutElement::parameterBook& parameters{mdtReadoutEle->getParameters()};
206  std::vector<surfacePtr> surfaces{};
207  //loop over the tubes to get the surfaces
208  for(unsigned int lay=1; lay<=mdtReadoutEle->numLayers(); ++lay){
209  for(unsigned int tube=1; tube<=mdtReadoutEle->numTubesInLay(); ++tube){
210  const IdentifierHash measHash{mdtReadoutEle->measurementHash(lay,tube)};
211  if (!mdtReadoutEle->isValid(measHash)) continue;
212  surfacePtr surface = mdtReadoutEle->surfacePtr(measHash);
213  surface->assignGeometryId(Acts::GeometryIdentifier{}.setLayer(chId.first).setVolume(chId.second).setBoundary(mdtId).setSensitive(++surfId));
214  surfaces.push_back(surface);
215  }
216  }
217 
218  //Get the transformation to the chamber's frame
219  const Amg::Vector3D toChamber = mChamber.globalToLocalTrans(gctx)*mdtReadoutEle->center(gctx);
220  const Acts::Transform3 mdtTransform = mChamber.localToGlobalTrans(gctx) * Amg::getTranslate3D(toChamber);
221 
222  Acts::Experimental::MultiWireStructureBuilder::Config mlCfg{};
223  mlCfg.name = m_idHelperSvc->toStringDetEl(mdtReadoutEle->identify());
224  mlCfg.mlSurfaces = std::move(surfaces);
225  mlCfg.transform = mdtTransform;
226  auto mdtBounds = std::make_unique<Acts::TrapezoidVolumeBounds>(parameters.shortHalfX, parameters.longHalfX, parameters.halfY, parameters.halfHeight);
227  using BoundsV = Acts::TrapezoidVolumeBounds::BoundValues;
228  mlCfg.mlBounds= mdtBounds->values();
229  mlCfg.mlBinning = {Acts::Experimental::ProtoBinning(Acts::BinningValue::binY, Acts::AxisBoundaryType::Bound,
230  -mdtBounds->get(BoundsV::eHalfLengthXnegY),
231  mdtBounds->get(BoundsV::eHalfLengthXposY),
232  std::lround(2*mdtBounds->get(BoundsV::eHalfLengthXposY)/parameters.tubePitch), 0u),
233  Acts::Experimental::ProtoBinning(Acts::BinningValue::binZ, Acts::AxisBoundaryType::Bound,
234  -mdtBounds->get(BoundsV::eHalfLengthY),
235  mdtBounds->get(BoundsV::eHalfLengthY),
236  std::lround(2*mdtBounds->get(BoundsV::eHalfLengthY)/parameters.tubePitch), 0u)};
237 
238  Acts::Experimental::MultiWireStructureBuilder mdtBuilder(mlCfg);
239  volumePtr mdtVolume = mdtBuilder.construct(gctx.context()).volumes[0];
240  mdtVolume->assignGeometryId(Acts::GeometryIdentifier{}.setLayer(chId.first).setVolume(chId.second).setBoundary(mdtId++));
241  readoutDetectorVolumes.push_back(mdtVolume);
242  break;
243  } case DetectorType::Rpc:
244  case DetectorType::Tgc:
245  case DetectorType::sTgc:
246  case DetectorType::Mm: {
247  ATH_MSG_VERBOSE("Building plane surfaces "<<m_idHelperSvc->toStringDetEl(ele->identify()));
248  std::vector<surfacePtr> detSurfaces = ele->getSurfaces();
249  for (surfacePtr& surf : detSurfaces) {
250  surf->assignGeometryId(Acts::GeometryIdentifier{}.setLayer(chId.first).setVolume(chId.second).setSensitive(++surfId));
251  readoutSurfaces.push_back(std::move(surf));
252  }
253  break;
254  } default:
255  THROW_EXCEPTION("Unknown detector type "<<ActsTrk::to_string(ele->detectorType()));
256  }
257  }
258 
259  return std::make_pair(std::move(readoutDetectorVolumes), std::move(readoutSurfaces));
260 
261  }
262 
264  const Amg::Transform3D& chamberTransform,
265  const int totalMaterials,
266  BlendedBoundSet& boundSet) const {
267  std::shared_ptr<const Acts::PlanarBounds> bounds = boundSet.make_bounds(chamber.halfXShort(), chamber.halfXLong(), chamber.halfY());
268  const float thickness = chamber.halfZ() * 2;
269  PVConstLink parentVolume = chamber.readoutEles().front()->getMaterialGeom()->getParent();
270  std::pair<MaterialPtr, double> geoMaterials = getMaterial(parentVolume);
271  const Acts::Material aMat = Acts::GeoModel::geoMaterialConverter(*geoMaterials.first);
272  //rotate about the z axis
273  std::shared_ptr<Acts::PlaneSurface> surface = Acts::Surface::makeShared<Acts::PlaneSurface>(chamberTransform, bounds);
274  Acts::MaterialSlab slab{aMat, thickness};
275  std::shared_ptr<Acts::HomogeneousSurfaceMaterial> material = std::make_shared<Acts::HomogeneousSurfaceMaterial>(slab);
276  surface->assignSurfaceMaterial(material);
277  surface->assignGeometryId(Acts::GeometryIdentifier{}.setVolume(29).setSensitive(totalMaterials));
278  return surface;
279  }
280 
281  std::pair<MuonDetectorBuilderTool::MaterialPtr, double>
282  MuonDetectorBuilderTool::getMaterial(const PVConstLink& vol) const {
283  std::vector<std::pair<MaterialPtr, double>> materialContent{};
284  getMaterialContent(vol, materialContent);
285 
286  //blend the material
287  double totalVolume{0.};
288  double totalMass{0.};
289  for(const auto& [material, volume] : materialContent){
290  totalVolume += volume;
291  totalMass += volume * material->getDensity();
292  }
293 
294  //create the new GeoMaterial object
295  auto blendedMaterial = make_intrusive<GeoMaterial>("BlendedMaterial", totalMass/totalVolume);
296  for(const auto& [material, volume] : materialContent){
297  blendedMaterial->add(material, material->getDensity() * volume / totalMass);
298  }
299  blendedMaterial->lock();
300  return {blendedMaterial, totalVolume};
301  }
302 
303  void MuonDetectorBuilderTool::getMaterialContent(const PVConstLink& vol, std::vector<std::pair<MaterialPtr, double>>& materialContent) const {
304  double volume{0.};
305  if(!checkDummyMaterial(vol)) volume = vol->getLogVol()->getShape()->volume();
306  for(std::size_t c=0; c < vol->getNChildVols(); ++c){
307  const PVConstLink child = vol->getChildVol(c);
308  double childVol = child->getLogVol()->getShape()->volume();
309  //dummy material does not contribute
310  if(!checkDummyMaterial(child)) volume -= childVol;
311  getMaterialContent(child, materialContent);
312  }
313  //skip dummy materials
314  if(!checkDummyMaterial(vol)) materialContent.emplace_back(vol->getLogVol()->getMaterial(), volume);
315  }
316 
317  bool MuonDetectorBuilderTool::checkDummyMaterial(const PVConstLink& vol) const {
318  static const std::unordered_set<std::string> dummyMaterials{
319  "special::Ether",
320  "WorldLog::Air",
321  "std::Air",
322  "Air"
323  };
324  const std::string materialName = vol->getLogVol()->getMaterial()->getName();
325  return dummyMaterials.find(materialName) != dummyMaterials.end();
326  }
327 
329  const GeoChildNodeWithTrf& node,
330  const std::string& name,
331  std::vector<volumePtr>& passiveVolumes,
332  const GeoTrf::Transform3D& transform) const {
333  std::vector<GeoChildNodeWithTrf> children = getChildrenWithRef(node.volume, false);
334  for(const GeoChildNodeWithTrf& childNode : children){
335  ATH_MSG_DEBUG("Child transform " << GeoTrf::toString(childNode.transform) << " Parent transform " << GeoTrf::toString(transform));
336  ATH_MSG_DEBUG("Combined transform " << GeoTrf::toString(transform * childNode.transform));
337  ATH_MSG_DEBUG("Child name " << name+"/"+childNode.nodeName);
338  processPassiveNodes(gctx, childNode, name+"/"+childNode.nodeName, passiveVolumes, transform * childNode.transform);
339  }
340  if (!children.empty()) return;
341  ATH_MSG_VERBOSE("Drawing volume named "<<name);
342  const GeoShape* shape = node.volume->getLogVol()->getShape();
343  const GeoMaterial* geoMaterial = node.volume->getLogVol()->getMaterial();
344  const Acts::Material aMat = Acts::GeoModel::geoMaterialConverter(*geoMaterial);
345  std::shared_ptr<Acts::HomogeneousVolumeMaterial> material = std::make_shared<Acts::HomogeneousVolumeMaterial>(aMat);
346  ATH_MSG_DEBUG("FINAL TRANSFORM " << GeoTrf::toString(transform));
347  volumePtr volume = Acts::GeoModel::convertDetectorVolume(gctx.context(), *shape, name + "_" + std::to_string(passiveVolumes.size()), transform, {});
348  volume->assignGeometryId(Acts::GeometryIdentifier{}.setVolume(30).setSensitive(passiveVolumes.size()));
349  volume->assignVolumeMaterial(material);
350  passiveVolumes.push_back(volume);
351  }
352 
353 }
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
ActsTrk::MuonDetectorBuilderTool::construct
Acts::Experimental::DetectorComponent construct(const Acts::GeometryContext &context) const override final
Definition: MuonDetectorBuilderTool.cxx:77
GeoModel::TransientConstSharedPtr
The TransientConstSharedPtr allows non-const access if the pointer itself is non-const but in the con...
Definition: TransientConstSharedPtr.h:13
vtune_athena.format
format
Definition: vtune_athena.py:14
Trk::binZ
@ binZ
Definition: BinningType.h:49
calibdata.chamber
chamber
Definition: calibdata.py:32
ActsTrk::MuonDetectorBuilderTool::processPassiveNodes
void processPassiveNodes(const ActsGeometryContext &gctx, const GeoChildNodeWithTrf &node, const std::string &name, std::vector< std::shared_ptr< Acts::Experimental::DetectorVolume >> &passiveVolumes, const GeoTrf::Transform3D &transform) const
Definition: MuonDetectorBuilderTool.cxx:328
DetectorVolume
Acts::Experimental::DetectorVolume DetectorVolume
Definition: MuonDetectorBuilderTool.cxx:53
ActsTrk::MuonDetectorBuilderTool::getMaterialContent
void getMaterialContent(const PVConstLink &vol, std::vector< std::pair< MaterialPtr, double >> &materialContent) const
Definition: MuonDetectorBuilderTool.cxx:303
ActsTrk::MuonDetectorBuilderTool::getMaterial
std::pair< MaterialPtr, double > getMaterial(const PVConstLink &vol) const
Definition: MuonDetectorBuilderTool.cxx:282
ActsTrk::DetectorType::Tgc
@ Tgc
Resitive Plate Chambers.
MuonGMR4::MuonReadoutElement
The MuonReadoutElement is an abstract class representing the geometry representing the muon detector.
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonReadoutElement.h:38
ActsTrk::MuonDetectorBuilderTool::constructElements
std::pair< std::vector< std::shared_ptr< Acts::Experimental::DetectorVolume > >, std::vector< std::shared_ptr< Acts::Surface > > > constructElements(const ActsGeometryContext &gctx, const MuonGMR4::Chamber &mChamber, std::pair< unsigned int, unsigned int > chId) const
Definition: MuonDetectorBuilderTool.cxx:188
ActsTrk::surfacePtr
std::shared_ptr< Acts::Surface > surfacePtr
Definition: MuonDetectorBuilderTool.cxx:63
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
ActsTrk::DetectorType::sTgc
@ sTgc
Micromegas (NSW)
THROW_EXCEPTION
#define THROW_EXCEPTION(MSG)
Definition: MMReadoutElement.cxx:48
SpectrometerSector.h
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:77
runBeamSpotCalibration.helper
helper
Definition: runBeamSpotCalibration.py:112
ActsTrk::MuonDetectorBuilderTool::MuonDetectorBuilderTool
MuonDetectorBuilderTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard tool constructor.
Definition: MuonDetectorBuilderTool.cxx:66
MuonDetectorBuilderTool.h
ActsGeometryContext::context
Acts::GeometryContext context() const
Definition: ActsGeometryContext.h:45
MuonGMR4::Chamber
Definition: Chamber.h:22
sTgcReadoutElement.h
Trk::binY
@ binY
Definition: BinningType.h:48
ActsTrk::MuonDetectorBuilderTool::initialize
StatusCode initialize() override final
Definition: MuonDetectorBuilderTool.cxx:69
ActsTrk::MuonDetectorBuilderTool::m_dumpPassive
Gaudi::Property< bool > m_dumpPassive
Definition: MuonDetectorBuilderTool.h:51
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
Amg::toString
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Definition: GeoPrimitivesToStringConverter.h:40
ActsTrk::DetectorType::Mm
@ Mm
Maybe not needed in the migration.
MuonGMR4::MdtReadoutElement::parameterBook
Set of parameters to describe a MDT chamber.
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MdtReadoutElement.h:27
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
MuonGMR4::MuonDetectorManager::MuonChamberSet
std::set< const Chamber *, MSEnvelopeSorter > MuonChamberSet
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonDetectorManager.h:114
ActsTrk::MuonDetectorBuilderTool::m_dumpMaterialSurfaces
Gaudi::Property< bool > m_dumpMaterialSurfaces
Definition: MuonDetectorBuilderTool.h:55
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
ActsTrk::MuonDetectorBuilderTool::m_buildSensitives
Gaudi::Property< bool > m_buildSensitives
Definition: MuonDetectorBuilderTool.h:57
MuonGMR4::Chamber::ReadoutSet
std::vector< const MuonReadoutElement * > ReadoutSet
Define the list of read out elements of the chamber.
Definition: Chamber.h:25
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
ActsTrk::volumePtr
std::shared_ptr< DetectorVolume > volumePtr
Definition: MuonDetectorBuilderTool.cxx:62
MuonGMR4::Chamber::localToGlobalTrans
const Amg::Transform3D & localToGlobalTrans(const ActsGeometryContext &gctx) const
Returns the transformation chamber frame -> global transformation.
Definition: Chamber.cxx:75
test_pyathena.parent
parent
Definition: test_pyathena.py:15
find_tgc_unfilled_channelids.ip
ip
Definition: find_tgc_unfilled_channelids.py:3
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
GeometryDefs.h
ActsGeometryContext
Include the GeoPrimitives which need to be put first.
Definition: ActsGeometryContext.h:27
ActsTrk::objFileName
std::string objFileName(std::string str)
Definition: MuonDetectorBuilderTool.cxx:56
MuonChamberSet
MuonGMR4::MuonDetectorManager::MuonChamberSet MuonChamberSet
Definition: MuonDetectorBuilderTool.cxx:52
trigbs_pickEvents.num
num
Definition: trigbs_pickEvents.py:76
ActsTrk::SurfaceBoundSet
Definition: Tracking/Acts/ActsGeoUtils/ActsGeoUtils/Defs.h:17
python.PyKernel.detStore
detStore
Definition: PyKernel.py:41
MuonGMR4::MuonDetectorManager::getTreeTop
PVConstLink getTreeTop(unsigned int i) const override final
Returns the i-th top node of the MuonSystem trees.
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonDetectorManager.cxx:133
ActsTrk::SurfaceBoundSet::make_bounds
std::shared_ptr< BoundType > make_bounds(argList... args)
Factory method to create new SurfaceBounds.
Definition: SurfaceBoundSet.h:20
ActsTrk::DetectorType::Mdt
@ Mdt
MuonSpectrometer.
MuonGMR4::Chamber::readoutEles
const ReadoutSet & readoutEles() const
Returns the list of contained readout elements.
Definition: Chamber.cxx:72
ActsTrk::MuonDetectorBuilderTool::m_dumpDetector
Gaudi::Property< bool > m_dumpDetector
Definition: MuonDetectorBuilderTool.h:49
MuonGMR4::MdtReadoutElement
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MdtReadoutElement.h:22
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
ActsTrk::to_string
std::string to_string(const DetectorType &type)
Definition: GeometryDefs.h:34
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
RpcReadoutElement.h
ActsTrk::MuonDetectorBuilderTool::checkDummyMaterial
bool checkDummyMaterial(const PVConstLink &vol) const
Definition: MuonDetectorBuilderTool.cxx:317
ActsTrk::MuonDetectorBuilderTool::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: MuonDetectorBuilderTool.h:47
ActsTrk::MuonDetectorBuilderTool::m_dumpDetectorVolumes
Gaudi::Property< bool > m_dumpDetectorVolumes
Definition: MuonDetectorBuilderTool.h:53
MdtReadoutElement.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
ActsTrk::DetectorType::Rpc
@ Rpc
Monitored Drift Tubes.
python.DecayParser.children
children
Definition: DecayParser.py:32
physics_parameters.parameters
parameters
Definition: physics_parameters.py:144
IDetectorElement.h
ActsTrk
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
Definition: MuonDetectorBuilderTool.cxx:54
str
Definition: BTagTrackIpAccessor.cxx:11
ActsTrk::MuonDetectorBuilderTool::m_detMgr
const MuonGMR4::MuonDetectorManager * m_detMgr
Definition: MuonDetectorBuilderTool.h:46
MuonGMR4::Chamber::globalToLocalTrans
Amg::Transform3D globalToLocalTrans(const ActsGeometryContext &gctx) const
Returns the global -> local transformation.
Definition: Chamber.cxx:78
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
MuonGMR4::MuonDetectorManager::getAllChambers
MuonChamberSet getAllChambers() const
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/src/MuonDetectorManager.cxx:176
Material
@ Material
Definition: MaterialTypes.h:8
python.compressB64.c
def c
Definition: compressB64.py:93
TgcReadoutElement.h
calibdata.tube
tube
Definition: calibdata.py:31
ActsTrk::MuonDetectorBuilderTool::getChamberMaterial
std::shared_ptr< Acts::Surface > getChamberMaterial(const MuonGMR4::Chamber &chamber, const Amg::Transform3D &chamberTransform, const int totalMaterials, BlendedBoundSet &boundSet) const
Definition: MuonDetectorBuilderTool.cxx:263
node
Definition: memory_hooks-stdcmalloc.h:74
MmReadoutElement.h
Amg::getTranslate3D
Amg::Transform3D getTranslate3D(const double X, const double Y, const double Z)
: Returns a shift transformation along an arbitrary axis
Definition: GeoPrimitivesHelpers.h:289