/[PAMELA software]/gpamela/gpgar/gpgapart.F
ViewVC logotype

Contents of /gpamela/gpgar/gpgapart.F

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3.2 - (show annotations) (download)
Wed Dec 17 11:32:50 2003 UTC (20 years, 11 months ago) by pamela
Branch: MAIN
CVS Tags: v4r4, v4r5, v4r6, v4r7, v4r0, v4r1, v4r2, v4r3, v4r8, v4r9, v4r14, v4r12, v4r13, v4r10, v4r11, HEAD
Changes since 3.1: +38 -33 lines
CALO SIMULATION COMPLETED: geometry and special tracking parameters updated and simulation checked by a comparison with the Trieste's standalone Monte Carlo simulation

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

  ViewVC Help
Powered by ViewVC 1.1.23