ATLAS Offline Software
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 66 of file MuonDetectorBuilderTool.cxx.

66  :
67  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 317 of file MuonDetectorBuilderTool.cxx.

317  {
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  }

◆ construct()

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

Definition at line 77 of file MuonDetectorBuilderTool.cxx.

77  {
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  }

◆ 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 188 of file MuonDetectorBuilderTool.cxx.

190  {
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  }

◆ getChamberMaterial()

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

Definition at line 263 of file MuonDetectorBuilderTool.cxx.

266  {
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  }

◆ getMaterial()

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

Definition at line 282 of file MuonDetectorBuilderTool.cxx.

282  {
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  }

◆ getMaterialContent()

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

Definition at line 303 of file MuonDetectorBuilderTool.cxx.

303  {
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  }

◆ initialize()

StatusCode ActsTrk::MuonDetectorBuilderTool::initialize ( )
finaloverride

Definition at line 69 of file MuonDetectorBuilderTool.cxx.

69  {
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  }

◆ 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 328 of file MuonDetectorBuilderTool.cxx.

332  {
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  }

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
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
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
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:77
runBeamSpotCalibration.helper
helper
Definition: runBeamSpotCalibration.py:112
ActsGeometryContext::context
Acts::GeometryContext context() const
Definition: ActsGeometryContext.h:45
MuonGMR4::Chamber
Definition: Chamber.h:22
Trk::binY
@ binY
Definition: BinningType.h:48
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
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: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
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
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
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
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
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:263
node
Definition: memory_hooks-stdcmalloc.h:74
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