Giter Site home page Giter Site logo

Comments (2)

stognini avatar stognini commented on May 27, 2024

Update on ongoing work:

  1. Tested 4 different geometries being constructed both programmatically and via the G4GDMLParser (after exporting them as gdml files). This leads to one discrepancy:
  • The world volume has its InstanceID defined at its creation time if the geometry is constructed programmatically, but it is always stored last when saved into a gdml file. This results in a shifted list of volume ids when each case is compared.

Not an issue, since materia_ids do not change, and the link volume_id -> material_id is kept in place.

  1. Tested loading each one of the aforementioned gdml files using VecGeom's vgdml::Frontend::Load(...) and compared the loaded volume_ids from VecGeom with the expected volume_ids from G4GDMLParser. They match.

I am not sure if the volume_id is the only needed piece for VecGeom's navigator to work, but since the volume_ids match, we should be able to correctly retrieve any needed information:

Get the logical volume_id from a given placed volume using VecGeom; from our imported data at startup, we can now: check what is the material_id associated to that logical volume; use said material_id to fetch the corresponding XS data in the physics tables.

from celeritas.

sethrj avatar sethrj commented on May 27, 2024

Currently the geometry (GeoParams and GeoTrackView) return placed ("physical") volume IDs, so we need to change these to unplaced ("logical") IDs. @mrguilima will handle that.

from celeritas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.