Import Geant4 11.1.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2022-07-01 10:44:02 +02:00
parent b3bf75a2a1
commit c07cea1fe0
2172 changed files with 183300 additions and 123938 deletions
@@ -56,7 +56,7 @@ DetectorMessenger::DetectorMessenger(DetectorConstruction * Det)
fTestemDir = new G4UIdirectory("/testem/");
fTestemDir->SetGuidance("UI commands specific to this example.");
fDetDir = new G4UIdirectory("/testem/det/");
fDetDir = new G4UIdirectory("/testem/det/", false);
fDetDir->SetGuidance("detector construction commands");
fAbsMaterCmd = new G4UIcmdWithAString("/testem/det/setAbsMat",this);
@@ -83,10 +83,6 @@ void PrimaryGeneratorAction::SetDefaultKinematic()
void PrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent)
{
if(0 == anEvent->GetEventID()) {
G4double x0 = -0.5*(fDetector->GetWorldSizeX());
fParticleGun->SetParticlePosition(G4ThreeVector(x0, 0.0, 0.0));
}
//this function is called at the begining of event
//
//randomize the beam, if requested.