Geant4  10.02.p03
demo.ScoreSD Class Reference
Inheritance diagram for demo.ScoreSD:
Collaboration diagram for demo.ScoreSD:

Public Member Functions

def __init__ (self)
 
def ProcessHits (self, step, rohist)
 
- Public Member Functions inherited from G4VSensitiveDetector
 G4VSensitiveDetector (G4String name)
 
 G4VSensitiveDetector (const G4VSensitiveDetector &right)
 
virtual ~G4VSensitiveDetector ()
 
G4VSensitiveDetectoroperator= (const G4VSensitiveDetector &right)
 
G4int operator== (const G4VSensitiveDetector &right) const
 
G4int operator!= (const G4VSensitiveDetector &right) const
 
virtual void Initialize (G4HCofThisEvent *)
 
virtual void EndOfEvent (G4HCofThisEvent *)
 
virtual void clear ()
 
virtual void DrawAll ()
 
virtual void PrintAll ()
 
G4bool Hit (G4Step *aStep)
 
void SetROgeometry (G4VReadOutGeometry *value)
 
void SetFilter (G4VSDFilter *value)
 
G4int GetNumberOfCollections () const
 
G4String GetCollectionName (G4int id) const
 
void SetVerboseLevel (G4int vl)
 
void Activate (G4bool activeFlag)
 
G4bool isActive () const
 
G4String GetName () const
 
G4String GetPathName () const
 
G4String GetFullPathName () const
 
G4VReadOutGeometryGetROgeometry () const
 
G4VSDFilterGetFilter () const
 
virtual G4VSensitiveDetectorClone () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4VSensitiveDetector
virtual G4bool ProcessHits (G4Step *aStep, G4TouchableHistory *ROhist)=0
 
virtual G4int GetCollectionID (G4int i)
 
- Protected Attributes inherited from G4VSensitiveDetector
G4CollectionNameVector collectionName
 
G4String SensitiveDetectorName
 
G4String thePathName
 
G4String fullPathName
 
G4int verboseLevel
 
G4bool active
 
G4VReadOutGeometryROgeometry
 
G4VSDFilterfilter
 

Detailed Description

Definition at line 119 of file demos/water_phantom/demo.py.

Constructor & Destructor Documentation

◆ __init__()

def demo.ScoreSD.__init__ (   self)

Definition at line 122 of file demos/water_phantom/demo.py.

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

Member Function Documentation

◆ ProcessHits()

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

Definition at line 125 of file demos/water_phantom/demo.py.

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)
if(nlines<=0)
Here is the call graph for this function:

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