Skip to content

Commit

Permalink
refactor(DD4hep): change logger level for conversion fail (#3092)
Browse files Browse the repository at this point in the history
resolves #3080, as discussed on 09.04.2024 in the developers meeting.
  • Loading branch information
AJPfleger authored Apr 10, 2024
1 parent f19e1e9 commit 5d3461f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Plugins/DD4hep/src/ConvertDD4hepDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ std::shared_ptr<const CylinderVolumeBuilder> volumeBuilder_dd4hep(
<< (subDetector.type() == "compound" ? "yes" : "no"));

if (subDetector.type() == "compound") {
ACTS_VERBOSE("Subdetector : '" << subDetector.name()
<< "' has type compound ");
ACTS_VERBOSE("Subdetector: '" << subDetector.name()
<< "' has type compound ");
ACTS_VERBOSE(
"handling as a compound volume (a hierarchy of a "
"barrel-endcap structure) and resolving the "
Expand Down Expand Up @@ -196,7 +196,7 @@ std::shared_ptr<const CylinderVolumeBuilder> volumeBuilder_dd4hep(
bool pEndCap = false;
bool barrel = false;
for (auto& volumeDetElement : compounds) {
ACTS_VERBOSE("Volume : '"
ACTS_VERBOSE("Volume: '"
<< subDetector.name()
<< "' is a compound volume -> resolve the sub volumes");

Expand All @@ -219,8 +219,8 @@ std::shared_ptr<const CylinderVolumeBuilder> volumeBuilder_dd4hep(
dd4hep::DetType type{volumeDetElement.typeFlag()};

if (type.is(dd4hep::DetType::ENDCAP)) {
ACTS_VERBOSE(std::string("Subvolume : '") + volumeDetElement.name() +
std::string("' is marked ENDCAP"));
ACTS_VERBOSE("Subvolume: '" << volumeDetElement.name()
<< "' is marked ENDCAP");
if (zPos < 0.) {
if (nEndCap) {
throw std::logic_error(
Expand Down Expand Up @@ -293,8 +293,8 @@ std::shared_ptr<const CylinderVolumeBuilder> volumeBuilder_dd4hep(
"hierarchy.");
}
barrel = true;
ACTS_VERBOSE("Subvolume : " << volumeDetElement.name()
<< " is marked as BARREL");
ACTS_VERBOSE("Subvolume: " << volumeDetElement.name()
<< " is marked as BARREL");
ACTS_VERBOSE("-> collecting layers");
collectLayers_dd4hep(volumeDetElement, centralLayers, logger);
// Fill the volume material for barrel case
Expand Down Expand Up @@ -391,8 +391,8 @@ std::shared_ptr<const CylinderVolumeBuilder> volumeBuilder_dd4hep(
return cylinderVolumeBuilder;
} else if (subDetType.is(dd4hep::DetType::BEAMPIPE) ||
getParamOr<bool>("passive_layer", subDetector, false)) {
ACTS_VERBOSE("Subdetector : " << subDetector.name()
<< " - building a passive cylinder.");
ACTS_VERBOSE("Subdetector: " << subDetector.name()
<< " - building a passive cylinder.");

if (subDetType.is(dd4hep::DetType::BEAMPIPE)) {
ACTS_VERBOSE("This is the beam pipe - will be built to r -> 0.");
Expand Down Expand Up @@ -529,8 +529,8 @@ std::shared_ptr<const CylinderVolumeBuilder> volumeBuilder_dd4hep(
logger.clone(std::string("D2A_V:") + subDetector.name()));
return cylinderVolumeBuilder;
} else {
ACTS_INFO(
"Subdetector with name : '"
ACTS_WARNING(
"Subdetector with name: '"
<< subDetector.name()
<< "' has inconsistent information for translation and is not of type "
"'compound'. If you want to have this DetElement be translated "
Expand Down

0 comments on commit 5d3461f

Please sign in to comment.