Skip to content

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

@Zehvogel

Description

@Zehvogel

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){

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions