Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ActsTrk::MuonDetectorBuilderTool Class Reference

#include <MuonDetectorBuilderTool.h>

Inheritance diagram for ActsTrk::MuonDetectorBuilderTool:
Collaboration diagram for ActsTrk::MuonDetectorBuilderTool:

Public Member Functions

 MuonDetectorBuilderTool (const std::string &type, const std::string &name, const IInterface *parent)
 Standard tool constructor. More...
 
virtual ~MuonDetectorBuilderTool ()=default
 
StatusCode initialize () override final
 
Acts::Experimental::DetectorComponent construct (const Acts::GeometryContext &context) const override final
 

Private Types

using BlendedBoundSet = ActsTrk::SurfaceBoundSet< Acts::TrapezoidBounds >
 
using MaterialPtr = GeoIntrusivePtr< const GeoMaterial >
 

Private Member Functions

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
 
std::shared_ptr< Acts::Surface > getChamberMaterial (const MuonGMR4::Chamber &chamber, const Amg::Transform3D &chamberTransform, const int totalMaterials, BlendedBoundSet &boundSet) const
 
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
 
bool checkDummyMaterial (const PVConstLink &vol) const
 
void getMaterialContent (const PVConstLink &vol, std::vector< std::pair< MaterialPtr, double >> &materialContent) const
 
std::pair< MaterialPtr, double > getMaterial (const PVConstLink &vol) const
 

Private Attributes

