getNumberTrees              package:xps              R Documentation

_G_e_t _N_u_m_b_e_r _o_f _T_r_e_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Get number of trees stored in a ROOT file.

_U_s_a_g_e:

     getNumberTrees(rootfile, treetype = "*", setname = NULL)

_A_r_g_u_m_e_n_t_s:

rootfile: name of ROOT file, including full path.

treetype: tree type.

 setname: name of ROOT subdirectory containing trees.

_D_e_t_a_i_l_s:

     Extracts the number of trees of 'treetype' stored in 'ROOT' file
     'rootfile'. 
      Valid tree types are listed in 'validTreetype'. For
     'treetype="*"' the total number of trees in 'rootfile' are
     returned. 
      If 'setname' is provided, only trees in subdirectory 'setname'
     are counted.

_V_a_l_u_e:

     Number of trees.

_A_u_t_h_o_r(_s):

     Christian Stratowa

_E_x_a_m_p_l_e_s:

     getNumberTrees(paste(.path.package("xps"),"schemes/SchemeTest3.root",sep="/"))
     getNumberTrees(paste(.path.package("xps"),"rootdata/DataTest3_cel.root",sep="/"))

