Recent Changes · Search:

Dispense


Navigation Tips - Dritte


PmWiki

pmwiki.org

edit SideBar

Root

< How to update the distribution | Index


Use uproot

  • pip install uproot [--upgrade] --user
  • the following examples has been worked out for LEM data (using PostPileUp histograms 21-28
  • data = uproot.open(filename)
  • header = data['RunHeader'].members['fFolders']
  • header[0:6] are strings; eg header[0][0][:] is '000 - Version: git-sha: dae9ef0ffba4 -@0', whereas headr[6] contains strings of distinct scaler counts from [6][0][:] to [6][7][:]
  • see musrfit/CCO/run-09-24/LEM/underdoped/Analysis/muheader_root.py
    • header[0] is general; header[1] is histo info (t0 and length); [3:5] are cryo, magnet and beamline names; [5] is beamline info, Temperatures [128:132]; [6] is sums
  • histoLeftPPC = data['histos'].members["fFolders"][0].members['fFolders'][8].counts()
  • histoLeftPPC = data['histos'].members["fFolders"][0].members['fFolders'][8].counts()

< How to update the distribution | Index

Edit - History - Print - PDF - Recent Changes - Search
Page last modified on September 28, 2024, at 05:13 PM