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
|
||||
|
||||
Reference in New Issue
Block a user