Skip to content

Commit

Permalink
using same names for lead and tungsten volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioiuliano2 committed Sep 17, 2024
1 parent 5066f65 commit 733beff
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nutaudet/Target.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 733beff

Please sign in to comment.