@@ -29,15 +29,15 @@ using namespace o2::passive;
2929Alice3Pipe::Alice3Pipe () : Alice3PassiveBase{" Alice3PIPE" , " " } {}
3030Alice3Pipe::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