source: trunk/examples/extended/electromagnetic/TestEm2/geant3/src/gukine.F

Last change on this file was 807, checked in by garnier, 16 years ago

update

File size: 1.9 KB
Line 
1
2      SUBROUTINE GUKINE                                                         
3*                                                                               
4*    Generates Kinematics for primary track
5*
6*    Data card Kine : Itype  Ekine
7*                     (pkine(3) is used internaly to store Etot)                                       
8*                                                                               
9#include "geant321/gcbank.inc"
10#include "geant321/gcflag.inc"
11#include "geant321/gckine.inc"
12#include "pvolum.inc"                                                                     
13*                                                                               
14      DIMENSION VERTEX(3),PLAB(3)                                               
15      DATA VERTEX/3*0./                                                         
16      DATA PLAB  /3*0./                                                         
17*                                                           
18      VERTEX(3) = - Z1     + 0.0001                         
19      CALL GSVERT(VERTEX,0,0,0,0,NVERT)                         
20*                                                         
21      JPA = LQ(JPART-IKINE)                             
22      XMASS = Q(JPA+7)                                     
23      PKINE(3) = XMASS + PKINE(1)                         
24      PLAB(3)  = SQRT(PKINE(1)*(PKINE(3)+XMASS))                                 
25*                                                         
26      CALL GSKINE(PLAB,IKINE,NVERT,0,0,NT)                           
27*                                                                   
28* *** Kinematics debug                     
29      IF(IEVENT.EQ.1.OR.IDEBUG.NE.0) CALL GPRINT('KINE',0)   
30*                                                                               
31      END                                                                       
Note: See TracBrowser for help on using the repository browser.