alcap-org / g4sim

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

Ae output local positions #26

Closed AndrewEdmonds11 closed 10 years ago

AndrewEdmonds11 commented 10 years ago

For issue #25. Here is the code for outputting the local positions.

I used a python script to copy MonitorSD.cc and MonitorSD.hh (also included in this branch) to copy lines for global positions and make them local positions. There were a few occurances that were missed with the script but I didn't want to search for "x", so these were edited by hand.

I've run g4sim with this once, and it seems to work (i.e the local positions are different to the global positions).

@thnam, since you're currently working on something that needs this, could you give this a quick test and that it produces the results that you expect, then I will merge it in.

thnam commented 10 years ago

Ok, I will do that. I will also try to see why McTruth_x works but M_x doesn't.

AndrewEdmonds11 commented 10 years ago

Ok, I'm going to merge this in now since I would like to use it to test that the rotation of the primary position works