alcap-org / g4sim

Simulation toolkit based on Geant4 and ROOT
http://wuchen1106.github.io/g4sim/
2 stars 2 forks source link

Outputting the local position of a particle #25

Closed AndrewEdmonds11 closed 10 years ago

AndrewEdmonds11 commented 10 years ago

As mentioned in issue #23, it would be nice to have the local position in the output tree as well (e.g. for getting target depths)

It's possible to convert from global to local position in Geant4 fairly easily (see the Geant4 FAQ) and looking in MonitorSD.cc, we only have calls to preStepPoint->GetPosition(), which is the global position.

AndrewEdmonds11 commented 10 years ago

I will start working on this on the branch AE_output-local-positions