# Geometry,Fields and Transportation, Root, histogram

**URL:** <https://geant4-forum.web.cern.ch/t/geometry-fields-and-transportation-root-histogram/15040>\
**Category:** Geometry, Fields and Transportation\
**Created:** [March 26, 2026, 2:47pm UTC](https://geant4-forum.web.cern.ch/t/geometry-fields-and-transportation-root-histogram/15040 "2026-03-26T14:47:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grace\_Bangui](https://geant4-forum.web.cern.ch/letter_avatar_proxy/v4/letter/g/e99b99/32.png) [@Grace\_Bangui](https://geant4-forum.web.cern.ch/u/Grace_Bangui)\
**Post date:** [March 26, 2026, 2:47pm UTC](https://geant4-forum.web.cern.ch/t/geometry-fields-and-transportation-root-histogram/15040/1 "2026-03-26T14:47:48Z")

</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.4.0_  
_Operating System: windows_  
_Compiler/Version: Visual studio 2022_  
_CMake Version: 3.16_

* * *

 ![image](https://geant4-forum.web.cern.ch/uploads/default/original/2X/3/3e04cd1f067fa5dad48ad092b69c73f8186339ef.png)

 ![image](https://geant4-forum.web.cern.ch/uploads/default/original/2X/5/58c0728d1d3271b337413474e6d03967aa5ec63a.png)

I modified example B1 to suit my project, but my histogram isn’t filled in. Could someone tell me what the problem might be please?

---

<div class="post-metadata">

**Author:** ![allison](https://geant4-forum.web.cern.ch/letter_avatar_proxy/v4/letter/a/90db22/32.png) [@allison](https://geant4-forum.web.cern.ch/u/allison)\
**Post date:** [March 26, 2026, 4:38pm UTC](https://geant4-forum.web.cern.ch/t/geometry-fields-and-transportation-root-histogram/15040/2 "2026-03-26T16:38:41Z")

</div>

Have you followed the advice given in your screenshot?

```auto
But...there are no entries. To make your histograms available for
plotting in this UI session, use CloseFile(false) in your
EndOfRunAction and Reset() in your BeginOfRunAction.

```

---

<div class="post-metadata">

**Author:** ![Grace\_Bangui](https://geant4-forum.web.cern.ch/letter_avatar_proxy/v4/letter/g/e99b99/32.png) [@Grace\_Bangui](https://geant4-forum.web.cern.ch/u/Grace_Bangui)\
**Post date:** [April 1, 2026, 11:22am UTC](https://geant4-forum.web.cern.ch/t/geometry-fields-and-transportation-root-histogram/15040/3 "2026-04-01T11:22:07Z")

</div>

Hello,

Everything is good. I found solution. Thank you 🙂
