Skip to content

Commit c3553cb

Browse files
committed
colors
1 parent 303c84f commit c3553cb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Detectors/Upgrades/ALICE3/FD/simulation/src/Detector.cxx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,10 @@ TGeoVolumeAssembly* Detector::buildModuleA()
310310
float phimax = dphiDeg * (ic + 1);
311311
auto tbs = new TGeoTubeSeg("tbs", rmin, rmax, mDzScint, phimin, phimax);
312312
auto nod = new TGeoVolume(nodeName.c_str(), tbs, medium);
313-
nod->SetLineColor(kRed);
313+
if ((ir + ic) % 2 == 0)
314+
nod->SetLineColor(kRed);
315+
else
316+
nod->SetLineColor(kRed - 7);
314317
ring->AddNode(nod, cellId);
315318
}
316319
mod->AddNode(ring, ir + 1);
@@ -354,7 +357,10 @@ TGeoVolumeAssembly* Detector::buildModuleC()
354357
float phimax = dphiDeg * (ic + 1);
355358
auto tbs = new TGeoTubeSeg("tbs", rmin, rmax, mDzScint, phimin, phimax);
356359
auto nod = new TGeoVolume(nodeName.c_str(), tbs, medium);
357-
nod->SetLineColor(kBlue);
360+
if ((ir + ic) % 2 == 0)
361+
nod->SetLineColor(kBlue);
362+
else
363+
nod->SetLineColor(kBlue - 7);
358364
ring->AddNode(nod, cellId);
359365
}
360366
mod->AddNode(ring, ir + 1);

0 commit comments

Comments
 (0)