File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1457,10 +1457,10 @@ void TRestGeant4Metadata::PrintMetadata() {
14571457 }
14581458 RESTMetadata << " Number of active volumes: " << GetNumberOfActiveVolumes () << RESTendl;
14591459 for (unsigned int n = 0 ; n < GetNumberOfActiveVolumes (); n++) {
1460- RESTMetadata << " Name: " << GetActiveVolumeName (n)
1461- << " , ID: " << GetActiveVolumeID ( GetActiveVolumeName (n) )
1462- << " , maxStep: " << GetMaxStepSize (GetActiveVolumeName (n) ) << " mm "
1463- << " , chance: " << GetStorageChance (GetActiveVolumeName (n) ) << RESTendl;
1460+ const auto name = GetActiveVolumeName (n);
1461+ RESTMetadata << " Name: " << name << " , ID: " << fGeant4GeometryInfo . GetIDFromVolume (name )
1462+ << " , maxStep: " << GetMaxStepSize (name ) << " mm "
1463+ << " , chance: " << GetStorageChance (name ) << RESTendl;
14641464 }
14651465
14661466 for (unsigned int n = 0 ; n < GetNumberOfBiasingVolumes (); n++) {
You can’t perform that action at this time.
0 commit comments