HPS-MC
func.py File Reference

Go to the source code of this file.

Namespaces

 hpsmc.func
 Miscellaneous math functions.
 

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")