EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
lwbb.F
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file lwbb.F
1 
2 C ********************************************************************
3 
4  SUBROUTINE lwbb(ENU)
5 
6  IMPLICIT NONE
7  REAL emean,slope,emin,emax,enu
8  REAL a1,a2,e
9  REAL rlu
10 
11 C...Gives energy (ENU) of a (anti-)neutrino chosen from a simple
12 C...parametrization of a wide band beam.
13 
14  DATA emean,slope,emin,emax/30.,0.02,12.,300./
15  a1=1./(emean-12.)
16  a2=exp(emean*slope)
17  100 enu=300.*rlu(0)
18  IF(enu.LT.emean)THEN
19  e=a1*(enu-12.)
20  ELSE
21  e=a2*exp(-enu*slope)
22  ENDIF
23  IF(enu.LT.emin.OR.enu.GT.emax) goto 100
24  IF(e.LT.rlu(0)) goto 100
25  RETURN
26  END