EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
demo2.F
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file demo2.F
1 C***********************************************************************
2 C...
3  PROGRAM demo
4 
5 C...Demonstration job for LEPTO 6.5
6  COMMON /leptou/ cut(14),lst(40),parl(30),x,y,w2,q2,u
7  common/lujets/n,k(4000,5),p(4000,5),v(4000,5)
8  DATA nprint/10/,nevent/100/
9 
10 C...Settings
11  cut(5)=10.
12  cut(7)=25.
13 
14 C...Init
15  CALL timex(t1)
16  CALL linit(0,-11,-27.5,820.0,4)
17  CALL timex(t2)
18 
19  DO 500 ne=1,nevent
20  100 CALL lepto
21  IF(lst(21).NE.0) THEN
22  WRITE(6,*) ' Warning: LST(21)=',lst(21),' event skipped'
23  goto 100
24  ENDIF
25  IF(ne.LE.nprint) THEN
26  CALL lulist(1)
27  WRITE(6,*) ' x,y,Q2,W= ',x,y,q2,sqrt(w2)
28  ENDIF
29  500 CONTINUE
30  600 CONTINUE
31  CALL timex(t3)
32  WRITE(6,1000) parl(23),parl(24),nevent,t2-t1,t3-t2,(t3-t2)/nevent
33  1000 FORMAT(/,' Cross section from numerical integration:',g12.3,' pb',
34  & /,' Cross section from MonteCarlo simulation:',g12.3,' pb',
35  & /,' Number of events generated: ',i12,
36  & /,' Time for initialization: ',f12.3,' s',
37  & /,' Time for event generation, total: ',f12.3,' s',
38  & /,' per event: ',f12.3,' s')
39  END