const MuonGMR4::MuonDetectorManagerm_detMgr {nullptr}
 
ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc {this, "IdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
 
Gaudi::Property< bool > m_dumpDetector {this, "dumpDetector", false, "If set to true the entire MS system are dumped into a visualization file format, will take a long time with sensitives"}
 
Gaudi::Property< bool > m_dumpPassive {this, "dumpPassive", false, "If set to true the passive volumes are dumped into a visualization file format"}
 
Gaudi::Property< bool > m_dumpDetectorVolumes {this, "dumpDetectorVolumes", false, "If set to true the detector volumes are dumped into a visualization file format, will take a long time with sensitives"}
 
Gaudi::Property< bool > m_dumpMaterialSurfaces {this, "dumpMaterialSurfaces", false, "If set to true the material surfaces are dumped into a visualization file format"}
 
Gaudi::Property< bool > m_buildSensitives {this, "BuildSensitives", true, "If set to true all sensitive elements are built"}
 

Detailed Description

Definition at line 19 of file MuonDetectorBuilderTool.h.

Member Typedef Documentation

◆ BlendedBoundSet

Definition at line 40 of file MuonDetectorBuilderTool.h.

◆ MaterialPtr

using ActsTrk::MuonDetectorBuilderTool::MaterialPtr = GeoIntrusivePtr<const GeoMaterial>
private

Definition at line 66 of file MuonDetectorBuilderTool.h.

Constructor & Destructor Documentation

◆ MuonDetectorBuilderTool()

ActsTrk::MuonDetectorBuilderTool::MuonDetectorBuilderTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Standard tool constructor.

Definition at line 67 of file MuonDetectorBuilderTool.cxx.

67  :
68  base_class(type, name, parent){}

◆ ~MuonDetectorBuilderTool()

virtual ActsTrk::MuonDetectorBuilderTool::~MuonDetectorBuilderTool ( )
virtualdefault

Member Function Documentation

◆ checkDummyMaterial()

bool ActsTrk::MuonDetectorBuilderTool::checkDummyMaterial ( const PVConstLink &  vol) const
private

Definition at line 324 of file MuonDetectorBuilderTool.cxx.

324  {
325  static const std::unordered_set<std::string> dummyMaterials{
326  "special::Ether",
327  "WorldLog::Air",
328  "std::Air",
329  "Air"
330  };
331  const std::string materialName = vol->getLogVol()->getMaterial()->getName();
332  return dummyMaterials.find(materialName) != dummyMaterials.end();
333  }

◆ construct()

Acts::Experimental::DetectorComponent ActsTrk::MuonDetectorBuilderTool::construct ( const Acts::GeometryContext &  context) const
finaloverride

Definition at line 78 of file MuonDetectorBuilderTool.cxx.

78  {
79  ATH_MSG_DEBUG("Building Muon Detector Volume");
80  const MuonChamberSet chambers = m_detMgr->getAllChambers();
81  const ActsGeometryContext* gctx = context.get<const ActsGeometryContext* >();
82  std::vector< volumePtr > detectorVolumeBoundingVolumes{};
83  std::vector< volumePtr > detectorVolumePassiveVolumes{};
84 
85  detectorVolumeBoundingVolumes.reserve(chambers.size());
86  std::vector<surfacePtr> surfaces{};
87  std::vector<surfacePtr> materialSurfaces{};
88 
89  auto portalGenerator = Acts::Experimental::defaultPortalAndSubPortalGenerator();
90  unsigned int numChambers = chambers.size();
91 
92  BlendedBoundSet materialBounds{};
93  for(const MuonGMR4::Chamber* chamber : chambers){
94  unsigned int num = 0;
95  //Gather the passives in each chamber
96  surfacePtr material{getChamberMaterial(*chamber, chamber->localToGlobalTrans(*gctx), materialSurfaces.size(), materialBounds)};
97  std::shared_ptr<Acts::TrapezoidVolumeBounds> bounds = chamber->bounds();
98  materialSurfaces.push_back(material);
99  std::pair<std::vector<volumePtr>, std::vector<surfacePtr>> readoutElements =
100  constructElements(*gctx, *chamber, std::make_pair(numChambers,num));
101  readoutElements.second.push_back(material);
102  volumePtr detectorVolume = Acts::Experimental::DetectorVolumeFactory::construct(portalGenerator,
103  gctx->context(),
104  chamber->identString(),
105  chamber->localToGlobalTrans(*gctx),
106  bounds, readoutElements.second,
107  readoutElements.first,
108  Acts::Experimental::tryAllSubVolumes(),
109  Acts::Experimental::tryAllPortalsAndSurfaces());
110 
111  detectorVolume->assignGeometryId(Acts::GeometryIdentifier{}.withLayer(numChambers--));
113  //If we want to view each volume independently
114  Acts::ObjVisualization3D helper;
115  Acts::GeometryView3D::drawDetectorVolume(helper, *detectorVolume, gctx->context());
116  helper.write(objFileName(chamber->identString()));
117  helper.clear();
118  }
119  detectorVolumeBoundingVolumes.push_back(std::move(detectorVolume));
120  readoutElements.first.clear();
121  readoutElements.second.clear();
122  }
123 
125  Acts::ObjVisualization3D helper;
126  for (const auto& surf : materialSurfaces){
127  Acts::GeometryView3D::drawSurface(helper, *surf, gctx->context());
128  }
129  helper.write("materialSurfaces.obj");
130  helper.clear();
131  }
132 
133  ATH_MSG_VERBOSE("Number of detector volumes: "<< detectorVolumeBoundingVolumes.size());
134  ATH_MSG_VERBOSE("Number of chamber passives volumes: "<< detectorVolumePassiveVolumes.size());
135  std::vector<GeoChildNodeWithTrf> childNodes = getChildrenWithRef(m_detMgr->getTreeTop(0), false);
136  std::set<std::string> skipNodes{"MuonBarrel", "NSW", "MuonEndcap_sideA", "MuonEndcap_sideC","TGCSystem"};
137  for (const GeoChildNodeWithTrf& node : childNodes){
138  //These are taken care of in the chambers
139  if(skipNodes.count(node.nodeName)) {
140  ATH_MSG_VERBOSE("Skipping volume "<<node.nodeName);
141  continue;
142  }
143  ATH_MSG_VERBOSE("Processing passive node "<<node.nodeName);
144  // processPassiveNodes(*gctx, node, node.nodeName, detectorVolumePassiveVolumes, node.transform);
145  }
146  ATH_MSG_VERBOSE("Number of total passive volumes: "<< detectorVolumePassiveVolumes.size());
147 
148  if (m_dumpPassive){
149  ATH_MSG_VERBOSE("Writing passiveVolumes.obj");
150  Acts::ObjVisualization3D helper;
151  for (const auto& vol : detectorVolumePassiveVolumes){
152  Acts::GeometryView3D::drawDetectorVolume(helper, *vol, gctx->context());
153  }
154  helper.write(objFileName("passiveVolumes"));
155  helper.clear();
156  }
157 
158  //Add the passive volumes to the end of detectorVolumeBoundingVolumes
159  detectorVolumeBoundingVolumes.insert(detectorVolumeBoundingVolumes.end(), detectorVolumePassiveVolumes.begin(), detectorVolumePassiveVolumes.end());
160 
161  std::unique_ptr<Acts::CutoutCylinderVolumeBounds> msBounds = std::make_unique<Acts::CutoutCylinderVolumeBounds>(0, 4000, 14500, 22500, 3200);
162  volumePtr msDetectorVolume = Acts::Experimental::DetectorVolumeFactory::construct(
163  portalGenerator, gctx->context(), "Muon Spectrometer Envelope",
164  Acts::Transform3::Identity(), std::move(msBounds), surfaces,
165  detectorVolumeBoundingVolumes, Acts::Experimental::tryAllSubVolumes(),
166  Acts::Experimental::tryAllPortalsAndSurfaces());
167  msDetectorVolume->assignGeometryId(Acts::GeometryIdentifier{}.withVolume(15));
168 
169  if (m_dumpDetector) {
170  ATH_MSG_VERBOSE("Writing detector.obj");
171  Acts::ObjVisualization3D helper;
172  Acts::GeometryView3D::drawDetectorVolume(helper, *msDetectorVolume, gctx->context());
173  helper.write(objFileName("detector"));
174  helper.clear();
175  }
176 
177  Acts::Experimental::DetectorComponent::PortalContainer portalContainer;
178  for (auto [ip, p] : Acts::enumerate(msDetectorVolume->portalPtrs())) {
179  portalContainer[ip] = p;
180  }
181  detectorVolumeBoundingVolumes.push_back(msDetectorVolume);
182  return Acts::Experimental::DetectorComponent{
183  {detectorVolumeBoundingVolumes},
184  portalContainer,
185  {{msDetectorVolume}, Acts::Experimental::tryAllSubVolumes()}};
186  }

