Import Geant4 10.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2019-12-06 15:12:28 +01:00
parent b2a62ae692
commit 5baee230e9
2997 changed files with 141580 additions and 98673 deletions
@@ -789,7 +789,7 @@ void LaserDrivenBeamLine::ConstructSDandField()
PurgMagField = new HadrontherapyMagneticField3D("field/ESSMagneticField.TABLE", xOffset);
pFieldMgr =new G4FieldManager();
pFieldMgr -> SetDetectorField(PurgMagField);
G4cout << "DeltaStep "<< pFieldMgr -> GetDeltaOneStep()/mm <<"mm" <<endl;
G4cout << "DeltaStep "<< pFieldMgr -> GetDeltaOneStep()/mm <<"mm" <<G4endl;
pFieldMgr -> CreateChordFinder(PurgMagField);
fEquation = new G4Mag_UsualEqRhs(PurgMagField);
fstepper = new G4ClassicalRK4(fEquation);
@@ -1998,9 +1998,9 @@ void LaserDrivenBeamLine::RemoveESS()
G4cout << "************ The ESS has been disabled *************" << G4endl;
G4cout << "****************************************************" << G4endl;
G4RunManager::GetRunManager() -> GeometryHasBeenModified();
#ifdef G4VIS_USE
G4UImanager::GetUIpointer() -> ApplyCommand("/vis/viewer/flush");
#endif
}
// Change via external macro command the diameter of the first collimator
void LaserDrivenBeamLine::SetFirstCollimatorRadius(G4double valueR)
@@ -2008,9 +2008,9 @@ void LaserDrivenBeamLine::SetFirstCollimatorRadius(G4double valueR)
G4double radius = valueR;
solidCollimatorHole -> SetOuterRadius(radius);
G4RunManager::GetRunManager() -> GeometryHasBeenModified();
#ifdef G4VIS_USE
G4UImanager::GetUIpointer() -> ApplyCommand("/vis/viewer/flush");
#endif
G4cout << "The first collimator aperture has been modified to "<< valueR/mm <<"mm in diameter" << G4endl;
}
/////////////////////////////////////////////////////////////////////////////
@@ -2021,9 +2021,9 @@ void LaserDrivenBeamLine::SetFirstCollimatorThickness(G4double valueC)
solidCollimator -> SetXHalfLength(thickness);
solidCollimatorHole -> SetZHalfLength(thickness);
G4RunManager::GetRunManager() -> GeometryHasBeenModified();
#ifdef G4VIS_USE
G4UImanager::GetUIpointer() -> ApplyCommand("/vis/viewer/flush");
#endif
G4cout << "The first collimator thickness has been modified to "<< valueC/mm <<" mm in thickness" << G4endl;
}
@@ -2032,9 +2032,9 @@ void LaserDrivenBeamLine::SetFirstCollimatorPositionZ(G4double valueQ)
{
physicCollimatorHole -> SetTranslation(G4ThreeVector(0., 0., valueQ));
G4RunManager::GetRunManager() -> GeometryHasBeenModified();
#ifdef G4VIS_USE
G4UImanager::GetUIpointer() -> ApplyCommand("/vis/viewer/flush");
#endif
G4cout << "The first collimator has been translated to "<< valueQ/mm <<"mm (along the z axis)" << G4endl;
}
@@ -2044,9 +2044,9 @@ void LaserDrivenBeamLine::SetSecondCollimatorRadius(G4double value)
G4double radius = value;
solidFinalCollimatorHole -> SetOuterRadius(radius);
G4RunManager::GetRunManager() -> GeometryHasBeenModified();
#ifdef G4VIS_USE
G4UImanager::GetUIpointer() -> ApplyCommand("/vis/viewer/flush");
#endif
G4cout << "The second collimator aperture has been modified to "<< value/mm <<"mm in diameter" << G4endl;
}
@@ -2058,9 +2058,9 @@ void LaserDrivenBeamLine::SetSecondCollimatorThickness(G4double value)
solidFinalCollimator -> SetXHalfLength(thickness);
solidFinalCollimatorHole -> SetZHalfLength(thickness);
G4RunManager::GetRunManager() -> GeometryHasBeenModified();
#ifdef G4VIS_USE
G4UImanager::GetUIpointer() -> ApplyCommand("/vis/viewer/flush");
#endif
G4cout << "The second collimator thickness has been modified to "<< value/mm <<" mm in thickness" << G4endl;
}
@@ -2069,9 +2069,9 @@ void LaserDrivenBeamLine::SetSecondCollimatorPositionZ(G4double value)
{
physicFinalCollimatorHole -> SetTranslation(G4ThreeVector(0., 0., value));
G4RunManager::GetRunManager() -> GeometryHasBeenModified();
#ifdef G4VIS_USE
G4UImanager::GetUIpointer() -> ApplyCommand("/vis/viewer/flush");
#endif
G4cout << "The second collimator has been translated to "<< value/mm <<"mm (along the z axis)" << G4endl;
}
// THE SLIT MESSENGERS
@@ -2094,9 +2094,9 @@ void LaserDrivenBeamLine::SetThicknessSlit(G4double value)
solidExternalSlit -> SetXHalfLength(dimension);
solidInternalSlit -> SetXHalfLength(dimension);
G4RunManager::GetRunManager() -> GeometryHasBeenModified();
#ifdef G4VIS_USE
G4UImanager::GetUIpointer() -> ApplyCommand("/vis/viewer/flush");
#endif
G4cout <<"The thickness of the slit is:" << ((solidExternalSlit -> GetXHalfLength())*2.)/mm
<< G4endl;
}
@@ -2108,9 +2108,9 @@ void LaserDrivenBeamLine::SetSlitHoleDimensionY(G4double value)
G4double hole = value/2;
solidInternalSlit -> SetYHalfLength(hole);
G4RunManager::GetRunManager() -> GeometryHasBeenModified();
#ifdef G4VIS_USE
G4UImanager::GetUIpointer() -> ApplyCommand("/vis/viewer/flush");
#endif
G4cout << "The hole of the Slit has been changed in the Y direction to "<< value/mm <<" mm" <<G4endl;
}
@@ -2121,9 +2121,9 @@ void LaserDrivenBeamLine::SetSlitHoleDimensionZ(G4double value)
G4double hole = value/2;
solidInternalSlit -> SetZHalfLength(hole);
G4RunManager::GetRunManager() -> GeometryHasBeenModified();
#ifdef G4VIS_USE
G4UImanager::GetUIpointer() -> ApplyCommand("/vis/viewer/flush");
#endif
G4cout << "The hole of the Slit has been changed in the Z direction to "<< value/mm <<" mm" <<G4endl;
}
/////////////////////////////////////////////////////////////////////////////
@@ -2132,9 +2132,9 @@ void LaserDrivenBeamLine::SetSlitHolePositionZ(G4double value)
{
physicInternalSlit -> SetTranslation(G4ThreeVector(0., 0., value));
G4RunManager::GetRunManager() -> GeometryHasBeenModified();
#ifdef G4VIS_USE
G4UImanager::GetUIpointer() -> ApplyCommand("/vis/viewer/flush");
#endif
G4cout << "The hole of the slit has been translated to "<< value/mm <<" mm (along the Z axis)" <<G4endl;
}
@@ -2161,8 +2161,8 @@ void LaserDrivenBeamLine::RemoveQuads()
G4cout << "************ The Quadrupoles system has been disabled *************" << G4endl;
G4cout << "******************************************************************" << G4endl;
G4RunManager::GetRunManager() -> GeometryHasBeenModified();
#ifdef G4VIS_USE
G4UImanager::GetUIpointer() -> ApplyCommand("/vis/viewer/flush");
#endif
}