Root file cant open with TBrowser without any error message

Please read tips for efficient and successful posting and posting code

ROOT Version: ROOT 6.16/00
Platform: Installed with Geant4v 4.10.04 and Gatev8.1

Hi, every body, i RUN simulation in a cluster with output root. when i get the output file.root . and try to open it in my computer by Tbrowser double click , it doesn’t open, and no error message. i cant understand what is the problem.Please help me here im beginner… the file.root contain 5 histograms of energyspectrum actor in Gate

If your root file is out.root can you try:

% root -l out.root
root [0] TBrowser b

The browser should open and you should see your file in it. It it the case ?

Thank you for your reply, I execute the commandes as you suggest but no thing changed… myfile.root is available and shown in Tbrowser but when i try to open it by 2 click doesn’t open or show any graphs.

Are you sure you have something in that root file ? can you try:

% rootls out.root

hi Couet, yes myfile.root has a taille of 527 octets. rootls commande doasent work also, thank you for your efforts

what is the output ?

Hi Mr couet, the output when i exucte commande is as follows.
/usr/bin/env: «python»: Aucun fichier ou dossier de ce type

So rootls is not correctly installed it seems.
Can you post the .root file here, so we can inspect it ?

output.root (523 Bytes)

Yes of course, the attached file is file.root. and Thank you a lot Mr COUET

Your “output” file is completely empty.

If you do not have “rootls”, you can use the “root-ls”, described e.g. in:

I confirm. Empty file:

% rootls output.root

and also:

% root output.root 
  | Welcome to ROOT 6.25/01               |
  | (c) 1995-2021, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for macosx64 on Mar 09 2021, 09:09:23                      |
  | From heads/master@v6-25-01-72-gb4566d45f8                        |
  | With Apple clang version 12.0.0 (clang-1200.0.32.29)             |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'       |

root [0] 
Attaching file output.root as _file0...
(TFile *) 0x7fb93612a920
root [1] _file0->ls()
TFile**		output.root	
 TFile*		output.root	
root [2] 

Ok, i think it is not running in the cluster…Thank you for your help, I appreciate your reply and interaction. Respect

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