go-hep / hep

hep is the mono repository holding all of go-hep.org/x/hep packages and tools
https://go-hep.org
BSD 3-Clause "New" or "Revised" License
231 stars 35 forks source link

user stories: 3D geometry description for detectors #137

Open decibelcooper opened 6 years ago

decibelcooper commented 6 years ago

@sbinet I'm not sure if this is exactly what you meant by filing an issue with "user stories". Please correct me if I'm doing it wrong, for there are more issues to come.

For the purpose of reconstructing events in tracking and calorimetry subsystems natively in go, I have need of a library capable of holding descriptions of a set of 3D volumes that make up a detector geometry in memory and providing efficient methods for calculating

One should also be able to...

Volumes should be constructed with one of a set of common parameterized shapes. In particular, I have need of (this is a minimal list, more would be useful later on)...

sbinet commented 6 years ago

Thanks. That's indeed what I meant.

sbinet commented 6 years ago

@aphecetche I was looking at your pigiron repo, and it seems to me that now it gets rid of the CGo scaffolding, the work I am actually pouring into go-hep/geo/gdml might be of interest for you/us :)

what do you think?

aphecetche commented 6 years ago

@sbinet well I got the impression that GDML was meant to describe 3D geometries, right ? If that's the case, that's one extra dimension for my needs ;-) The core of my needs (as far as 2D "geometry" is concerned anyway) is btw rather modest : I mainly need to be able to compute the union of rectilinear polygons... Or maybe I'm just misunderstanding what GDML is...

sbinet commented 6 years ago

yeah... (and, of course, you're right: I am slowly plowing through pigiron... Simpsons' references? anybody?)

in that case: github.com/golang/geo/r2