Problems reading CWN

Hello,

I have a CWN ntuple (generated by MOCADI) in paw:


  • Ntuple ID = 1 Entries = 2000000 SAVE

  • Var numb * Type * Packing * Range * Block * Name *

  •  1   * I*4  *         * [0,15]       * TEILCHEN * N
    
  •  2   * R*4  *         *              * TEILCHEN * X(N)
    
  •  3   * R*4  *         *              * TEILCHEN * A(N)
    
  •  4   * R*4  *         *              * TEILCHEN * Y(N)
    
  •  5   * R*4  *         *              * TEILCHEN * B(N)
    
  •  6   * R*4  *         *              * TEILCHEN * ENERGY(N)
    
  •  7   * R*4  *         *              * TEILCHEN * TIME(N)
    
  •  8   * R*4  *         *              * TEILCHEN * MASS(N)
    
  •  9   * R*4  *         *              * TEILCHEN * Z(N)
    
  • 10   * R*4  *         *              * TEILCHEN * ELNUM(N)
    
  • 11   * R*4  *         *              * TEILCHEN * TOF(N)
    
  • 12   * R*4  *         *              * TEILCHEN * DE(N)
    
  • 13   * R*4  *         *              * TEILCHEN * BRHO(N)
    
  • 14   * R*4  *         *              * TEILCHEN * WEIGHT(N)
    
  • 15   * R*4  *         *              * TEILCHEN * RANGE
    
  • 16   * R*4  *         *              * TEILCHEN * tpos
    

  • Block * Entries * Unpacked * Packed * Packing Factor *

  • TEILCHEN * 2000000 * 792 * Var. * Variable *
  • Total * — * 792 * Var. * Variable *

  • Blocks = 1 Variables = 16 Max. Columns = 198 *

and I have no idea how to read variable length arrays using THbook classes in ROOT.
I tried h2root program - it runs without any problems but I am left with the first item in all arrays (in other words “N” is always = 1). But when inspecting the file in PAW everything looks OK. I don’t know if it is some strange problem with MOCADI generating these CWN ntuples…

Can somebody help me?

thanks
michal

Could you send a small PAW ntuple showing this problem when converting with h2root?
ROOT supports obviously variable length arrays.

Rene

I am sorry for posting this problem. Everything seems to be working just fine now. I thought it was the MOCADI output so I generated a new ntuple in PAW and that one converted OK. So this morning I tried the real ntuple (generated by MOCADI) and it worked - I have no idea what I did yesterday! I may have gotten misled by not seeing “[]” in the TBrowser next to my arrays…

thanks anyway
michal