Geant4  10.02
GammaKnifeController Class Reference

#include <GammaKnifeController.hh>

+ Collaboration diagram for GammaKnifeController:

Public Member Functions

 GammaKnifeController (GammaKnifeDetectorConstruction *)
 
 ~GammaKnifeController ()
 
void BeamOn (G4int)
 
void ReadFile (std::string fileName)
 

Private Member Functions

void StoreHits ()
 
void PrepareHitsAccumulation ()
 
void AccumulateAllHits ()
 
void RotateForward (G4int)
 
void RotateBack (G4int)
 

Private Attributes

std::vector< G4doublephiAngles
 
std::vector< G4doublethetaAngles
 
GammaKnifeDetectorConstructiondetector
 
GammaKnifeMessengermessenger
 
MeshScoreMapscoreMaps
 

Detailed Description

Definition at line 44 of file GammaKnifeController.hh.

Constructor & Destructor Documentation

GammaKnifeController::GammaKnifeController ( GammaKnifeDetectorConstruction det)

Definition at line 35 of file GammaKnifeController.cc.

References detector, and messenger.

GammaKnifeController::~GammaKnifeController ( )

Definition at line 42 of file GammaKnifeController.cc.

References messenger.

Member Function Documentation

void GammaKnifeController::AccumulateAllHits ( )
private

Definition at line 140 of file GammaKnifeController.cc.

References G4VScoringMesh::Accumulate(), G4ScoringManager::GetMesh(), G4ScoringManager::GetNumberOfMesh(), G4ScoringManager::GetScoringManagerIfExist(), and scoreMaps.

Referenced by BeamOn().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void GammaKnifeController::BeamOn ( G4int  n_event)

Definition at line 47 of file GammaKnifeController.cc.

References AccumulateAllHits(), G4RunManager::BeamOn(), GAMMAKNIFE_SOURCES, G4RunManager::GetRunManager(), PrepareHitsAccumulation(), RotateBack(), RotateForward(), and StoreHits().

Referenced by GammaKnifeMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void GammaKnifeController::PrepareHitsAccumulation ( )
private

Definition at line 92 of file GammaKnifeController.cc.

References G4ScoringManager::GetMesh(), G4ScoringManager::GetNumberOfMesh(), G4VScoringMesh::GetScoreMap(), G4ScoringManager::GetScoringManagerIfExist(), and scoreMaps.

Referenced by BeamOn().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void GammaKnifeController::ReadFile ( std::string  fileName)

Definition at line 158 of file GammaKnifeController.cc.

References degree, GAMMAKNIFE_SOURCES, phiAngles, and thetaAngles.

Referenced by main(), and GammaKnifeMessenger::SetNewValue().

+ Here is the caller graph for this function:

void GammaKnifeController::RotateBack ( G4int  position)
private

Definition at line 78 of file GammaKnifeController.cc.

References G4ScoringManager::GetMesh(), G4ScoringManager::GetNumberOfMesh(), G4ScoringManager::GetScoringManagerIfExist(), phiAngles, G4VScoringMesh::RotateX(), G4VScoringMesh::RotateZ(), and thetaAngles.

Referenced by BeamOn().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void GammaKnifeController::RotateForward ( G4int  position)
private

Definition at line 63 of file GammaKnifeController.cc.

References G4ScoringManager::GetMesh(), G4ScoringManager::GetNumberOfMesh(), G4ScoringManager::GetScoringManagerIfExist(), phiAngles, G4VScoringMesh::RotateX(), G4VScoringMesh::RotateZ(), and thetaAngles.

Referenced by BeamOn().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void GammaKnifeController::StoreHits ( )
private

Definition at line 117 of file GammaKnifeController.cc.

References G4ScoringManager::GetMesh(), G4ScoringManager::GetNumberOfMesh(), G4VScoringMesh::GetScoreMap(), G4ScoringManager::GetScoringManagerIfExist(), and scoreMaps.

Referenced by BeamOn().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

GammaKnifeDetectorConstruction* GammaKnifeController::detector
private

Definition at line 72 of file GammaKnifeController.hh.

Referenced by GammaKnifeController().

GammaKnifeMessenger* GammaKnifeController::messenger
private

Definition at line 74 of file GammaKnifeController.hh.

Referenced by GammaKnifeController(), and ~GammaKnifeController().

std::vector<G4double> GammaKnifeController::phiAngles
private

Definition at line 68 of file GammaKnifeController.hh.

Referenced by ReadFile(), RotateBack(), and RotateForward().

MeshScoreMap* GammaKnifeController::scoreMaps
private

Definition at line 76 of file GammaKnifeController.hh.

Referenced by AccumulateAllHits(), PrepareHitsAccumulation(), and StoreHits().

std::vector<G4double> GammaKnifeController::thetaAngles
private

Definition at line 70 of file GammaKnifeController.hh.

Referenced by ReadFile(), RotateBack(), and RotateForward().


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