◆ constructElements()

std::pair< std::vector< volumePtr >, std::vector< surfacePtr > > ActsTrk::MuonDetectorBuilderTool::constructElements ( const ActsGeometryContext gctx,
const MuonGMR4::Chamber mChamber,
std::pair< unsigned int, unsigned int >  chId 
) const
private

Definition at line 189 of file MuonDetectorBuilderTool.cxx.

191  {
192 
193  std::vector<volumePtr> readoutDetectorVolumes{};
194  std::vector<surfacePtr> readoutSurfaces{};
195  if(!m_buildSensitives) return std::make_pair(readoutDetectorVolumes, readoutSurfaces);
196  Acts::GeometryIdentifier::Value surfId{1};
197  Acts::GeometryIdentifier::Value mdtId{1};
198 
199  const MuonGMR4::Chamber::ReadoutSet& readoutElements = mChamber.readoutEles();
200 
201  for(const MuonGMR4::MuonReadoutElement* ele : readoutElements){
202  switch (ele->detectorType()) {
203  case DetectorType::Mdt: {
204  ATH_MSG_VERBOSE("Building MultiLayer for MDT Detector Volume");
205  const auto* mdtReadoutEle = static_cast<const MuonGMR4::MdtReadoutElement*>(ele);
206  const MuonGMR4::MdtReadoutElement::parameterBook& parameters{mdtReadoutEle->getParameters()};
207  std::vector<surfacePtr> surfaces{};
208  //loop over the tubes to get the surfaces
209  for(unsigned int lay=1; lay<=mdtReadoutEle->numLayers(); ++lay){
210  for(unsigned int tube=1; tube<=mdtReadoutEle->numTubesInLay(); ++tube){
211  const IdentifierHash measHash{mdtReadoutEle->measurementHash(lay,tube)};
212  if (!mdtReadoutEle->isValid(measHash)) continue;
213  surfacePtr surface = mdtReadoutEle->surfacePtr(measHash);
214  surface->assignGeometryId(Acts::GeometryIdentifier{}.withLayer(chId.first).withVolume(chId.second).withBoundary(mdtId).withSensitive(++surfId));
215  surfaces.push_back(surface);
216  }
217  }
218 
219  //Get the transformation to the chamber's frame
220  const Amg::Vector3D toChamber = mChamber.globalToLocalTrans(gctx)*mdtReadoutEle->center(gctx);
221  const Acts::Transform3 mdtTransform = mChamber.localToGlobalTrans(gctx) * Amg::getTranslate3D(toChamber);
222 
223  Acts::Experimental::MultiWireStructureBuilder::Config mlCfg{};
224  mlCfg.name = m_idHelperSvc->toStringDetEl(mdtReadoutEle->identify());
225  mlCfg.mlSurfaces = std::move(surfaces);
226  mlCfg.transform = mdtTransform;
227  auto mdtBounds = std::make_unique<Acts::TrapezoidVolumeBounds>(parameters.shortHalfX, parameters.longHalfX, parameters.halfY, parameters.halfHeight);
228  using BoundsV = Acts::TrapezoidVolumeBounds::BoundValues;
229  mlCfg.mlBounds= mdtBounds->values();
230  Acts::ProtoAxis a1(Acts::AxisDirection::AxisY,
231  Acts::AxisBoundaryType::Bound,
232  -mdtBounds->get(BoundsV::eHalfLengthXnegY),
233  mdtBounds->get(BoundsV::eHalfLengthXposY),
234  std::lround(2*mdtBounds->get(BoundsV::eHalfLengthXposY)/parameters.tubePitch));
235 
236  mlCfg.mlBinning = {{{Acts::AxisDirection::AxisY, Acts::AxisBoundaryType::Bound,
237  -mdtBounds->get(BoundsV::eHalfLengthXnegY),
238  mdtBounds->get(BoundsV::eHalfLengthXposY),
239  static_cast<std::size_t>(std::lround(2*mdtBounds->get(BoundsV::eHalfLengthXposY)/parameters.tubePitch))}, 0u},
240  {{Acts::AxisDirection::AxisZ, Acts::AxisBoundaryType::Bound,
241  -mdtBounds->get(BoundsV::eHalfLengthY),
242  mdtBounds->get(BoundsV::eHalfLengthY),
243  static_cast<std::size_t>(std::lround(2*mdtBounds->get(BoundsV::eHalfLengthY)/parameters.tubePitch))}, 0u}};
244 
245  Acts::Experimental::MultiWireStructureBuilder mdtBuilder(mlCfg);
246  volumePtr mdtVolume = mdtBuilder.construct(gctx.context()).volumes[0];
247  mdtVolume->assignGeometryId(Acts::GeometryIdentifier{}.withLayer(chId.first).withVolume(chId.second).withBoundary(mdtId++));
248  readoutDetectorVolumes.push_back(mdtVolume);
249  break;
250  } case DetectorType::Rpc:
251  case DetectorType::Tgc:
252  case DetectorType::sTgc:
253  case DetectorType::Mm: {
254  ATH_MSG_VERBOSE("Building plane surfaces "<<m_idHelperSvc->toStringDetEl(ele->identify()));
255  std::vector<surfacePtr> detSurfaces = ele->getSurfaces();
256  for (surfacePtr& surf : detSurfaces) {
257  surf->assignGeometryId(Acts::GeometryIdentifier{}.withLayer(chId.first).withVolume(chId.second).withSensitive(++surfId));
258  readoutSurfaces.push_back(std::move(surf));
259  }
260  break;
261  } default:
262  THROW_EXCEPTION("Unknown detector type "<<ActsTrk::to_string(ele->detectorType()));
263  }
264  }
265 
266  return std::make_pair(std::move(readoutDetectorVolumes), std::move(readoutSurfaces));
267 
268  }

