sigmazerosearch.general

General types to aid in configuring the framework.

Module Contents

Classes

Config

Config represents configuration options that will affect the operation of the selection framework but should not effect the physics choices made by the framework.

PDG

Enum representing the PDG codes relevant to the analysis.

API

class sigmazerosearch.general.Config[source]

Config represents configuration options that will affect the operation of the selection framework but should not effect the physics choices made by the framework.

plot_save: bool

False

plot_dir: pathlib.Path | None

None

plot_format: str | Iterable[str]

‘png’

perf_percent: bool

False

branch_list: Iterable[str] | None

None

iterate: bool

False

iterate_step: int | str | None

None

data_dir: pathlib.Path

‘Path(…)’

__post_init__()[source]
static from_dict(kwargs)[source]
with_(kvs: dict)[source]
classmethod default()[source]
validate()[source]

Checks if certain config value combinations have been set together.

For example: plotting requires an output format(s) and an output directory

class sigmazerosearch.general.PDG[source]

Bases: enum.IntEnum

Enum representing the PDG codes relevant to the analysis.

E

11

NuE

12

Muon

13

NuMu

14

Photon

22

Pi0

111

Pi

211

Kaon0

311

Kaon

321

Neutron

2112

Proton

2212

Lambda

3122

Sigma0

3212

SigmaM

3112

SigmaP

3222

property anti: int

Gets the anti-particle pdg code value excluding neutral particles

__invert__()[source]
__neg__()[source]