Skip to content

Commit 980ee3b

Browse files
mconcassawenzel
authored andcommitted
Fix ENABLE_UPGRADES logic
1 parent 8936fef commit 980ee3b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

macro/build_geometry.C

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,14 @@ void build_geometry(FairRunSim* run = nullptr)
128128
// beam pipe
129129
if (isActivated("PIPE")) {
130130
#ifdef ENABLE_UPGRADES
131-
if (isActivated("IT3")) {
132-
run->AddModule(new o2::passive::Pipe("PIPE", "Beam pipe", 1.6f, 0.05f));
133-
}
131+
if (isActivated("IT3")) {
132+
run->AddModule(new o2::passive::Pipe("PIPE", "Beam pipe", 1.6f, 0.05f));
133+
} else {
134+
run->AddModule(new o2::passive::Pipe("PIPE", "Beam pipe"));
135+
}
136+
#else
137+
run->AddModule(new o2::passive::Pipe("PIPE", "Beam pipe"));
134138
#endif
135-
run->AddModule(new o2::passive::Pipe("PIPE", "Beam pipe"));
136139
}
137140

138141
#ifdef ENABLE_UPGRADES

0 commit comments

Comments
 (0)