| Summary: | aStep->GetPreStepPoint()->GetPhysicalVolume() | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | schiefer |
| Component: | geometry/volumes | Assignee: | John Apostolakis <John.Apostolakis> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | alexander.brandt |
| Priority: | P2 | ||
| Version: | 4.1 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
|
Description
schiefer
2003-02-06 05:47:31 CET
This behabior is correct and as designed. For getting volume information from the preStepPoint, you have to get it through the touchable object. G4TouchableHistory* aTH = (G4TouchableHistory*)(aStep->GetPreStepPoint()->GetTouchable()); For example, if you want to get the copy numbers of the volume and its mother volume, copyNo = aTH->GetReplicaNumber(); motherCopyNo = aTH->GetReplicaNumber(1); These features are documented in both user's guide and examples. |