Geant4
10.00.p03
|
#include <HadrontherapyDetectorConstruction.hh>
Public Member Functions | |
HadrontherapyDetectorConstruction (G4VPhysicalVolume *) | |
~HadrontherapyDetectorConstruction () | |
void | InitializeDetectorROGeometry (HadrontherapyDetectorROGeometry *, G4ThreeVector detectorToWorldPosition) |
G4ThreeVector | GetDetectorToWorldPosition () |
G4ThreeVector | GetDetectorToPhantomPosition () |
void | SetDetectorPosition () |
bool | IsInside (G4double detectorX, G4double detectorY, G4double detectorZ, G4double phantomX, G4double phantomY, G4double phantomZ, G4ThreeVector pos) |
G4bool | SetPhantomMaterial (G4String material) |
void | SetVoxelSize (G4double sizeX, G4double sizeY, G4double sizeZ) |
void | SetDetectorSize (G4double sizeX, G4double sizeY, G4double sizeZ) |
void | SetPhantomSize (G4double sizeX, G4double sizeY, G4double sizeZ) |
void | SetPhantomPosition (G4ThreeVector) |
void | SetDetectorToPhantomPosition (G4ThreeVector DetectorToPhantomPosition) |
void | UpdateGeometry () |
void | PrintParameters () |
G4LogicalVolume * | GetDetectorLogicalVolume () |
Static Public Member Functions | |
static HadrontherapyDetectorConstruction * | GetInstance () |
Public Attributes | |
G4VPhysicalVolume * | motherPhys |
HadrontherapyDetectorSD * | detectorSD |
Private Member Functions | |
void | ConstructPhantom () |
void | ConstructDetector () |
void | ParametersCheck () |
Static Private Attributes | |
static HadrontherapyDetectorConstruction * | instance = 0 |
Definition at line 52 of file HadrontherapyDetectorConstruction.hh.
HadrontherapyDetectorConstruction::HadrontherapyDetectorConstruction | ( | G4VPhysicalVolume * | physicalTreatmentRoom | ) |
Definition at line 70 of file HadrontherapyDetectorConstruction.cc.
References cm, detectorMessenger, HadrontherapyAnalysisManager::GetInstance(), SetDetectorPosition(), SetDetectorSize(), SetDetectorToPhantomPosition(), SetPhantomMaterial(), SetPhantomPosition(), SetPhantomSize(), sizeOfVoxelAlongX, sizeOfVoxelAlongY, sizeOfVoxelAlongZ, and UpdateGeometry().
HadrontherapyDetectorConstruction::~HadrontherapyDetectorConstruction | ( | ) |
Definition at line 111 of file HadrontherapyDetectorConstruction.cc.
References detectorMessenger, detectorROGeometry, and matrix.
|
private |
Definition at line 183 of file HadrontherapyDetectorConstruction.cc.
References aRegion, detector, detectorLogicalVolume, detectorMaterial, detectorPhysicalVolume, detectorPosition, detectorSizeX, detectorSizeY, detectorSizeZ, phantomPhysicalVolume, and skyBlue.
Referenced by UpdateGeometry().
|
private |
Definition at line 131 of file HadrontherapyDetectorConstruction.cc.
References motherPhys, phantom, phantomLogicalVolume, phantomMaterial, phantomPhysicalVolume, phantomPosition, phantomSizeX, phantomSizeY, phantomSizeZ, and red.
Referenced by UpdateGeometry().
|
inline |
Definition at line 163 of file HadrontherapyDetectorConstruction.hh.
References detectorLogicalVolume.
|
inline |
Definition at line 81 of file HadrontherapyDetectorConstruction.hh.
References detectorPosition, detectorSizeX, detectorSizeY, detectorSizeZ, phantomSizeX, phantomSizeY, and phantomSizeZ.
|
inline |
Definition at line 75 of file HadrontherapyDetectorConstruction.hh.
References detectorPosition, and phantomPosition.
Referenced by PassiveCarbonBeamLine::Construct(), PassiveProtonBeamLine::Construct(), and UpdateGeometry().
|
static |
Definition at line 119 of file HadrontherapyDetectorConstruction.cc.
References instance.
void HadrontherapyDetectorConstruction::InitializeDetectorROGeometry | ( | HadrontherapyDetectorROGeometry * | RO, |
G4ThreeVector | detectorToWorldPosition | ||
) |
Definition at line 230 of file HadrontherapyDetectorConstruction.cc.
References detectorSizeX, detectorSizeY, detectorSizeZ, HadrontherapyDetectorROGeometry::Initialize(), numberOfVoxelsAlongX, numberOfVoxelsAlongY, and numberOfVoxelsAlongZ.
Referenced by PassiveCarbonBeamLine::Construct(), and PassiveProtonBeamLine::Construct().
|
inline |
Definition at line 102 of file HadrontherapyDetectorConstruction.hh.
References G4cout, and G4endl.
Referenced by ParametersCheck().
|
private |
Definition at line 250 of file HadrontherapyDetectorConstruction.cc.
References detectorSizeX, detectorSizeY, detectorSizeZ, detectorToPhantomPosition, FatalException, G4Exception(), IsInside(), phantomSizeX, phantomSizeY, phantomSizeZ, sizeOfVoxelAlongX, sizeOfVoxelAlongY, and sizeOfVoxelAlongZ.
Referenced by UpdateGeometry().
void HadrontherapyDetectorConstruction::PrintParameters | ( | ) |
Definition at line 433 of file HadrontherapyDetectorConstruction.cc.
References detector, G4BestUnit, G4cout, G4endl, numberOfVoxelsAlongX, numberOfVoxelsAlongY, numberOfVoxelsAlongZ, phantom, phantomPosition, sizeOfVoxelAlongX, sizeOfVoxelAlongY, and sizeOfVoxelAlongZ.
Referenced by UpdateGeometry().
|
inline |
Definition at line 91 of file HadrontherapyDetectorConstruction.hh.
References detectorPosition, detectorSizeX, detectorSizeY, detectorSizeZ, detectorToPhantomPosition, phantomSizeX, phantomSizeY, and phantomSizeZ.
Referenced by HadrontherapyDetectorConstruction(), and UpdateGeometry().
void HadrontherapyDetectorConstruction::SetDetectorSize | ( | G4double | sizeX, |
G4double | sizeY, | ||
G4double | sizeZ | ||
) |
Definition at line 316 of file HadrontherapyDetectorConstruction.cc.
References detectorSizeX, detectorSizeY, detectorSizeZ, SetVoxelSize(), sizeOfVoxelAlongX, sizeOfVoxelAlongY, and sizeOfVoxelAlongZ.
Referenced by HadrontherapyDetectorConstruction().
void HadrontherapyDetectorConstruction::SetDetectorToPhantomPosition | ( | G4ThreeVector | DetectorToPhantomPosition | ) |
Definition at line 337 of file HadrontherapyDetectorConstruction.cc.
References detectorToPhantomPosition.
Referenced by HadrontherapyDetectorConstruction().
Definition at line 280 of file HadrontherapyDetectorConstruction.cc.
References detectorLogicalVolume, detectorMaterial, G4cout, G4endl, G4RunManager::GetRunManager(), G4NistManager::Instance(), phantomLogicalVolume, and phantomMaterial.
Referenced by HadrontherapyDetectorConstruction().
void HadrontherapyDetectorConstruction::SetPhantomPosition | ( | G4ThreeVector | pos | ) |
Definition at line 331 of file HadrontherapyDetectorConstruction.cc.
References phantomPosition, and pos.
Referenced by HadrontherapyDetectorConstruction().
void HadrontherapyDetectorConstruction::SetPhantomSize | ( | G4double | sizeX, |
G4double | sizeY, | ||
G4double | sizeZ | ||
) |
Definition at line 308 of file HadrontherapyDetectorConstruction.cc.
References phantomSizeX, phantomSizeY, and phantomSizeZ.
Referenced by HadrontherapyDetectorConstruction().
void HadrontherapyDetectorConstruction::SetVoxelSize | ( | G4double | sizeX, |
G4double | sizeY, | ||
G4double | sizeZ | ||
) |
Definition at line 325 of file HadrontherapyDetectorConstruction.cc.
References sizeOfVoxelAlongX, sizeOfVoxelAlongY, and sizeOfVoxelAlongZ.
Referenced by SetDetectorSize().
void HadrontherapyDetectorConstruction::UpdateGeometry | ( | ) |
Definition at line 342 of file HadrontherapyDetectorConstruction.cc.
References ConstructDetector(), ConstructPhantom(), detector, detectorMaterial, detectorPhysicalVolume, detectorPosition, detectorSizeX, detectorSizeY, detectorSizeZ, G4lrint(), GetDetectorToWorldPosition(), HadrontherapyLet::GetInstance(), HadrontherapyAnalysisManager::GetInstance(), HadrontherapyMatrix::GetInstance(), G4GeometryManager::GetInstance(), G4VUserDetectorConstruction::GetParallelWorld(), G4RunManager::GetRunManager(), G4RunManager::GetUserDetectorConstruction(), HadrontherapyDetectorROGeometry::Initialize(), Initialize(), let, massOfVoxel, matrix, numberOfVoxelsAlongX, numberOfVoxelsAlongY, numberOfVoxelsAlongZ, ParametersCheck(), phantom, phantomPhysicalVolume, phantomPosition, phantomSizeX, phantomSizeY, phantomSizeZ, PrintParameters(), SetDetectorPosition(), sizeOfVoxelAlongX, sizeOfVoxelAlongY, sizeOfVoxelAlongZ, HadrontherapyDetectorROGeometry::UpdateROGeometry(), and volumeOfVoxel.
Referenced by HadrontherapyDetectorConstruction().
|
private |
Definition at line 202 of file HadrontherapyDetectorConstruction.hh.
Referenced by ConstructDetector().
|
private |
Definition at line 177 of file HadrontherapyDetectorConstruction.hh.
Referenced by ConstructDetector(), PrintParameters(), and UpdateGeometry().
|
private |
Definition at line 178 of file HadrontherapyDetectorConstruction.hh.
Referenced by ConstructDetector(), GetDetectorLogicalVolume(), and SetPhantomMaterial().
|
private |
Definition at line 201 of file HadrontherapyDetectorConstruction.hh.
Referenced by ConstructDetector(), SetPhantomMaterial(), and UpdateGeometry().
|
private |
Definition at line 168 of file HadrontherapyDetectorConstruction.hh.
Referenced by HadrontherapyDetectorConstruction(), and ~HadrontherapyDetectorConstruction().
|
private |
Definition at line 179 of file HadrontherapyDetectorConstruction.hh.
Referenced by ConstructDetector(), and UpdateGeometry().
|
private |
Definition at line 189 of file HadrontherapyDetectorConstruction.hh.
Referenced by ConstructDetector(), GetDetectorToPhantomPosition(), GetDetectorToWorldPosition(), SetDetectorPosition(), and UpdateGeometry().
|
private |
Definition at line 173 of file HadrontherapyDetectorConstruction.hh.
Referenced by ~HadrontherapyDetectorConstruction().
HadrontherapyDetectorSD* HadrontherapyDetectorConstruction::detectorSD |
Definition at line 65 of file HadrontherapyDetectorConstruction.hh.
|
private |
Definition at line 185 of file HadrontherapyDetectorConstruction.hh.
Referenced by ConstructDetector(), GetDetectorToPhantomPosition(), InitializeDetectorROGeometry(), ParametersCheck(), SetDetectorPosition(), SetDetectorSize(), and UpdateGeometry().
|
private |
Definition at line 186 of file HadrontherapyDetectorConstruction.hh.
Referenced by ConstructDetector(), GetDetectorToPhantomPosition(), InitializeDetectorROGeometry(), ParametersCheck(), SetDetectorPosition(), SetDetectorSize(), and UpdateGeometry().
|
private |
Definition at line 187 of file HadrontherapyDetectorConstruction.hh.
Referenced by ConstructDetector(), GetDetectorToPhantomPosition(), InitializeDetectorROGeometry(), ParametersCheck(), SetDetectorPosition(), SetDetectorSize(), and UpdateGeometry().
|
private |
Definition at line 189 of file HadrontherapyDetectorConstruction.hh.
Referenced by ParametersCheck(), SetDetectorPosition(), and SetDetectorToPhantomPosition().
|
staticprivate |
Definition at line 167 of file HadrontherapyDetectorConstruction.hh.
Referenced by GetInstance().
|
private |
Definition at line 175 of file HadrontherapyDetectorConstruction.hh.
Referenced by UpdateGeometry().
|
private |
Definition at line 199 of file HadrontherapyDetectorConstruction.hh.
Referenced by UpdateGeometry().
|
private |
Definition at line 174 of file HadrontherapyDetectorConstruction.hh.
Referenced by UpdateGeometry(), and ~HadrontherapyDetectorConstruction().
G4VPhysicalVolume* HadrontherapyDetectorConstruction::motherPhys |
Definition at line 64 of file HadrontherapyDetectorConstruction.hh.
Referenced by ConstructPhantom().
|
private |
Definition at line 195 of file HadrontherapyDetectorConstruction.hh.
Referenced by InitializeDetectorROGeometry(), PrintParameters(), and UpdateGeometry().
|
private |
Definition at line 196 of file HadrontherapyDetectorConstruction.hh.
Referenced by InitializeDetectorROGeometry(), PrintParameters(), and UpdateGeometry().
|
private |
Definition at line 197 of file HadrontherapyDetectorConstruction.hh.
Referenced by InitializeDetectorROGeometry(), PrintParameters(), and UpdateGeometry().
|
private |
Definition at line 177 of file HadrontherapyDetectorConstruction.hh.
Referenced by ConstructPhantom(), PrintParameters(), and UpdateGeometry().
|
private |
Definition at line 178 of file HadrontherapyDetectorConstruction.hh.
Referenced by ConstructPhantom(), and SetPhantomMaterial().
|
private |
Definition at line 201 of file HadrontherapyDetectorConstruction.hh.
Referenced by ConstructPhantom(), and SetPhantomMaterial().
|
private |
Definition at line 179 of file HadrontherapyDetectorConstruction.hh.
Referenced by ConstructDetector(), ConstructPhantom(), and UpdateGeometry().
|
private |
Definition at line 189 of file HadrontherapyDetectorConstruction.hh.
Referenced by ConstructPhantom(), GetDetectorToWorldPosition(), PrintParameters(), SetPhantomPosition(), and UpdateGeometry().
|
private |
Definition at line 181 of file HadrontherapyDetectorConstruction.hh.
Referenced by ConstructPhantom(), GetDetectorToPhantomPosition(), ParametersCheck(), SetDetectorPosition(), SetPhantomSize(), and UpdateGeometry().
|
private |
Definition at line 182 of file HadrontherapyDetectorConstruction.hh.
Referenced by ConstructPhantom(), GetDetectorToPhantomPosition(), ParametersCheck(), SetDetectorPosition(), SetPhantomSize(), and UpdateGeometry().
|
private |
Definition at line 183 of file HadrontherapyDetectorConstruction.hh.
Referenced by ConstructPhantom(), GetDetectorToPhantomPosition(), ParametersCheck(), SetDetectorPosition(), SetPhantomSize(), and UpdateGeometry().
|
private |
Definition at line 171 of file HadrontherapyDetectorConstruction.hh.
Referenced by ConstructPhantom().
|
private |
Definition at line 191 of file HadrontherapyDetectorConstruction.hh.
Referenced by HadrontherapyDetectorConstruction(), ParametersCheck(), PrintParameters(), SetDetectorSize(), SetVoxelSize(), and UpdateGeometry().
|
private |
Definition at line 192 of file HadrontherapyDetectorConstruction.hh.
Referenced by HadrontherapyDetectorConstruction(), ParametersCheck(), PrintParameters(), SetDetectorSize(), SetVoxelSize(), and UpdateGeometry().
|
private |
Definition at line 193 of file HadrontherapyDetectorConstruction.hh.
Referenced by HadrontherapyDetectorConstruction(), ParametersCheck(), PrintParameters(), SetDetectorSize(), SetVoxelSize(), and UpdateGeometry().
|
private |
Definition at line 170 of file HadrontherapyDetectorConstruction.hh.
Referenced by ConstructDetector().
|
private |
Definition at line 199 of file HadrontherapyDetectorConstruction.hh.
Referenced by UpdateGeometry().