diff --git a/NPSimulation/Detectors/SuperX3/SuperX3.cc b/NPSimulation/Detectors/SuperX3/SuperX3.cc index feaa720639080b6b45d65323a9db6341fd869a12..1438ae98d9274743e3280a48dc80f9ea16e07ba1 100644 --- a/NPSimulation/Detectors/SuperX3/SuperX3.cc +++ b/NPSimulation/Detectors/SuperX3/SuperX3.cc @@ -114,7 +114,7 @@ void SuperX3::VolumeMaker(G4int DetecNumber, G4ThreeVector position, G4RotationM G4Box* solidSuperX3 = new G4Box(Name, 0.5 * FaceFront, 0.5 * SiliconFaceLength * mm, 0.5 * Length); G4LogicalVolume* logicSuperX3 = new G4LogicalVolume(solidSuperX3, m_MaterialVacuum, Name, 0, 0, 0); - new G4PVPlacement(G4Transform3D(*rotation, position), logicSuperX3, Name, world, false, 0); + new G4PVPlacement(G4Transform3D(*rotation, position), logicSuperX3, Name, world, false, DetecNumber); logicSuperX3->SetVisAttributes(G4VisAttributes::Invisible); if (m_non_sensitive_part_visiualisation)