acts-project / acts-project/acts

Fatras: Bethe-Heitler calculation wrong?

Open
#1,437 4 comments 0 reactions 0 assignees View on GitHub
Stale
Dominant language
C++
Stars
131
Forks
276
Avg merge
3d 13h
Merged PRs (30d)
112

Description

While writing the documentation for Fatras, I've added some basic UnitTests to #1402 in order to create and show the principles of the particle interaction mode.

This is the test:
```c++
for (auto i : loop){
ActsFatras::Particle after = before;
const auto outgoing = process(gen, materialSlab, after);
fileOutput( before.energy()-after.energy() );
}
```

With `typeid(process) == BetheBloch` this gives a Landau distribution as expected:

![Unknown](https://user-images.githubusercontent.com/26623879/184827680-735725d1-d32f-4a1f-ad79-f7769463844a.png)

While with `typeid(process) ==BetheHetiler` It looks to me as if the distribution shows what you would expect from `after.energy()/before.energy()`:

![Unknown-1](https://user-images.githubusercontent.com/26623879/184828017-daca52a9-6fc0-4669-976b-ef0066166b11.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.