| Summary: | G4PVDivision does not override the GetMultiplicity method | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | Nicola Mori <mori> |
| Component: | geometry/volumes | Assignee: | Gabriele Cosmo <Gabriele.Cosmo> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | mori |
| Priority: | P4 | ||
| Version: | 10.4 | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Nicola Mori
2019-06-12 18:01:10 CEST
Thanks for spotting this. The fix will be included in the next release/patches. I believe the original intention of the author was to intend the multiplicity of the divided volume itself, i.e. being then set to 1. But I agree it should be consistent with the fact that, although a special case, G4PVDivision is a parameterised volume at all effect, even if not inheriting from G4PVReplica or G4PVParameterised... therefore multiplicity should refer to the parameterised slice. The distinction in G4VPhysicalVolume for GetMultiplicity() not being pure virtual is intentional (i.e. no mess-up here). |