Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VoxelSD Class Reference

#include <VoxelSD.hh>

Inheritance diagram for VoxelSD:
Collaboration diagram for VoxelSD:

Public Member Functions

 VoxelSD (const G4String &name)
 
 ~VoxelSD ()
 
virtual G4bool ProcessHits (G4Step *astep, G4TouchableHistory *rohist)
 
virtual void Initialize (G4HCofThisEvent *HCTE)
 
virtual void EndOfEvent (G4HCofThisEvent *HCTE)
 
 VoxelSD (const G4String &name)
 
 ~VoxelSD ()
 
virtual G4bool ProcessHits (G4Step *astep, G4TouchableHistory *rohist)
 
virtual void Initialize (G4HCofThisEvent *HCTE)
 
virtual void EndOfEvent (G4HCofThisEvent *HCTE)
 
- 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 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 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 36 of file VoxelSD.hh.

Constructor & Destructor Documentation

VoxelSD::VoxelSD ( const G4String name)

Definition at line 42 of file VoxelSD.cc.

43  : G4VSensitiveDetector(name)
44 {
45  G4SDManager::GetSDMpointer()-> AddNewDetector(this);
46 }
static G4SDManager * GetSDMpointer()
Definition: G4SDManager.cc:40
G4VSensitiveDetector(G4String name)

Here is the call graph for this function:

VoxelSD::~VoxelSD ( )

Definition at line 49 of file VoxelSD.cc.

50 {
51 }
VoxelSD::VoxelSD ( const G4String name)
VoxelSD::~VoxelSD ( )

Member Function Documentation

void VoxelSD::EndOfEvent ( G4HCofThisEvent HCTE)
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 83 of file VoxelSD.cc.

84 {
85 }
virtual void VoxelSD::EndOfEvent ( G4HCofThisEvent HCTE)
virtual

Reimplemented from G4VSensitiveDetector.

virtual void VoxelSD::Initialize ( G4HCofThisEvent HCTE)
virtual

Reimplemented from G4VSensitiveDetector.

void VoxelSD::Initialize ( G4HCofThisEvent HCTE)
virtual

Reimplemented from G4VSensitiveDetector.

Definition at line 78 of file VoxelSD.cc.

79 {
80 }
virtual G4bool VoxelSD::ProcessHits ( G4Step astep,
G4TouchableHistory rohist 
)
virtual

Implements G4VSensitiveDetector.

G4bool VoxelSD::ProcessHits ( G4Step astep,
G4TouchableHistory rohist 
)
virtual

Implements G4VSensitiveDetector.

Definition at line 54 of file VoxelSD.cc.

55 {
56  G4ThreeVector x0 = astep-> GetPreStepPoint()-> GetPosition();
57  G4ThreeVector x1 = astep-> GetPostStepPoint()-> GetPosition();
58 
59  G4int tid = astep-> GetTrack()-> GetTrackID();
60  G4int iz = astep-> GetPreStepPoint()-> GetTouchable()-> GetReplicaNumber(1);
61 
63 
64  // incident position
65  if ( tid == 1 && iz == 1000 ) { // scored @ first layer
66  myana-> FillIncident(x0);
67  }
68 
69  // energy deposit
70  G4ThreeVector p = G4UniformRand()*(x1-x0) + x0; // position sampling
71  G4double edep = astep-> GetTotalEnergyDeposit();
72  myana-> FillDose(p, edep);
73 
74  return true;
75 }
const char * p
Definition: xmltok.h:285
int G4int
Definition: G4Types.hh:78
#define G4UniformRand()
Definition: Randomize.hh:97
static Analysis * GetAnalysis()
Definition: Analysis.cc:45
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:


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