# No match between different garfield++ versions: /Heed/fe55.C example(?)

**URL:** <https://root-forum.cern.ch/t/no-match-between-different-garfield-versions-heed-fe55-c-example/63693>\
**Category:** Garfield++\
**Created:** [June 7, 2025, 1:47pm UTC](https://root-forum.cern.ch/t/no-match-between-different-garfield-versions-heed-fe55-c-example/63693 "2025-06-07T13:47:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gtsileda](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/8c91f0/32.png) [@gtsileda](https://root-forum.cern.ch/u/gtsileda)\
**Post date:** [June 7, 2025, 1:47pm UTC](https://root-forum.cern.ch/t/no-match-between-different-garfield-versions-heed-fe55-c-example/63693/1 "2025-06-07T13:47:05Z")

</div>

Dear experts,

I run the same example /Examples/Heed/fe55.C  
with a version back in February 2024 and with the latest one available from today  
via git clone [garfield / garfieldpp · GitLab](https://gitlab.cern.ch/garfield/garfieldpp.git)  
Unfortunately the results imply a change in physics since with the last version the escape peak of Argon in not visible(???).

 ![Screenshot from 2025-06-07 15-32-33](https://root-forum.cern.ch/uploads/default/original/3X/7/e/7e9c1ee4be75bd07c65776688405a1becb593953.png)  
In the inserted picture the left one is with a previous version back in the beginning of 2024 and the right one what I am getting with the last version…  
How I could get access on a previous version of garfield++?  
All my results so far were well aligned with that older version and I wonder what has changed so far…

Best regards

Georgios

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [June 7, 2025, 2:12pm UTC](https://root-forum.cern.ch/t/no-match-between-different-garfield-versions-heed-fe55-c-example/63693/2 "2025-06-07T14:12:34Z")

</div>

Hi,  
thanks a lot for reporting this! I’ll look into it…

---

<div class="post-metadata">

**Author:** ![gabrielribcesario](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/gabrielribcesario/32/38927_2.png) [@gabrielribcesario](https://root-forum.cern.ch/u/gabrielribcesario)\
**Post date:** [June 7, 2025, 6:42pm UTC](https://root-forum.cern.ch/t/no-match-between-different-garfield-versions-heed-fe55-c-example/63693/3 "2025-06-07T18:42:53Z")

</div>

Hello,

@hschindl I thought I’d let you know that I got the same results as OP when running the current HEAD. Checking out to 03b4deb6 (May 30, 2025) still yields the “good” results, so the behaviour is likely the result of one of the newer commits.

> [@gtsileda](#):
>
> How I could get access on a previous version of garfield++?

@gtsileda From inside your Garfield++ installation folder (`$GARFIELD_INSTALL/..`) run:

```auto
git checkout 03b4deb6
cd build
cmake ..
make
make install

```

You can run `git pull origin master` if you’d like to revert back to the most recent version.

---

<div class="post-metadata">

**Author:** ![gabrielribcesario](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/gabrielribcesario/32/38927_2.png) [@gabrielribcesario](https://root-forum.cern.ch/u/gabrielribcesario)\
**Post date:** [June 14, 2025, 3:36pm UTC](https://root-forum.cern.ch/t/no-match-between-different-garfield-versions-heed-fe55-c-example/63693/4 "2025-06-14T15:36:30Z")

</div>

Hello,

I had some spare time in the morning so I decided to take a crack at the bug. It seems to me that the culprit was the deletion of lines 738 through 746 of the PhotoAbsCS.cpp file (HEAD 53a9f59). Since line 19 was already commented out the `#ifndef` clause was always true. The deletion of lines 738-746 causes `is` to always be equal to zero and the following `if` is never executed.

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/6/4/649c4b71a2bf25eb8e7607f5dbf9a33946b510a8.png)

Restoring the lines 739-745 seems to fix the issue, so this might be worth checking out.

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [June 15, 2025, 10:38am UTC](https://root-forum.cern.ch/t/no-match-between-different-garfield-versions-heed-fe55-c-example/63693/5 "2025-06-15T10:38:33Z")

</div>

Hi @gabrielribcesario, yes, that’s it! I’ve just pushed your fix: [HEED (!501) · Merge requests · garfield / garfieldpp · GitLab](https://gitlab.cern.ch/garfield/garfieldpp/-/merge_requests/501)  
Thanks a million!!!

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [June 29, 2025, 10:39am UTC](https://root-forum.cern.ch/t/no-match-between-different-garfield-versions-heed-fe55-c-example/63693/6 "2025-06-29T10:39:21Z")

</div>

Closed on June 29, 2025, 10:39am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
