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="/"))

