HPS-MC
 
All Classes Namespaces Files Functions Variables Pages
Loading...
Searching...
No Matches
func.py File Reference

Go to the source code of this file.

Namespaces

namespace  hpsmc
 
namespace  hpsmc.func
 Miscellaneous math functions.
 

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