Skip to content
Snippets Groups Projects

Add ERROR messages to help debugging Pixel/StripGeoModelXml

Merged Nicholas Styles requested to merge nstyles/athena:master-geoModelXmlErrorMessaging into master
2 files
+ 16
7
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -121,15 +121,19 @@ namespace InDetDDSLHC {
//
unsigned int nChildren = world->getNChildVols();
bool foundVolume = false;
for (int iChild = nChildren - 1; iChild>=0; --iChild) {
if (world->getNameOfChildVol(iChild) == "Pixel") {
if (world->getNameOfChildVol(iChild) == "ITkPixel") {
// The * converts from a ConstPVLink to a reference to a GeoVPhysVol;
// the & takes its address.
foundVolume = true;
m_detectorManager->addTreeTop(&*world->getChildVol(iChild));
break;
}
}
if(!foundVolume) ATH_MSG_ERROR("Could not find a logicalVolume named \"ITkPixel\" - this is required to provide the Envelope!");
doNumerology();
Loading