Import Geant4 11.1.0.beta source tree
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user