◆ getChamberMaterial()

surfacePtr ActsTrk::MuonDetectorBuilderTool::getChamberMaterial ( const MuonGMR4::Chamber chamber,
const Amg::Transform3D chamberTransform,
const int  totalMaterials,
BlendedBoundSet boundSet 
) const
private

Definition at line 270 of file MuonDetectorBuilderTool.cxx.

273  {
274  std::shared_ptr<const Acts::PlanarBounds> bounds = boundSet.make_bounds(chamber.halfXShort(), chamber.halfXLong(), chamber.halfY());
275  const float thickness = chamber.halfZ() * 2;
276  PVConstLink parentVolume = chamber.readoutEles().front()->getMaterialGeom()->getParent();
277  std::pair<MaterialPtr, double> geoMaterials = getMaterial(parentVolume);
278  const Acts::Material aMat = Acts::GeoModel::geoMaterialConverter(*geoMaterials.first);
279  //rotate about the z axis
280  std::shared_ptr<Acts::PlaneSurface> surface = Acts::Surface::makeShared<Acts::PlaneSurface>(chamberTransform, bounds);
281  Acts::MaterialSlab slab{aMat, thickness};
282  std::shared_ptr<Acts::HomogeneousSurfaceMaterial> material = std::make_shared<Acts::HomogeneousSurfaceMaterial>(slab);
283  surface->assignSurfaceMaterial(material);
284  surface->assignGeometryId(Acts::GeometryIdentifier{}.withVolume(29).withSensitive(totalMaterials));
285  return surface;
286  }

◆ getMaterial()

