fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user