6#include <GeoModelKernel/GeoVolumeCursor.h>
14 ATH_CHECK(detStore()->retrieve(theExpt,
"ATLAS"));
16 const std::vector<std::string>& nodeNames{
m_treeTops};
17 if (nodeNames.empty()) {
18 return StatusCode::SUCCESS;
20 std::vector<PVConstLink> treeTops{};
24 while (!cursor.atEnd()) {
25 std::string volName = cursor.getName();
26 ATH_MSG_VERBOSE(
"Check whether \""<<volName<<
"\" belongs to the muon world. ");
27 if (std::ranges::find(nodeNames, volName) != nodeNames.end()) {
28 treeTops.push_back(cursor.getVolume());
32 ATH_MSG_DEBUG(
"Include "<<treeTops.size()<<
"/"<<nodeNames.size()
33 <<
" nodes into the toroid manager ("<<
m_mgrName<<
").");
34 if (treeTops.empty()) {
36 return StatusCode::FAILURE;
40 for (
const auto& link : treeTops) {
46 return StatusCode::SUCCESS;
51 return StatusCode::SUCCESS;
59 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
GeoPhysVol * getPhysVol()
Destructor.
void addManager(const GeoVDetectorManager *)
Simple detector manager that just holds the tree tops to the components representing the passive muon...
The ReadoutGeomCnvAlg converts the Run4 Readout geometry build from the GeoModelXML into the legacy M...