Skip to content

hipo-slice

Extract a subset of banks from HIPO files.

Synopsis

hipo-slice [options] <input.hipo>

Description

hipo-slice creates a new HIPO file containing only specified banks. Useful for reducing file size by removing unwanted banks or creating focused datasets.

Options

Option Description
-o, --output <file> Output file (required)
-I, --include <banks> Include only these banks (comma-separated)
-E, --exclude <banks> Exclude these banks (comma-separated)
-n, --max-events <n> Maximum events to process (-1 = all)
-q, --quiet Suppress progress output
--no-color Disable colored output

Wildcard Support

Patterns with * are supported for bank names (e.g., REC::*, RAW::*).

Examples

Include Specific Banks

# Keep only specific banks
hipo-slice -I REC::Particle,REC::Track -o reduced.hipo full.hipo

# Keep only REC banks (wildcard)
hipo-slice -I "REC::*" -o rec_only.hipo data.hipo

Exclude Banks

# Remove RAW banks
hipo-slice -E "RAW::*" -o no_raw.hipo data.hipo

# Remove multiple bank types
hipo-slice -E "RAW::*,COAT::*" -o slim.hipo data.hipo

Limit Events

# Extract first 1000 events with specific banks
hipo-slice -I REC::Particle -n 1000 -o sample.hipo data.hipo

See Also