Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEPCActor sometimes does not create txt files despite saveAsText True #551

Open
SandraBarna opened this issue Nov 3, 2022 · 1 comment

Comments

@SandraBarna
Copy link

Issue
When I use the TEPCActor I have gotten this bug repeatedly. When saveAsText is enabled (True), the files are sometimes only saved as root, not as txt. This can happen to some simulations which run in parallel, to none or to all. The TEPCActor does not allow for files to be only saved as text, so saving as a root file and also enabling saveAsText is the only way to get a txt file output.

Desktop (please complete the following information):

Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
Gate version: 9.0
Geant4 version:10.7.0
ROOT Version: 6.18/04

Minimal example
/gate/actor/addActor TEPCActor TEPC_y
/gate/actor/TEPC_y/attachTo Si_SV
/gate/actor/TEPC_y/saveEveryNSeconds 3600
/gate/actor/TEPC_y/save output/Silicon/Simple_Example.root
/gate/actor/TEPC_y/saveAsText true
/gate/actor/TEPC_y/saveEveryNSeconds 72000
/gate/actor/TEPC_y/setPressure 1 bar
/gate/actor/TEPC_y/setLogscale true
/gate/actor/TEPC_y/setNumberOfBins 400
/gate/actor/TEPC_y/setEmin 0.1 keV
/gate/actor/TEPC_y/setEmax 3000 keV
/gate/actor/TEPC_y/setNOrders 6
/gate/actor/TEPC_y/setNormByEvent false
/gate/actor/TEPC_y/setSourceDirectionForBoxGeometry x

Expected behavior
The Actor should create a file Simple_Example.root and Simple_Example.txt.

Additional context
Add any other context about the problem here.

@dsarrut
Copy link
Contributor

dsarrut commented Nov 3, 2022

thanks for reporting, we will have a look and let you know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants