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

#include <HadrontherapyGeometryController.hh>

Public Member Functions

 HadrontherapyGeometryController ()
 
 ~HadrontherapyGeometryController ()
 
void SetGeometry (G4String)
 

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 42 of file HadrontherapyGeometryController.hh.

Constructor & Destructor Documentation

HadrontherapyGeometryController::HadrontherapyGeometryController ( )

Definition at line 42 of file HadrontherapyGeometryController.cc.

43 {}
HadrontherapyGeometryController::~HadrontherapyGeometryController ( )

Definition at line 46 of file HadrontherapyGeometryController.cc.

47 {}

Member Function Documentation

void HadrontherapyGeometryController::SetGeometry ( G4String  name)

Select a geometry by name.

Definition at line 50 of file HadrontherapyGeometryController.cc.

51 {
52  G4cout <<"Activating geometry " << name << G4endl;
53  if(name == "default")
54  {
55  registerGeometry(new PassiveProtonBeamLine());
56  }
57  else if(name == "Carbon")
58  {
59  registerGeometry(new PassiveCarbonBeamLine());
60  }
61  else if(name == "LaserDriven")
62  {
63  registerGeometry(new LaserDrivenBeamLine());
64  }
65  else
66  {
67  G4cout <<"Unknown geometry: " << name << ". Geometry not changed." << G4endl;
68  }
69 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

Here is the caller graph for this function:


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