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

Public Member Functions

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

Detailed Description

Definition at line 66 of file study_muMSC.py.

Constructor & Destructor Documentation

◆ __init__()

None study_muMSC.Block.__init__ (   self)

Definition at line 69 of file study_muMSC.py.

69 def __init__(self) -> None:
70 ROOT.pyFairModule.__init__(self, self)
71

Member Function Documentation

◆ ConstructGeometry()

None study_muMSC.Block.ConstructGeometry (   self)

Definition at line 72 of file study_muMSC.py.

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

◆ InitParContainers()

None study_muMSC.Block.InitParContainers ( )

Definition at line 87 of file study_muMSC.py.

87 def InitParContainers() -> None:
88 print("not implemented!")
89
90

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