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