FairShip
Loading...
Searching...
No Matches
study_thinTarget.Block Class Reference
Inheritance diagram for study_thinTarget.Block:
[legend]
Collaboration diagram for study_thinTarget.Block:
[legend]

Public Member Functions

None __init__ (self)
None ConstructGeometry (self)
None InitParContainers ()

Detailed Description

Definition at line 75 of file study_thinTarget.py.

Constructor & Destructor Documentation

◆ __init__()

None study_thinTarget.Block.__init__ ( self)

Definition at line 78 of file study_thinTarget.py.

78 def __init__(self) -> None:
79 ROOT.pyFairModule.__init__(self, self)
80

Member Function Documentation

◆ ConstructGeometry()

None study_thinTarget.Block.ConstructGeometry ( self)

Definition at line 81 of file study_thinTarget.py.

81 def ConstructGeometry(self) -> None:
82 print("Construct Block")
83 top = ROOT.gGeoManager.GetTopVolume()
84 geoLoad = ROOT.FairGeoLoader.Instance()
85 geoFace = geoLoad.getGeoInterface()
86 media = geoFace.getMedia()
87 geoBuild = geoLoad.getGeoBuilder()
88 ShipMedium = media.getMedium(material)
89 W = ROOT.gGeoManager.GetMedium(material)
90 if not W:
91 geoBuild.createMedium(ShipMedium)
92 W = ROOT.gGeoManager.GetMedium(material)
93 aBox = ROOT.gGeoManager.MakeBox("target", W, 100.0 * u.cm, 100.0 * u.cm, thickness)
94 top.AddNode(aBox, 1, ROOT.TGeoTranslation(0, 0, 0))
95

◆ InitParContainers()

None study_thinTarget.Block.InitParContainers ( )

Definition at line 96 of file study_thinTarget.py.

96 def InitParContainers() -> None:
97 print("not implemented!")
98
99

The documentation for this class was generated from the following file: