Skip to content

Commit 433ed5c

Browse files
committed
Fix extrusions and overlaps
1 parent 7f8fc19 commit 433ed5c

2 files changed

Lines changed: 15 additions & 14 deletions

File tree

  • Detectors/Upgrades/ALICE3/Passive

Detectors/Upgrades/ALICE3/Passive/include/Alice3DetectorsPassive/Pipe.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Alice3Pipe : public Alice3PassiveBase
2525
~Alice3Pipe() override;
2626
Alice3Pipe(const char* name,
2727
const char* title = "Alice 3 Pipe",
28-
const bool isAlone = false,
28+
const bool isTRKActivated = false,
2929
const float rMinInnerPipe = 0.f,
3030
const float innerThickness = 0.f,
3131
const float innerLength = 0.f,
@@ -48,22 +48,22 @@ class Alice3Pipe : public Alice3PassiveBase
4848
float getOuterWidth() const { return mBeOuterPipeThick; }
4949
float getOuterDz() const { return mOuterIpHLength; }
5050

51-
bool getIsAlone() const { return mIsAlone; }
51+
bool IsTRKActivated() const { return mIsTRKActivated; }
5252

5353
private:
5454
void createMaterials();
5555
Alice3Pipe(const Alice3Pipe& orig) = default;
5656
Alice3Pipe& operator=(const Alice3Pipe&);
5757

58-
float mBeInnerPipeRmin = 0.; // inner diameter of the Be section
59-
float mBeInnerPipeThick = 0.; // inner section thickness
58+
float mBeInnerPipeRmin = 0.; // inner diameter of the inner Be section
59+
float mBeInnerPipeThick = 0.; // inner beam pipe section thickness
6060
float mInnerIpHLength = 0.; // half length of the inner beampipe around the IP
6161

62-
float mBeOuterPipeRmin = 0.; // outer diameter of the Be section
63-
float mBeOuterPipeThick = 0.; // outer section thickness
62+
float mBeOuterPipeRmin = 0.; // inner diameter of the outer Be section
63+
float mBeOuterPipeThick = 0.; // outer beam pipe section thickness
6464
float mOuterIpHLength = 0.; // half length of the outer beampipe around the IP
6565

66-
bool mIsAlone = true; // If A3IP is simulated alone don't subtract TRK shapes
66+
bool mIsTRKActivated = true; // If TRK is not active don't create TRK layers allocations in the vacuum volume
6767

6868
ClassDefOverride(Alice3Pipe, 1);
6969
};

Detectors/Upgrades/ALICE3/Passive/src/Pipe.cxx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ using namespace o2::passive;
2929
Alice3Pipe::Alice3Pipe() : Alice3PassiveBase{"Alice3PIPE", ""} {}
3030
Alice3Pipe::Alice3Pipe(const char* name,
3131
const char* title,
32-
bool isAlone,
32+
bool isTRKActivated,
3333
float rMinInnerPipe,
3434
float innerThickness,
3535
float innerLength,
3636
float rMinOuterPipe,
3737
float outerThickness,
3838
float outerLength)
3939
: Alice3PassiveBase{name, title},
40-
mIsAlone{isAlone},
40+
mIsTRKActivated{isTRKActivated},
4141
mBeInnerPipeRmin{rMinInnerPipe},
4242
mBeInnerPipeThick{innerThickness},
4343
mInnerIpHLength{innerLength},
@@ -104,14 +104,14 @@ void Alice3Pipe::ConstructGeometry()
104104
TGeoVolume* outerBeTubeVolume = new TGeoVolume("OUT_PIPE", outerBeTube, kMedBe);
105105
outerBeTubeVolume->SetLineColor(kBlue);
106106

107-
TGeoTube* outerBerylliumTubeVacuumBase = new TGeoTube("OUT_PIPEVACUUM_BASEsh", 0., mBeOuterPipeRmin, mOuterIpHLength); // Vacuum filling for outer pipe
108-
TGeoCompositeShape* outerBerylliumTubeVacuumComposite; // Composite volume to subctract to vacuum
109-
TGeoVolume* outerBerylliumTubeVacuumVolume; // Final volume to be used
107+
TGeoTube* outerBerylliumTubeVacuumBase = new TGeoTube("OUT_PIPEVACUUM_BASEsh", mBeInnerPipeRmin + mBeInnerPipeThick, mBeOuterPipeRmin, mOuterIpHLength); // Vacuum filling for outer pipe
108+
TGeoCompositeShape* outerBerylliumTubeVacuumComposite; // Composite volume to subctract to vacuum
109+
TGeoVolume* outerBerylliumTubeVacuumVolume; // Final volume to be used
110110

111111
TString compositeFormula{"OUT_PIPEVACUUM_BASEsh"}; // If pipe is alone we won't subctract anything
112112
TString subtractorsFormula;
113113

114-
if (!mIsAlone) {
114+
if (!mIsTRKActivated) {
115115
std::vector<TGeoTube*> trkLayerShapes;
116116
std::vector<std::array<float, 3>> layersQuotas = {std::array<float, 3>{0.5f, 15.f, 50.e-4}, // TODO: Set layers dynamically. {radius, zLen, thickness}
117117
std::array<float, 3>{1.2f, 15.f, 50.e-4},
@@ -139,7 +139,8 @@ void Alice3Pipe::ConstructGeometry()
139139
outerBerylliumTubeVacuumVolume->SetTransparency(50);
140140
outerBerylliumTubeVacuumVolume->SetLineColor(kGreen);
141141

142-
outerBeTubeVolume->AddNode(outerBerylliumTubeVacuumVolume, 1, gGeoIdentity);
142+
// outerBeTubeVolume->AddNode(outerBerylliumTubeVacuumVolume, 1, gGeoIdentity);
143+
barrel->AddNode(outerBerylliumTubeVacuumVolume, 1, new TGeoTranslation(0, 30.f, 0));
143144

144145
barrel->AddNode(outerBeTubeVolume, 1, new TGeoTranslation(0, 30.f, 0)); // Add to surrounding geometry
145146

0 commit comments

Comments
 (0)