Geant4
10.03
|
#include <ML2AcceleratorConstruction.hh>
Public Member Functions | |
CML2AcceleratorConstruction (void) | |
~CML2AcceleratorConstruction (void) | |
bool | Construct (G4VPhysicalVolume *PVWorld, G4bool bOnlyVisio) |
G4VPhysicalVolume * | getPhysicalVolume (void) |
void | resetAccelerator () |
void | setAcceleratorName (G4String val) |
void | setAcceleratorMacFileName (G4String val) |
G4String | getCurrentRotationString () |
G4String | getNextAcceleratorXRotationName () |
void | setIsoCentre (G4double val) |
void | setRotation90Y (G4bool val) |
void | addAcceleratorRotationsX (G4double val) |
G4double | getAcceleratorIsoCentre () |
G4String | getAcceleratorName () |
G4String | getAcceleratorMacFileName () |
G4double | getZ_Value_PhaseSpaceBeforeJaws () |
G4bool | getRotation90Y () |
void | writeInfo () |
G4RotationMatrix * | rotateAccelerator () |
G4RotationMatrix * | rotateAccelerator (G4double angleX) |
Static Public Member Functions | |
static CML2AcceleratorConstruction * | GetInstance (void) |
Private Member Functions | |
bool | design (void) |
Static Private Attributes | |
static CML2AcceleratorConstruction * | instance = 0 |
Definition at line 61 of file ML2AcceleratorConstruction.hh.
CML2AcceleratorConstruction::CML2AcceleratorConstruction | ( | void | ) |
Definition at line 47 of file ML2AcceleratorConstruction.cc.
References acceleratorConstructionMessenger, and idCurrentRotationX.
Referenced by GetInstance().
CML2AcceleratorConstruction::~CML2AcceleratorConstruction | ( | void | ) |
Definition at line 53 of file ML2AcceleratorConstruction.cc.
References accelerator1, acceleratorConstructionMessenger, AcceleratorName, and PVAccWorld.
|
inline |
Definition at line 80 of file ML2AcceleratorConstruction.hh.
References rotationsX.
Referenced by design(), and CML2AcceleratorConstructionMessenger::SetNewValue().
bool CML2AcceleratorConstruction::Construct | ( | G4VPhysicalVolume * | PVWorld, |
G4bool | bOnlyVisio | ||
) |
Definition at line 102 of file ML2AcceleratorConstruction.cc.
References accelerator1, acceleratorConstructionMessenger, AcceleratorName, bOnlyVisio, CML2Acc1::Construct(), design(), G4NistManager::FindOrBuildMaterial(), CML2Acc1::getBeforeJaws_Z_PhaseSpacePosition(), initialCentre, G4NistManager::Instance(), isoCentre, mm, PVAccWorld, CML2AcceleratorConstructionMessenger::SetReferenceWorld(), G4VisAttributes::SetVisibility(), G4Colour::White(), CML2Acc1::writeInfo(), and Z_Value_PhaseSpaceBeforeJaws.
Referenced by CML2WorldConstruction::create().
|
private |
Definition at line 81 of file ML2AcceleratorConstruction.cc.
References accelerator1, AcceleratorMacFileName, AcceleratorName, addAcceleratorRotationsX(), G4UImanager::ApplyCommand(), G4endl, CML2Acc1::GetInstance(), G4UImanager::GetUIpointer(), and rotationsX.
Referenced by Construct().
|
inline |
Definition at line 82 of file ML2AcceleratorConstruction.hh.
References isoCentre.
Referenced by CML2WorldConstruction::create(), and main().
|
inline |
Definition at line 84 of file ML2AcceleratorConstruction.hh.
References AcceleratorMacFileName.
|
inline |
Definition at line 83 of file ML2AcceleratorConstruction.hh.
References AcceleratorName.
Referenced by CML2WorldConstruction::create().
G4String CML2AcceleratorConstruction::getCurrentRotationString | ( | ) |
Definition at line 177 of file ML2AcceleratorConstruction.cc.
References bRotate90Y, currentRotationX, and deg.
Referenced by CML2RunAction::BeginOfRunAction().
|
static |
Definition at line 63 of file ML2AcceleratorConstruction.cc.
References CML2AcceleratorConstruction(), and instance.
Referenced by CML2RunAction::BeginOfRunAction(), CML2WorldConstruction::CML2WorldConstruction(), CML2SDWithParticle::ProcessHits(), and CML2SDWithParticle::save().
|
inline |
Definition at line 76 of file ML2AcceleratorConstruction.hh.
References nextAcceleratorXRotationName.
|
inline |
Definition at line 68 of file ML2AcceleratorConstruction.hh.
References PVAccWorld.
Referenced by CML2WorldConstruction::create().
|
inline |
Definition at line 86 of file ML2AcceleratorConstruction.hh.
References bRotate90Y.
|
inline |
Definition at line 85 of file ML2AcceleratorConstruction.hh.
References Z_Value_PhaseSpaceBeforeJaws.
Referenced by CML2WorldConstruction::create().
void CML2AcceleratorConstruction::resetAccelerator | ( | ) |
Definition at line 72 of file ML2AcceleratorConstruction.cc.
References accelerator1, AcceleratorName, and CML2Acc1::reset().
G4RotationMatrix * CML2AcceleratorConstruction::rotateAccelerator | ( | ) |
Definition at line 145 of file ML2AcceleratorConstruction.cc.
References currentRotationX, idCurrentRotationX, and rotationsX.
Referenced by CML2WorldConstruction::newGeometry(), and CML2AcceleratorConstructionMessenger::SetNewValue().
G4RotationMatrix * CML2AcceleratorConstruction::rotateAccelerator | ( | G4double | angleX | ) |
Definition at line 158 of file ML2AcceleratorConstruction.cc.
References bRotate90Y, G4GeometryManager::CloseGeometry(), currentRotationX, deg, G4RunManager::GeometryHasBeenModified(), G4GeometryManager::GetInstance(), G4RunManager::GetRunManager(), initialCentre, G4GeometryManager::OpenGeometry(), PVAccWorld, G4VPhysicalVolume::SetRotation(), and G4VPhysicalVolume::SetTranslation().
|
inline |
Definition at line 72 of file ML2AcceleratorConstruction.hh.
References AcceleratorMacFileName.
Referenced by CML2AcceleratorConstructionMessenger::CML2AcceleratorConstructionMessenger(), and CML2AcceleratorConstructionMessenger::SetNewValue().
|
inline |
Definition at line 71 of file ML2AcceleratorConstruction.hh.
References AcceleratorName.
Referenced by CML2AcceleratorConstructionMessenger::CML2AcceleratorConstructionMessenger(), and CML2AcceleratorConstructionMessenger::SetNewValue().
|
inline |
Definition at line 77 of file ML2AcceleratorConstruction.hh.
References isoCentre.
Referenced by CML2AcceleratorConstructionMessenger::CML2AcceleratorConstructionMessenger(), and CML2AcceleratorConstructionMessenger::SetNewValue().
|
inline |
Definition at line 78 of file ML2AcceleratorConstruction.hh.
References bRotate90Y.
Referenced by CML2AcceleratorConstructionMessenger::CML2AcceleratorConstructionMessenger(), and CML2AcceleratorConstructionMessenger::SetNewValue().
void CML2AcceleratorConstruction::writeInfo | ( | ) |
Definition at line 138 of file ML2AcceleratorConstruction.cc.
References bOnlyVisio, currentRotationX, deg, G4endl, idCurrentRotationX, and rotationsX.
Referenced by CML2RunAction::BeginOfRunAction().
|
private |
Definition at line 106 of file ML2AcceleratorConstruction.hh.
Referenced by Construct(), design(), resetAccelerator(), and ~CML2AcceleratorConstruction().
|
private |
Definition at line 94 of file ML2AcceleratorConstruction.hh.
Referenced by CML2AcceleratorConstruction(), Construct(), and ~CML2AcceleratorConstruction().
|
private |
Definition at line 96 of file ML2AcceleratorConstruction.hh.
Referenced by design(), getAcceleratorMacFileName(), and setAcceleratorMacFileName().
|
private |
Definition at line 96 of file ML2AcceleratorConstruction.hh.
Referenced by Construct(), design(), getAcceleratorName(), resetAccelerator(), setAcceleratorName(), and ~CML2AcceleratorConstruction().
|
private |
Definition at line 103 of file ML2AcceleratorConstruction.hh.
Referenced by Construct(), and writeInfo().
|
private |
Definition at line 103 of file ML2AcceleratorConstruction.hh.
Referenced by getCurrentRotationString(), getRotation90Y(), rotateAccelerator(), and setRotation90Y().
|
private |
Definition at line 100 of file ML2AcceleratorConstruction.hh.
Referenced by getCurrentRotationString(), rotateAccelerator(), and writeInfo().
|
private |
Definition at line 99 of file ML2AcceleratorConstruction.hh.
Referenced by CML2AcceleratorConstruction(), rotateAccelerator(), and writeInfo().
|
private |
Definition at line 102 of file ML2AcceleratorConstruction.hh.
Referenced by Construct(), and rotateAccelerator().
|
staticprivate |
Definition at line 95 of file ML2AcceleratorConstruction.hh.
Referenced by GetInstance().
|
private |
Definition at line 100 of file ML2AcceleratorConstruction.hh.
Referenced by Construct(), getAcceleratorIsoCentre(), and setIsoCentre().
|
private |
Definition at line 96 of file ML2AcceleratorConstruction.hh.
Referenced by getNextAcceleratorXRotationName().
|
private |
Definition at line 98 of file ML2AcceleratorConstruction.hh.
Referenced by Construct(), getPhysicalVolume(), rotateAccelerator(), and ~CML2AcceleratorConstruction().
|
private |
Definition at line 101 of file ML2AcceleratorConstruction.hh.
Referenced by addAcceleratorRotationsX(), design(), rotateAccelerator(), and writeInfo().
|
private |
Definition at line 100 of file ML2AcceleratorConstruction.hh.
Referenced by Construct(), and getZ_Value_PhaseSpaceBeforeJaws().