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

Public Member Functions

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

Detailed Description

Definition at line 76 of file study_muMSC.py.

Constructor & Destructor Documentation

◆ __init__()

None study_muMSC.Block.__init__ ( self)

Definition at line 79 of file study_muMSC.py.

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

Member Function Documentation

◆ ConstructGeometry()

None study_muMSC.Block.ConstructGeometry ( self)

Definition at line 82 of file study_muMSC.py.

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

◆ InitParContainers()

None study_muMSC.Block.InitParContainers ( )

Definition at line 97 of file study_muMSC.py.

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

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