![]() |
FairShip
|
Functions | |
| file_is_beauty (first_hadron_mass) | |
| check_input_flavour (is_beauty, file_beauty) | |
| derive_cross_sections (target_composition=None, A=None, chicc=None, chibb=None, sigma_QQ=None, is_beauty=False) | |
| check_run_type_override (is_beauty, chicc, chibb) | |
| format_summary (cs, target_composition=None) | |
Variables | |
| int | heavyflavour_Ascale = 1 |
| float | mbias_Ascale = 0.71 |
| float | A_REF = 98.0 |
| float | CHICC_REF = 1.7e-3 |
| float | CHIBB_REF = 1.6e-7 |
| float | SIGMA_CC_REF = 18.1e-3 |
| float | SIGMA_BB_REF = SIGMA_CC_REF * CHIBB_REF / CHICC_REF |
| dict | TARGET_A = {"W": 184.0, "Mo": 98.0} |
| CrossSections = namedtuple("CrossSections", ["chicc", "chibb", "A", "scale"]) | |
| float | BEAUTY_MASS_MIN = 5.0 |
Target-composition scaling of charm/beauty over min-bias cross-section ratios. Shared by ``macro/makeDecay.py`` and ``macro/run_fixedTarget.py`` so the physics constants and the ``chicc``/``chibb`` derivation live in a single place.
| heavyFlavourScaling.check_input_flavour | ( | is_beauty, | |
| file_beauty ) |
Reject a run type (``--charm``/``--beauty``) that disagrees with the flavour of the cascade input file. The generator takes the flavour from the file, so a mismatch would scale the wrong cross section.
Definition at line 36 of file heavyFlavourScaling.py.
| heavyFlavourScaling.check_run_type_override | ( | is_beauty, | |
| chicc, | |||
| chibb ) |
Reject a cross-section override that does not match the run type. A run is either charm or beauty, so at most one of ``chicc``/``chibb`` is meaningful. Passing the wrong one (or both) is a mistake and raises ``ValueError`` with a clear message rather than being silently ignored.
Definition at line 73 of file heavyFlavourScaling.py.
| heavyFlavourScaling.derive_cross_sections | ( | target_composition = None, | |
| A = None, | |||
| chicc = None, | |||
| chibb = None, | |||
| sigma_QQ = None, | |||
| is_beauty = False ) |
Return default-scaled chicc/chibb, honouring explicit overrides. ``A`` overrides the ``target_composition`` preset; ``chicc``/``chibb`` override the target-derived value when not ``None``. Supply either ``target_composition`` (a known preset) or an explicit ``A``. ``sigma_QQ`` is the cross section per nucleon [mb] of the cascade input file, and rescales the reference probability of the flavour that file holds: beauty for ``is_beauty``, charm otherwise.
Definition at line 47 of file heavyFlavourScaling.py.
| heavyFlavourScaling.file_is_beauty | ( | first_hadron_mass | ) |
Flavour of a cascade input file as FixedTargetGenerator sees it, from the mass [GeV] of its first hadron.
Definition at line 31 of file heavyFlavourScaling.py.
| heavyFlavourScaling.format_summary | ( | cs, | |
| target_composition = None ) |
One human-readable summary of the derived cross-section ratios.
Definition at line 88 of file heavyFlavourScaling.py.
| float heavyFlavourScaling.A_REF = 98.0 |
Definition at line 17 of file heavyFlavourScaling.py.
| float heavyFlavourScaling.BEAUTY_MASS_MIN = 5.0 |
Definition at line 28 of file heavyFlavourScaling.py.
| float heavyFlavourScaling.CHIBB_REF = 1.6e-7 |
Definition at line 19 of file heavyFlavourScaling.py.
| float heavyFlavourScaling.CHICC_REF = 1.7e-3 |
Definition at line 18 of file heavyFlavourScaling.py.
| heavyFlavourScaling.CrossSections = namedtuple("CrossSections", ["chicc", "chibb", "A", "scale"]) |
Definition at line 26 of file heavyFlavourScaling.py.
| int heavyFlavourScaling.heavyflavour_Ascale = 1 |
Definition at line 14 of file heavyFlavourScaling.py.
| float heavyFlavourScaling.mbias_Ascale = 0.71 |
Definition at line 15 of file heavyFlavourScaling.py.
| float heavyFlavourScaling.SIGMA_BB_REF = SIGMA_CC_REF * CHIBB_REF / CHICC_REF |
Definition at line 23 of file heavyFlavourScaling.py.
| float heavyFlavourScaling.SIGMA_CC_REF = 18.1e-3 |
Definition at line 22 of file heavyFlavourScaling.py.
| dict heavyFlavourScaling.TARGET_A = {"W": 184.0, "Mo": 98.0} |
Definition at line 24 of file heavyFlavourScaling.py.