-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CMS] Solids associated with divided volumes are incomplete #833
Comments
@ianna FYI |
@cvuosalo Markus |
@MarkusFrankATcernch A minimal fix would be to ensure all these solids have valid titles. I found that calling
generates "Attempt to access invalid object of type TGeoShape [Invalid Handle]". |
@cvuosalo
If I interprete this correctly:
In this sense your usage of the VolumeMulti was incorrect. However, I have to admit, I also did not know this upfront... |
Fixed and tested in cmssw. |
The
Volume::divide()
method divides a volume and creates a new volume. Internally, the ROOTTGeoVolume::Divide()
method is called to perform the division:https://dd4hep.web.cern.ch/dd4hep/reference/Volumes_8cpp_source.html#l00600
ROOT creates a solid for the new volume, but this solid is not created with a DD4hep constructor, so it is lacking a title to identify its type.
It would be helpful if these solids from divided volumes had proper titles like all other DD4hep solids.
In my CMSSW code, I have a work-around where my code has to guess the type of the divided solid by repeatedly calling the
dd4hep::isA<>
method since the title for these solids is blank. If divided solids had titles like all other DD4hep solids, then I could remove this clumsy work-around in my code.The text was updated successfully, but these errors were encountered: