Miscellaneous math functions. More...
Functions | |
| lint (target_dz, num_electrons, density=6.306e-14) | |
| Calculate integrated luminosity. | |
| csection (filename) | |
| Extract cross-section from gzipped LHE file. | |
| mu (filename, target_dz, num_electrons) | |
| Calculate mu = number of events per bunch. | |
| nevents (filename, confirm=False) | |
| Read number of events in file from LHE header and optionally confirm by counting <event> blocks. | |
| nbunches (filename, target_dz, num_electrons) | |
| Get the approximate number of beam bunches represented by an LHE file from its event count. | |
Variables | |
| logger = logging.getLogger("hpsmc.func") | |
Miscellaneous math functions.
| csection | ( | filename | ) |
| lint | ( | target_dz, | |
| num_electrons, | |||
density = 6.306e-14 |
|||
| ) |
| 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 |
| nbunches | ( | filename, | |
| target_dz, | |||
| num_electrons | |||
| ) |
| nevents | ( | filename, | |
confirm = False |
|||
| ) |