# Dubious fluorescence energies in Heed

**URL:** <https://root-forum.cern.ch/t/dubious-fluorescence-energies-in-heed/54788>\
**Category:** Garfield++\
**Created:** [May 9, 2023, 11:46am UTC](https://root-forum.cern.ch/t/dubious-fluorescence-energies-in-heed/54788 "2023-05-09T11:46:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjag](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/ce7236/32.png) [@mjag](https://root-forum.cern.ch/u/mjag)\
**Post date:** [May 9, 2023, 11:46am UTC](https://root-forum.cern.ch/t/dubious-fluorescence-energies-in-heed/54788/1 "2023-05-09T11:46:42Z")

</div>

Hello,  
I decided to check energies of fluorescence photons returned by Heed. Normally they would be reabsorbed and any deviations would go under the radar. I extracted them and their energies seem odd.

Here is example generating script:

```auto
import ROOT
import os, sys
import ctypes
import numpy

path = os.getenv('GARFIELD_INSTALL')
if sys.platform == 'darwin':
    ROOT.gSystem.Load(path + '/lib/libmagboltz.dylib')
    ROOT.gSystem.Load(path + '/lib/libGarfield.dylib')
else:
    ROOT.gSystem.Load(path + '/lib/libmagboltz.so')
    ROOT.gSystem.Load(path + '/lib/libGarfield.so')

# Noble gases except helium
gas_names = ["Ne","Ar","Kr","Xe"]
print("Fluorescence energies in:")
for gas_name in gas_names:
    fluorescence_energies=[]

    # Make pure gas
    gas = ROOT.Garfield.MediumMagboltz()
    gas.SetComposition(gas_name, 100.)
    gas.SetTemperature(293.15)
    gas.SetPressure(760.)

    # Some component with large area
    cmp = ROOT.Garfield.ComponentConstant()
    cmp.SetArea(-100,-100,-100,100,100,1000)
    cmp.SetMedium(gas)
    cmp.SetElectricField(0., 0., 100.)

    # Sensor
    sensor = ROOT.Garfield.Sensor()
    sensor.AddComponent(cmp)

    # Heed
    track = ROOT.Garfield.TrackHeed()
    track.SetSensor(sensor)
    track.DisableDeltaElectronTransport() # only care about photons
    track.EnablePhotonReabsorption(False) # disable reabsorption so we can extract photons

    # Shoot some photons of various energies and look for fluorescence
    for energy in numpy.arange(100,50000,0.1):
        nc = ctypes.c_int(0)
        ni = ctypes.c_int(0)
        np = ctypes.c_int(0)
        track.TransportPhoton(0,0,0,0,energy,0,0,1,nc,ni,np)
        for ph in range(np.value):
            xp = ctypes.c_double(0.)
            yp = ctypes.c_double(0.)
            zp = ctypes.c_double(0.)
            tp = ctypes.c_double(0.)
            ep = ctypes.c_double(0.)
            dxp = ctypes.c_double(0.)
            dyp = ctypes.c_double(0.)
            dzp = ctypes.c_double(0.)
            track.GetPhoton(ph, xp, yp, zp, tp, ep, dxp, dyp, dzp)
            # Ignore unabsorbed photons
            if not numpy.isclose(ep.value,energy):
                energy_out=str(round(ep.value,1))
                # Add new energies to storage
                if not energy_out in fluorescence_energies:
                    fluorescence_energies.append(energy_out)

    print(gas_name,": ",", ".join(sorted(fluorescence_energies,key=float)))

```

Output from that:

```auto
Fluorescence energies in:
MediumMagboltz::SetComposition: Ne
Ne : 848.6
MediumMagboltz::SetComposition: Ar
Ar : 232.7, 234.9, 310.6, 3190.2
MediumMagboltz::SetComposition: Kr
Kr : 1664.3, 1716.8, 1906.9, 14311.9
MediumMagboltz::SetComposition: Xe
Xe : 4773.9, 5094.9, 5440.9, 34548.9

```

Most notable thing is that there are no K alpha lines. For example in argon 2957 eV is the most intense fluorescence line ([Table of Isotopes decay data](http://nucleardata.nuclear.lu.se/toi/xray.asp?act=list&el=Ar)). Moreover, energy values don’t correspond exactly to known transitions, xenon being good example ([X-ray Transition Energies - Search Result](https://physics.nist.gov/cgi-bin/XrayTrans/search.pl?element=Xe&lower=&upper=&units=eV)).

When I look more into Heed it seems that it just takes energies of 4 lowest shells (from Heed/heed++/database/shelllist.dat) and subtracts energy of highest shell in it’s database. The numbers agree, I didn’t look how exactly it works in code. It’s a bit arbitrary way of finding fluorescence energies.

Can it be fixed?

Michał

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [May 9, 2023, 2:53pm UTC](https://root-forum.cern.ch/t/dubious-fluorescence-energies-in-heed/54788/2 "2023-05-09T14:53:23Z")

</div>

I guess @hschindl can help.

---

<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:** [May 10, 2023, 8:51am UTC](https://root-forum.cern.ch/t/dubious-fluorescence-energies-in-heed/54788/3 "2023-05-10T08:51:59Z")

</div>

I’ll do some poking in the code to remind myself how Heed calculates the probabilities/energies of the Auger electrons and fluorescence photons…

---

<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:** [May 24, 2023, 8:52am UTC](https://root-forum.cern.ch/t/dubious-fluorescence-energies-in-heed/54788/4 "2023-05-24T08:52:20Z")

</div>

Closed on May 24, 2023, 8:52am UTC

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