SND@LHC Software
Loading...
Searching...
No Matches
study_GammaConv.Block Class Reference
Inheritance diagram for study_GammaConv.Block:
Collaboration diagram for study_GammaConv.Block:

Public Member Functions

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

Public Attributes

 sensPlane
 

Detailed Description

Definition at line 56 of file study_GammaConv.py.

Constructor & Destructor Documentation

◆ __init__()

study_GammaConv.Block.__init__ (   self)

Definition at line 58 of file study_GammaConv.py.

58 def __init__(self):
59 ROOT.pyFairModule.__init__(self,self)
60 self.sensPlane = None

Member Function Documentation

◆ ConstructGeometry()

study_GammaConv.Block.ConstructGeometry (   self)

Definition at line 61 of file study_GammaConv.py.

61 def ConstructGeometry(self):
62 print("Construct Block")
63 top=ROOT.gGeoManager.GetTopVolume()
64 geoLoad=ROOT.FairGeoLoader.Instance()
65 geoFace=geoLoad.getGeoInterface()
66 media=geoFace.getMedia()
67 geoBuild=geoLoad.getGeoBuilder()
68 ShipMedium=media.getMedium(material)
69 W = ROOT.gGeoManager.GetMedium(material)
70 if not W:
71 rc = geoBuild.createMedium(ShipMedium)
72 W = ROOT.gGeoManager.GetMedium(material)
73 aBox = ROOT.gGeoManager.MakeBox("target", W, 100.*u.cm, 100.*u.cm, thickness)
74 top.AddNode(aBox, 1, ROOT.TGeoTranslation(0, 0, 0 ))
75 if self.sensPlane: self.sensPlane.AddSensitiveVolume(aBox)

◆ InitParContainers()

study_GammaConv.Block.InitParContainers ( )

Definition at line 76 of file study_GammaConv.py.

76 def InitParContainers():
77 print("not implemented!")

◆ makeSensitive()

study_GammaConv.Block.makeSensitive (   self,
  sensPlane 
)

Definition at line 78 of file study_GammaConv.py.

78 def makeSensitive(self,sensPlane):
79 self.sensPlane = sensPlane
80

Member Data Documentation

◆ sensPlane

study_GammaConv.Block.sensPlane

Definition at line 60 of file study_GammaConv.py.


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