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

Public Member Functions

None __init__ (self)
None ConstructGeometry (self)
None InitParContainers ()
None makeSensitive (self, sensPlane)

Public Attributes

 sensPlane = None

Detailed Description

Definition at line 81 of file study_GammaConv.py.

Constructor & Destructor Documentation

◆ __init__()

None study_GammaConv.Block.__init__ ( self)

Definition at line 84 of file study_GammaConv.py.

84 def __init__(self) -> None:
85 ROOT.pyFairModule.__init__(self, self)
86 self.sensPlane = None
87

Member Function Documentation

◆ ConstructGeometry()

None study_GammaConv.Block.ConstructGeometry ( self)

Definition at line 88 of file study_GammaConv.py.

88 def ConstructGeometry(self) -> None:
89 print("Construct Block")
90 top = ROOT.gGeoManager.GetTopVolume()
91 geoLoad = ROOT.FairGeoLoader.Instance()
92 geoFace = geoLoad.getGeoInterface()
93 media = geoFace.getMedia()
94 geoBuild = geoLoad.getGeoBuilder()
95 ShipMedium = media.getMedium(material)
96 W = ROOT.gGeoManager.GetMedium(material)
97 if not W:
98 geoBuild.createMedium(ShipMedium)
99 W = ROOT.gGeoManager.GetMedium(material)
100 aBox = ROOT.gGeoManager.MakeBox("target", W, 100.0 * u.cm, 100.0 * u.cm, thickness)
101 top.AddNode(aBox, 1, ROOT.TGeoTranslation(0, 0, 0))
102 if self.sensPlane:
103 self.sensPlane.AddSensitiveVolume(aBox)
104

◆ InitParContainers()

None study_GammaConv.Block.InitParContainers ( )

Definition at line 105 of file study_GammaConv.py.

105 def InitParContainers() -> None:
106 print("not implemented!")
107

◆ makeSensitive()

None study_GammaConv.Block.makeSensitive ( self,
sensPlane )

Definition at line 108 of file study_GammaConv.py.

108 def makeSensitive(self, sensPlane) -> None:
109 self.sensPlane = sensPlane
110
111

Member Data Documentation

◆ sensPlane

study_GammaConv.Block.sensPlane = None

Definition at line 86 of file study_GammaConv.py.


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