Skip to content
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

DDMarlinCED: layer count is also incremented for not drawn detector parts #42

Open
Zehvogel opened this issue Mar 14, 2024 · 0 comments

Comments

@Zehvogel
Copy link
Contributor

Like the title says. For passive (sub-)detectors (beampipe, supports, cables, etc.) the layer count is also incremented for detectors that are not set to be visible and thus not drawn (if surfaces are off or they have no surface). I.e. they use up a layer slot in the respective menu to toggle detector parts on or off in CED and those slots are very limited. The same can also happen for calorimeters and trackers but they are usually set to be visible anyway.

getVisAttributes(det, color, visible);
int layer = detLayer++;
bool isDrawn = _surfaces && DrawSurfaces(surfMan, detName, color, layer);
if (!isDrawn && visible){

@Zehvogel Zehvogel changed the title DDMarlinCED: layer count is also increment for not drawn detector parts DDMarlinCED: layer count is also incremented for not drawn detector parts Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant