From 85da1990b3b5afd6c0a545b5973c579b4c66f5c4 Mon Sep 17 00:00:00 2001 From: Markus Frank <Markus.Frank@cern.ch> Date: Fri, 6 Oct 2017 20:19:16 +0200 Subject: [PATCH] Improve the CMS example. Add word for the raw generator status of generator particles to Geant4Particle --- DDCore/src/Volumes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DDCore/src/Volumes.cpp b/DDCore/src/Volumes.cpp index 185f07fae..95f9fe4e7 100644 --- a/DDCore/src/Volumes.cpp +++ b/DDCore/src/Volumes.cpp @@ -512,7 +512,7 @@ static PlacedVolume _addNode(TGeoVolume* par, TGeoVolume* daughter, TGeoMatrix* } TGeoVolume* parent = par; TObjArray* a = parent->GetNodes(); - Int_t id = 5*(a ? a->GetEntries() : 0); + Int_t id = (a ? a->GetEntries() : 0); if (transform && transform != detail::matrix::_identity()) { string nam = string(daughter->GetName()) + "_placement"; transform->SetName(nam.c_str()); -- GitLab