Line | |
---|
1 | |
---|
2 | SUBROUTINE GUKINE |
---|
3 | * |
---|
4 | * Generates Kinematics for primary track |
---|
5 | * |
---|
6 | * Data card Kine : Itype Ekine |
---|
7 | * |
---|
8 | #include "geant321/gconst.inc" |
---|
9 | #include "geant321/gcflag.inc" |
---|
10 | #include "geant321/gckine.inc" |
---|
11 | * |
---|
12 | DIMENSION VERTEX(3),PLAB(3) |
---|
13 | DIMENSION RNDM(2) |
---|
14 | * |
---|
15 | DATA VERTEX/3*0./ |
---|
16 | * |
---|
17 | * |
---|
18 | CALL GSVERT(VERTEX,0,0,0,0,NVERT) |
---|
19 | * |
---|
20 | CALL GRNDM(RNDM,2) |
---|
21 | cosTheta = 2*RNDM(1) - 1. |
---|
22 | sinTheta = sqrt(1. - cosTheta**2) |
---|
23 | Phi = TWOPI*RNDM(2) |
---|
24 | * |
---|
25 | PLAB(1) = PKINE(1)*sinTheta*COS(Phi) |
---|
26 | PLAB(2) = PKINE(1)*sinTheta*SIN(Phi) |
---|
27 | PLAB(3) = PKINE(1)*cosTheta |
---|
28 | * |
---|
29 | CALL GSKINE(PLAB,IKINE,NVERT,0,0,NT) |
---|
30 | * |
---|
31 | * *** Kinematics debug |
---|
32 | IF (IEVENT.EQ.1.OR.IDEBUG.NE.0) CALL GPRINT('KINE',0) |
---|
33 | * |
---|
34 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.