std::pair< MuonDetectorBuilderTool::MaterialPtr, double > ActsTrk::MuonDetectorBuilderTool::getMaterial ( const PVConstLink &  vol) const
private

Definition at line 289 of file MuonDetectorBuilderTool.cxx.

289  {
290  std::vector<std::pair<MaterialPtr, double>> materialContent{};
291  getMaterialContent(vol, materialContent);
292 
293  //blend the material
294  double totalVolume{0.};
295  double totalMass{0.};
296  for(const auto& [material, volume] : materialContent){
297  totalVolume += volume;
298  totalMass += volume * material->getDensity();
299  }
300 
301  //create the new GeoMaterial object
302  auto blendedMaterial = make_intrusive<GeoMaterial>("BlendedMaterial", totalMass/totalVolume);
303  for(const auto& [material, volume] : materialContent){
304  blendedMaterial->add(material, material->getDensity() * volume / totalMass);
305  }
306  blendedMaterial->lock();
307  return {blendedMaterial, totalVolume};
308  }

◆ getMaterialContent()

void ActsTrk::MuonDetectorBuilderTool::getMaterialContent ( const PVConstLink &  vol,
std::vector< std::pair< MaterialPtr, double >> &  materialContent 
) const
private

Definition at line 310 of file MuonDetectorBuilderTool.cxx.

310  {
311  double volume{0.};
312  if(!checkDummyMaterial(vol)) volume = vol->getLogVol()->getShape()->volume();
313  for(std::size_t c=0; c < vol->getNChildVols(); ++c){
314  const PVConstLink child = vol->getChildVol(c);
315  double childVol = child->getLogVol()->getShape()->volume();
316  //dummy material does not contribute
317  if(!checkDummyMaterial(child)) volume -= childVol;
318  getMaterialContent(child, materialContent);
319  }
320  //skip dummy materials
321  if(!checkDummyMaterial(vol)) materialContent.emplace_back(vol->getLogVol()->getMaterial(), volume);
322  }

◆ initialize()

StatusCode ActsTrk::MuonDetectorBuilderTool::initialize ( )
finaloverride

Definition at line 70 of file MuonDetectorBuilderTool.cxx.

70  {
72  ATH_CHECK(m_idHelperSvc.retrieve());
73  ATH_MSG_DEBUG("ACTS version is: v"<< Acts::VersionMajor << "." << Acts::VersionMinor << "." << Acts::VersionPatch << " [" << Acts::CommitHash << "]");
74 
75  return StatusCode::SUCCESS;
76  }

◆ processPassiveNodes()

void ActsTrk::MuonDetectorBuilderTool::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
private

Definition at line 335 of file MuonDetectorBuilderTool.cxx.

339  {
340  std::vector<GeoChildNodeWithTrf> children = getChildrenWithRef(node.volume, false);
341  for(const GeoChildNodeWithTrf& childNode : children){
342  ATH_MSG_DEBUG("Child transform " << GeoTrf::toString(childNode.transform) << " Parent transform " << GeoTrf::toString(transform));
343  ATH_MSG_DEBUG("Combined transform " << GeoTrf::toString(transform * childNode.transform));
344  ATH_MSG_DEBUG("Child name " << name+"/"+childNode.nodeName);
345  processPassiveNodes(gctx, childNode, name+"/"+childNode.nodeName, passiveVolumes, transform * childNode.transform);
346  }
347  if (!children.empty()) return;
348  ATH_MSG_VERBOSE("Drawing volume named "<<name);
349  const GeoShape* shape = node.volume->getLogVol()->getShape();
350  const GeoMaterial* geoMaterial = node.volume->getLogVol()->getMaterial();
351  const Acts::Material aMat = Acts::GeoModel::geoMaterialConverter(*geoMaterial);
352  std::shared_ptr<Acts::HomogeneousVolumeMaterial> material = std::make_shared<Acts::HomogeneousVolumeMaterial>(aMat);
353  ATH_MSG_DEBUG("FINAL TRANSFORM " << GeoTrf::toString(transform));
354  volumePtr volume = Acts::GeoModel::convertDetectorVolume(gctx.context(), *shape, name + "_" + std::to_string(passiveVolumes.size()), transform, {});
355  volume->assignGeometryId(Acts::GeometryIdentifier{}.withVolume(30).withSensitive(passiveVolumes.size()));
356  volume->assignVolumeMaterial(material);
357  passiveVolumes.push_back(volume);
358  }

Member Data Documentation

◆ m_buildSensitives

