Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pytaud.f
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file pytaud.f
1 
2 C*********************************************************************
3 
4 C...PYTAUD
5 C...Dummy routine, to be replaced by user, to handle the decay of a
6 C...polarized tau lepton.
7 C...Input:
8 C...ITAU is the position where the decaying tau is stored in /PYJETS/.
9 C...IORIG is the position where the mother of the tau is stored;
10 C... is 0 when the mother is not stored.
11 C...KFORIG is the flavour of the mother of the tau;
12 C... is 0 when the mother is not known.
13 C...Note that IORIG=0 does not necessarily imply KFORIG=0;
14 C... e.g. in B hadron semileptonic decays the W propagator
15 C... is not explicitly stored but the W code is still unambiguous.
16 C...Output:
17 C...NDECAY is the number of decay products in the current tau decay.
18 C...These decay products should be added to the /PYJETS/ common block,
19 C...in positions N+1 through N+NDECAY. For each product I you must
20 C...give the flavour codes K(I,2) and the five-momenta P(I,1), P(I,2),
21 C...P(I,3), P(I,4) and P(I,5). The rest will be stored automatically.
22 
23  SUBROUTINE pytaud(ITAU,IORIG,KFORIG,NDECAY)
24 
25 C...Double precision and integer declarations.
26  IMPLICIT DOUBLE PRECISION(a-h, o-z)
27  IMPLICIT INTEGER(i-n)
28  INTEGER pyk,pychge,pycomp
29 C...Commonblocks.
30  common/pyjets/n,npad,k(4000,5),p(4000,5),v(4000,5)
31  common/pydat1/mstu(200),paru(200),mstj(200),parj(200)
32  SAVE /pyjets/,/pydat1/
33 
34 C...Stop program if this routine is ever called.
35 C...You should not copy these lines to your own routine.
36  ndecay=itau+iorig+kforig
37  WRITE(mstu(11),5000)
38  CALL pystop(10)
39 
40 C...Format for error printout.
41  5000 FORMAT(1x,'Error: you did not link your PYTAUD routine ',
42  &'correctly.'/1x,'Dummy routine in PYTHIA file called instead.'/
43  &1x,'Execution stopped!')
44 
45  RETURN
46  END