JeffersonLab / HDGeant4

Geant4 simulation for the GlueX experiment
4 stars 4 forks source link

CDC integrated charge shifted to higher values #51

Closed sdobbs closed 6 years ago

sdobbs commented 6 years ago

Looking at the raw output of HDGeant4, it looks like the integrated charge determined for CDC hits is systematically shifted to higher values compared to HDGeant.

Example MC data files and the input files used to create them are stored at: http://hadron.physics.fsu.edu/~sdobbs/hdgeant4_tests/

The below histograms can be generated by running the following command: python cdc_q.py hdgeant_g3_20k.hddm hdgeant_g4_20k.hddm

cdc_q_hd cdc_q_hd4

cdc_q_straw_hd cdc_q_straw_hd4

rjones30 commented 6 years ago

Sean, can you overlay these two distributions? My eye tells me that there is no shift between the two distributions, but hdgeant4 simply drops the hit if it is below a certain minimum energy distribution. If the only difference is the suppression of hits with very low amplitudes in hdgeant4, this is not really a difference, is it? -Richard

rjones30 commented 6 years ago

All follow-up on this issue will be with Issues Tracker under JeffersonLab/hdgeant4 on github. -Richard Jones

On Mon, Jun 11, 2018 at 12:51 PM Sean Dobbs notifications@github.com wrote:

Looking at the raw output of HDGeant4, it looks like the integrated charge determined for CDC hits is systematically shifted to higher values compared to HDGeant.

Example MC data files and the input files used to create them are stored at: http://hadron.physics.fsu.edu/~sdobbs/hdgeant4_tests/

Similar hist attached histograms can be generated by running the following command: python cdc_q.py hdgeant_g3_20k.hddm hdgeant_g4_20k.hddm

[image: cdc_q_hd] https://user-images.githubusercontent.com/1182058/41245361-dad5f852-6d75-11e8-9747-75bbb295fd4d.png [image: cdc_q_hd4] https://user-images.githubusercontent.com/1182058/41245360-daaecdd6-6d75-11e8-8ab2-0aebda6ef186.png

[image: cdc_q_straw_hd] https://user-images.githubusercontent.com/1182058/41245386-e4ea55fe-6d75-11e8-8fa2-c99521f3e10f.png [image: cdc_q_straw_hd4] https://user-images.githubusercontent.com/1182058/41245385-e4d0924a-6d75-11e8-9249-eaf34382699c.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JeffersonLab/HDGeant4/issues/51, or mute the thread https://github.com/notifications/unsubscribe-auth/AHeFWNeWLUpqBkDu2n4LAt-KJYBhHd9mks5t7qATgaJpZM4UjCsG .

sdobbs commented 6 years ago

Richard, I've attached the overlay plot you asked for (HDGeant=blue, HDGeant4=red). Note that the CDC wire thresholds are wire dependent, but are around 500 in these units.

It occurred to me that this difference might be related to the different time distributions in both simulations, and indeed, HDGeant4 doesn't have this region of hits with large times and small integrated charge. This is probably a good thing.

I was worried that this could affect some efficiency related to hit shadowing of merged background hits, but I think I convinced myself that this is not a problem.

cdc_q_overlay cdc_t_q_hd cdc_t_q_hd4

rjones30 commented 6 years ago

Sean, do you know what is the origin of these excess low-amplitude CDC hits in hdgeant? They look like they are all piled up around 700ns in time. Does this point to a bug in hdgeant hits generation, rather than hdgeant4? -Richard

sdobbs commented 6 years ago

Richard, I'm not aware of the cause. I plan to run the usual CDC_Efficiency plugin and see what comes out of that, since that's the more relevant efficiency comparison.

sdobbs commented 6 years ago

Richard, Here is a comparison of the CDC hit efficiency plots as a function of DOCA to the wire, using our standard code (blue=HDGeant, red=HDGeant4). It seems like the agreement between both simulations is indeed pretty good except at large distance. Presumably HDGeant4 is more accurate, from the above observations.

mc_eff_comp mc_eff_comp-ratio