#include <ML2AcceleratorConstruction.hh>
CML2AcceleratorConstruction::CML2AcceleratorConstruction |
( |
void |
| ) |
|
CML2AcceleratorConstruction::~CML2AcceleratorConstruction |
( |
void |
| ) |
|
Definition at line 53 of file ML2AcceleratorConstruction.cc.
55 if (AcceleratorName==
"acc1")
56 {
delete accelerator1;}
59 delete acceleratorConstructionMessenger;
void CML2AcceleratorConstruction::addAcceleratorRotationsX |
( |
G4double |
val | ) |
|
|
inline |
Definition at line 102 of file ML2AcceleratorConstruction.cc.
112 initialCentre.
set(0.*
mm, 0.*
mm, -isoCentre);
119 accWorldLV->SetVisAttributes(simpleAlSVisAtt);
121 PVAccWorld=
new G4PVPlacement(0, initialCentre,
"acceleratorBox", accWorldLV, PVWorld,
false, 0);
124 if (AcceleratorName==
"acc1")
126 accelerator1->
Construct(PVAccWorld, isoCentre);
void set(double x, double y, double z)
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
static constexpr double mm
static G4NistManager * Instance()
void Construct(G4VPhysicalVolume *PVWorld, G4double isoCentre)
void SetVisibility(G4bool=true)
G4double getBeforeJaws_Z_PhaseSpacePosition()
void SetReferenceWorld(G4bool bOV)
G4double CML2AcceleratorConstruction::getAcceleratorIsoCentre |
( |
| ) |
|
|
inline |
G4String CML2AcceleratorConstruction::getAcceleratorMacFileName |
( |
| ) |
|
|
inline |
G4String CML2AcceleratorConstruction::getAcceleratorName |
( |
| ) |
|
|
inline |
G4String CML2AcceleratorConstruction::getCurrentRotationString |
( |
| ) |
|
Definition at line 177 of file ML2AcceleratorConstruction.cc.
181 sprintf(cR,
"%d",cRI);
184 {rotationName=
"_Ro90Y"+rotationName;}
186 {rotationName=
"_Ro"+rotationName;}
static constexpr double deg
G4String CML2AcceleratorConstruction::getNextAcceleratorXRotationName |
( |
| ) |
|
|
inline |
G4bool CML2AcceleratorConstruction::getRotation90Y |
( |
| ) |
|
|
inline |
G4double CML2AcceleratorConstruction::getZ_Value_PhaseSpaceBeforeJaws |
( |
| ) |
|
|
inline |
void CML2AcceleratorConstruction::resetAccelerator |
( |
| ) |
|
Definition at line 145 of file ML2AcceleratorConstruction.cc.
148 if (idCurrentRotationX <(
int) rotationsX.size())
150 currentRotationX=rotationsX[idCurrentRotationX];
152 idCurrentRotationX++;
CLHEP::HepRotation G4RotationMatrix
G4RotationMatrix * rotateAccelerator()
Definition at line 158 of file ML2AcceleratorConstruction.cc.
160 currentRotationX=angleX;
171 NewCentre=*rmInv*initialCentre;
void GeometryHasBeenModified(G4bool prop=true)
HepRotation & rotateX(double delta)
CLHEP::HepRotation G4RotationMatrix
HepRotation & rotateY(double delta)
void SetRotation(G4RotationMatrix *)
HepBoost inverseOf(const HepBoost <)
void SetTranslation(const G4ThreeVector &v)
static G4GeometryManager * GetInstance()
static G4RunManager * GetRunManager()
void OpenGeometry(G4VPhysicalVolume *vol=0)
static constexpr double deg
G4bool CloseGeometry(G4bool pOptimise=true, G4bool verbose=false, G4VPhysicalVolume *vol=0)
void CML2AcceleratorConstruction::setAcceleratorMacFileName |
( |
G4String |
val | ) |
|
|
inline |
void CML2AcceleratorConstruction::setAcceleratorName |
( |
G4String |
val | ) |
|
|
inline |
void CML2AcceleratorConstruction::setIsoCentre |
( |
G4double |
val | ) |
|
|
inline |
void CML2AcceleratorConstruction::setRotation90Y |
( |
G4bool |
val | ) |
|
|
inline |
void CML2AcceleratorConstruction::writeInfo |
( |
| ) |
|
Definition at line 138 of file ML2AcceleratorConstruction.cc.
141 {std::cout <<
"Actual rotation: "<<idCurrentRotationX<<
"/"<<rotationsX.size() <<
" "<<
G4endl;}
142 std::cout <<
"Accelerator angle: "<< currentRotationX/
deg <<
" [deg]"<<
G4endl;
static constexpr double deg
The documentation for this class was generated from the following files: