Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
demo.ScoreSD Class Reference
Inheritance diagram for demo.ScoreSD:
Collaboration diagram for demo.ScoreSD:

Public Member Functions

def __init__
 
def ProcessHits
 
- 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 demo.py.

Constructor & Destructor Documentation

def demo.ScoreSD.__init__ (   self)

Definition at line 122 of file demo.py.

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

Member Function Documentation

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

Definition at line 125 of file demo.py.

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

Here is the call graph for this function:


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