The real physics examples live here, alongside this repo's Coffea/TaskVine
setup; vine_reduce only keeps its own minimal, non-physics quickstart:
trijet/vr_trijet_taskvine.py— start here. The introductory template for adaptingVineReduceCoffeato your own analysis: ADL benchmark Q6 (trijet pT / max b-tag histograms) fromcoffea-benchmarks, translated from acoffea.processor.ProcessorABCinto a single, plainVineReduceCoffeaprocessor function over synthetic NanoAOD-like ROOT files, no real CMS data needed - the smallest, most self-contained example of the translation. Its comments mark the pieces meant to be copied as-is ("BOILERPLATE") versus the ones to swap out for your own analysis ("REPLACE": your data inbuild_datasets(), your per-chunk logic intrijet_processor(), and your processor(s) inmain()'sprocessors={...}dict). Runs overTaskVineDistributor;trijet/vr_trijet_iterative.pyis the same example run overLocalDistributorinstead - no cluster orvine_factory/vine_workerneeded, useful for a quick local check.tutorial_nd/— the scripts and data manifests of the TaskVine / VineReduce tutorial given at Notre Dame (ND-specific: its data, pool, and certificates only exist there): the trijet analysis over real CMS Open Data, fromLocalDistributorto the HTCondor pool, with checkpoints, skims, andfailure_proportion.ADL/vr_adl_benchmarks.py— all eight IRIS-HEP ADL benchmark queries (Q1-Q8;processors.pyholds the query bodies, including the sameq6astrijetabove), translated the same way and run together over one synthetic NanoAOD-like dataset. Shows that a coffeaProcessorABC'sprocess(self, events)body drops in almost unchanged, and thatVineReduceCoffea'sdefault_reduceralready knows how to sumHisthistograms (or, for Q6, a dict of two) across chunks with no custom reducer required (contrast withcortado'saccumulate_skims).cortado/vr_cortado.py— a HEP skim over synthetic NanoAOD-like ROOT files usingVineReduceCoffea, no real CMS data orxrootdaccess needed. See the "Quickstart: cortado on synthetic data" section of DOC.md for the call shape and how it maps onto this stack.ttBar/run_processor_with_vr.py— thettbarEFTproduction integration, on the currentVineReduceCoffea/TaskVineDistributorAPI. Unlike the other examples, it targets a real cluster (a manager-onlyTaskVineDistributorover independently-launched workers, not a localvine.Factory), so it's a reference for how a full physics analysis wires up channels, histogram selection, and X509 proxy handling — not a script you run standalone without a cluster. See DOC.md's "Production use: ttbarEFT" section for context.
Set up the environment once (see README.md's Installation
section), then run trijet, ADL, cortado,
or ttBar from inside this repo, like:
cd examples/trijet # or ADL, cortado, ttBar
# conda
conda activate vine-cms-analysis-stack
python vr_trijet_taskvine.py
# pixi
pixi run python vr_trijet_taskvine.pytrijet, ADL, and cortado all generate their synthetic NanoAOD-like
ROOT files the same way, via the shared
write_test_data.py script - each example calls it
as a subprocess the first time it runs (see ensure_datasets() in its
vr_*.py), and reuses the same files (and the datasets.json manifest it
writes alongside them) on later runs. Delete an example's data/
directory to force fresh synthetic data.