TBranch names with dots when scanning


ROOT Version: 6.18/04
Platform: Ubuntu 18.04
Compiler: gcc 7.5.0 (Ubuntu 7.5.0-3)


I’m facing this rather bizarre issue.
I’m creating a TTree with TBranches. The tree seems to be filled ok but the branch names appear two times separated by dots when I Scan() the tree like so

************************************************************************************************************
*    Row   * tof.tof * detn.detn * event_ID. * Q_short.Q * Q_long.Q_ * RunNumber * tof0.tof *       PSD *
************************************************************************************************************
*        0 * 940829.58 *         3 *         0 *      6944 *      9611 *     24438 *         0 * 0.2774945 *
*        1 * 5602587.1 *         2 *         1 *      3814 *      5311 *     24438 *         0 * 0.2818678 *
*        2 * 22469888. *         2 *         3 *      8845 *     33926 *     24438 *         0 * 0.7392855 *

However when I Print(), the names appear normal i.e.


******************************************************************************
*Tree    :tree     : A test TTree                                  *
*Entries : 14589180 : Total =      1053086443 bytes  File  Size =  526519978 *
*        :          : Tree compression factor =   2.00                       *
******************************************************************************
*Br    0 :tof      : Uncorrected time of flight/D                           *
*Entries : 14589180 : Total  Size=  234042263 bytes  File Size  =  116976744 *
*Baskets :     3657 : Basket Size=      32000 bytes  Compression=   2.00     *
*............................................................................*
*Br    1 :detn      : Detector number/I                                      *
*Entries : 14589180 : Total  Size=  116989234 bytes  File Size  =   58488336 *
*Baskets :     1828 : Basket Size=      32000 bytes  Compression=   2.00     *
*............................................................................*
*Br    2 :event_ID  : Event ID/I                                             *
*Entries : 14589180 : Total  Size=  117028625 bytes  File Size  =   58495724 *
*Baskets :     1829 : Basket Size=      32000 bytes  Compression=   2.00     *
*............................................................................*
*Br    3 :Q_short   : Area for the fast component/s                          *
*Entries : 14589180 : Total  Size=   58481563 bytes  File Size  =   29246910 *
*Baskets :      914 : Basket Size=      32000 bytes  Compression=   2.00     *
*............................................................................*
*Br    4 :Q_long    : Area for the slow component/s                          *
*Entries : 14589180 : Total  Size=   58480648 bytes  File Size  =   29245996 *
*Baskets :      914 : Basket Size=      32000 bytes  Compression=   2.00     *
*............................................................................*
*Br    5 :RunNumber : Run Number/I                                           *
*Entries : 14589180 : Total  Size=  117030461 bytes  File Size  =   58497553 *
*Baskets :     1829 : Basket Size=      32000 bytes  Compression=   2.00     *
*............................................................................*
*Br    6 :tof0     : T0/D                                                   *
*Entries : 14589180 : Total  Size=  234045849 bytes  File Size  =  116980401 *
*Baskets :     3657 : Basket Size=      32000 bytes  Compression=   2.00     *
*............................................................................*
*Br    7 :PSD       : PSD/F                                                  *
*Entries : 14589180 : Total  Size=  116987369 bytes  File Size  =   58486508 *
*Baskets :     1828 : Basket Size=      32000 bytes  Compression=   2.00     *
*............................................................................*

Any idea if this is something bad and/or how to fix it?

If you specify the variable names like:

t->Scan("tof:detn")

The names will appear as you expect. I am not really sure why, when you do not specify any names, they appear like you mentioned. May be @pcanal knows.

I verify that when I Scan() with names I get the expected behaviour.
When I Scan() or Scan("*") I see these dot separated double names.

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