eic / epic

Geometry Description of the ePIC Experiment
https://eic.github.io/epic
GNU Lesser General Public License v3.0
24 stars 45 forks source link

Forward hcal and insert can't be visualized properly #411

Open veprbl opened 1 year ago

veprbl commented 1 year ago

Environment: (where does this bug occur, have you tried other environments)

Steps to reproduce: (give a step by step account of how to trigger the bug)

  1. Try to display at the insert geometry geometry

Expected Result: (what do you expect when you execute the steps above)

LFHCalWithInsert

Actual Result: (what do you get when you execute the steps above)

Screenshot at 2022-11-23 00-32-09

This may have to do with incorrect handling of volume subtraction in TGeo visualizer

veprbl commented 1 year ago

cc @rymilton

rymilton commented 1 year ago

Can you elaborate on this? I can't reproduce this when displaying the current geometry using dd_web_display --export $DETECTOR_PATH/epic_full.xml.

veprbl commented 1 year ago

The screenshots were kindly provided by @FriederikeBock . ROOTJS may actually be able to draw those volumes properly. Perhaps, this is an issue when using geoDisplay.

rymilton commented 1 year ago

Could you please give me the exact command used to generate these visualizations?

rymilton commented 1 year ago

By the way, the LFHCAL visualization isn't working with dd_web_display. For instance, with dd_web_display --export /opt/detector/epic-nightly/share/epic/epic_lfhcal_only.xml the generated file has nothing drawn. Validated with one other person too.

kkauder commented 11 months ago

dd_web_display --export /opt/detector/epic-nightly/share/epic/epic_lfhcal_only.xml does work, but opening with a TBrowser indeed doesn't. Need to use:

TGeoManager::Import("detector_geometry.root")
gGeoManager->GetTopVolume()->Draw("ogl")

This does reproduce something in the middle of the two at the top.

Image

Is this an issue that needs work?

veprbl commented 11 months ago

@kkauder I assume you need to enable the insert itself.

veprbl commented 11 months ago

Looking at this again, it could be that the insert envelope doesn't have "vis" set.

kkauder commented 11 months ago

Hmm. forward_insert.xml does have many "non-zero" vis tags, and the overall default HcalEndcapInsertVis is set to AnlGray