alcap-org / g4sim

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

Record distinct hits within G4 event #35

Open jrquirk opened 10 years ago

jrquirk commented 10 years ago

The energy measured in a detector is the integral over the entire G4 event even if two hits are microseconds apart. However, a while back Chen indicated (the first line after "Dear Peter") that he can integrate the energy over small hit windows instead of event windows. So the code may already have the capability to do this.

AndrewEdmonds11 commented 10 years ago

So I'm having a quick look into the code now and we have two output variables for energy deposits:

There is also the timing resolution option (tres) in the output configure file (here) which is used here to decide whether the new hit should be separate or merged into the previous one.

So I think we can do have the capability to do this.

Is there anything else we should know, Chen?

wuchen1106 commented 10 years ago

Sorry guys! I missed this notification.

Andy's understanding is correct! edep and edepAll are actually always the same. I left them both available for output just for occasional checking.

The measure window mentioned by John is the so called timing resolution option (tres) mentioned by Andy. I used to set it to 10ns for previous simulation. We should change it according to detector response.

I think this is enough meet our current goal.