Miscellaneous math functions. More...
Functions | |
def | lint (target_dz, num_electrons, density=6.306e-14) |
Calculate integrated luminosity. More... | |
def | csection (filename) |
Extract cross-section from gzipped LHE file. More... | |
def | mu (filename, target_dz, num_electrons) |
Calculate mu = number of events per bunch. More... | |
def | nevents (filename, confirm=False) |
Read number of events in file from LHE header and optionally confirm by counting <event> blocks. More... | |
def | nbunches (filename, target_dz, num_electrons) |
Get the approximate number of beam bunches represented by an LHE file from its event count. More... | |
Variables | |
logger = logging.getLogger("hpsmc.func") | |
Miscellaneous math functions.
def hpsmc.func.csection | ( | filename | ) |
def hpsmc.func.lint | ( | target_dz, | |
num_electrons, | |||
density = 6.306e-14 |
|||
) |
def hpsmc.func.mu | ( | filename, | |
target_dz, | |||
num_electrons | |||
) |
Calculate mu = number of events per bunch.
WARNING: This function does not work properly because csection() is broken!
filename | name of input LHE input file containing cross section |
target_dz | target thickness in cm |
num_electrons | number of electrons in bunch |
def hpsmc.func.nbunches | ( | filename, | |
target_dz, | |||
num_electrons | |||
) |
def hpsmc.func.nevents | ( | filename, | |
confirm = False |
|||
) |