Public Member Functions | List of all members
demo.ScoreSD Class Reference
Inheritance diagram for demo.ScoreSD:

Public Member Functions

def __init__ (self)
 
def ProcessHits (self, step, rohist)
 

Detailed Description

Definition at line 119 of file demo.py.

Constructor & Destructor Documentation

def demo.ScoreSD.__init__ (   self)

Definition at line 122 of file demo.py.

122  def __init__(self):
123  G4VSensitiveDetector.__init__(self, "ScoreVoxel")
124 
def __init__(self)
Definition: demo.py:122

Member Function Documentation

def demo.ScoreSD.ProcessHits (   self,
  step,
  rohist 
)

Definition at line 125 of file demo.py.

References abs(), if(), and demo.posXZ().

125  def ProcessHits(self, step, rohist):
126  preStepPoint= step.GetPreStepPoint()
127  if(preStepPoint.GetCharge() == 0):
128  return
129 
130  track= step.GetTrack()
131  touchable= track.GetTouchable()
132  voxel_id= touchable.GetReplicaNumber()
133  dedx= step.GetTotalEnergyDeposit()
134  xz= posXZ(voxel_id)
135  hist_dose2d.Fill(xz[1], xz[0], dedx/MeV)
136  if( abs(xz[0]) <= 100 ):
137  hist_dosez.Fill(xz[1], dedx/MeV)
138 
139 # ------------------------------------------------------------------
def posXZ(copyN)
Definition: demo.py:140
void abs(TH1 *hist)
if(dump)
def ProcessHits(self, step, rohist)
Definition: demo.py:125

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