This commit is contained in:
Jan Kieseler
2023-09-08 22:53:07 +02:00
parent 7716c03bf5
commit a03b3d780a
7 changed files with 15 additions and 12 deletions
+2
View File
@@ -251,6 +251,7 @@ G4VPhysicalVolume* DetectorConstruction::DefineVolumes()
layer.assignPhysicalVolume(ppv); //maybe this needs to be ppv - check
// assign sensors to layer by copyNumber; access the copyNumber of the volumes
if(layer.isActive){
for(int i = 0; i < layer.nx*layer.ny; i++){
Sensor sensor;
@@ -263,6 +264,7 @@ G4VPhysicalVolume* DetectorConstruction::DefineVolumes()
}
position += layer.thickness / 2 *cm; //assign the physical volume to the layer
}
//
// Visualization attributes
+3 -3
View File
@@ -59,10 +59,10 @@ void SystemBuilder::run_gui(){
}
}
void SystemBuilder::run_batch(int nEvents, std::string partSpecies, double minEnergy, double maxEnergy){
G4String partSpec = (G4String)partSpecies;
void SystemBuilder::run_batch(int nEvents, char* partSpecies, double minEnergy, double maxEnergy){
G4String partSpec = partSpecies;
G4cout << "running with particle species " << partSpec << G4endl;
actionInitialization->setGeneratorProperties(minEnergy, maxEnergy, partSpec);
UImanager->ApplyCommand("/run/initialize");
runManager->BeamOn(nEvents);
}
}