IncandelaLab / LDMX-scripts

4 stars 15 forks source link

Reproduce visualization of the current ECAL #24

Closed tvami closed 8 months ago

tvami commented 9 months ago

Talk about event display with PHEONIX: https://indico.fnal.gov/event/62016/contributions/280439/subcontributions/9317/attachments/174135/236005/EventDisplay_LDMX_Jan11.pdf gdml_to_gltf: https://github.com/LDMX-Software/ldmx-sw/tree/888-eventdisplay-re-design/EventDisplay/gdml_to_gltf ECAL GDML: https://github.com/LDMX-Software/ldmx-sw/blob/trunk/Detectors/data/ldmx-det-v14-8gev/ecal.gdml

DuncanWilmot commented 8 months ago

Based on the discussion yesterday, I think we can close this.

Steps: 1) Hack away at flattened for loops in fulldetector.gdml to isolate parts of the detector (should be able to do this in Phoenix front-end?) 2) Also used some custom gdml's and the gdml_to_gltf conversion works fine 3) Load geometry with Phoenix (easiest way is simply to use the online playground)

Findings: 1) ECal flower in XY plane shown here (center module from front of bilayer in foreground, entire flower from back of bilayer shown in background, shifted to the left i.e., positive x): image 2) Cells (hexagons) on sensor rotated by pi/6 relative to sensor (larger hexagon), meaning the shift at the cell-level looks like this: ecal_cell_offset_flip 3) v14 gdml claims offset it flat-to-flat cell diameter, but specifies ~4.8mm, which is most consistent with a measured value of cell side-length for a high density sensor (meaning center of front cell is shifted to triple-point of back cells as desired)

tvami commented 8 months ago

Indeed! Good job @DuncanWilmot !