# Get electron Momentum

**URL:** <https://geant4-forum.web.cern.ch/t/get-electron-momentum/13072>\
**Category:** Particles, Track, Event, Run and Biasing\
**Created:** [October 17, 2024, 1:24pm UTC](https://geant4-forum.web.cern.ch/t/get-electron-momentum/13072 "2024-10-17T13:24:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex2671](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/alex2671/32/5498_2.png) [@Alex2671](https://geant4-forum.web.cern.ch/u/Alex2671)\
**Post date:** [October 17, 2024, 1:24pm UTC](https://geant4-forum.web.cern.ch/t/get-electron-momentum/13072/1 "2024-10-17T13:24:07Z")

</div>

Hello! I work with moving electons and as far as i know i can obtain certain data(like position, energy, momentum) in Stepping class via PostStepPoint(), PreStepPoint(). However momentum after PostStepPoint affected by some fluctuation in AlongStepDoIt and follows in PostStepDoIt process.

So i inquire how to get this fluctuated momentum?

---

<div class="post-metadata">

**Author:** ![jrellin](https://geant4-forum.web.cern.ch/letter_avatar_proxy/v4/letter/j/58f4c7/32.png) [@jrellin](https://geant4-forum.web.cern.ch/u/jrellin)\
**Post date:** [October 18, 2024, 5:02pm UTC](https://geant4-forum.web.cern.ch/t/get-electron-momentum/13072/2 "2024-10-18T17:02:50Z")

</div>

What do you mean by fluctuated momentum? Do you mean change in momentum? You can get the momentum vectors with:

step-\>GetPreStepPoint()-\>GetMomentum();  
step-\>GetPostStepPoint()-\>GetMomentum();

And then take the difference. Similar with GetMomentumDirection. You will not get a finer sampling of the momentum change than the step length which is controlled elsewhere.

---

<div class="post-metadata">

**Author:** ![Alex2671](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/alex2671/32/5498_2.png) [@Alex2671](https://geant4-forum.web.cern.ch/u/Alex2671)\
**Post date:** [October 21, 2024, 6:04am UTC](https://geant4-forum.web.cern.ch/t/get-electron-momentum/13072/3 "2024-10-21T06:04:53Z")

</div>

In G4MollerBhabhaModel there is SampleSecondaries(…), which takes as parameter G4DynamicParticle dp. And when i want to compare step-\>GetPreStepPoint()-\>GetMomentum() and dp-\>GetMomentum() sometimes second one is lower. I suppose it happens because there is some chain of momentum data transfet: PreStepPoint-\>AlongStepDoIt-\>PostStepDoIt(i.e. SampleSecondaries())-\>PostStepPoint. So i want obtain somehow momentum whitch enters SampleSecondaries
