Meta / AMI (Python)
Cython wrappers for ATLAS AMI dataset metadata. Import from
AnalysisG.core.meta.
ami_client
ami_client wraps PyAMI authentication and dataset queries. It is
used internally by Meta.FetchMeta and is not normally instantiated
by user code.
Method (internal) |
Description |
|---|---|
|
Load cached PyAMI query results from the HDF5 file at
|
|
Pickle-serialise the current dsid/dataset/info query results and write them into the HDF5 cache file. |
|
Populate |
|
Query AMI for all datasets matching |
Meta
Meta wraps the C++ meta_t struct and exposes all ATLAS sample
metadata fields as Python properties.
from AnalysisG.core.meta import Meta
m = Meta()
m.MetaCachePath = "/data/metacache.hdf5"
m.FetchMeta(410470, "e7101_s3681_r13144_p5855")
print(m.dsid, m.ecmEnergy, m.generators)
print("cross-section [pb]:", m.crossSection)
print("expected events at 140 fb-1:", m.expected_events(140.0))
Methods
Signature |
Description |
|---|---|
|
Set |
|
Return |
|
Compute expected event count as |
|
Return the 18-character hex hash of the last |
Boolean Properties
Property |
Description |
|---|---|
|
|
|
|
Scalar Numeric Properties
Property |
Type |
Description |
|---|---|---|
|
|
ATLAS Dataset Identifier (e.g. |
|
|
AMI internal dataset number; may differ from |
|
|
Number of files in the dataset (from AMI). |
|
|
Total number of events as reported by AMI. |
|
|
ROOT-level event-number counter; |
|
|
Framework event position index; |
|
|
Total dataset size in bytes (from AMI). |
|
|
Higher-order QCD/EW K-factor from PMG (default |
|
|
Centre-of-mass energy in GeV (e.g. |
|
|
Generator filter efficiency (0–1). |
|
|
Dataset completion fraction (0–1) from AMI. |
|
|
Individual beam energy in GeV (half of |
|
|
Inclusive cross-section in pb ( |
|
|
Raw cross-section in nb as stored in |
|
|
Integrated luminosity of the ATLAS campaign in fb⁻¹. |
String Properties
Property |
Description |
|---|---|
|
AMI production tag string (e.g. |
|
ATLAS DAOD derivation format (e.g. |
|
Space-separated generator names (e.g. |
|
AMI dataset identifier string. |
|
Human-readable logical dataset name. |
|
Full AMI logical dataset name including all processing tags
(e.g. |
|
Production system status (e.g. |
|
Data format type (e.g. |
|
Dataset version string (e.g. |
|
Parton distribution function set name (e.g. |
|
ATLAS software release tag (e.g. |
|
ATLAS physics group responsible for the sample (e.g. |
|
Short physics-process description label
(e.g. |
|
Full generator name string (e.g. |
|
ATLAS detector geometry tag
(e.g. |
|
ATLAS conditions database tag
(e.g. |
|
MC underlying-event tune name
(e.g. |
|
AMI dataset lifecycle status (e.g. |
|
Beam collision type (e.g. |
|
AMI production step label (e.g. |
|
ATLAS MC production project (e.g. |
|
Statistical algorithm for event counting
(e.g. |
|
Comma-separated generator filter names applied to the sample. |
|
File format type string (e.g. |
|
Full sample path or name; used as a fallback source for
|
|
ATLAS campaign identifier extracted from the sum-of-weights
histogram (e.g. |
|
Path to the HDF5 file used to cache AMI query results. |
List Properties
Property |
Element type |
Description |
|---|---|---|
|
|
AMI keyword list (from |
|
|
Short AMI keyword list (from |
|
|
Available event-weight names (from |
|
|
GUID strings for each input file. |
|
|
Number of events per input file. |
|
|
Run numbers present in the dataset. |
|
|
Size of each input file in bytes. |
Dict / Map Properties
Property |
Type |
Description |
|---|---|---|
|
|
Maps file index → local file path. |
|
|
Arbitrary key-value configuration pairs from the
|
|
|
Maps tree name → |
MetaLookup
MetaLookup provides a lookup table from dataset label/hash to Meta
object. Populated during Analysis.Start() when FetchMeta = True.
Attribute / Method |
Description |
|---|---|
|
Reference integrated luminosity in fb⁻¹ used for
|
|
|
|
|
|
Resolve a filename or label to its |
|
|
|
|
|
|
|
Returns |
|
Returns a fresh |
Data
Data accumulates per-sample event-data vectors and applies
cross-section normalisation when data and weights are assigned.
Property / Method |
Description |
|---|---|
|
Assign a |
|
Concatenate all accumulated data vectors into a single
|
|
Assign a |
|
Return the cross-section–normalised weight vector:
|
|
Merge other’s weights and data into this object. |
|
Supports |