Skip to main content

Python class for reading UCN runs converted to ROOT with midas2root

Project description

ucndata

This repository defines the ucndata package and a few scripts which utilize this package to analyze UCN ROOT files.

The ucndata package contained within has been installed system-wide on daq04. You will therefore be able to import it from any directory.

ucndata quick links

Quick API Reference

These are the main workhorses of the ucndata project:

  • ucnbase - base class for the following:
  • ucnrun - workhorse object representing a single run
  • ucncycle - workhorse object representing a single cycle within a run
  • ucnperiod - workhorse object representing a single period within a cycle

But these can also be useful:

  • the chopper module - redefinition for working with chopper data
  • applylist - for working with sets of runs or cycles or periods. Does element-wise attribute access and operators
  • datetime - convert timestamps to datetime objects and back

rootloader API

rootloader is a custom package which facilitates the reading of ROOT files in a more pythonic way than is provided by generic PyROOT. In general it attempts to make the various ROOT objects (histograms, trees) look like pandas dataframes. When you are looking at the contents of ucnrun.tfile you are looking at the rootloader.tfile object. Here are the reference for some of the more commonly found rootloader objects:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ucndata-4.5.4.tar.gz (58.9 kB view details)

Uploaded Source

File details

Details for the file ucndata-4.5.4.tar.gz.

File metadata

  • Download URL: ucndata-4.5.4.tar.gz
  • Upload date:
  • Size: 58.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for ucndata-4.5.4.tar.gz
Algorithm Hash digest
SHA256 f9ada9511f1402dd0805b363010ca44efba9fd94f3880290bd50cd3a1c20a99f
MD5 2a61a391052f9b6b7472321cd57e7f78
BLAKE2b-256 fcd013d5450051f481d932ef399382076afa7247d3280bd7c2b5db43537009d1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page