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

Public Member Functions

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

Public Attributes

 sensPlane
 

Detailed Description

Definition at line 70 of file study_GammaConv.py.

Constructor & Destructor Documentation

◆ __init__()

None study_GammaConv.Block.__init__ (   self)

Definition at line 73 of file study_GammaConv.py.

73 def __init__(self) -> None:
74 ROOT.pyFairModule.__init__(self, self)
75 self.sensPlane = None
76

Member Function Documentation

◆ ConstructGeometry()

None study_GammaConv.Block.ConstructGeometry (   self)

Definition at line 77 of file study_GammaConv.py.

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

◆ InitParContainers()

None study_GammaConv.Block.InitParContainers ( )

Definition at line 94 of file study_GammaConv.py.

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

◆ makeSensitive()

None study_GammaConv.Block.makeSensitive (   self,
  sensPlane 
)

Definition at line 97 of file study_GammaConv.py.

97 def makeSensitive(self, sensPlane) -> None:
98 self.sensPlane = sensPlane
99
100

Member Data Documentation

◆ sensPlane

study_GammaConv.Block.sensPlane

Definition at line 75 of file study_GammaConv.py.


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