Skip to content

Commit 70d6a00

Browse files
committed
Little fixes in mutual positioning of the conversion rods and end-stave blocks (Mario)
1 parent c506486 commit 70d6a00

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

ITSMFT/ITS/ITSUpgradeSim/AliITSUv2Layer.cxx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3344,7 +3344,8 @@ TGeoVolume* AliITSUv2Layer::CreateStaveModelOuterB12(const TGeoManager *mgr){
33443344

33453345
TGeoTube *gammaConvRod;
33463346
if (fAddGammaConv)
3347-
gammaConvRod = new TGeoTube("GammaConver", 0, 0.5*fGammaConvDiam, zlen);
3347+
gammaConvRod = new TGeoTube("GammaConver", 0, 0.5*fGammaConvDiam,
3348+
zlen - fgkOBCPConnHollowZLen);
33483349

33493350
TGeoBBox *flex1_5cm = new TGeoBBox("Flex1MV_5cm",xHalfSt,yFlex1/2,flexOverlap/2);
33503351
TGeoBBox *flex2_5cm = new TGeoBBox("Flex2MV_5cm",xHalfSt,yFlex2/2,flexOverlap/2);
@@ -3354,8 +3355,8 @@ TGeoVolume* AliITSUv2Layer::CreateStaveModelOuterB12(const TGeoManager *mgr){
33543355
+ fleeccent->GetDY() + graphlat->GetDY() + fleeclat->GetDY();
33553356
if (fStaveModel == AliITSUv2::kOBModel2)
33563357
yHalfSt += 2*glue->GetDY();
3357-
//IB if (fAddGammaConv)
3358-
//IB yHalfSt += fGammaConvDiam;
3358+
if (fAddGammaConv)
3359+
yHalfSt += fGammaConvDiam;
33593360

33603361
xtru[0] = xHalfSt;
33613362
ytru[0] = 0;
@@ -3365,6 +3366,7 @@ TGeoVolume* AliITSUv2Layer::CreateStaveModelOuterB12(const TGeoManager *mgr){
33653366
ytru[2] = ytru[1];
33663367
xtru[3] = xtru[2];
33673368
ytru[3] = ytru[2] - (coolTube->GetRmax() + fleectub->GetRmax());
3369+
if (fAddGammaConv) ytru[3] -= fGammaConvDiam;
33683370
xtru[4] = fgkOBCoolTubeXDist/2 - fleectub->GetRmax();
33693371
ytru[4] = ytru[3];
33703372
xtru[5] = xtru[4];
@@ -3390,6 +3392,8 @@ TGeoVolume* AliITSUv2Layer::CreateStaveModelOuterB12(const TGeoManager *mgr){
33903392
fgkOBCPConnBlockZLen/2);
33913393

33923394
// The StaveStruct container, a Composite Shape
3395+
if (fAddGammaConv)
3396+
yHalfSt -= fGammaConvDiam;
33933397
ypos = 2*yHalfSt + connAside->GetDY() - fgkOBCPConnHollowYHei;
33943398
zpos = zlen + connAside->GetDZ() - fgkOBCPConnHollowZLen;
33953399
snprintf(volname, 30, "transAsideOB%d", fLayerNumber);

0 commit comments

Comments
 (0)