# Missing Data\_Galactic.dat file when modifying microelectronics example

**URL:** <https://geant4-forum.web.cern.ch/t/missing-data-galactic-dat-file-when-modifying-microelectronics-example/12695>\
**Category:** Physics Lists\
**Created:** [July 24, 2024, 5:02pm UTC](https://geant4-forum.web.cern.ch/t/missing-data-galactic-dat-file-when-modifying-microelectronics-example/12695 "2024-07-24T17:02:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cghw02](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/cghw02/32/484_2.png) [@cghw02](https://geant4-forum.web.cern.ch/u/cghw02)\
**Post date:** [July 24, 2024, 5:02pm UTC](https://geant4-forum.web.cern.ch/t/missing-data-galactic-dat-file-when-modifying-microelectronics-example/12695/1 "2024-07-24T17:02:45Z")

</div>

Please fill out the following information to help in answering your question, and also see [tips for posting code snippets](https://geant4-forum.web.cern.ch/t/how-to-post-code-snippets/9944). If you don’t provide this information it will take more time to help with your problem!

_Geant4 Version:_ 11.1.1  
_Operating System:_ uname -r 5.15.0-113-generic  
_Compiler/Version:_ GCC-11.2.0  
\_CMake Version:\_3.16.3

Hello,  
I am trying to modify the microelectronics example. I would like to fly some electrons through a vacuum, so I create a material from G4\_Galactic. I use the command:  
G4Material\* world\_mat = nist-\>FindOrBuildMaterial(“G4\_Galactic”);

However, I get the following output:

-------- EEEE ------- G4Exception-START -------- EEEE -------  
\*\*\* G4Exception : em0002  
issued by : G4MicroElecMaterialStructure::ReadMaterialFile  
file /opt/york/easybuild/generic\_arch/software/Geant4/11.1.1-GCC-11.2.0/share/Geant4/data/G4EMLOW8.2/microelec/Structure/Data\_Galactic.dat not found!  
\*\*\* Fatal Exception \*\*\* core dump \*\*\*  
\*\*\*\* Track information is not available at this moment  
\*\*\*\* Step information is not available at this moment

-------- EEEE -------- G4Exception-END --------- EEEE -------

## \*\*\* G4Exception: Aborting execution \*\*\*

I have looked into the relevant directory and there are various files for the allowed materials in the microelectronics physics list (e.g. Data\_C.dat, Data\_Cu.dat etc). I did wonder if I could create a file called Data\_Galactic.dat and make it identical to Data\_C.dat. Given that the density for Galactic is so low, then I thought this would not matter too much, but I might be mistaken !. However, I don’t have access to the relevant directory and it doesn’t find the file if I put it in my build directory. Can someone suggest a workaround ?

Thanks  
Chris

---

<div class="post-metadata">

**Author:** ![cghw02](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/cghw02/32/484_2.png) [@cghw02](https://geant4-forum.web.cern.ch/u/cghw02)\
**Post date:** [July 31, 2024, 3:20pm UTC](https://geant4-forum.web.cern.ch/t/missing-data-galactic-dat-file-when-modifying-microelectronics-example/12695/2 "2024-07-31T15:20:46Z")

</div>

Hello,  
After digging around in the microelectronics Model class, it would seem that there is a material defined as “Vacuum” which seems to be just what I needed.

Chris

---

<div class="post-metadata">

**Author:** ![civanch](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/civanch/32/11_2.png) [@civanch](https://geant4-forum.web.cern.ch/u/civanch)\
**Post date:** [August 8, 2024, 5:06pm UTC](https://geant4-forum.web.cern.ch/t/missing-data-galactic-dat-file-when-modifying-microelectronics-example/12695/3 "2024-08-08T17:06:48Z")

</div>

Closed on August 8, 2024, 5:06pm UTC


