Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
GammaKnifeDetectorConstruction Class Reference

#include <GammaKnifeDetectorConstruction.hh>

Inheritance diagram for GammaKnifeDetectorConstruction:
G4VUserDetectorConstruction

Public Member Functions

 GammaKnifeDetectorConstruction ()
 
 ~GammaKnifeDetectorConstruction ()
 
G4VPhysicalVolumeConstruct ()
 
void SetHelmetSize (G4int)
 
- Public Member Functions inherited from G4VUserDetectorConstruction
 G4VUserDetectorConstruction ()
 
virtual ~G4VUserDetectorConstruction ()
 
virtual void ConstructSDandField ()
 
virtual void CloneSD ()
 
virtual void CloneF ()
 
void RegisterParallelWorld (G4VUserParallelWorld *)
 
G4int ConstructParallelGeometries ()
 
void ConstructParallelSD ()
 
G4int GetNumberOfParallelWorld () const
 
G4VUserParallelWorldGetParallelWorld (G4int i) const
 

Additional Inherited Members

- Protected Member Functions inherited from G4VUserDetectorConstruction
void SetSensitiveDetector (const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)
 
void SetSensitiveDetector (G4LogicalVolume *logVol, G4VSensitiveDetector *aSD)
 

Detailed Description

Definition at line 42 of file GammaKnifeDetectorConstruction.hh.

Constructor & Destructor Documentation

GammaKnifeDetectorConstruction::GammaKnifeDetectorConstruction ( )

Definition at line 48 of file GammaKnifeDetectorConstruction.cc.

49  : physicalTreatmentRoom(0),
50  patientPhysicalVolume(0),
51  patientLogicalVolume(0),
52  solidColl_helmet(0),
53  helmetSize(4)
54 {
55  // Messenger to change parameters of the geometry
56  detectorMessenger = new GammaKnifeDetectorMessenger(this);
57 }
GammaKnifeDetectorConstruction::~GammaKnifeDetectorConstruction ( )

Definition at line 59 of file GammaKnifeDetectorConstruction.cc.

60 {
61  delete detectorMessenger;
62 }

Member Function Documentation

G4VPhysicalVolume * GammaKnifeDetectorConstruction::Construct ( void  )
virtual

Implements G4VUserDetectorConstruction.

Definition at line 64 of file GammaKnifeDetectorConstruction.cc.

65 {
66  // Define the geometry components
67  ConstructBeamLine();
68 
69  return physicalTreatmentRoom;
70 }
void GammaKnifeDetectorConstruction::SetHelmetSize ( G4int  size)

Definition at line 529 of file GammaKnifeDetectorConstruction.cc.

References FatalException, G4cout, and G4Exception().

Referenced by GammaKnifeDetectorMessenger::SetNewValue().

530 {
531  if (size != helmetSize) // Only if the size changes
532  {
533  // Allow only valid numbers
534  switch( size )
535  {
536  case 18:
537  case 14:
538  case 8:
539  case 4:
540  helmetSize = size;
541  G4cout << "Helmet size set to " << helmetSize << std::endl;
542  UpdateHelmet();
543  break;
544  default:
545  G4Exception("GammaKnifeDetectorConstruction::SetHelmetSize()",
546  "GammaKnife001", FatalException,
547  "Error: Invalid helmet size.");
548  return;
549  }
550  }
551 }
G4GLOB_DLL std::ostream G4cout
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

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