Belle II Software  release-06-00-14
MCSample Class Reference
Inheritance diagram for MCSample:
Collaboration diagram for MCSample:

Public Member Functions

def __init__ (self, *location, process, campaign, beam_energy="4S", beam_background="BGx1", **kwargs)
 
def __repr__ (self)
 
def as_dict (self)
 
def encodeable_name (self)
 
def printable_name (self)
 
def __str__ (self)
 

Static Public Member Functions

def resolve_path (location)
 

Public Attributes

 location
 
 process
 
 beam_energy
 
 campaign
 
 beam_background
 

Detailed Description

Definition at line 150 of file testfiles.py.

Member Function Documentation

◆ as_dict()

def as_dict (   self)
Sample serialised as a dictionary.

Reimplemented from Sample.

Definition at line 187 of file testfiles.py.

◆ encodeable_name()

def encodeable_name (   self)
Identifying string which is safe to be included as a filename component or as a
key in the skim stats JSON file.

As a rough naming convention, data samples should start with 'Data-', MC sample
with 'MC-', and custom samples with 'Custom-'.

Reimplemented from Sample.

Definition at line 197 of file testfiles.py.

◆ printable_name()

def printable_name (   self)
Human-readable name for displaying in printed tables.

Reimplemented from Sample.

Definition at line 203 of file testfiles.py.

◆ resolve_path()

def resolve_path (   location)
staticinherited
Replace ``'${SampleDirectory}'`` with ``Sample.SampleDirectory``, and resolve
the path.

Parameters:
    location (str, pathlib.Path): Filename to be resolved.

Returns:
    pathlib.Path: Resolved path.

Definition at line 59 of file testfiles.py.


The documentation for this class was generated from the following file: