# Timing window in PET

**URL:** <https://geant4-forum.web.cern.ch/t/timing-window-in-pet/4167>\
**Category:** Particles, Track, Event, Run and Biasing\
**Created:** [December 24, 2020, 4:50pm UTC](https://geant4-forum.web.cern.ch/t/timing-window-in-pet/4167 "2020-12-24T16:50:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hadis\_eslami](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/hadis_eslami/32/7428_2.png) [@hadis\_eslami](https://geant4-forum.web.cern.ch/u/hadis_eslami)\
**Post date:** [December 24, 2020, 4:50pm UTC](https://geant4-forum.web.cern.ch/t/timing-window-in-pet/4167/1 "2020-12-24T16:50:11Z")

</div>

hi everyone  
how do i define timing window in PET?

---

<div class="post-metadata">

**Author:** ![guatelli](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/guatelli/32/1912_2.png) [@guatelli](https://geant4-forum.web.cern.ch/u/guatelli)\
**Post date:** [February 4, 2021, 5:47am UTC](https://geant4-forum.web.cern.ch/t/timing-window-in-pet/4167/2 "2021-02-04T05:47:51Z")

</div>

Hi. Maybe a way is through the global time, which is counted from the generation of a primary particle. I hope this helps you.

---

<div class="post-metadata">

**Author:** ![hadis\_eslami](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/hadis_eslami/32/7428_2.png) [@hadis\_eslami](https://geant4-forum.web.cern.ch/u/hadis_eslami)\
**Post date:** [February 6, 2021, 4:07pm UTC](https://geant4-forum.web.cern.ch/t/timing-window-in-pet/4167/3 "2021-02-06T16:07:12Z")

</div>

hi, Thank you very much for replying 🌻

---

<div class="post-metadata">

**Author:** ![charles.s.sosa](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/charles.s.sosa/32/2602_2.png) [@charles.s.sosa](https://geant4-forum.web.cern.ch/u/charles.s.sosa)\
**Post date:** [February 17, 2021, 4:46pm UTC](https://geant4-forum.web.cern.ch/t/timing-window-in-pet/4167/4 "2021-02-17T16:46:13Z")

</div>

Hello!

Indeed, the global time is your answer.

I’m assuming your primary generator action is simultaneously emitting two oppositely oriented 511keV gamma rays?

You’ll just need to record the global time when both gamma rays are detected.

Happy coding!

Charles

---

<div class="post-metadata">

**Author:** ![hadis\_eslami](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/hadis_eslami/32/7428_2.png) [@hadis\_eslami](https://geant4-forum.web.cern.ch/u/hadis_eslami)\
**Post date:** [February 21, 2021, 8:47pm UTC](https://geant4-forum.web.cern.ch/t/timing-window-in-pet/4167/5 "2021-02-21T20:47:53Z")

</div>

Hello  
Yes, exactly and thank you very much for your help 🌻
