Geant4  10.02.p03
IORTGeometryController Class Reference

#include <IORTGeometryController.hh>

Collaboration diagram for IORTGeometryController:

Public Member Functions

 IORTGeometryController ()
 
 ~IORTGeometryController ()
 
void SetGeometry (G4String)
 
void UpdateGeometry ()
 

Private Member Functions

void registerGeometry (G4VUserDetectorConstruction *detector)
 

Detailed Description

Controller for geometry selection

This controller is called by the geometry messenger and used to select the geometry. Each available geometry must have unique name and it must be known by the geometry controller.

Definition at line 54 of file IORTGeometryController.hh.

Constructor & Destructor Documentation

◆ IORTGeometryController()

IORTGeometryController::IORTGeometryController ( )

Definition at line 54 of file IORTGeometryController.cc.

55 {}

◆ ~IORTGeometryController()

IORTGeometryController::~IORTGeometryController ( )

Definition at line 58 of file IORTGeometryController.cc.

59 {}

Member Function Documentation

◆ registerGeometry()

void IORTGeometryController::registerGeometry ( G4VUserDetectorConstruction detector)
private

Definition at line 108 of file IORTGeometryController.cc.

109 {
111  runManager->SetUserInitialization(detector);
112  runManager->GeometryHasBeenModified();
113 }
void GeometryHasBeenModified(G4bool prop=true)
virtual void SetUserInitialization(G4VUserDetectorConstruction *userInit)
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:79
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetGeometry()

void IORTGeometryController::SetGeometry ( G4String  name)

Select a geometry by name.

Definition at line 62 of file IORTGeometryController.cc.

63 {
64 
65  if (name == "coll100")
66  {
68  G4cout <<"Collimator 100 geometry activated" << G4endl;
69 
70  }
71  else if (name == "coll80")
72  {
74  G4cout <<"Collimator 80 geometry activated" << G4endl;
75 
76  }
77 
78  else if (name == "coll70")
79  {
81  G4cout <<"Collimator 70 geometry activated" << G4endl;
82 
83  }
84  else if (name == "coll50")
85  {
87  G4cout <<"Collimator 50 geometry activated" << G4endl;
88 
89  }
90  else if (name == "coll40")
91  {
93  G4cout <<"Collimator 40 geometry activated" << G4endl;
94 
95  }
96  else if(name == "default")
97 
98  {
100  }
101  else
102  {
103  G4cout <<"Unknown geometry: " << name << ". Geometry not changed." << G4endl;
104  }
105 }
void registerGeometry(G4VUserDetectorConstruction *detector)
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateGeometry()

void IORTGeometryController::UpdateGeometry ( )

Definition at line 116 of file IORTGeometryController.cc.

117 {
119 
120 }
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:79
Here is the call graph for this function:

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