How to extract data from histogram

Hi experts, I am looking for extracting data from histogram
I created histogram by using random numbers…

Best regards

CDF_77_33cpp (1.5 KB)

Your macro does not work:

% root CDF_77_33.cpp
   ------------------------------------------------------------------
  | Welcome to ROOT 6.27/01                        https://root.cern |
  | (c) 1995-2022, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for macosx64 on Jul 21 2022, 08:50:28                      |
  | From heads/master@v6-25-02-1851-g2455931919                      |
  | With Apple clang version 13.1.6 (clang-1316.0.21.2.5)            |
  | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q'  |
   ------------------------------------------------------------------

root [0] 
Processing CDF_77_33.cpp...
 
 
libc++abi: terminating with uncaught exception of type std::invalid_argument: stod: no conversion
%