Gaudi::Property<bool> ActsTrk::MuonDetectorBuilderTool::m_buildSensitives {this, "BuildSensitives", true, "If set to true all sensitive elements are built"}
private

Definition at line 57 of file MuonDetectorBuilderTool.h.

◆ m_detMgr

const MuonGMR4::MuonDetectorManager* ActsTrk::MuonDetectorBuilderTool::m_detMgr {nullptr}
private

Definition at line 46 of file MuonDetectorBuilderTool.h.

◆ m_dumpDetector

Gaudi::Property<bool> ActsTrk::MuonDetectorBuilderTool::m_dumpDetector {this, "dumpDetector", false, "If set to true the entire MS system are dumped into a visualization file format, will take a long time with sensitives"}
private

Definition at line 49 of file MuonDetectorBuilderTool.h.

◆ m_dumpDetectorVolumes

Gaudi::Property<bool> ActsTrk::MuonDetectorBuilderTool::m_dumpDetectorVolumes {this, "dumpDetectorVolumes", false, "If set to true the detector volumes are dumped into a visualization file format, will take a long time with sensitives"}
private

Definition at line 53 of file MuonDetectorBuilderTool.h.

◆ m_dumpMaterialSurfaces

Gaudi::Property<bool> ActsTrk::MuonDetectorBuilderTool::m_dumpMaterialSurfaces {this, "dumpMaterialSurfaces", false, "If set to true the material surfaces are dumped into a visualization file format"}
private

Definition at line 55 of file MuonDetectorBuilderTool.h.

◆ m_dumpPassive

Gaudi::Property<bool> ActsTrk::MuonDetectorBuilderTool::m_dumpPassive {this, "dumpPassive", false, "If set to true the passive volumes are dumped into a visualization file format"}
private

Definition at line 51 of file MuonDetectorBuilderTool.h.

◆ m_idHelperSvc

ServiceHandle<Muon::IMuonIdHelperSvc> ActsTrk::MuonDetectorBuilderTool::m_idHelperSvc {this, "IdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}
private

Definition at line 47 of file MuonDetectorBuilderTool.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
ActsTrk::MuonDetectorBuilderTool::BlendedBoundSet
ActsTrk::SurfaceBoundSet< Acts::TrapezoidBounds > BlendedBoundSet
Definition: MuonDetectorBuilderTool.h:40
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:335
ActsTrk::MuonDetectorBuilderTool::getMaterialContent
void getMaterialContent(const PVConstLink &vol, std::vector< std::pair< MaterialPtr, double >> &materialContent) const
Definition: MuonDetectorBuilderTool.cxx:310
ActsTrk::MuonDetectorBuilderTool::getMaterial
std::pair< MaterialPtr, double > getMaterial(const PVConstLink &vol) const
Definition: MuonDetectorBuilderTool.cxx:289
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:189
ActsTrk::surfacePtr
std::shared_ptr< Acts::Surface > surfacePtr
Definition: MuonDetectorBuilderTool.cxx:64
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
ActsTrk::DetectorType::sTgc
@ sTgc
Micromegas (NSW)
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:77
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
runBeamSpotCalibration.helper
helper
Definition: runBeamSpotCalibration.py:112
ActsGeometryContext::context
Acts::GeometryContext context() const
Definition: ActsGeometryContext.h:45
MuonGMR4::Chamber
Definition: Chamber.h:22
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:26
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
ActsTrk::MuonDetectorBuilderTool::m_dumpMaterialSurfaces
Gaudi::Property< bool > m_dumpMaterialSurfaces
Definition: MuonDetectorBuilderTool.h:55
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:63
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
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:57
MuonChamberSet
MuonGMR4::MuonDetectorManager::MuonChamberSet MuonChamberSet
Definition: MuonDetectorBuilderTool.cxx:53
trigbs_pickEvents.num
num
Definition: trigbs_pickEvents.py:76
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::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
THROW_EXCEPTION
#define THROW_EXCEPTION(MESSAGE)
Definition: throwExcept.h:10
ActsTrk::MuonDetectorBuilderTool::checkDummyMaterial
bool checkDummyMaterial(const PVConstLink &vol) const
Definition: MuonDetectorBuilderTool.cxx:324
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
ActsTrk::DetectorType::Rpc
@ Rpc
Monitored Drift Tubes.
python.DecayParser.children
children
Definition: DecayParser.py:32
physics_parameters.parameters
parameters
Definition: physics_parameters.py:144
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
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:270
node
Definition: node.h:21
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