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.1.tar.gz (58.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: ucndata-4.5.1.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.1.tar.gz
Algorithm Hash digest
SHA256 ac8df0283b6af664366bbf21a320458e4a6e1827ed313e3bc1166ab442cbbfde
MD5 668367776504b4ce1c70fe57c815dd4f
BLAKE2b-256 cb82636a6974c40b075eba7ff51562c68897a863049ba23da5e4c02fbab6a19f

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