Skip to content

Commit 6c073b2

Browse files
authored
Update Detectors/Upgrades/ALICE3/TRK/simulation/src/TRKLayer.cxx
1 parent 419e6e0 commit 6c073b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Detectors/Upgrades/ALICE3/TRK/simulation/src/TRKLayer.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,9 @@ TGeoVolume* TRKLayer::createStave(std::string type, double width)
108108
LOGP(info, "Inserting {} in {} ", chipVol->GetName(), staveVol->GetName());
109109
staveVol->AddNode(chipVol, 1, nullptr);
110110
} else if (type == "flat") {
111-
if (width < 0)
111+
if (width < 0) {
112112
LOGP(fatal, "Attempting to create stave with invalid width");
113+
}
113114
stave = new TGeoBBox(width / 2, mChipThickness / 2, mZ / 2);
114115
chipVol = createChip("flat", width);
115116
staveVol = new TGeoVolume(staveName.c_str(), stave, medAir);

0 commit comments

Comments
 (0)