Using CADmesh to export 3D map for energy deposition

Hi everyone,

I am using Geant4 to obtain 3D energy deposition maps by high energy electrons.

So far, I have used the G4ScoringMesh class to create the mesh and the G4ScoringManager to write the energy deposit in any cell on an output file (.txt).

I would like to do the same but this time using an imported mesh through CADMesh.hh (GitHub - christopherpoole/CADMesh: A CAD file interface for GEANT4). More precisely, I successfully imported the mesh into my Geant4 application but I don’t know how to extract the energy deposit in every element of my Mesh. Does anyone know how I can proceed?

Thanks for your help,