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

Public Member Functions

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

Detailed Description

Definition at line 73 of file study_thinTarget.py.

Constructor & Destructor Documentation

◆ __init__()

None study_thinTarget.Block.__init__ (   self)

Definition at line 76 of file study_thinTarget.py.

76 def __init__(self) -> None:
77 ROOT.pyFairModule.__init__(self, self)
78

Member Function Documentation

◆ ConstructGeometry()

None study_thinTarget.Block.ConstructGeometry (   self)

Definition at line 79 of file study_thinTarget.py.

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

◆ InitParContainers()

None study_thinTarget.Block.InitParContainers ( )

Definition at line 94 of file study_thinTarget.py.

94 def InitParContainers() -> None:
95 print("not implemented!")
96
97

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