Search arXivSearch

arXiv · 2302.09860

Awkward to RDataFrame and back

Abstract

Awkward Arrays and RDataFrame provide two very different ways of performing calculations at scale. By adding the ability to zero-copy convert between them, users get the best of both. It gives users a better flexibility in mixing different packages and languages in their analysis. In Awkward Array version 2, the ak.to_rdataframe function presents a view of an Awkward Array as an RDataFrame source. This view is generated on demand and the data are not copied. The column readers are generated based on the run-time type of the views. The readers are passed to a generated source derived from ROOT::RDF::RDataSource. The ak.from_rdataframe function converts the selected columns as native Awkward Arrays. The details of the implementation exploiting JIT techniques are discussed. The examples of analysis of data stored in Awkward Arrays via a high-level interface of an RDataFrame are presented. A few examples of the column definition, applying user-defined filters written in C++, and plotting or extracting the columnar data as Awkward Arrays are shown. Current limitations and future plans are discussed.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Ianna Osborne, Jim Pivarski. 2023-02-20. Awkward to RDataFrame and back. https://arxiv.org/abs/2302.09860

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

Search for dark matter in a signature with a four-prong large-radius jet in proton-proton collisions at $\sqrt{s}$ = 13 TeV

A search for a pair of nonprompt dark matter (DM) candidates produced in association with an initial-state radiation jet, in a signature containing a four-prong large-radius jet, is presented. The signal model contains a heavy vector or axial-vector mediator, which produces long-lived dark-sector particles that decay to a stable DM particle and a light boson, which decays to quarks. The analysis is based on data collected in the years 2016$-$2018 with the CMS detector at the LHC in proton-proton collisions at $\sqrt{s}$ = 13 TeV, corresponding to an integrated luminosity of 138 fb$^{-1}$. Signal candidates feature large-radius jets, which are identified using a jet substructure tagger based on a graph neural network. The large-radius jet aims to reconstruct the decay of light DM mediators into four quarks, which are produced in association with two stable DM particles. The standard model background contributions are estimated from data using dedicated control regions. The missing transverse momentum spectrum is probed for a potential signal over the expected background. No significant excess over the standard model expectation is observed. Upper limits at 95% confidence level are set on the signal strength as functions of either the mediator mass or the relevant coupling. This is the first search for a pair of nonprompt DM candidates in the Lorentz-boosted topology, characterized by a large-radius jet and large missing transverse momentum.

hep-ex

Charge-dependent atmospheric muon flux at 17 GV geomagnetic cutoff with the mini-ICAL detector

The Iron CALorimeter (ICAL) detector at the India-Based Neutrino Observatory (INO) was conceived as an underground experiment designed to measure atmospheric neutrino oscillation parameters. As part of the R\&D programme, a scaled prototype (mini-ICAL), 85\,ton, approximately 1/600$^{\mathrm{th}}$ the mass of the full detector, was constructed at the IICHEP Transit Campus, Madurai (altitude 150\,m; latitude 9.9372$^\circ$\,N; longitude 78.013$^\circ$\,E; geomagnetic latitude 1.44$^\circ$\,N; vertical cutoff rigidity 17\,GV) and operated between 2018 and 2022. The prototype enabled measurements of charge-dependent cosmic muon spectra in the vicinity of the geomagnetic equator and provided an important validation of detector performance, reconstruction algorithms, and simulation frameworks for the ICAL experiment. Differential fluxes of $μ^{-}$ and $μ^{+}$ were measured over the momentum range $\sim$\,1--5\,GeV/c. The obtained momentum spectra are systematically lower than those reported at sites with smaller geomagnetic cutoff rigidities, consistent with the suppression of low- and intermediate-rigidity primary cosmic rays at the 17\,GV cutoff. The measurements are compared with predictions from different hadronic interaction models available in CORSIKA simulations.

hep-ex

Laboratory constraints on peV-scale mass splitting between ordinary and sterile neutron states

Sterile states of matter, represented by a parallel ``mirror'' sector, may contribute to the observed dark matter in the Universe. We investigated the parameter space of neutron $(n)$ to mirror-neutron $(n')$ oscillations, in the case where the two states are not necessarily mass-degenerate, taking into account interactions in the mirror sector. By tuning the magnitude of an applied magnetic-field in the range $5~μ\mathrm{T} < B < 360~μ\mathrm{T}$ to corresponding resonance conditions for finite mass splitting, we derive exclusion limits for the $n-n'$ oscillation time constant reaching about $20~\text{s}$ over the mass-difference range $0.3 - 22~\text{peV}$. In parts of this parameter range, our limits exceed the model-dependent neutron-star-cooling bound, providing the first experimental constraints in this scenario that are more stringent than this astrophysical estimate.

hep-ex