Skip to content

Commit 59943f9

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

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
@@ -51,8 +51,9 @@ TGeoVolume* TRKLayer::createSensor(std::string type, double width)
5151
if (type == "cylinder") {
5252
sensor = new TGeoTube(mInnerRadius, mInnerRadius + mChipThickness, mZ / 2);
5353
} else if (type == "flat") {
54-
if (width < 0)
54+
if (width < 0) {
5555
LOGP(fatal, "Attempting to create sensor with invalid width");
56+
}
5657
sensor = new TGeoBBox(width / 2, mChipThickness / 2, mZ / 2);
5758
} else {
5859
LOGP(fatal, "Sensor of type '{}' is not implemented", type);

0 commit comments

Comments
 (0)