From 733befffdc5cc63062e8f02e49b7b877f9aef294 Mon Sep 17 00:00:00 2001 From: Antonio Iuliano Date: Tue, 17 Sep 2024 11:01:12 +0200 Subject: [PATCH] using same names for lead and tungsten volumes --- nutaudet/Target.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nutaudet/Target.cxx b/nutaudet/Target.cxx index 239da44e36..7bec571225 100644 --- a/nutaudet/Target.cxx +++ b/nutaudet/Target.cxx @@ -376,10 +376,9 @@ void Target::ConstructGeometry() volBrick->SetLineColor(kCyan); volBrick->SetTransparency(1); //need to separate the two cases, now with a ternary operator - TGeoBBox *Absorber = (fDesign < 4) ? - new TGeoBBox("Pb", EmulsionX/2, EmulsionY/2, LeadThickness/2) : new TGeoBBox("W", EmulsionX/2, EmulsionY/2, LeadThickness/2); - TGeoVolume *volAbsorber = (fDesign < 4) ? - new TGeoVolume("Lead",Absorber,lead) : new TGeoVolume("Tungsten",Absorber,tungsten); + auto *Absorber = new TGeoBBox("Absorber", EmulsionX/2, EmulsionY/2, LeadThickness/2); + auto *volAbsorber = (fDesign < 4) ? + new TGeoVolume("volAbsorber",Absorber,lead) : new TGeoVolume("volAbsorber",Absorber,tungsten); volAbsorber->SetTransparency(1); volAbsorber->SetLineColor(kGray);