1 |
* |
2 |
* $Id$ |
3 |
* |
4 |
* $Log$ |
5 |
* |
6 |
*CMZ : 3.00/00 11/05/2001 18.16.48 by Unknown |
7 |
*-- Author : Marialuigia Ambriola 02/05/2001 |
8 |
SUBROUTINE GPGAPART(IDPART,IFAIL) |
9 |
*************************************************************************** |
10 |
* |
11 |
* This is a silly subroutine to fill the GARFIELD common with the PARTICLE |
12 |
* characteristic given the |
13 |
* GEANT particle Id. |
14 |
* |
15 |
* Variables definition: |
16 |
* IN |
17 |
* -IDPART, GEANT particle ID |
18 |
* |
19 |
* Called by: <USER> |
20 |
* |
21 |
* By Caf & ML on 2 May 2001 |
22 |
* |
23 |
*************************************************************************** |
24 |
* |
25 |
* GARFIELD commons |
26 |
* |
27 |
IMPLICIT NONE |
28 |
#include "dimensions.inc" |
29 |
#include "parameters.inc" |
30 |
* |
31 |
* LOCAL VARIABLES |
32 |
* |
33 |
#include "gcunit.inc" |
34 |
INTEGER IFAIL |
35 |
INTEGER IDPART |
36 |
LOGICAL CHARGE,MASS |
37 |
IFAIL = -1 |
38 |
IF(IDPART.EQ.3)THEN |
39 |
TRMASS=0.51099907 |
40 |
TRCHAR=-1 |
41 |
MASS=.TRUE. |
42 |
CHARGE=.TRUE. |
43 |
PNAME='electron-' |
44 |
NCPNAM=9 |
45 |
ITRTYP=4 |
46 |
GO TO 20 |
47 |
ENDIF |
48 |
IF(IDPART.EQ.2)THEN |
49 |
TRMASS=0.51099907 |
50 |
TRCHAR=+1 |
51 |
MASS=.TRUE. |
52 |
CHARGE=.TRUE. |
53 |
PNAME='electron+' |
54 |
NCPNAM=9 |
55 |
ITRTYP=4 |
56 |
GO TO 20 |
57 |
ENDIF |
58 |
IF(IDPART.EQ.6)THEN |
59 |
TRMASS=105.658389 |
60 |
TRCHAR=-1 |
61 |
MASS=.TRUE. |
62 |
CHARGE=.TRUE. |
63 |
PNAME='mu-' |
64 |
NCPNAM=3 |
65 |
ITRTYP=4 |
66 |
GOTO 20 |
67 |
ENDIF |
68 |
IF(IDPART.EQ.5) THEN |
69 |
TRMASS=105.658389 |
70 |
TRCHAR=+1 |
71 |
MASS=.TRUE. |
72 |
CHARGE=.TRUE. |
73 |
PNAME='mu+' |
74 |
NCPNAM=3 |
75 |
ITRTYP=4 |
76 |
GO TO 20 |
77 |
ENDIF |
78 |
*** NO TAUS IN GEANT 3 ........... |
79 |
C # IF(INPCMP(I,'TAU-#MINUS').NE.0)THEN |
80 |
C # TRMASS=1777.00 |
81 |
C # TRCHAR=-1 |
82 |
C # MASS=.TRUE. |
83 |
C # CHARGE=.TRUE. |
84 |
C # PNAME='tau-' |
85 |
C # NCPNAM=4 |
86 |
C # ITRTYP=4 |
87 |
C # ELSEIF(INPCMP(I,'TAU-P#LUS')+INPCMP(I,'TAU+').NE.0)THEN |
88 |
C # TRMASS=1777.00 |
89 |
C # TRCHAR=+1 |
90 |
C # MASS=.TRUE. |
91 |
C # CHARGE=.TRUE. |
92 |
C # PNAME='tau+' |
93 |
C # NCPNAM=4 |
94 |
C # ITRTYP=4 |
95 |
C # ENDIF |
96 |
IF(IDPART.EQ.1)THEN |
97 |
GOTO 10 |
98 |
ENDIF |
99 |
IF(IDPART.EQ.9)THEN |
100 |
TRMASS=139.56995 |
101 |
TRCHAR=-1 |
102 |
MASS=.TRUE. |
103 |
CHARGE=.TRUE. |
104 |
PNAME='pi-' |
105 |
NCPNAM=3 |
106 |
ITRTYP=4 |
107 |
GOTO 20 |
108 |
ENDIF |
109 |
IF(IDPART.EQ.7) THEN |
110 |
TRMASS=134.9764 |
111 |
TRCHAR= 0 |
112 |
MASS=.TRUE. |
113 |
CHARGE=.TRUE. |
114 |
PNAME='pi0' |
115 |
NCPNAM=3 |
116 |
ITRTYP=4 |
117 |
GOTO 20 |
118 |
ENDIF |
119 |
IF(IDPART.EQ.8) THEN |
120 |
TRMASS=139.56995 |
121 |
TRCHAR=+1 |
122 |
MASS=.TRUE. |
123 |
CHARGE=.TRUE. |
124 |
PNAME='pi+' |
125 |
NCPNAM=3 |
126 |
ITRTYP=4 |
127 |
GOTO 20 |
128 |
ENDIF |
129 |
IF(IDPART.EQ.12) THEN |
130 |
TRMASS=493.677 |
131 |
TRCHAR=-1 |
132 |
MASS=.TRUE. |
133 |
CHARGE=.TRUE. |
134 |
PNAME='K-' |
135 |
NCPNAM=2 |
136 |
ITRTYP=4 |
137 |
GOTO 20 |
138 |
ENDIF |
139 |
IF( (IDPART.EQ.16).OR.(IDPART.EQ.10)) THEN |
140 |
TRMASS=497.672 |
141 |
TRCHAR= 0 |
142 |
MASS=.TRUE. |
143 |
CHARGE=.TRUE. |
144 |
PNAME='K0' |
145 |
NCPNAM=2 |
146 |
ITRTYP=4 |
147 |
GOTO 20 |
148 |
ENDIF |
149 |
IF(IDPART.EQ.11) THEN |
150 |
TRMASS=493.677 |
151 |
TRCHAR=-1 |
152 |
MASS=.TRUE. |
153 |
CHARGE=.TRUE. |
154 |
PNAME='K+' |
155 |
NCPNAM=2 |
156 |
ITRTYP=4 |
157 |
GOTO 20 |
158 |
ENDIF |
159 |
IF(IDPART.EQ.14) THEN |
160 |
TRMASS=938.27231 |
161 |
TRCHAR=+1 |
162 |
MASS=.TRUE. |
163 |
CHARGE=.TRUE. |
164 |
PNAME='proton' |
165 |
NCPNAM=6 |
166 |
ITRTYP=4 |
167 |
ENDIF |
168 |
IF(IDPART.EQ.15) THEN |
169 |
TRMASS=938.27231 |
170 |
TRCHAR=-1 |
171 |
MASS=.TRUE. |
172 |
CHARGE=.TRUE. |
173 |
PNAME='antiproton' |
174 |
NCPNAM=10 |
175 |
ITRTYP=4 |
176 |
GOTO 20 |
177 |
ENDIF |
178 |
IF( (IDPART.EQ.13).AND.(IDPART.EQ.25) ) THEN |
179 |
TRMASS=939.56563 |
180 |
TRCHAR= 0 |
181 |
MASS=.TRUE. |
182 |
CHARGE=.TRUE. |
183 |
PNAME='neutron' |
184 |
NCPNAM=7 |
185 |
ITRTYP=4 |
186 |
GOTO 20 |
187 |
ENDIF |
188 |
* |
189 |
* here there are some errors ..... |
190 |
* |
191 |
10 WRITE(CHMAIL,10000)IDPART |
192 |
CALL GMAIL(1,0) |
193 |
10000 FORMAT(' GPGAPART: ERROR !!!! No HEED corresponding particle ', |
194 |
+ 'found. GEANT ID: ',I8) |
195 |
IFAIL=1 |
196 |
20 RETURN |
197 |
END |