Skip to content

Commit

Permalink
fix handling of air/iron in DD4hep MF construction
Browse files Browse the repository at this point in the history
  • Loading branch information
namapane committed Apr 30, 2021
1 parent 6d2f660 commit e0bd8d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MagneticField/GeomBuilder/src/DD4hep_volumeHandle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ volumeHandle::volumeHandle(const cms::DDFilteredView &fv, bool expand2Pi, bool d
<< "ctor: Unexpected shape # " << static_cast<int>(theShape) << " for vol " << name;
}

// Get material for this volume
if (fv.materialName() == "Iron")
// The only materials used in the geometry are: materials:Air, d=0.001214; materials:Iron, d=7.87
if (fv.volume().material().density() > 3.)
isIronFlag = true;

if (debug) {
Expand Down

0 comments on commit e0bd8d2

Please sign in to comment.