Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trapezoid is represented as Trd2. What about Trd1? #460

Closed
ianna opened this issue Nov 26, 2018 · 7 comments
Closed

Trapezoid is represented as Trd2. What about Trd1? #460

ianna opened this issue Nov 26, 2018 · 7 comments

Comments

@ianna
Copy link
Contributor

ianna commented Nov 26, 2018

CMS uses Trd1 and its divisions in Y (top snapshot). Currently it is translated to DD4hep as a Trapezoid == a TGeoTrd2 which is divisible only in Z (bottom snapshot).

screenshot 2018-11-26 14 34 35
screenshot 2018-11-26 14 35 41

*** Shape csc:ME11PolycarbPanel_shape_0x7f20137d4500: TGeoTrd2 ***
    dx1 =    15.06500
    dx2 =    30.45000
    dy1 =     7.27000
    dy2 =     7.27000
    dz  =    81.00000
 Bounding box:
*** Shape csc:ME11PolycarbPanel_shape_0x7f20137d4500: TGeoBBox ***
    dX =    30.45000
    dY =     7.27000
    dZ =    81.00000
    origin: x=    0.00000 y=    0.00000 z=    0.00000
@MarkusFrankATcernch
Copy link
Contributor

Acknowledged.
I will add the corresponding shape constructor.
Any preference in the constructor signature ?
If not I hall take the ROOT signature.

@ianna
Copy link
Contributor Author

ianna commented Nov 26, 2018

I think, this is a usual Trd1:

  <Trd1 name="MECU_1_ME11Layer" dz="81*cm " dy1="[ME11CuFoilHalfThick]" dy2="[ME11CuFoilHalfThick]" dx1="15.065*cm " dx2="30.45*cm "/>

@MarkusFrankATcernch
Copy link
Contributor

This is what TGeo calls a Trd2:
TGeoTrd2(Double_t dx1, Double_t dx2, Double_t dy1, Double_t dy2, Double_t dz)
A Trd1 for them is as follows:
TGeoTrd1(Double_t dx1, Double_t dx2, Double_t dy, Double_t dz)

Is this what you meant?

@MarkusFrankATcernch
Copy link
Contributor

MarkusFrankATcernch commented Nov 27, 2018

Hi Yana,
please have a look at: #461
... and close the issue if this is what you were looking for.

@ianna
Copy link
Contributor Author

ianna commented Dec 3, 2018

This is strange dY seems to be the same, but Trd1 is twice thinner in Y:
screenshot 2018-12-03 11 48 04

*** Shape csc:ME11PolycarbPanel_shape_0x7f1dd1892800: TGeoTrd1 ***
    dx1 =    15.06500
    dx2 =    30.45000
    dy  =     7.27000
    dz  =    81.00000
 Bounding box:
*** Shape csc:ME11PolycarbPanel_shape_0x7f1dd1892800: TGeoBBox ***
    dX =    30.45000
    dY =     7.27000
    dZ =    81.00000
    origin: x=    0.00000 y=    0.00000 z=    0.00000

@MarkusFrankATcernch
Copy link
Contributor

"""This is strange dY seems to be the same, but Trd1 is twice thinner in Y:"""

Compared to what ?
I re-checked and I pass the values directly as they are to the TGeoTrd1 constructor.
TGeoTrd1 takes half lengths in x,y,z.
Is this effect originating from the raw constructor or the result of the division?

@ianna
Copy link
Contributor Author

ianna commented Dec 4, 2018

Fixed in our code. Thanks, @MarkusFrankATcernch !
screen shot 2018-12-04 at 17 26 07

@ianna ianna closed this as completed Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants