Geant4  10.01.p03
CML2AcceleratorConstruction Class Reference

#include <ML2AcceleratorConstruction.hh>

+ Collaboration diagram for CML2AcceleratorConstruction:

Public Member Functions

 CML2AcceleratorConstruction (void)
 
 ~CML2AcceleratorConstruction (void)
 
bool Construct (G4VPhysicalVolume *PVWorld, G4bool bOnlyVisio)
 
G4VPhysicalVolumegetPhysicalVolume (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 ()
 
G4RotationMatrixrotateAccelerator ()
 
G4RotationMatrixrotateAccelerator (G4double angleX)
 

Static Public Member Functions

static
CML2AcceleratorConstruction
GetInstance (void)
 

Private Member Functions

bool design (void)
 

Private Attributes

CML2AcceleratorConstructionMessengeracceleratorConstructionMessenger
 
G4String AcceleratorName
 
G4String AcceleratorMacFileName
 
G4String nextAcceleratorXRotationName
 
G4VPhysicalVolumePVAccWorld
 
G4int idCurrentRotationX
 
G4double currentRotationX
 
G4double isoCentre
 
G4double Z_Value_PhaseSpaceBeforeJaws
 
std::vector< G4doublerotationsX
 
G4ThreeVector initialCentre
 
G4bool bRotate90Y
 
G4bool bOnlyVisio
 
CML2Acc1accelerator1
 

Static Private Attributes

static
CML2AcceleratorConstruction
instance = 0
 

Detailed Description

Definition at line 61 of file ML2AcceleratorConstruction.hh.

Constructor & Destructor Documentation

CML2AcceleratorConstruction::CML2AcceleratorConstruction ( void  )

Definition at line 47 of file ML2AcceleratorConstruction.cc.

References acceleratorConstructionMessenger, and idCurrentRotationX.

Referenced by GetInstance().

+ Here is the caller graph for this function:

CML2AcceleratorConstruction::~CML2AcceleratorConstruction ( void  )

Member Function Documentation

void CML2AcceleratorConstruction::addAcceleratorRotationsX ( G4double  val)
inline

Definition at line 80 of file ML2AcceleratorConstruction.hh.

References rotationsX.

Referenced by design(), and CML2AcceleratorConstructionMessenger::SetNewValue().

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool CML2AcceleratorConstruction::design ( void  )
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double CML2AcceleratorConstruction::getAcceleratorIsoCentre ( )
inline

Definition at line 82 of file ML2AcceleratorConstruction.hh.

References isoCentre.

Referenced by CML2WorldConstruction::create(), and main().

+ Here is the caller graph for this function:

G4String CML2AcceleratorConstruction::getAcceleratorMacFileName ( )
inline

Definition at line 84 of file ML2AcceleratorConstruction.hh.

References AcceleratorMacFileName.

G4String CML2AcceleratorConstruction::getAcceleratorName ( )
inline

Definition at line 83 of file ML2AcceleratorConstruction.hh.

References AcceleratorName.

Referenced by CML2WorldConstruction::create().

+ Here is the caller graph for this function:

G4String CML2AcceleratorConstruction::getCurrentRotationString ( )

Definition at line 177 of file ML2AcceleratorConstruction.cc.

References bRotate90Y, currentRotationX, and deg.

Referenced by CML2RunAction::BeginOfRunAction().

+ Here is the caller graph for this function:

CML2AcceleratorConstruction * CML2AcceleratorConstruction::GetInstance ( void  )
static

Definition at line 63 of file ML2AcceleratorConstruction.cc.

References CML2AcceleratorConstruction(), and instance.

Referenced by CML2RunAction::BeginOfRunAction(), CML2WorldConstruction::CML2WorldConstruction(), CML2SDWithParticle::ProcessHits(), and CML2SDWithParticle::save().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4String CML2AcceleratorConstruction::getNextAcceleratorXRotationName ( )
inline

Definition at line 76 of file ML2AcceleratorConstruction.hh.

References nextAcceleratorXRotationName.

G4VPhysicalVolume* CML2AcceleratorConstruction::getPhysicalVolume ( void  )
inline

Definition at line 68 of file ML2AcceleratorConstruction.hh.

References PVAccWorld.

Referenced by CML2WorldConstruction::create().

+ Here is the caller graph for this function:

G4bool CML2AcceleratorConstruction::getRotation90Y ( )
inline

Definition at line 86 of file ML2AcceleratorConstruction.hh.

References bRotate90Y.

G4double CML2AcceleratorConstruction::getZ_Value_PhaseSpaceBeforeJaws ( )
inline

Definition at line 85 of file ML2AcceleratorConstruction.hh.

References Z_Value_PhaseSpaceBeforeJaws.

Referenced by CML2WorldConstruction::create().

+ Here is the caller graph for this function:

void CML2AcceleratorConstruction::resetAccelerator ( )

Definition at line 72 of file ML2AcceleratorConstruction.cc.

References accelerator1, AcceleratorName, and CML2Acc1::reset().

+ Here is the call graph for this function:

G4RotationMatrix * CML2AcceleratorConstruction::rotateAccelerator ( )

Definition at line 145 of file ML2AcceleratorConstruction.cc.

References currentRotationX, idCurrentRotationX, and rotationsX.

Referenced by CML2WorldConstruction::newGeometry(), and CML2AcceleratorConstructionMessenger::SetNewValue().

+ Here is the caller graph for this function:

G4RotationMatrix * CML2AcceleratorConstruction::rotateAccelerator ( G4double  angleX)
void CML2AcceleratorConstruction::setAcceleratorMacFileName ( G4String  val)
inline

Definition at line 72 of file ML2AcceleratorConstruction.hh.

References AcceleratorMacFileName.

Referenced by CML2AcceleratorConstructionMessenger::CML2AcceleratorConstructionMessenger(), and CML2AcceleratorConstructionMessenger::SetNewValue().

+ Here is the caller graph for this function:

void CML2AcceleratorConstruction::setAcceleratorName ( G4String  val)
inline

Definition at line 71 of file ML2AcceleratorConstruction.hh.

References AcceleratorName.

Referenced by CML2AcceleratorConstructionMessenger::CML2AcceleratorConstructionMessenger(), and CML2AcceleratorConstructionMessenger::SetNewValue().

+ Here is the caller graph for this function:

void CML2AcceleratorConstruction::setIsoCentre ( G4double  val)
inline

Definition at line 77 of file ML2AcceleratorConstruction.hh.

References isoCentre.

Referenced by CML2AcceleratorConstructionMessenger::CML2AcceleratorConstructionMessenger(), and CML2AcceleratorConstructionMessenger::SetNewValue().

+ Here is the caller graph for this function:

void CML2AcceleratorConstruction::setRotation90Y ( G4bool  val)
inline

Definition at line 78 of file ML2AcceleratorConstruction.hh.

References bRotate90Y.

Referenced by CML2AcceleratorConstructionMessenger::CML2AcceleratorConstructionMessenger(), and CML2AcceleratorConstructionMessenger::SetNewValue().

+ Here is the caller graph for this function:

void CML2AcceleratorConstruction::writeInfo ( )

Definition at line 138 of file ML2AcceleratorConstruction.cc.

References bOnlyVisio, currentRotationX, deg, G4endl, idCurrentRotationX, and rotationsX.

Referenced by CML2RunAction::BeginOfRunAction().

+ Here is the caller graph for this function:

Member Data Documentation

CML2Acc1* CML2AcceleratorConstruction::accelerator1
private
CML2AcceleratorConstructionMessenger* CML2AcceleratorConstruction::acceleratorConstructionMessenger
private
G4String CML2AcceleratorConstruction::AcceleratorMacFileName
private
G4String CML2AcceleratorConstruction::AcceleratorName
private
G4bool CML2AcceleratorConstruction::bOnlyVisio
private

Definition at line 103 of file ML2AcceleratorConstruction.hh.

Referenced by Construct(), and writeInfo().

G4bool CML2AcceleratorConstruction::bRotate90Y
private
G4double CML2AcceleratorConstruction::currentRotationX
private
G4int CML2AcceleratorConstruction::idCurrentRotationX
private
G4ThreeVector CML2AcceleratorConstruction::initialCentre
private

Definition at line 102 of file ML2AcceleratorConstruction.hh.

Referenced by Construct(), and rotateAccelerator().

CML2AcceleratorConstruction * CML2AcceleratorConstruction::instance = 0
staticprivate

Definition at line 95 of file ML2AcceleratorConstruction.hh.

Referenced by GetInstance().

G4double CML2AcceleratorConstruction::isoCentre
private

Definition at line 100 of file ML2AcceleratorConstruction.hh.

Referenced by Construct(), getAcceleratorIsoCentre(), and setIsoCentre().

G4String CML2AcceleratorConstruction::nextAcceleratorXRotationName
private

Definition at line 96 of file ML2AcceleratorConstruction.hh.

Referenced by getNextAcceleratorXRotationName().

G4VPhysicalVolume* CML2AcceleratorConstruction::PVAccWorld
private
std::vector<G4double> CML2AcceleratorConstruction::rotationsX
private
G4double CML2AcceleratorConstruction::Z_Value_PhaseSpaceBeforeJaws
private

Definition at line 100 of file ML2AcceleratorConstruction.hh.

Referenced by Construct(), and getZ_Value_PhaseSpaceBeforeJaws().


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