/[PAMELA software]/gpamela/history/v_100.txt
ViewVC logotype

Annotation of /gpamela/history/v_100.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3.25 - (hide annotations) (download)
Sun Dec 17 14:53:18 2006 UTC (18 years, 2 months ago) by cafagna
Branch: MAIN
CVS Tags: v4r10
Changes since 3.24: +69 -90 lines
File MIME type: text/plain
Full review of the CARD geometry. S1 table added

1 cafagna 3.25 # Revision 3.21 2006/12/05 18:45:29 bruno
2     # Update of the CARD geometry
3     # Simulated also legs, table and magnetic screen
4 cafagna 3.1 #
5 cafagna 3.25 # $Id: v_100.txt,v 3.20 2006/11/16 18:45:29 pam-ba Exp $
6 pamela 3.2 #
7     # $Log: v_100.txt,v $
8 pam-ba 3.21 # Revision 3.20 2006/11/16 18:45:29 pam-ba
9     # Simulated an aluminum container for S4
10     #
11 pam-ba 3.20 # Revision 3.19 2006/11/16 12:01:13 pam-ba
12     # S4 dimensions corrected.
13     #
14 pam-ba 3.19 # Revision 3.18 2006/11/10 11:39:35 pam-ba
15     # S2 and S1 z-positions corrected, He3 and plystyrene mixture added, Top Plate geometry simulated and titanium mixture added.
16     #
17 pam-ba 3.18 # Revision 3.17 2006/10/13 16:36:59 pam-ba
18     # Added a new material, the cadmium, for ND
19     #
20 pam-ba 3.17 # Revision 3.16 2006/10/12 11:11:21 pam-ba
21     # ND geometry updated.
22     #
23 pam-ba 3.16 # Revision 3.15 2006/10/02 11:17:30 pam-ba
24     # NDET 'SPHE' data card meaning changed. Now it eliminates the whole PAMELA container.
25     #
26 pam-ba 3.15 # Revision 3.14 2006/06/30 15:38:16 pam-ba
27     # S22 and S12 heights positioned in GPAMELA at the nominal heights in PAMELA (see document: Main geometrical parameters of the PAMELA sub-detectors, 20 December 2005)
28     #
29 pam-ba 3.14 # Revision 3.13 2006/06/05 13:56:17 pamela
30     # Gigantic resonance added for gamma enetering in the calorimeter absorber
31     #
32 pamela 3.13 # Revision 3.12 2006/05/18 10:52:32 pam-ba
33     # TOF geometry completed and a new material, the polystyrene (density 35 g/l), added
34     #
35 pam-ba 3.12 # Revision 3.11 2006/05/11 23:53:15 cafagna
36     # More bugs fixed in the CALO ntple structure filling
37     #
38 cafagna 3.11 # Revision 3.10 2006/04/10 11:07:43 cafagna
39     # GEN data card updated, ZDGEN added
40     #
41 cafagna 3.10 # Revision 3.9 2005/12/14 03:34:40 cafagna
42     # An update of the history and inform readme files.
43     #
44 cafagna 3.9 # Revision 3.8 2005/12/14 03:16:08 cafagna
45     # Neutron detector added. Geometry and GPCALOR package
46     #
47 cafagna 3.8 # Revision 3.7 2005/10/18 08:24:35 cafagna
48     # History updated
49     #
50 cafagna 3.7 # Revision 3.6 2005/07/25 11:53:21 cafagna
51     # Several updates. See history for details
52     #
53 cafagna 3.6 # Revision 3.5 2004/04/06 10:33:46 pamela
54     # NON-REPRODUCIBILITY problem of a GPAMELA RUN fixed; bug found and fixed filling in the hit structure of the calorimeter
55     #
56 pamela 3.5 # Revision 3.4 2003/12/17 11:32:50 pamela
57     # CALO SIMULATION COMPLETED: geometry and special tracking parameters updated and simulation checked by a comparison with the Trieste's standalone Monte Carlo simulation
58     #
59 pamela 3.4 # Revision 3.3 2002/12/05 17:27:59 pamela
60     # New GARFIELD.GAR file added and GPAMELA.FFR cleaned and updated
61     #
62 pamela 3.3 # Revision 3.2 2002/12/05 10:17:42 pamela
63     # Update CAS and CALO geometries and positions. Makefile updated as well
64     #
65 pamela 3.2 # Revision 3.1.1.1 2002/07/11 16:01:59 cafagna
66     # First GPAMELA release on CVS
67 cafagna 3.1 #
68     #
69     #CMZ : 3.00/00 11/02/2002 20.05.23 by Unknown
70     #CMZ : 2.03/00 06/11/2000 02.14.56 by Francesco Cafagna
71     #CMZ : 2.02/00 12/10/2000 19.22.54 by Francesco Cafagna
72     #CMZ : 2.01/01 05/04/2000 14.37.24 by Marialuigia Ambriola
73     #CMZU: 2.01/00 05/04/2000 09.51.04 by Unknown
74     #CMZ : 2.00/00 03/03/2000 15.22.27 by Francesco Cafagna
75     #CMZ : 1.02/00 15/02/2000 10.19.51 by Francesco Cafagna
76     #CMZ : 1.01/00 23/05/96 16.59.29 by Francesco Cafagna
77     #CMZ : 1.00/03 30/04/96 12.23.59 by Francesco Cafagna
78     #CMZ : 1.00/02 05/04/96 15.31.25 by Francesco Cafagna
79     #CMZ : 1.00/01 28/11/95 18.51.23 by Francesco Cafagna
80 cafagna 3.25 #-- Author : Francesco Cafagna 28/11/95
81 cafagna 3.24
82 cafagna 3.25 December 2006, Bari
83 cafagna 3.23
84 cafagna 3.25 CARD GEOMETRY:
85     Positions, dimensions and quotes have been updated. Indeed, the aluminium table
86     under S1, legs included, and the magnetic screen between the CARD and S2 have
87     been added.
88 cafagna 3.23
89 cafagna 3.25 #-------------------------------------------------------------------------
90 cafagna 3.23
91 pam-ba 3.18 November 2006, Bari
92    
93 pam-ba 3.19
94 pam-ba 3.20 S4 GEOMETRY UPDATED:
95 pam-ba 3.19 The x and y dimensions have been corrected because they were wrong.
96 cafagna 3.25 A container of aluminum has been added having walls of thickness equal
97     to 0.1 cm.
98 pam-ba 3.19
99 pam-ba 3.18 TOF POSITIONS DEFINITELY UPDATED:
100     S2 and S1 have been positioned again, after the simulation of the top plate.
101 cafagna 3.25 Before now, the positions were put ad hoc based on the positions given by
102 pam-ba 3.18 Sergio Ricciarini in the document 'Main geometrical parameters of the PAMELA
103     sub-detectors' released by O. Adriani, L. Bonechi, E. Mocchiutti and
104     S. Ricciarini on the 20th of December 2005.. These positions were
105 cafagna 3.25 lightly approximated.
106 pam-ba 3.18
107     ND GEOMETRY COMPLETED.
108     The He3 and the polyethylene (CH2) have been added to fill
109     the volumes NDTI and NDPB in the neutron detector. Leonov gave us the
110     details of these materials.
111    
112     TOP PLATE GEOMETRY ADDED.
113 cafagna 3.25 The top plate geometry has been simulated as a N2 box that has the same
114     dimensions of CATA. Inside it, at the right positions, there are S2 and CATA.
115     The real top plate is a rectangular window having a thickness of 0.5 cm
116     (volume TPTL emptied by the volume TPCV). This volume is filled with a mixture
117     of titanium (90%), aluminum (6%) and vanadium (4%). Other parts of titanium
118     are the four volumes TPTU, which are positioned at the corners of TPTL at the
119     same height of CATA, and the four volumes TPTM, which are positioned at the
120     corners of TPTL, at the same height of S2.
121     The geometry of the top plate is based on a simplified version of the CAD
122     drawings.
123 pam-ba 3.18
124 pam-ba 3.16 October 2006, Bari
125    
126     The geometry of the neutron detector has been updated. Some dimensions of some
127 pam-ba 3.18 volumes have been corrected and the aluminum cover and the aluminum boxes to
128 pam-ba 3.17 put the cables have been added. A new material, the cadmium, has been also
129     defined.
130 pam-ba 3.16
131 pam-ba 3.15 September 2006, Bari
132    
133     SPHE and ND data card bugs fixed: the definition of the ND data card,
134     missing in the subroutine gpgeo.F, has been added; the meaning of the SPHE
135     data card has been changed. Before the correction the data card:
136     NDET 'SPHE' was used to delete the spherical top shell to substitute it with
137 cafagna 3.25 a flat one.Now NDET 'SPHE' eliminates the whole container of PAMELA.
138 pam-ba 3.15
139    
140 cafagna 3.25 June 2006, Bari
141 pam-ba 3.14
142     The center of the scintillator planes S22Y (variable ZPAMS22Y in gpdgeo.inc)
143     and S12X (variable ZPAMS12X in gpdgeo.inc) has been positioned at the
144     nominal height as measured in PAMELA (See the document: "Main geometrical
145     parameters of the PAMELA sub-detectors" by O. Adriani, L. Bonechi,
146     E. Mocchiutti, S. Ricciarini, 20 December 2005). Follows that the positions
147     of S21Y and S12X are higher than those in the cited document due to the fact
148     that in GPAMELA the thickness of the mylar has been considered while in the
149 cafagna 3.25 document it has been neglected.
150 pam-ba 3.14
151    
152 pamela 3.13 May 2006, Bari & Tor Vergata
153    
154     GIGANTIC RESONANCE FOR NEUTRON DETECTOR ADDED
155    
156     Routines to simulate the gigantic resonance of gammas in Tungsten
157     have been added. The GPGIG routine is called in GUSTEP if a gamma
158     enter the calorimeter absorber. This is the steering routine to
159     simulate the production of neutrons from gigantic resonance. It
160     does checks on STEP lenght. If the range is smaller than the other
161     selected for that step, it does generate the neutron and stops the
162     gamma. Please note that the neutron has now a new particle
163     number. This is to tag the gigantic resonance neutrons.
164    
165    
166 cafagna 3.11 May 2006, Bari & Florence
167    
168     CAL HIT STRUCTURE BUGS FIXED
169    
170     The maximum number of hit is now different for the two hit
171     structures: CALST and CALI. Vectors inizialization and HBOOK
172     ntple booking have been updated. The GPDCAL routine has been fixed
173     so to handle the case in wich hits stored are more than the maximum
174     number of hit.
175 cafagna 3.25 In this case in the ntple up to the maximum number of hits will be stored.
176 cafagna 3.11
177 pam-ba 3.12 April 2006, Bari
178    
179     TOF GEOMETRY AND POSITIONS UPDATED AND NEW MIXTURES ADDED
180    
181     The TOF geometry has been modified. The following boxes have been
182     added: POL1, POL2 and POLY made of polystyrene, S11M, S12M, S21M,
183     S22M, S31M and S32M made of mylar, S1A, S2A and S3 made of air and
184     S1 and S2 made of aluminum. Each scintillator paddle has been put
185     in his mylar box and the other materials: air, polystyrene, and
186     aluminum have been added at their nominal positions. According to
187     Naples people the araldite glue has been simulated has an air
188     gap. For this work two new materials: the Mylar (MYLAR) and the
189     polystyrene (POLYSTYRENE) with a density of 35 g/l have been
190     defined as a mixture. The positions of the three bottom
191     scintillator planes that contain respectively the S12X, S22Y and
192     S32X paddles have been regulated according on their official
193     positions in PAMELA.
194    
195 cafagna 3.10 Mar 2006, Bari
196    
197     GEN DATA CARD UPDATED
198    
199     To enable generation on a surface perpendicular to the XY plane,
200     GEN gata card has been updated addingh a new parameter: ZDGEN. This is
201     the dimension, along Z axis , of the generation surface. The Z
202     position will be randomply chosen according to: Z= ZDGEN*RNDM_NUMBER +
203     ZGEN, i.e. Z= GEN(6)*RNDM_NOMBER + GEN(3).
204    
205 cafagna 3.8 Nov 2005, Bari
206    
207 cafagna 3.9 GUHADR AND GUPHAD UPDATED
208    
209     To use GCALOR package the hadronic routines have been updated. The
210     inizialization routine call CALSIG, while the other calls GCALOR.
211    
212     NEW GPKEY ADDED: GPCALOR
213    
214     This logical has been added to enable the GCALOR package. This flag
215     is set to true in GPDAT if the data card: HPAK, is set to
216     'GCAL'. The gpkey.inc has been update accordingly.
217    
218 cafagna 3.25
219 cafagna 3.8 NEUTRON DETECTOR ADDED. NEW DIR: GPND
220    
221     The neutron detector has been added. At the moment it is just the
222     geometry. The directory structure of the repository has been
223     updated as well. Dimensions has been taken from picture and
224     literature. A full upgrade to the drawing is needed.
225    
226     GCALOR PACKAGE ADDED. NEW DIRs: GPCALOR, GPCALORDES
227    
228     GCALOR package contins the CALOR simulation code and an interface
229     to use it in GEANT. The important feature for us is the usage of
230     the MICAP code. This is facused on the low energy neutron
231     simulation. for details see:
232     http://www.staff.uni-mainz.de/zeitnitz/Gcalor/gcalor.html
233     This package should be distributed with the GEANT library but is
234     not up to date. I did download the latest release and stored into
235 cafagna 3.25 gpcalor directory of the gpamela tree.
236 cafagna 3.8 Then I did clean up the code substituting the explicit inclusion of
237     the commons with a #include cpp directive. In parallel I did
238     extract the commons to include files having the same common name. I
239     did store the include files into a newly created directory:
240     gpcalordes.
241     The Makefile has been updated accordingly.
242     Please note that to avoid conflict with CRENLIB distribution the gcalor source file has been named gpcalor.F
243     NOTE: There are still problem due to different common sizes. In
244     particular the common MICFIL is maller in the geant library
245     libgeant.a . There the subroutines: gmorin, gmxsec, gmplxs, are
246 cafagna 3.25 present and linked using a wrong version of the common. This still needs to be debuged.
247 cafagna 3.8 NOTE2: The auxiliary files with the cross sections: chetc.dat.gz
248     and xsneut.dat.gz, have been added to the aux directory and moved
249     to the working directory, i.e. GPAMELA_BIN. The GCALOR routine will
250     look for CERN_ROOT environment variable. If found files are
251     searched there at first, then in the working directory. A fool
252     proof policy has to be implemented to avoid problem with
253     synchronization fo these files.
254    
255 cafagna 3.25
256     The GCALOR package
257 pam-ba 3.12
258     June 2005, Bari
259    
260     TOF SCINTILLATOR PADDLES UPDATED
261    
262     The dimensions and the number of the scintillator paddles for each
263     TOF planes have been updated.
264    
265 cafagna 3.6 May 2005, Bari
266    
267 cafagna 3.25 Some updates on the latest modification done in the past year.
268 cafagna 3.6
269 cafagna 3.25 NEW DATA CARD ADDED: HFSF
270 cafagna 3.6
271     To define a policy for the random number initial seeds
272     definition. Using this card is possible to override GEANT seeds
273     defined via NRDM card. The policy is selected according to the
274     values:
275    
276 cafagna 3.25 - 1: The seeds are initialized to the initial values found in a user
277 cafagna 3.6 defined file or the default file: INPUTSEED.DAT
278 cafagna 3.25
279     - 2: The seeds are initialized to the final values found in a user defined
280 cafagna 3.6 file or the default file: INPUTSEED.DAT
281    
282     The case 1 must be used in case the user needs to reproduce the
283     random chain of a previous run. In this case the user can save the
284     initial seeds, used in the run he would like to reproduce, in a
285     binary file and pass the filename to the program using the *FLSF
286     data card. In case the user file is not specified the default
287     INPUTSEED.DAT will be used.
288 cafagna 3.25
289 cafagna 3.6 The case 2 must be used in case the user needs to chain several
290     GPAMELA run and likes to be sure he is starting the random
291     generator using the right sequence. In this case the user must
292     specify an input binary file using the *FLSF data card, otherwise
293     the INPUTSEED.DAT file will be used.
294    
295     NEW DATA CARD ADDED: *FSFI
296    
297     Using this card the user can specify the logical unit and name of
298     the file storing the initial seeds to be used to initialize the
299     random number generator. This file must be a FORTRAN binary one
300     storing four integer numbers. The first two are the number to be
301     used in the case: HFSF=1, the other two will be used in the case:
302     HFSF=2. This file can be one created by GPAMELA or by the user
303     filled with his own seeds. For this purpose an utility program:
304     writeseeds.f, has been added in the aux directory. In case the
305     *FSFI card is not specified the default values: 24 and INPUTSEEDS.DAT, will
306 cafagna 3.25 be used as LUN and file name respectively.
307    
308 cafagna 3.6 NEW DATA CARD ADDED: *LSFI
309    
310     Using this card the user can specify the logical unit and name of
311     the file storing the first and last seeds used in the GPAMELA
312     run. This file is a FORTRAN binary one. This file can be used as
313     input one specifying it in the *FSFI data card of the next GPAMELA
314     run. In case the *LSFI card is not specified the default values: 26
315 cafagna 3.25 and HBOOKFILENAME.DAT (as sepified in *HFI), will be used as LUN
316 cafagna 3.7 and file name respectively.
317 cafagna 3.25
318 cafagna 3.6 NEW UTILITY PROGRAMS ADDED: writeseeds.f, readseeds.f
319    
320     These new programs have been added in the aux directory. Using these a
321     user defined seed file can be created and re-read.
322    
323     NEW VOLUMES ADDED: MSHE, BSPH; PRESSURIZED CONTAINER ADDED
324    
325     Alexey Bakaldin, in MEPHI, did add the PAMELA pressurized container to
326     the simulation. He did defined new volumes filled with aluminum and
327     placed inside the mother volume. Positions have been fine tuned by
328     Marialuigia Ambriola and compared to the CAD drawings.
329     Two new volumes have been added to simulate the container:
330     - MSHE, a tube simulating the middle part of the container
331     - BSPH, the spherical bottom part of the container
332    
333     To better simulate the upper part the SHEL volume has been modified
334     into a cone. Dimentions of the top cover: TSPH, have been modified
335     accordingly.
336    
337     DETECTOR POSITIONS REVIEWED
338    
339     All detector Z positions have been reviewd to fit into the
340     simulated pressurized container.
341    
342     TRD GEOMETRY AND CALIBRATION REVIEWD
343    
344     The TRD geometry has been deeply reviewed. Using the CAD drawings
345     the carbon fiber frames have been simulated and radiator dimentions
346     corrected. For this reason the calibration done on the beam tests
347     has been revied and new sets of calibration constants calculated
348     comparing the beam test data with the GPAMELA results. The new
349     constants are about 3% larger than the previous ones.
350 cafagna 3.25
351     TRACKER GEOMETRY REVIEWED. NEW VOLUME DEFINED: THBP, TPAS, TPAI
352    
353 cafagna 3.6 Thanks to Lorenzo Bonechi for the drawings and explanations. Now the
354     hybrd cards have been put into the simulation and the geometry updated
355     considering the dead zones in the silicon detectors. The hybrid zone
356     has been simulated as well. At the moment the hybrid is simulated as
357     a G10 plates. The full height of the tracker magnet has been
358 cafagna 3.25 reviewed as well.
359 cafagna 3.6
360     The tracker ladder is now simulated inside a nitrogen box: TPAS,
361     placed inside an aluminum frame: TRPB. Each silicon ladder has been
362     simulated using two silicon blocks: TRSL, into each of this block a
363     smaller silicon detector: TPAI, has been placed inside the larger
364     silicon block TRSL. In this way the subdivided silicon ladder can
365     be upgraded with an indipendend roto-translation for each sensor.
366 cafagna 3.25
367 cafagna 3.6 The TRPB aluminum frame has been enlarged to fit the external
368     magnet canister frame.
369 cafagna 3.25
370     The last plane has been flipped with a 180 degree rotation around
371     the X axis.
372    
373 cafagna 3.6 TRACKER HIT STRUCTURE REVIEWED
374    
375     Taking into account the new version of the tracker geometry, the hit
376 cafagna 3.25 structure for this detector has been revied.
377 cafagna 3.6
378     CALORIMETER GEOMETRY REVIEWED
379    
380 cafagna 3.25 Marco Albi reviewed the calorimeter dimentions and positioning.
381 cafagna 3.6
382    
383 pamela 3.5 29 March 2004, Bari
384    
385     NON-REPRODUCIBILITY PROBLEM OF A GPAMELA RUN FIXED.
386 cafagna 3.6 The non-reproducibility of a GPAMELA run was due to the random number
387     initialization in the GARFIELD code. In GARFIELD by default, the initial
388     seeds of the random number generators are always the same while the random
389     number generators are called a given number of times (determined by the
390     hour of the day) during the initialization phase (see init.f subroutine in
391     the GARFIELD code for details). Follows that different runs produce
392     different results without changing the initial seeds. To have identical
393     results in different runs, the GARFIELD program has to start typing the
394 cafagna 3.25 noRNDM_initialisation switch. To avoid of specifying this switch
395 cafagna 3.6 by the user,
396     the GARFIELD package has been upgraded with a patch. In this way the problem
397     is partially solved because, now, the initial seeds of the random generators
398     in GARFIELD will be always the same even if the RNDM GEANT data card is
399     activated by the user for changing the initial seeds in the GPAMELA program.
400     Work is in progress for a more general correction of this problem.
401     Please, use the updated GARFIELD code released with the CVS version v4r1
402 cafagna 3.25 to fix this problem.
403 pamela 3.5
404    
405     RNDM ROUTINE REPLACED BY THE GRNDM ROUTINE IN GPXTR AND NPOISS.
406 cafagna 3.6 The obsolete RNDM random number generator has been replaced by the GEANT
407     GRNDN routine in the gpxtr.F subroutine and in the npoiss.F function.
408 pamela 3.5
409     BUG FOUND AND FIXED: the set and detector calorimeter addresses (ISCAL
410 cafagna 3.6 and IDCASI variables) used in GUTREV were respectively set to a fixed
411     values of 12 and 1. The correct values of these variables are stored in
412     the GPSED common when the set and the detector ZEBRA banks are filled
413     during a run. In general the values of the set and detector addresses
414     depend on the number of active detectors in a given run. ISCAL=12 and
415 cafagna 3.25 IDCASI=1 are only right when all the detectors of GPAMELA are active.
416 pamela 3.2
417 pamela 3.4 9 December 2003, Bari
418    
419 cafagna 3.6 CALORIMETER SIMULATION completed! The update of the geometry and of the
420     special tracking parameters and the tuning of the calorimeter have been
421     successfully done. A great quantity of simulated data have been produced
422     in the calorimeter for different particles (muons, electrons and pions)
423     and momenta (5 and 40 GeV/c) and the output data have been analyzed. The
424     distributions of the total energy deposited in the calorimeter and the
425     total number of strips hit have been compared with the respective
426     distributions produced by the Trieste's tuned standalone Monte Carlo
427     simulation program of the PAMELA calorimeter. The accord between the
428     two simulations is excellent. Many thanks to Mirko for his collaboration.
429    
430     Working in progress on TRD. The GARFIELD interface to the HEED program is not
431     optimized to track particle with a charge greater than one and photons. The
432     program print a warning message to advise the user when it is the case.
433 pamela 3.4
434     18 April 2003, Bari
435    
436 cafagna 3.6 The buffer size of each column of the GPAMELA Ntuple has been increased to
437     4096 and set equal to the record length, defined by a call to the HROPEN
438     routine.
439     Also the length of the common /PAWC/ (parameter NWPAW) has been increased
440     to 1.34E8, according to the rule that it has to be larger than the number
441     of columns times the buffer size.
442 pamela 3.4
443     10 April 2003, Bari
444    
445 cafagna 3.6 The variables in the HIT STRUCTURE of the CALORIMETER and their way to be
446     filled have been changed according to the electronics system of the real
447     detector. In fact, because each silicon detector (module) consists of
448     32 strips and each strip is connected to those belonging to the two detectors
449     of the same row (or column) for forming 24 cm long strips, the sum of the
450     deposited energies in the strips forming a `long strip' is now calculated for
451     each event (gpucal.F subroutine) and it is stored in a hit only at the
452     end of the event (gutrev.F subroutine).
453     The output variables of the GPAMELA en-tuple are then filled in the vectors
454     ICAPLANE(NTHCAL), ICASTRIP(NTHCAL), ENESTRIP(NTHCAL) and ICAMOD(NTHCAL),
455     by a call to the GPDCAL subroutine:
456     -ICAPLANE(i) contains the number of hit plane;
457     -ICASTRIP(i) contains the number of hit strip;
458     -ICAMOD(i) can assume different values based on the number of times and
459 cafagna 3.25 positions in which a `long strip' has been hit.
460 cafagna 3.6 -ENESTRIP(i) contains the deposited energy in the hit strip;
461     where i is the number of hit (1<i<4224).
462     Note that in the calorimeter each hit is filled at the end of the event and
463     that there is a hit for each `long strip' hit from
464     the particle. This use of the hit structure is different for the other
465     detectors and it has been considered to avoid a too big number of hit in the
466     calorimeter due to the showers. Follows that NTHCAL, which is the
467     max number of hit in the calorimeter, is equal to 4224, the total
468     number of `long strips'. So, for each event, the real number of hit will
469     be less or equal to 4224.
470     ICAMOD(i) is an additional information that does not exist in the real
471     detector: if the strip i (i=1,32) of the module 1 or 2 or 3
472     is hit, the value of ICAMOD(i) is respectively incremented of 1, 100, 10000.
473     Analogously it is done, if it is the strip j (j=33,64) of the modules 4, 5
474     and 6 or if it is the strip k (k=65,96) of the modules 7, 8 and 9.
475     For example if we consider the hit 1 of an event, we could read:
476     ICASTRIP(1)=30, ICAPLANE(1)=21, ENESTRIP(1)=0.5E-03 and ICAMOD(1)=10001.
477     It means that the hit 1 contains the information that in the strip 30 of the
478     plane 21 has been deposited a total energy of 0.5E-03 GeV. In addition the
479     `long strip 30' has been hit two times, one in the first module and the
480     other in the third one.
481 pamela 3.4
482 cafagna 3.6 The energy deposited in the calorimeter is calculated in GeV.
483 pamela 3.4
484 cafagna 3.6 To store the hits in the calorimeter the subroutine GSAHIT is used instead of
485 cafagna 3.25 GSCHIT.
486 pamela 3.4
487 cafagna 3.6 To retrieve the hit structure the call to the routine GPRHIT is done instead
488 cafagna 3.25 of a call to the GFHITS subroutine.
489 pamela 3.4
490     25 February 2003, Bari
491 cafagna 3.25
492 pamela 3.4 BUG found:
493 cafagna 3.6 DCUTEAER, DCUTEAL, DCUTECE, DCUTECP, DCUTEFE, DCUTEG10C, DCUTEG10, DCUTEKAP,
494     DCUTEN2G, DCUTEROA, DCUTESCIN, DCUTESICA, DCUTETRAD, DCUTEW2,
495     DCUTEW, DCUTEXE variables missed in the commons: gpaer.inc, gpal.inc, gpce.inc,
496     gpcp.inc, gpfe.inc, gpg10c.inc, gpg10.inc, gpkap.inc, gpn2g.inc, gproa.inc,
497     gpscin.inc (obsolete), gpscint.inc, gpsica.inc, gptrad.inc, gpw2.inc, gpw.inc,
498     gpxe.inc, gpdaer.inc, gpdal.inc, gpdce.inc, gpdcp.inc, gpdfe.inc, gpdg10c.inc,
499     gpdg10.inc, gpdkap.inc, gpdn2g.inc, gpdroa.inc, gpdscin.inc, gpdsica.inc,
500     gpdtrad.inc, gpdw2.inc, gpdw.inc, gpdxe.inc.
501     They have been added in these commons and they have been initialized in the
502     GPSTM subroutine.
503    
504     Updated the special tracking parameters SICALO, TUNGA, KAOLINITE and G10C
505     in the subroutines gpsica.F, gpw2.F, gpw.F, gpce.F and gpg10c.F. They were
506     suggested by Mirko Boezio.
507    
508     Updated the value of the absorption length for silicon in the calorimeter
509     and tracker although this parameter is ignored by GEANT. For this reason
510     it was equal to the radiation length.
511    
512     Updated the relative positions of the calorimeter planes. The corrected
513     shifting are:
514    
515 cafagna 3.25 first view: (Dxo,Dyo)=(0.10,0.05) cm
516     second view: (Dxo,Dyo)=(-0.05,0.10) cm
517     third view: (Dxo,Dyo)=(-0.10,-0.05) cm
518     fourth view: (Dxo,Dyo)=(0.05,-0.10) cm
519 pamela 3.4
520 pamela 3.2 4 November 2002, Bari
521    
522     CAS detectors distances modified
523    
524 cafagna 3.6 The distances between the CAS detectors have been modified based on the
525 cafagna 3.25 latest CAD drawings.
526 pamela 3.2
527     2 November 2002, Bari
528    
529     CALORIMETER geometry upgrade
530    
531 cafagna 3.6 The volumes CAPD and CAAD have been taken off from the calorimeter.
532     In addition the logical tree has been slightly changed to make the shifts of
533     the silicon planes into the calorimeter box easier, i.e. the CAPL volume,
534     which was made of the CASI, CAKP, CAGL, C10C and CAKA volumes, has
535     been split up in the volumes CANS and CAPL. Now CANS is made of the CAKP,
536     CAGL, C10C and CAKA volumes while CAPL contains the CASI volume, that has to
537     be shifted as a function of the vertical position in the calorimeter. Also the
538     dimensions of some volumes have been upgraded, including the external ones:
539     CALB and CALS. CALS is an aluminum box of dimensions: 48.4*48.4*21.278 cm^3,
540     having side-walls 1 cm thick and a bottom of 1 mm. The real box is more
541     complicated and the configuration of the bottom should be upgraded if we want
542 cafagna 3.25 a reliable description of the event in the S4 scintillator.
543 pamela 3.2
544     22 October 2002, Stockholm
545    
546     ANTICOINC. GEOMETRY UPGRADE
547    
548     The AC geometry has been updated. The top AC scintillator (CAT) now
549     consists of 1 single sheet of scintillator with a hole in the middle
550     and the correct geometry(*). The side AC scintillators (CAS) also
551     have the correct shape. The AC scintillators are placed in aluminum
552     boxes with plastic rims inside. For these rims a 'new' material, PLAS,
553     was defined. PLAS has all the characteristics of SCIN but is
554     non-sensitive. No PMTs or PMT holders have been modelled.
555     (*)-The interfaces on CAT where the PMTs should be located are
556     slightly different from the real case.
557    
558 cafagna 3.1 11 February 2002, Bari
559    
560     MACRO CLEAN-UP
561    
562     Before the new release a bit of macro clean-up. Both GPEXE and
563     GPXINT in the $KUMACS directory have been cleaned. Some commented
564     out code has been deleted and the g77 option flags and libraries
565     updated.
566    
567     LIBGARFIELD-7.A ADDED TO THE MACRO
568    
569     The libgarfield-7.a library has been permanently added to the GPEXE
570     and GPXINT macro. So the user doesn't need to pass it through the
571     uslib macro flag.
572    
573     8 February 2002, Bari
574    
575     SUBROUTINE cross.f renamed crossgar.f in the GARFIELD library.
576     To avoid a bad interference between GEANT and GARFIELD due
577     to the same name adopted for two different functions, one in
578     GEANT and the other in GARFIELD, the function cross.f, in the
579     GARFIELD library, named libgarfield-7.a, has been renamed
580     crossgar.f.
581    
582     5 February 2002, Bari
583    
584     HIT and CWN revised for TRD
585     The TRD HIT structure has been extended to include the infos about TR
586     process. The TRD structure is now:
587     # DATA (CHTRD(I),I=1,12)/'XIN ','YIN ','ZIN ','XOUT','YOUT','ZOUT',
588     # + 'EREL','PATH','IPAR','P0 ','ETR ','NTR '/
589     #+SELF,IF=GARFIELD
590     # DATA CHTRD(13),CHTRD(14)/'EGAR','NGAR'/
591     #+SELF.
592     where ETR and NTR are respectively the energy and the number of photons
593     converted in the gas mixture in the straw tube for TR, EREL is now the
594     energy released in the straw for ionization by GEANT, which must be zero
595     when GARFIELD is on.
596     The TRD CWN structure has been modified also:
597     -ELOSTRD is the energy released for ionization by GEANT (EREL in the HIT
598     structure),
599     -ETRTRD is the energy released for TR (ETR in the HIT structure),
600     -NTRTRD is the number of TR photons (NTR in the HIT structure),
601     -ERELTRD is now the the total energy released in a straw (the sum of
602     EGARTRD and ETRTRD).
603    
604     TRANSITION RADIATION PROCESS IMPLEMENTED IN THE GPAMELA CODE
605     A new subroutine, GPXTR (called by GUSTEP), has been written to
606     generate the transition radiation (TR) spectrum in the TRD carbon fibers
607     radiators for charged tracks with a Lorentz factor greater than 100
608     (standard GEANT3.21 does not). The emission of TR spectrum, depending
609     on the atomic number and the velocity of the particle and the length of
610     the track in the radiator, is simulated following analytical formulas
611     (see for example M.L. Cherry et al., Phys. Rev. D10 (1974), 3594).
612     Once a TR spectrum is produced, it is partially absorbed by dead
613     material (radiator itself and kapton walls of the straw tubes) before
614     reaching the Xe-C02 mixture inside the straw tubes where it is partially
615     absorbed and partially transmitted. The absorbed spectrum in Xe-C02
616     is finally converted in a suitable number of TR photons of suitable energy.
617     The model of TR emission is referred to a regular radiator. Also, but not
618     only for this reason, this model of simulation was carefully tuned with TRD
619     test-beam measurements (PS and SPS at CERN).
620    
621     ZEBRA MEMORY PROBLEM SOLVED IN THE JVERTX DATA STRUCTURE
622     To record the initial kinematic of a track and save it till the end
623     of the event, the elements of the vector IFLGK(IG) were put to 1 in
624     GUSTEP, where IG is the particle number in the current step. In this
625     way, the vertixes of all particles, except neutrinos, were stored in
626     the permanent data structure JVERTEX. Due to the limit in the ZEBRA
627     structural links, fixed to 64K links, the data structure JVERTEX was
628     easily exceeded in memory giving a fatal error with a crash of the
629     GPAMELA program. For this reason the IFLGK(IG) is now put to 0 for
630     each secondary particle and the particle is stored only on the
631     temporary stack JSTAK to be transported.
632    
633     14 may 2001, Bari
634    
635     SCALE FACTOR TO PACK THE HIT VALUE OF MOMENTUM IN TRD INCREASED
636     The FHTRD(10) scale factor applied before packing the hit value of
637     momentum in TRD has been increased from 1.E3 to 1.E7 in the GPDHIT
638     data common. With this value an accuracy of 1/10 of keV can be estimated.
639    
640     9 may 2001, Bari
641    
642     IONIZATION IN TRD'S STRAW TUBES SWITCHED OFF IN GEANT
643     The ILOSS,(IMULS) and IDRAY variables have been set to zero in the
644     GPXE routine (variable LOSSXE, DRAYXE (and MULSXE)). In this way the
645     energy loss for ionization in the straw tubes is generated only from
646     GARFIELD. To store the energy loss by GARFIELD in the hit structure
647     of TRD (routine GPUTRD), the IMEC control flag, which controls the
648     presence of the ionization by GEANT, has been eliminate in GPUTRD.
649     To avoid to store photons in the hit structure of the TRD it has
650     been added a control on the charge of the particle.
651    
652     TRACK COMMAND CALLED BY GPGARIN
653     The track command of GARFIELD is now initialized in GPGARIN and
654     passed by user with the GAFI key.
655     With this command the options for the cluster generation can be set.
656    
657     TRD IONIZATION ENERGY LOSS GENERATED NOW BY GARFIELD
658     To generate the ionization in the TRD straw tubes the HEED program
659 pamela 3.4 interfaced by GARFIELD is used (GEANT does not correctly simulate
660     the ionization in thin layer and in the gas). The idea is that GEANT
661     tracks the particle in the gas and then passes the coordinates,
662     translated in the DRS, to GARFIELD. The GARFIELD subroutines are
663     called by GPUTRD. The energy loss and the number of clusters in TRD
664     are stored in the variables EGARTRD and NGARTRD of the CWN-tplu.
665 cafagna 3.1
666     1 May 2001, Bari
667    
668     GPGARIN CALLED BY UGINIT
669     The call to GPGARIN has been added in UGINIT
670    
671     NEW KEY ADDED: GAFI
672    
673     A new key has been added to pass the file name and logical unit to
674     be used by GARFIELD in reading in the &GAS and &CELL definition. To
675     implement the key as usual a 21 words long integer vector has been
676     added to $GPKEY and init in $GPDKEY: NGARFILE.
677    
678     GAFI keyword has been defined in FFKEY routine.
679    
680     As usual in FFUSER routine an action has been defined in case of
681     the *GAFI call. Simply the first word of NGARFILE is passed into
682     LUGAR variable and the remaining words converted to carachter into
683     CHGAR variable. Both LUGAR and CHGAR have been added to the GPUNIT
684     common.
685    
686     GARFIELD COMMONS ADDED: $XINPUT, $INPUT
687     These sequences has been added into the GPGAR patch.
688    
689     GARFIELD FILE READOUT ADDED
690     GPGAIN has been modified to add the file readout. The file logical
691     unit and name are passed to the GARFIELD routine DSNOPN to open
692     it. The LUN variable in the INPUT common is set to the LUGAR value
693     as well.
694    
695     Both GARFIELD, $INPUT, and GPAMELA, $GPUNIT, sequences containing
696     the above variables have been added to the deck.
697    
698     NEW FLAG ADDED: GARFIELD
699     To select all the GARFIELD code the flag GARFIELD must be used !
700    
701     GPEXE AND GPXINT KUMACS UPDATED
702     To enable the use of and user flag and libraries both kumacs have
703     been updated adding the USFLAG and USLIB input variables.
704    
705     ALL GARFIELD COMMONS COPIED to GPGAR
706     All the commons (sequences) from //garfield-7/commons have been
707     copied to the gPGAR patchy.
708    
709     DIMENSIONS SEQUENCE ADDED TO GPGARIN
710     To avoid confusions in the PARAMETER settings, i.s. max value of
711     something, the common DIMENSIONS has been added.
712    
713     30 April 2001, Bari
714    
715     NEW PATCH CREATED: GPGAR
716     A new Patch has been created in the main file: GPGAR. This patch
717     should contain all the subroutines (deck) related to the
718     GPAMELA-GARFIELD (HEED) interface.
719    
720     NEW DECK ADDED: GPGAIN
721     This subroutine (deck) should contain the GARFIELD initialization
722     and the readout of the init file. This file has the same structure
723     of the "macro" file used by garfield.
724     This routine has been adapted from the original GARFIELD main.
725     Several sections (Headers in the GARFIELD jargon) have been skipped.
726    
727     NEW SEQUENCES ADDED: $XPRINTPLOT,$PRINTPLOT
728    
729     These are used ($PRINTPLOT mainly) by GPGAIN. These have been added
730     to the GPGAR patch for the moment. Will see later if an "ad hoc"
731     patch should be created for the GARFIELD commons.
732    
733     6 april 2001, Bari
734    
735     A new common block, GPTOTR, has been created to store the Transition
736     Radiation (TR) informations useful for the user. The variables of this
737     common block are initialized to zero in GPUTRE, filled in the subroutine
738     GPUSTEP and declared in GPHBK for booking in the Ntuple.
739    
740     The definition of the ITRSO detector has been changed in the GPSED routine:
741     NVTRD has been forced to 2 for compatibility with GPDTRD.
742    
743     28 march 2001, Bari
744    
745     ITRSO has been defined as a sensitive detector in GSTMED routine and it has
746     been assigned as a detector in the JSET data structure by the GSDET routine.
747     It is because the information of the path in the kapton is needed for the
748     the transition radiation simulation. The hit parameters for this
749     detector are not defined and the hit structure is not filled by the routine
750     GPUTRD because it is not of physical interest.
751    
752     20 march 2001, Bari
753    
754     BUG FOUND: ISVOL, FIELDM, TMAXFD, STEMAX, EPSIL, STMIN were declared in
755     two different common blocks: GPMED and GCTMED. These variables have been
756     respectively renamed FIELDMGP, TMAXFDGP, STEMAXGP, EPSILGP, STMINGP in the
757     GPMED common block.
758    
759     23 December 2000, Bari
760    
761     BUG FOUND: Radiation length for nitrogen had the value for nitrogen
762     liquid instead of the nitrogen gas. It has been changed for the
763     nitrogen gas.
764    
765     14 November 2000, Trieste
766    
767     KAOL volume name changed into CAKA
768     GLUE volume name changed into CAGL
769     KAPT volume name changed into CAKP
770     All the subroutines referring to these volumes have been changed
771     accordingly. Now all the calorimeter's name are in the gpamela standard.
772    
773     BUG FOUND: volume CG10C had a name longer than 4 letters and was confused
774     with volume CG10; fixed, CG10C volume name changed into C10C and variable
775     CG10C into C10C, all the subroutines referring to this volume and this
776     variable have been changed accordingly.
777    
778     BUG FOUND: with the data card "SPTM 'W2 '" enabled gpamela crash due memory
779     fault in the case of electrons with energy greater than ~15 GeV.
780     NOT ALREADY FIXED!!! A temporary solution is to disable "SPTM 'W2 '".
781    
782     ANTICOINCIDENCE UPDATED.
783     Dimension of CAS and dimension and shape of CAT changed following
784     Jens indication.
785     Added the aluminum anti-coincidence cradles.
786    
787     NEW VOLUMES ADDED: CSSX, CSSY, CATH, CATF, CATO, CATP.
788     To take account of the cradles and of the new shape of CAT.
789     To allow the correct disposition of CAS two variable (CASXD,CASYD)
790     has been added.
791     The sequences: $GPGEO and $GPDGEO, as well as the routines:
792     GPCASV, GPCATV and GPDAT has been modified to take account of changement.
793     CAS quote is now different from the SPEC one: ZCAS=51.25 (ZSPEC=50.6)
794    
795     6 November 2000, Trieste
796    
797     NEW MACRO ADDED: GPCONDOR.KUMAC
798     The macro condor.kumac has been added to compile a non interactive
799     version of gpamela to be run under condor.
800    
801     SPTM for G10C upgraded.
802     Now it is important to enable ALWAYS the SPTM 'CE ' 'SICA' 'G10C' 'W2 '
803     to obtain the correct data from calorimeter.
804    
805     6 November 2000, LNGS
806     ::::::::> VERSION NUMBER UPDATED <::::::::
807     The version number has been updated to: 2.03/00.
808    
809     NEW DATA CARDS ADDED: CAS, CAT, TOF, TRD, SPE, CAL, S4
810     To allow the simulation of a detector geometry without the physics,
811     i.e. hits, and/or the n-tple, new data cards have been added: CAS,
812     CAT, TOF, TRD, SPE, CAL, S4. All of them work in the same way. The
813     user can define NVOL, NPHY, NHBK for each card. These user options
814     perform:
815     - NVOL, similar to the NDET actions, the whole detector is NOT
816     simulated
817     - NPHY, just the physics is not simulated. SET, DETECTOR
818     and HITS definitions are skipped and the n-tple as well.
819     - NHBK, just the n-tple is disabled
820    
821     The NVOL option does automatically set the other two, while the NPHY
822     option does set the NHBK one. The old NDET card is kept for
823     compatibility but does still have the priority on these cards,
824     i.e. if the user does requires a detector cancellation via NDET the
825     action is considered as the NVOL option and the card content is not
826     even checked. For example:
827     NDET 'TOF '
828     TOF 'NHBK'
829     Is considered as a request for TOF cancellation, the program does
830     not disable just the TOF n-tple.
831    
832     As usual the $GPDKEY, $GPKEY, GPFFR and GPDAT banks and routines
833     have been modified. A new logical variable for each detector has
834     been introduced to control the NPHY action: PCAS, PCAT, PTOF, PTRD,
835     PSPE, PCAL, PS4. These variables are now controlling the definition
836     of SETS, DETECTORS and HITS into GPSED and GPHIT routines. With
837     these also the GUDIGI has been modified and the detector
838     digitization is performed if the Pxxx variable is TRUE for each
839     detector.
840    
841     NOTE: S4 is not jet separated from the TOF !!!!!! So the TOF data
842     card does eliminate S4. S4 data card does nothing
843    
844     30 October 2000, Trieste
845    
846     CHANGED MISURE UNIT FOR CALORIMETER ENERGY
847     The energy is now stored in MIP in the entuple. 1 MIP = 108.5200 KeV obtained
848     from the Landau distribution fo the energy in the strips in the case of a
849     run of muons of 40 GeV.
850     To take account of this change $GPUCAL and $GPDHIT has been modified.
851     IMPORTANT: to obtain the correct energy value for the calorimeter the
852     Special Tracking Parameter "SICA" MUST be enabled!!
853    
854     12 October 2000, LNGS
855     ::::::::> VERSION NUMBER UPDATED <::::::::
856     The version number has been updated to: 2.02/00.
857    
858     NEW VOLUMES ADDED: CAPD, CAAD
859     Actually the calorimeter last plane has been substituted by the
860     read-out cards. So the plane will be replaced by two aluminum
861     support for the g10 electronics cards. So to account for this
862     modification two new volumes have been created: CAPD, CAAD. CAPD is
863     exactly the same as CAPL but it doesn't contain the glue, kapton and
864     silicon sandwich. CAAD is the absorber, CAAB, but with the tungsten
865     replaced by the aluminum.
866    
867     To allow changes in the number of dummy planes the variable NCAPLD
868     has been added, it has the same function of the NCAPL one. So a
869     general loop on the number of this dummy planes has been implemented
870     in GPCALV to position them into CALB.
871    
872     The sequences: $GPGEO and $GPDGEO, as well as the routines: GPDAT,
873     GPCALV, has been modified to account for the dimension calculation,
874     the definition and positioning of these new volumes respectively.
875    
876     NEW DATA CARD ADDED: NCPL
877     To exclude from the simulation any calorimeter silicon plane a new
878     data card has been added: NCPL. This is an array of 44 integer, one
879     for each calorimeter plane. The user can enter the plane number
880     corresponding to the excluded one in any of this 44
881     location. Please note that the original numbering will be kept for
882     compatibility, i.e. the remaining plane will be numbered as there
883     was the full calorimeter simulation. The correspondence between the
884     random 44 data card and the plane to be excluded is done in the
885     GPDAT routine.
886     The sequences $GPKEY and $GPDKEY has been modified, routines:
887     GPDAT, GPFFR, GPCALV as well.
888    
889     NEW DATA CARD ADDED: NCSI
890     To exclude from the simulation any of the 9 silicon detector in any
891     silicon calorimeter plane a new data card has been added: NCSI. It
892     works like the NCPL but having to specify 9 integer instead of
893     44. Also in this case the original numbering in the plane is
894     preserved. The same routines and sequences as for NCPL have been
895     modified
896    
897     NEW DATA CARD ADDED: NCAB
898     To exclude from the simulation any of the 22 calorimeter absorber
899     planes a new data card has been added: NCAB. It works like the
900     previous two but using 22 integers. The original numbering is
901     preserved as well. The same routines and sequences as for NCPL and
902     NCSI have been modified.
903    
904     11 October 2000, LNGS
905    
906     Bug found in $GPMAT
907     The new material number for the detector were declared but not
908     included in the common. Fixed.
909    
910     GPEXE kumac updated
911     Has been dofied to account for the ALPHA UNIX case.
912     libcrypt library has been disabled and the f77 compiler has been used as
913     default one.
914    
915     10 October 2000, LNGS
916    
917     GPXINT kumac updated
918     Some modification done in GPXINT. It does now consider the case ALPHA
919     UNIX and define f77 as compiler and does not use the libcrypt.
920    
921     9 October 2000, Trieste
922    
923     NEW VOLUMES ADDED: KAOL, KAPT, GLUE
924     An upgrade of the calorimeter structure is done; it's introduced the fine
925     structure of the plane with Kaolinita (an insulator), Kapton and Glue.
926     So to account for this modification three new volumes have been created:
927     CAKA, CAKP and CAGL.
928    
929     NEW MIXTURE ADDED: W2, CERA, G10C
930     W2 is the correct tungsten/nichel/copper mixture that compose an absorber
931     plane of the calorimeter
932     CERA is Kaolinite, an electric insulator for the calorimeter
933     G10C is the mixture of the electronic cards of the calorimeter; this
934     mixture is used instead of G10 in the old volume CG10.
935    
936     To implement these cards the following routines and commons have
937     been modified: GPMAT, GPMED.
938    
939     3 NEW DATA CARDS added to tag tracking parameters of these new materials
940    
941     With these cards is now possible to set any of the five tracking
942     parameters: TMAXFD, STEMAX, DEEMAX, EPSIL and STMIN; for each of
943     the new 3 tracking media. Every data card is a real vector of 5
944     elements, that store respectively TMAXFD, STEMAX, DEEMAX, EPSIL and
945     STMIN. These elements are passed to the GSTMED routine call in the
946     GPMED procedure.
947    
948     To implement these cards the following routines and commons have
949     been modified: $GPKEY, $GPDKEY, GPDAT, GPMED, GPFFR. Each data card
950     value is initialized to -1111. in $GPDKEY. These cards are checked
951     for selection in GPMED. If these cards have been set these values
952     override the ones set by the global data cards: TMAX, STMA, DEEM,
953     EPSI, STMI; or the defaults set in GPDAT.
954    
955     CHANGED DIMENSIONS OF VOLUMES FOR CALORIMETER
956     The following routines and data set are changed to take account of the
957     correct dimensions of the calorimeter: GPGEO, GPCALV, GPDAT.
958    
959     6 April 2000, Bari
960     ::::::::> VERSION NUMBER UPDATED <::::::::
961     The version number has been updated to: 2.01/01.
962    
963     5 April 2000, Bari
964     ::::::::> VERSION NUMBER UPDATED <::::::::
965     The version number has been set to: 2.01/00, updating all the decks.
966    
967     5 April 2000, Bari
968     14 NEW DATA CARDS added to tag tracking parameters of each material.
969    
970     With these cards is now possible to set any of the five tracking
971     parameters: TMAXFD, STEMAX, DEEMAX, EPSIL and STMIN; for each of
972     the fourteen tracking media. Every data card is a real vector of 5
973     elements, that store respectively TMAXFD, STEMAX, DEEMAX, EPSIL and
974     STMIN. These elements are passed to the GSTMED routine call in the
975     GPMED procedure.
976    
977     To implement these cards the following routines and commons have
978     been modified: $GPKEY, $GPDKEY, GPDAT, GPMED, GPFFR. Each data card
979     value is initialized to -1111. in $GPDKEY. These cards are checked
980     for selection in GPMED. If these cards have been set these values
981     override the ones set by the global data cards: TMAX, STMA, DEEM,
982     EPSI, STMI; or the defaults set in GPDAT.
983    
984    
985     6 March 2000, Bari
986     PAW MEMORY incremented in GPCDES:
987     The paw memory has been set to 36.65E6 words, because of the
988     incremented maximum number of hits in the TRD (from 100 to 200).
989    
990     TRD hits increased in GPCDES:
991     The maximum number of hits has been set equal to 200 instead of 100.
992     Like calorimeter, for TRD is no more necessary to modify both the
993     maximum number of hits, in sequence $GPPHIT, and the HBNAME call
994     in GPHBK routine. The CWN block is now booked directly using the
995     maximum number of hit found in the $GPPHIT parameters. If the number
996     of hits is greater than 200, the GPDTRD sets the last hit equal to 201
997     and exit. In this way all the CWN variables corresponding to this hit
998     are null for the TRD.
999    
1000     3 March 2000, Bari
1001     GPXINT macro modified
1002     This macro now save gpamela[grap].f code file instead of a simple
1003     gpamela.f . This is to avoid conflicts with the GPEXE macro that
1004     create the executable to be used in batch mode. Please note that
1005     [grap] is tipically, 99.999% of the time, set to X11.
1006    
1007     1 March 2000, Bari
1008     New DATA CARDS PHI and THETA added:
1009     These data cards have been introduced to select a range for
1010     the zenith (THETA) and the azimuth (PHI).
1011     With these cards the user can override the default values: [0,90]
1012     and [0.360] degree, respectively for THETA and PHI, choosing its own
1013     maximum and minimum values.
1014     If these values are equal the generation is performed at a fixed
1015     angle for all the events.
1016    
1017     No more flat generation on cos**2(THETA)
1018     The flat generation on cos**2(THETA) has been deleted in GUKINE.
1019    
1020     29 feb 2000, Bari
1021     HBOOK Filename corrected.
1022     The HBOOK user filename, passed via *HBFI card, was
1023     incorrect. Unwanted character were added at the end of the
1024     string. It has been fixed initializing the data card variable to
1025     the null string.
1026    
1027     MEMORY incremented in GPCDES:
1028     The memory of paw and geant have been increased to process
1029     electrons of 200 GeV, both for interactive and not-interactive
1030     case. In particular, the geant memory is set now to 3500000 words
1031     and the paw memory to 35.42E6 words. This increment is taking into
1032     account the augmented number of hits for the calorimeter (It is now
1033     possible to store an hit for each of the 4224 calorimeter
1034     channels).
1035    
1036     Calorimeter hits increased in GPCDES:
1037     To store all hits produced in the calorimeter, its maximum number
1038     of hits has been set equal to its number of channels (4224). For
1039     this detector is no more necessary to modify both the maximum
1040     number of hits, in sequence $GPPHIT, and the HBNAME call in GPHBK
1041     routine. The CWN block is now booked directly using the maximum
1042     number of hit found in the $GPPHIT parameters.
1043    
1044     Insufficient number of bits for variable CASI in GPSED:
1045     The number of bits in which to pack the copy number of volume CASI is
1046     now 4 instead of 3.
1047    
1048     S4 hit structure modified.
1049     Because of its position S4 was overwhelmed by particles produced in
1050     the calorimeter. This caused an abnormal use of memory, for this
1051     detector, having to store a number of hits larger than the
1052     maximum. Now S4 hits are stored in a calorimeter-like fashion using
1053     the GSCHIT routine instead of the GSAHIT one. This forces the
1054     number of hit to one and sums up just the energy released into the
1055     scintillator. For this purpose also the position of the energy
1056     released variable has been changed placing it at the end of the hit
1057     record.
1058     24 FEB 2000, BARI
1059     Paolo "bachetto" fixed
1060     In GPDTRD the "filling" index INDEX has been substituted with I.
1061    
1062     IRUN and IEVNT increment
1063     These variables were not incremented. Now they are set initially in
1064     GPDAT; initial value is the one set by RUNG GEANT general data
1065     card. IEVNT is then incremented into GUTREV at the beginning of
1066     each new event. IRUN is left untouched.
1067    
1068     23 Feb 2000, Bari
1069     New data card GEN enabled.
1070     Data card GEN was implemented but not enabled ..... (See 20
1071     Mar. 1997 notes) It has been enabled now setting XYZGEN vector to
1072     -1111 in the $GPDKEY data declaration sequence for $GPKEY
1073     common. In GPDAT it will check if these values have been
1074     overwritten by the GEN data card and take appropriate action in
1075     GUKINE.
1076    
1077     15 Feb 2000, Bari
1078     ::::::::> VERSION NUMBER UPDATED <::::::::
1079     The version number has been updated in its release part: 1.02/00, is the
1080     actual version.
1081    
1082     11 Feb 2000, Bari
1083     Changes in TRD geometry. GPTRDV modified.
1084    
1085     1. Now TRSO is inside TRSI. For this, the external radius of
1086     TRSI has been set equal to the external radius of TRSO. Data
1087     assignment in GPGEO modified.
1088     2. Each TRBS volume (the Trd Boxes for Sraw Tubes) has been shifted
1089     to avoid dead spaces between two adjacent modules.
1090     For this, the two lateral TRBS boxes of the planes with 3 modules have
1091     been shifted of one TRSI radius, the central boxes of the planes with
1092     4 modules have been shifted of an half radius while the lateral
1093     boxes have been shifted of 3/2 radius.
1094    
1095     Subroutine GSCHIT modified in GPUCAL
1096     There was an error. All the quantities were cumulatively summed up
1097     instead of just the energy. This caused a missalignment of the hits.
1098     Now just the energy is summed up.
1099    
1100     19 Gen. 1999, Bari
1101     Paolo "bachetto" fixed
1102     In GPDSPE the "filling" index INDEX has been substituted with I.
1103     31 Dec. 1999, Barletta
1104     TRD dimensions reviewed
1105     The angular pieces have been reviewed. In the actual design they
1106     are "L" shaped. Here they are simulated as square piaces 3.5x3.5 cm^2,
1107     2mm thick.
1108     The TRD virtual box TRDB has been reviewd as well. It is now tall:
1109     10 frames plus 11 angular pieces plus one top piece.
1110    
1111    
1112     30 Dec. 1999, Barletta
1113     TRD dimensions reviewed
1114     Based on the original Aereostudi drawings the TRFR volume dimenions
1115     have been reviewd. The frame is 350mm in length, 380mm width, 4mm
1116     tick. The frame itself is 35mm width.
1117     The 32 straw module as an overall length of 361mm, for placement
1118     easiness 360mm has been used.
1119     WARNING: The angle piece is .5mm taller than the module!
1120     Once again 2cm has been used instead of 2.05mm, for easiness.
1121    
1122     5 Nov. 1999, LNGS
1123     GPHBK Modified
1124     The strip number is now 32 instead of 22, the CWN has been modified
1125     accordingly on both long an short version.
1126    
1127     TRD Frames added.
1128     Two new volumes added: TRFR, TRFI. TRFR is the carbon fiber frame,
1129     TRFI is the internal volume. These frames have been added into the
1130     $GPGEO, $GPDGEO definitions and into GPTRDV routine as well.
1131    
1132     22 Oct. 1999, Bari
1133     NEW magnetic field read-out
1134     Instead of a raw binary file the magnetic field has been saved into a
1135     CWN-tplu stored in a RZ file. This guarantees portability between
1136     different OS. In GPDAT the FIELD is read-out from the CWN.
1137    
1138     CWN booking and filling reviewd.
1139     CWN-tplue structure reviewed. All the variable names have been unified
1140     and updated accordingly to the new hit structure.
1141     The CWN fill has been reviewed as well.
1142    
1143     HLON Data card introduced.
1144     To select a more detailed, let's say verbose, CWN-tple a new
1145     card has been introduced. Setting HLON 1, the long version will be
1146     selected.
1147    
1148     PAOLO flag declared OBSOLETE !!!
1149     See the next entry.
1150    
1151     SPE DIGI structure OBSOLETE !!!
1152     The spectrometer DIGI structure has been declared obolete by the author.
1153     Dr. Papini forced Dr. Cafagna to move all the routines: GPSPEHD and GPSDINI,
1154     from the directory GPSPE to the newly created GPOBSOLETE one.
1155     The GPDSPE common has been commented out as well.
1156    
1157     HIT structure reviewed.
1158     Hit structure has been reviewed. For all detectors the volume PAME
1159     and the detector container have been deleted. So the detector
1160     identifier has been reduced by two numbers.
1161     Besides the SPE hit structure has been enlarged adding the IPAR
1162     hit, storing the particle number.
1163     The CALO hit structure has been reduced eliminating the IPA0 and
1164     PA0 hits from the structure.
1165     All the routines and commons pertaning to the hit structure has
1166     been reviewd and updated.
1167    
1168     21 Oct. 1999, Bari
1169     DZSH data card added
1170     A new data card DZSH has been added to adjust the height of the external
1171     shel : SHEL.
1172    
1173     NDET flag changed. SPHE instead of SPHI
1174     The data card NDET 'SPHI' is now obsolete.
1175     The data card NDET 'SPHE' is now used to select spherical or flat
1176     top. Using NDET 'SPHE' one automatically delete the spherical top
1177     and substituted it with a flat one.
1178     TSHE name changed into TFLA
1179     TSHE volume has been named into TFLA. All the subroutines
1180     referring to this volume have been changed accordingly.
1181    
1182     TSHI name changed into TSPH
1183     TSHI volume has been named into TSPH. All the subroutines
1184     referring to this volume have been changed accordingly.
1185    
1186     SHEI deleted
1187     SHEI is no more created neither positioned inside PAMELA.
1188     GPGEO has been modified accordingly, besides the dimensions are
1189     left into the $GPGEO common.
1190    
1191     S4 quote changed
1192     S4 is now automatically positioned underneath the calorimeter box.
1193     ZS4 is calclulated in GPDAT
1194    
1195     CAS dimensions and positions modified
1196     CAS is now a single counter instead of Five.
1197     CAS dimensions modified after PAOLO simulation and Tom design. Here
1198     are the new dimensions:
1199     DATA CASX/15.25,0.55,5*4.6/
1200     DATA CASY/0.55,14.75,5*4.6/
1201     CAS position inside PAMELA has been modified accordingly in GPGEO.
1202    
1203     CAT dimension modified
1204     CAT dimensions modified after PAOLO simulation and Tom design. Here
1205     are the new dimensions:
1206 cafagna 3.25 DATA CATB/22.05,21.05,0.55/
1207 cafagna 3.1 DATA CATL/15.75,6.675,0.55/
1208     DATA CATT/6.3,14.375,0.55/
1209     DATA ZCAT/75.75/
1210    
1211     SC13/4 name modified in SC21/2
1212     SC13/4 name have been changed. So all the occurences of SC13/4 string have
1213     been changed accordingly. This means that also the name of the
1214     volumes, detectos, hits etc. etc. referring to SC13/4 have been changed
1215     in SC21/2
1216    
1217     SC2n name modified in SC3n
1218     SC2n name have been changed. So all the occurences of SC2 string have
1219     been changed accordingly. This means that also the name of the
1220     volumes, detectos, hits etc. etc. referring to SC2n have been changed
1221     in SC2n
1222     .
1223     S14 name modified in S22
1224     S14 name have been changed. So all the occurences of S14 string have
1225     been changed accordingly. This means that also the name of the
1226     volumes, detectos, hits etc. etc. referring to S14 have been changed
1227     to S22.
1228    
1229     S13 name modified in S21
1230     S13 name have been changed. So all the occurences of S13 string have
1231     been changed accordingly. This means that also the name of the
1232     volumes, detectos, hits etc. etc. referring to S13 have been changed
1233     to S21.
1234    
1235     S2n name modified in S3n
1236     S2n name have been changed. So all the occurences of S2 string have
1237     been changed accordingly. This means that also the name of the
1238     volumes, detectos, hits etc. etc. referring to S2n have been changed
1239     to S3n.
1240    
1241     S3 name modified in S4
1242     S3 name have been changed. So all the occurences of S3 string have
1243     been changed accordingly. This means that also the name of the
1244     volumes, detectos, hits etc. etc. referring to S3 have been changed
1245     to S4.
1246    
1247     CALO modified
1248     .....
1249     $GPDGEO modified
1250     Magnet dimensions where wrong !!!!! Internal not bending half
1251     dimension is 6.55cm. External not bending half dimension is
1252     11.4cm. So now:
1253     DATA MGPL/12.,11.4,4.05/
1254     DATA MGPI/8.05,6.55,4.05/
1255     GPGEO mod.
1256     GPGEO has been modified. The TRD doesn't have an external box
1257     anymore. So, volume definitions for TRDS & TRDT have been left in
1258     GPTRDV but they are no more placed into PAME mother volume.
1259     20 Mar. 1997, Bari
1260     GPXINT update
1261     Using an UNIX machine I have update GPXINT to create executable on a
1262     UNIX machine. To be used on alboot I created the WORK kumac.
1263    
1264     #GPAMELA updated
1265     The pilot patchy, *GPAMELA, was updated inserting the GPHYS patchy.
1266    
1267     GPDTOFx routien deleted
1268     The old digitization routine GPDTOFx, x being 'T' 'M' 'B', has been
1269     deleted in the patchy GPTOF.
1270    
1271     CHERENKOV detector deleted
1272     All the GPCHE patchy containing CHERENKOV specific code has been deleted.
1273     All the other routines containing code specific for the Cherenkov
1274     has been updated and the cherenkov code deleted.
1275     Please note that the AEROGEL definitio are still in place.
1276    
1277     NEW GENERATION SURFACE DEFINITION
1278     The generation surface is now definited in GPDAT using the S11
1279     dimentions. New variables have been added to the GPGEO common: XGEN,
1280     YGEN, ZGEN, XDGEN, YDGEN; representing the origin, quote and
1281     dimentions of the generation surface.
1282    
1283     NEW DATA CARD ADDED GEN
1284     With this data card the user can pass all the five above mentioned
1285     geneeration surface variables.
1286    
1287     19 Mar. 1997, Bari
1288     CASD and NCAS data card gone.
1289     This card are no more needed for the calorimeter.
1290    
1291     GPDAT UPDATE
1292     GPDAT has been updated checking the SSTR new data card to look for
1293     new DELTA2 parameter passed.
1294    
1295     CALO user division removed.
1296     It's no more possible to choose between a whole silicon plane or
1297     smaller block.
1298    
1299     18 Mar. 1997, Bari
1300     New PATCH added GPHYS
1301     A new patch has been added GPHYS to store the PHYSICS related routines.
1302    
1303     GFLUCT routine copied from GEANT code
1304     The GFLUCT routine has been copied from the GEANT code. This routine
1305     takes care of the energy fluctuations inside each "physics" routine
1306     in GEANT.
1307    
1308     Gaussian straggling added to the GFLUCT routine
1309     The gaussian straggling has been adedd to the GFLUVT routine. This
1310     routine has been modified adding at the end the Paolo Paini code to
1311     calculate the straggling into the silicons detectors. The DELTA2
1312     parameters needed for the calculation has been retrived from the
1313     JMATE structure.
1314    
1315     NEW CMZ flag added: NOGFLUCT
1316     This new flag select the place in wich the straggling is
1317     calculating. The default is into GFLUCT routine, a GEANT routine
1318     miodified for us. Using this flag the straggling will be selected
1319     into the GPUSPE and GPUCAL routine. This means that is calulated
1320     after each step in a given detector.
1321    
1322     User words added to JMATE structure
1323     The variables needed for the gaussian straggling have been added to
1324     the Silicon material definition for both calorimeter and tracking.
1325    
1326     New data card added: SSTR
1327     SSTR data card added. This word controls the gaussian straggling in
1328     silicon. The first word is the straggling flag, the other two are
1329     the DELTA2 for calorimeter and tracker. See $INFORM for details.
1330    
1331     17 Mar. 1997, Bari
1332     GAUSSIAN straggling added to the calorimeter
1333     The gaussian straggling after the ionization losses has been adedd
1334     to the calorimeter too. Before saving an hit into GPUCAL the
1335     gaussian straggling has been added. This depend on the path in the
1336     silicon also, the PATH variable is stored entering the volume and
1337     the PATH calculated before adding the straggling.
1338    
1339    
1340     Adjusting the DIGI spectrometer structure
1341     The gaussian straggling has been added into the GPUSPE routine when
1342     the particle is leaving the detector: IACT = 3.
1343    
1344     15 Mar. 1997, Bari
1345     NEW hits for CAS and CAT
1346     CAT and CAS hits are now the same as the TOF.
1347     TIME and P0 has been added to the hit structure.
1348     All the routine involved, GPDCAS and CAT, GPUCAS and CAT, GPHBK and
1349     the commons $GPCAS, $GPCAT have been modified, as well.
1350    
1351    
1352    
1353     6-7 Mar. 1997, Bari
1354    
1355     NEW geometry for TRD
1356     TRD geometry has been reviewed. There are no more three different
1357     sets of straw tube, depending on the lenght, but just one
1358     lenght. Besides the box containing the straws and radiator has been
1359     changed. Here is the new geometrical tree:
1360    
1361     MOTHER SUBVOLUME NAME DESCRIPTION
1362     TRDS No subvolume TRD external aluminum shell
1363     TRDT No subvolume TRD TOP and BOTTOM aluminum cover
1364     TRDB TRD Box, internal gas volume
1365     TRBS TRd Box for Sraw, contains the 32
1366     straws and a radiator "pillow" on
1367     top
1368     TRRA TRd RAdiator, just one extra plane
1369     on top of the TRD straw pyramid
1370     TRBD TRSO TRd Straw Out, external mylar straw
1371     tube, 32 volumes placed on two
1372     shifted line
1373     TRRA TRd RAdiator, placed on top of
1374     these two straw layers
1375     TRSO TRSI TRd Straw Internal, internal gas
1376     volume
1377     Please note that the TRBS geometry is now totally changed. The two
1378     straw layers aren't placed on the middle of the volume anymore. They are
1379     placed on the bottom of the TRBS, this to accomodate more easly a
1380     geometry with a double radiator layer on top and no radiator on bottom.
1381    
1382     Sets and detectors definition have been updated with the new structure.
1383    
1384     NEW geometry for the MAGNET
1385     The magnet geometry has been reviewed diminuishing the internal window.
1386    
1387     NEW geometry for CALORIMETER
1388     The calorimeter structure has been "rationalized". All the different
1389     possibilities of having a block or a full plane structure and the
1390     division inside each block, have been thrown away. There is now a
1391     basic block consituted of a 8x12 cm^2 silicon paddle, divided in 22
1392     stripes. This because the three 8x8cm^2 silicon blocks will be bound
1393     with stripes having one and an half lenght of the basic block.
1394    
1395     Besides there are no more X & Y planes but a single plane type that,
1396     once rotated and turned over, plays the role of the Y view plane. This
1397     configuration is more easy to handle for the PAMELA calorimeter case,
1398     where the first plane is just a Y one and the last one a X.
1399    
1400     In detail, the way in wich the geometry for the calorimeter is
1401     calculated and definited:
1402     - The box height is subdivided in NPLAN division
1403     - This height is reduced by the height of the absorber
1404     - The result is divided by two, this represent the height of an active
1405     plane: CAPL
1406     - The calorimeter silicon paddles, CASI are placed into
1407     CAPL.
1408     - The calorimeter box is filled with CASI, rotated and flipped
1409     for Y view, interleaved with the absorber.
1410    
1411     NEW hit added for the calorimeter
1412     The momemtum module has been added as hit for the calorimeter too.
1413     All the routines have been changed consequently.
1414    
1415     NEW geometry for the TRACKER.
1416     The tracker geometry has been changed. In particular the ladder
1417     supports are now two carbon fiber rods placed on the left and right
1418     sided of each ladder. The roacell and kapton plane have been
1419     eliminated.
1420    
1421     NEW parameter for the TRACKER digitization
1422     Paolo updated the tracker DIGIt parameter using the ones calculated on
1423     the basis of the PSI test beam.
1424     Some small bugs in the digitization routines have been fixed as well.
1425    
1426     NEW detectors quote.
1427     Each detector has now the quote from the mechanical drawings. There is
1428     no more autocalculation of these position. In particulare the quotes are:
1429     ZS11 =107.8
1430     ZS12 =106.8
1431     ZS13 =74.9
1432     ZS14 =74.1
1433     ZS21 =27.1
1434     ZS22 =26.3
1435     ZS3 =2.3
1436     ZCAT =75.75
1437     ZTRD =90.55
1438     ZSPEC=50.6
1439     ZCAL =13.05
1440     These are the quote of the MARS of each detectors, means that half
1441     detector height has been added to each quote.
1442    
1443     NEW top shell
1444     The top shell is no more a sphere but is a flat cylinidrical plane.
1445    
1446     NEW variables usefull for the geometry definition
1447     In particular the gep between the top shell and the TRD box is user
1448     definited in the variable GAPTOP.
1449     Is also possible to define the gap between the bottom TRD plane and
1450     the TRD box: GAPTRD.
1451     To keep into count the dead zone at the edge of the calorimeter paddle
1452     is it possible to start subdividing the calorimeter paddle into NCASTR
1453     stripes starting from CASIOFF centimeters from the paddle edge.
1454     Is it also possible to define the number of calo stripes to be used:
1455     NCASTR; and their width:CALSTWID.
1456    
1457     NEW CAS and CAT geometry
1458     The CAT geometry has been reviewed. Just smaller paddle has been used.
1459     The CAS are now placed horizontally.
1460    
1461     NEW Magnetic field map
1462     The new magnet definition has also a new magnetic field that Paolo calculated
1463    
1464     6 Mar. 1997, Bari
1465    
1466     NEW geometry for TOF
1467     The TOF geometry has been updated. The volume name are the same of
1468     the proposal. Besides the paddle structure has been considered with the
1469     carbon fiber planes that should consitute the mechanical structure
1470     of the plane. Each plane but S3 should be composed of N paddle along X
1471     or Y and a top and bottom layer of carbon fiber to stiffen the
1472     structure. For the name we have used the proposal name for the mother box,
1473     the subvolume are named as follow:
1474     MOTHER SUBVOLUME NAME
1475     S11 S11X , Scint paddle
1476     SC11 , Carbon fiber plane
1477     S12 S12Y , Scint paddle
1478     SC12 , Carbon fiber plane
1479     S13 S13X , Scint paddle
1480     SC13 , Carbon fiber plane
1481     S14 S14Y , Scint paddle
1482     SC14 , Carbon fiber plane
1483     S21 S21Y , Scint paddle
1484     SC21 , Carbon fiber plane
1485     S22 S22X , Scint paddle
1486     SC22 , Carbon fiber plane
1487     S3 No subvolumes
1488    
1489     Please note that we saved the direction of measurement for the paddle name.
1490     The S3 is leaved as a big scint paddle without any segmentation.
1491     The number of paddle for each plane has been added into the common. So the
1492     variables: NS11X,NS12Y,NS13X,NS14Y,NS21Y,NS22X; contain the number of each
1493     Snnd (nn: number, d: direction) detector for each plane.
1494     The $GPGEO sequence has been changed accordingly.
1495     Please note that the Snnd volume dimention are automatically calculated
1496     using the Snn, SCnn dimentions and the number of paddle to be positioned
1497     inside the Snn. As usual these calculation are preformed in GPDAT.
1498     The quote for each Snn has been added into the GPGEO common as well.
1499    
1500     HIT and CWN revised for TOF
1501     The time of flight and momentum infos for the tracking particles have
1502     been added. The routine GPUTOF has a new input variable with the
1503     time-of-flight, this quantities has been added as hit no. 8. The module
1504     of the momentum has been added as hit no. 10. This is taken directly
1505     from the VECT array in GPUTOF. The TOF structure is now:
1506     DATA CHTOF/'XAVE','YAVE','ZAVE','XOUT','YOUT','ZOUT',
1507     + 'EREL','TIME','PATH','IPAR','P0 '/
1508    
1509     The CWN booking and filling has been revised as well. In particulare
1510     the CWN variables for TOF block have been merged into a big vector
1511     contining all the TOF hits infos.
1512    
1513     The GPDTOF routine has been created from the previous separated
1514     routine used for TOFT, TOFM, TOFB. This routine is now just filling in
1515     the CWN variables.
1516    
1517     28 May. 1996, Bari
1518     BUG FIXED IN GPUSED
1519     The Paolo's stragling was not activated because the code checked on IFL
1520     variable instead of IMEC one. Fixed.
1521    
1522     27 May. 1996, Bari
1523     ::::::::> VERSION NUMBER UPDATED <::::::::
1524     The version number has been updated in its level part: 1.01/01, is the
1525     actual version.
1526     22 May. 1996, Bari
1527     ::::::::> VERSION NUMBER UPDATED <::::::::
1528     The version number has been updated in its release part: 1.01/00, is the
1529     actual version.
1530     2 May - 22 May 1996, Bari
1531     BUG FIXED IN CREAGPXINT.COM
1532     The CREATE command in this OPEN-VMS command file was used after an IF
1533     statements on a new line, this caused the command to wait for a Ctrl-Z to
1534     exit, hunging up all the procedure.
1535     TWO NEW KUMACS ADDED
1536     To facilitate the GPAMELA executable build up two new MACROS have been
1537     added: GPLIB, GPEXE.
1538     The first one creates a GPLIB.OLB file containing all the GPAMELA routines
1539     but GPMAIN.
1540     The second create a GPAMELA.FOR with GPMAIN and all the routines stored in
1541     the CMZ decklist buffer. If you specify the option USER=Y at the GPEXE
1542     macro it will add all the user's action routines to your buffer. Please note
1543     that this last macro, will create the CREAGP.COM file containing all the dcl
1544     procedures to link GPAMELA, in particular the /INCLUDE option is mandatory in
1545     the link command to avoid the dummy GEANT user routines, i.e. GUKINE, to be
1546     linked instead of the GPAMELA ones.
1547    
1548     CUSTOM STRAGLING ADDED TO GEANT CODE
1549     After a number of test and an "official" confirmation we reach the conclusion
1550     that the GEANT code is not fine tuned for energy stragling in silicon.
1551     Following some references (in particular see: Hall, NIM 220 (1984) 356) Paolo
1552     developed a routine to add ad hoc stragling to the energy released in silicon.
1553     This is at the moment performed in the GPUSPE routine at the hit level.
1554     Before storing the his the routines uses the path length to calculate the
1555     gaussian spread to be used to convolve the usual Landau-like energy loss
1556     distribution.
1557    
1558     SPECTROMETER DIGITIZATION ADDED
1559     Paolo Papini digitization for the spectrometer has been added.
1560     In GPDSPE a call to GPSPEHD performs the digitization of the HIT.
1561     GPSPEHD calculates the charge read out from each strip in both views.
1562     NOTE: Respect to the original Paolo's code the GEANT capability in storing
1563     and retriving the geometrical informations for each detector has been
1564     used. In this way one can change the geometrical definition for the
1565     spectrometer having small or no changes on the digitization code.
1566     You can select the original Paolo's code slecting the option PAOLO.
1567    
1568     GPSTSPE SUBROUTINE UPDATED
1569     For the digitization routine we need to set up special tracking parameters.
1570     The specific routine has been updated with the parameters needed.
1571    
1572     DCUTESITR VARIABLE ADDED TO $GPSITR COMMON
1573     DCUTESITR variable was miss in $GPSITR common added.
1574    
1575     SUBROUTINE GPRHIT UPDATE
1576     GPRHIT routine update to use GPRSHT. The first hit to be red has been added.
1577     All the calls to the GPRHIT routines have been updated as well.
1578    
1579     SUBROUTINE GPRSHT ADDED
1580     This routine allows a hit retrival starting from a specific hit. Basically it
1581     is a modified version of GFHITS with an extra parameter, the first hit to be
1582     started with. It is useful if one needs to retrive the structure hit by hit.
1583    
1584     INTEGER FUNCTION GPNHIT ADDED
1585     An integer function GPNHIT has been added to count the number of hits
1586     stored in the HITS structure for CSET set and CDET detector.
1587    
1588     UGINIT ROUTINE UPDATED
1589     UGINIT routine has been updated to call GPADIGI.
1590    
1591     $GPSPE COMMON AND GPHBK UPDATED
1592     The common /GPSPE/ containing the spectrometer infos passed to the CWN has
1593     been updated with the DIGIT data.
1594     The booking touyine, GPHBK, has been updated as well.
1595    
1596     GPSDINI UPDATED
1597     The GPSDINI routine has been update to use the newly creted commons.
1598     Besides the UDSPE vector contining the digitization user's parameters has
1599     been added, The vector length NUDSPE, i.e. the number of digitzation user's
1600     parameters, has been added as parameter in $GPPDIGI sequence.
1601    
1602     COMMONS $GPDIGI, $GPDDIGI, $GPPDIGI, $GPDSPE, $GPDDSPE, ADDED
1603     The commons $GPDIGI, $GPDDIGI, $GPPDIGI, $GPDSPE, $GPDDSPE have been added.
1604     They contains the DIGI definition and bit length, for each instruments (only
1605     spectrometer filled at the moment), the DATA statements for the GPDIGI
1606     common, the parameters for the DIGI part, the DIGI parameters and quantities
1607     for the spectrometer, the DATA statements for the GPDSPE common.
1608    
1609     USER'S PARAMETERS STORED IN DIGI STRUCTURE
1610     At the moment the following 19 user's parameter have been stored in the DIGI
1611     structure, please note that the conversion factors are store at first, in
1612     this way you can retrive them more easily with GFDETU:
1613     ADCX , Conversion factor charge to ADC channels for X view
1614     ADCY , Conversion factor charge to ADC channels for X view
1615     PIEDX , Pedestal for X view, in ADC channels
1616     PIEDY , Pedestal for Y view, in ADC channels
1617     ENOISX, Noise for X view, in electrons
1618     ENOISY, Noise for Y view, in electrons
1619     NPCHXY, Number of point along X and Y for integeration
1620     NPCHZ , Number of point along Z for integeration
1621     WXSTR , Strip width in X view
1622     WYSTR , Strip width in Y view
1623     D , Silicon height
1624     TVX , Diffusion temperature (Volt), X view
1625     TVY , Diffusion temperature (Volt), Y view
1626     UD , Volt (junction)
1627     UU , Volt (external)
1628     PX1 , C1-x
1629     PX2 , C2-X
1630     PY1 , C1-Y
1631     PY2 , C2-Y
1632    
1633     NEW SUBROUTINE GPSDINI ADDED
1634     GPSDINI routine calculates all the qunatities needed for the spectrometer
1635     digitization routines. It calculates the capacitive coupling integrals and
1636     stores all the digitization constant, 19 at the moment, in the user reserved
1637     bank area in JSET bank.
1638    
1639     NEW SUBROUTINE GPUDIGI ADDED
1640     To manage the user's action in GPADIGI the GPUDIGI subroutine has been
1641     created. It's called at the end of GPADIGI.
1642    
1643     NEW SUBROUTINE GPADIGI ADDED
1644     To manage the DIGI definition for each instrument a new subroutine GPADIGI
1645     has been added. It is similar to GPHIT.
1646     Please note that the name is anomalus, it started with GPA, this is because a
1647     GPDIGI routine is used in GEANT code.
1648    
1649     NEW FUNCTION GPGAUS ADDED
1650     A new real function GPGAUS have been added to generate normal distributed
1651     random number, with unitary standard deviation and centered on zero.
1652    
1653     2 May. 1996, Bari
1654     GPFIL CALL MOVED IN UGINIT SUBROUTINE AND GPDUNIT ADDED
1655     To enable the user file name and LUNIT to be used opening the HBOOK file, the
1656     GPFIL call has been moved after the GFFGO one.
1657     To avoid the user filename to be overwritten, the sequence GPDUNIT has been
1658     moved from GPDAT to UGINIT.
1659    
1660     NEW DATA CARD ADDED. TO MANAGE HBOOK FILE NAME
1661     To define a user HBOOK file name a new data card has been added: HBFI.
1662     The card must be used with an '*' preceding it. The user must specifies the
1663     Logical Unit number to be used.
1664     Please note that the max string length for file name is 80 characters.
1665     This card overwrites the default GPAMELA.HIS name on LUNIT=34. See $INFORM
1666     for card usage.
1667    
1668     30 Apr. 1996, Bari
1669     BUG FIXED IN GUFLD
1670     A bug in GUFLD cause the magnetic filed to be interbolated with steps of 0.5
1671     cm instead of 2cm, along the Z axis. Fixed.
1672    
1673     30 Apr. 1996, Bari
1674     ::::::::> VERSION NUMBER UPDATED <::::::::
1675     The version number has been updated in its level part: 1.00/03, is the actual
1676     version.
1677    
1678     30 Apr. 1996, Bari
1679     USER ACTION IN SOME ROUTINES
1680     A user action has been enabled in several routine via user's dummy routines.
1681     The new routines added are: GPUDAT, GPUFFR, GPUFIL, GPUGEO, GPUHBK, GPUHIT,
1682     GPUINI, GPUKIN, GPULAS, GPUMAT, GPUMED, GPUOUT, GPUSED, GPUSTEP, GPUTRA,
1683     GPUTRE.
1684     The control is passed from the following routines: GPDAT, GPFFR, GPFIL,
1685     GPGEO, GPHBK, GPHIT, UGINIT, GUKINE, UGLAST, GPMAT, GPMED, GUOUT, GPSED,
1686     GUSTEP, GUTRAK, GUTREV.
1687     Routines: GPUKIN, GPUSTEP, GPUTRA, GPUTRE, are called twice in the main
1688     routine. A flag is passed with value 1 or 2 depending on the call sequence.
1689     More detailes in the routines' comment.
1690    
1691     29 Apr. 1996, Bari
1692     GSCIN ROUTINE RENAMED
1693     The GSCIN routine, to set the special tracking parameter for scintilators,
1694     has the same name of an inner GEANT routine, not reported in the manual (!).
1695     This routine has been renamed to GPSCINT now.
1696    
1697     BUG FIXED IN GUSTEP
1698     Sometimes a particle is stopped by GEANT having an energy released in the
1699     step. In GUSTEP the mechanisms LOSS and STOP were looked for in a
1700     complementary way causing mainly a delta ray stopped having an energy release
1701     to not be counted in the hit.
1702     Now a particle is considered for the hit filling if:
1703     1. Ionization present
1704     2. Particle stopped for Electrons (Delta)
1705     3. Ionization present and particle stopped for Electrons (Delta).
1706    
1707     BUG FIXED IN GPHBK
1708     The IMTPAR and IBTPAR were mistyped in defining TOFM and TOFB blocks.
1709    
1710     BUG FIXED IN GPMED
1711     The tracking parameters were not backuped for each material separately.
1712     So if a parameter was changed once the changed one was used in the folowing
1713     calls to GPMED.
1714     Now each parameter has is own tracking parameter set.
1715    
1716     MODS IN GPMED
1717     Now only parameters selected with the AUTM data cards are passed as negative.
1718    
1719     NEW DATA CARDS ADDED
1720     To manage the tracking parameter 6 new data cards have been added:
1721     AUTM, TMAX, STMA, DEMA, EPDI, STMI.
1722     With AUTM is possible to tag tracking parameter for automatic calculation in
1723     GEANT regardless of AUTO value, i.e. they are passed negative to GSTMED.
1724     With the cards TMAX, STMAX, DEMA, EPDI, STMI is possible to pass the value
1725     for the respective tracking parameter: TMAXFD, STEMAX, DEEMAX, EPSIL, STMIN.
1726     (See GEANT manual at CONS200-1).
1727     See $INFO patchy for usage examples.
1728     15 Apr. 1996, Bari
1729     ::::::::> VERSION NUMBER UPDATED <::::::::
1730     The version number has been updated in its level part: 1.00/02, is the actual
1731     version.
1732    
1733     5 Apr. 1996, Bari
1734    
1735     NEW DATA CARD ADDED: HPAK
1736     To select a specific hadronic intercation program a new data card ha been
1737     added: HPAK. Specifing: HPAK 'FLUK'; in your .FFR file, you will select the
1738     FLUKA package for the hadronic interaction.
1739    
1740     USER HADRONIC ROUTINES ADDED
1741     The routines: GUPHAD, GUHADR; have been added into /GPAMELA directory.
1742     These routine are called every time there is an hadronic intercation. Action
1743     to control hadronic process can be performed in these routines.
1744    
1745     BUGS FIXED IN GUKINE
1746     The two +SELF statement required to select the non interactive or debug state
1747     had a bad logic. Fixed.
1748    
1749     BUG FIXED IN GPDCAL
1750     The NUMD1 and NUMV1 vectors, required in case of the NO stripes division,
1751     were declared REAL instead of INTEGER.
1752    
1753     4 Apr. 1996, Bari
1754    
1755     GPDAT UPDATED
1756     The GPDAT routines has been upadate to use the GPLOOK function and the
1757     routines to manage the special tracking parameters. I hope is more clean now.
1758    
1759     NEW SUBROUTINES ADDED.
1760     The following desks have been added: GPAMELA/GPAL,GPAMELA/GPN2G,GPCAL/GPG10,
1761     GPCAL/GPW,GPCAL/GPSICA,GPSPE/GPFE,GPSPE/GPKAP,GPSPE/GPROA,GPSPE/GPCP,
1762     GPSPE/GPSITR,GPTRD/GPTRAD,GPTRD/GPXE,GPTOF/GPSCIN,GPCHE/GPAER.
1763     These to manage the Special tracking parameter for each detector. The user
1764     have to change the parameter in these routines now.
1765    
1766     NEW FUNCTION GPLOOK ADDED
1767     This function is TRUE if a 4 letter string is found into an integer
1768     vector. Is a mask on GLOOK.
1769    
1770     NEW HIT ADDED, PARTICLE NUMBER
1771     To help in studing the interaction inside the TOF, the anticoincidence
1772     detectors and the delta rays productions inside the TRD a new word in the
1773     HITS structures for this detector. It is the particle number.
1774     It is added at the end of the structure. No compression have been requested.
1775    
1776     GPUxxx AND GPDxxx ROUTINES REVIEWED
1777     To accomodate the enlarged hit structure for some detectros the GPUxxx
1778     routines are now called with and extra input word. The CALL sequnece and
1779     the SUBROUTINEs definition have been changed. The change being implemented
1780     on all the GPUxxx routines foreseeing a possible use of the particle numbers
1781     for the other detectors.
1782     Just the GPDxxx routines corresponding to the detector with the new hits
1783     structure have been changerd.
1784    
1785     GPHBK ROUTINE AND $GPTOF, $GPTRD, $GPCAS AND $GPCAT COMMONS UPDATED
1786     The CWN structure has been updated including the id number of the particle
1787     producing the hit. This has been done for TOF, CAT, CAS and TRD detectors.
1788     The common storing the CWN variables have been updated as well.
1789    
1790     3 Apr. 1996, Bari
1791     NEW VOLUME CONTROL ADDED TO NDET DATA CARD
1792     With NDET data card is now possible to eliminate the inner shell, SHEI.
1793     As usual NDET 'SHEI', will cancel the SHEI and TSHI volumes from the
1794     simulation. The $INFORM patchy has been updated as well.
1795    
1796     INNER SHELL ADDED
1797     To simulate the inner shell, to vent PAMELA, proposed by russian guys two
1798     volumes have been added: TSHI, SHEI.
1799     The latter being a tube, having the same height of the external one but
1800     a radius 2cm smaller. The former being a dome sector having the same radius
1801     of the external one but the lower opening angle of just 5degree.
1802     The shells thickness have been set to 0.1cm. As for TSHE case the maximum
1803     theta angle of the spherical sector and its position inside PAME is
1804     calculated on the base of SHEI dimention.
1805    
1806     GEOMETRY REVIEWED
1807     The shell thickness was 1cm, corrected to 0.1cm.
1808     The CAS X&Y positions were calculated on the base of CATB dimentions; they
1809     are now calculated on the base of the CAS dimentions. In this way the
1810     anticoincidence counters are placed around the spectrometer and there is no
1811     uncovered space between them.
1812     The quote of the top tof is now calculated not counting the cherenkov if
1813     this ddetector is not requested.
1814    
1815     2 Apr. 1996, Bari
1816     NEW VOLUME ADDED
1817     The TSHE volume has been added. It's the satellite dome.
1818     At the moment the radius is 130mm. The opening angle is calculated on the
1819     base of SHEL volume dimentions.
1820    
1821     UPDATED GDRAWS ROUTINE ADDED
1822     To draw a spherical sector an updated GDRAWS routine to draw SPHE volume have
1823     been added into /GPAMELA directory. Respect to the standard routine is able
1824     to draw spherical segment.
1825    
1826     28 Mar. 1996, Bari
1827     BUG FIXED IN GPSED
1828     In defining the TRD detectors the TRSn volume mane were used instead of the
1829     actual TBSn to specify the TrdBoxStraw
1830    
1831     BUGS FIXED IN GPDTOFx
1832     In these routines the NTHTPADx variables have been substituted by NTHTOFx.
1833     The latter being the actual variables use to book the CWN-tple.
1834    
1835     BUGS FIXED IN GPHBK
1836     The ERCAT & ERCAS variables where mistyped in ERRCAT & ERRCAS. Bugs fixed.
1837    
1838     BUG FIXED IN GPSED
1839     The bin to be used to store the detector number CASI and CSNW were calculate
1840     from the NCASIX*NCASIY number. The actual number is twice the latter because
1841     we have X & Y view. Now the number of bins is calculated from 2*NCASIX*NCASIY
1842    
1843     27 Mar. 1996, Bari
1844     BUGS FIXED IN GPDxxx
1845     In the GPD routines referring to set zith multiple detector a bug was
1846     found. The hits were read shifted by the number of hits of the previous
1847     detector. This end-up with an abnormal number of zeros, and to the absence
1848     of certain detector numbers.
1849    
1850     25 Mar. 1996, Bari
1851     BUG FIXED IN GUFLD
1852     The GUFLD routine calculate the magnetic field in a volume with all the
1853     coordinates positive, then calculate the actual field mirroing the field
1854     component. To actual position is compared to a grid of not decimal value.
1855     This comparison were made using the actual position value not the absolute
1856     value. This have been fixed now.
1857    
1858     WARNING PRINTOUT IN GPDxxx AND GPRHIT
1859     The warning printouts have been update adding the run and event number, in
1860     the GPDxxx and GPRHIT routine.
1861    
1862     20 Mar. 1996, Bari
1863     COMPILATION WARNING REDUCED
1864     The GPDxxx routine have been modified to avoid IF acting on parameter.
1865     The IF is used to check a remote error on SET and DET definition.
1866     The IF acts on two integer now. This will avoid the compilation warnings.
1867     LINK WARNING REDUCED
1868     More dummy routine added in CRAGPXINT to simulate some MULTINET routines.
1869     The errors now are reducet to one warning linking the no-MULTINET case.
1870    
1871     19 Mar. 1996, Bari
1872     LINK WARNING REDUCED
1873     The CREAGPXINT VMS script has been modified.
1874     The CERNLIB command parameter sequence has been modified and the undefined
1875     symbols errors on PACKLIB reduced to 1 for MULTINET case, and to the MULTINET
1876     related routine to the non multinet one.
1877    
1878     BUG FIND IN GUSTEP IN LOOKING FOR THE MECHANISM ACTIVE
1879     The NAMEC vector in GCTRAK common doesn't contain the "list of the mechanism
1880     name for the current step", as they say, besides just the list of the names.
1881     So you need to look at LMEC vector to have the correct mechanisms active in
1882     the step.
1883    
1884     MANAGMENT OF DELTA RAYS IN GUSTEP
1885     The delta ray were not collected in GUSTE. This because in GUSTEP we look for
1886     an ioniwation only. The energy of the delta is so low that they survive for
1887     justr a couple of step. The first one being a NULL one ( just entering the
1888     volume), in the second one the particle energy falling below threshold so
1889     having just the STOP mechanism active.
1890     Now if there is an electron and a positron and the STOP mechanism is present
1891     the IN varible is set to 2 to force the hit storage.
1892    
1893     BUGS FOUND IN GPDCAL & GPUCAL
1894     In GPDCAL the last hit was retrived from the seventhn word of the vector VHIT
1895     Instead of the fourth.
1896     In GPUCAL the GSCHIT was called with 4 as latest hits to be summed up. This
1897     caused all the 4 hits to be summed up, the correct value for this is 1.
1898    
1899     NEW MATERIAL DEFINITED: SILICON CA
1900     Due to the fact that we can select special parameter in GEANT for each
1901     tracking media, more tracking media cannot refer to the same material.
1902     Infact GEANT will append the special parameter to the material structure. Due
1903     to this two materials have been definited for the tracker and the calorimeter
1904     silicon: SILICON CA, SILICON TR.
1905     The SILICON TR has the number 21 and 22 the other. The tracking media
1906     corresponding to this materials now point to each material separately.
1907     The new material numbers are:
1908     17. Plast. sci: H 50%, C 50% , Rho=1.032 g/cm**3 from P.D.Book
1909     18. G10 : SiO2 60%, Epoxy 40%, Rho=1.7 g/cm**3 from P.D.Book
1910     Epoxy from CRC handbook (Raw estimation)
1911     19. N2 (Gas) : A=14.01, Z=7, Rho=1.25 g/l
1912     20. Silicon TR: A=28.09, Z=14,Rho=2.33 g/cm**3, X0=9.36 from P.D.Book
1913     21. Silicon CA: A=28.09, Z=14,Rho=2.33 g/cm**3, X0=9.36 from P.D.Book
1914     22. Xenon : A=131.29, Z=54,Rho=5.858 g/l, X0=1447.6cm from P.D.Book
1915     23. TRD rad. : Carbon fiber with density 0.060 g/cm**3, used in TS93
1916     24. Aerogel : A=96.11, Z=54 (Comp. n(SiO2)+2n(H2O)), Rho=.2g/cm**3 (Ave.),
1917     X0=150 cm, from P.D.Book
1918    
1919     CALO HITS STRUCTURE CHANGED AGAIN
1920     The calorimeter set 'CAL ' have been definited and two detector in it:
1921     'CAST', 'CASN'. Corresponding to the strip in the plane with and without
1922     tungsten respectively.
1923     The routine GPSED, GPHIT, GUSTEP, GPDCAL have been updated.
1924    
1925     TRD GEOMETRY UPDATED
1926     The TRD has a new geometry. There are three different straw lenghts.
1927     Besides the 32 straws set are 6x4, 5x4, 4x4, starting from the top.
1928     So the volume TRBS, TRSO, TRSI, TRRA have been deleted and the TBSx, TSOx,
1929     TSIx, TRAx (x being 1,2,3 respectively) have been created.
1930     The set structure has been revised as well. The set 'TRD ' has been left
1931     but tree detector have been definited for this set.
1932     The corresponding identifier in /GPSED/ common have been created.
1933     The routines GPTRDV, GPDTRD, GPSED, GPHIT have been updated to the new
1934     geometry.
1935    
1936     14 Mar. 1996, Bari
1937     TRACKING MEDIA PARAMETER UPDATED FOR SICA, W AND G10 MEDIA
1938     The tracking media parameter STEMAX has been set to .5 for SICA and .15 for W
1939     and G10 following the M. Masini & M.P. De PAscale suggestion.
1940    
1941     CHANGES IN GPTMED ROUTINE
1942     To allow the automatic calculation of non critical parameters for tracking
1943     media, the tracking media default value, initialized in GPDAT, have been
1944     turned to negative value. In this way they are automatically calculated by
1945     GEANT also if you select AUTO 0.
1946    
1947     DATA CARD SPTM ADDED TO MANAGE SPECIAL TRACKING PARAMETER
1948     To manage the special tracking parameter definition the SPTM card have been
1949     added. As usual specifying a tracking material as data card argument will
1950     force an action in GPDAT. Here the SPTM data words are scanned and the
1951     parameter for the selected medium are changed.
1952     SPTM option are: 'AL ', 'G10 ', 'N2G ', 'W ', 'FE ', 'KAP ', 'TRAD',
1953     'ROA ', 'CP ', 'SCIN', 'SICA', 'SITR', 'XE ', 'AER '.
1954     NOTE: The parameter must been CHARACTER*4
1955    
1956     SPECIAL TRACKING PARAMETER MANAGEMENT
1957     To manage different settings of tracking parameter specialized for each
1958     tracking media a routine has been added: GPSPTM; and a common as
1959     well:/GPSPTM/. (In //GPAMELA/GPAMELA and //GPAMELA/GPCDES respectivelly)
1960     In the sequence $GPDSPTM all the available GEANT tracking media parameter are
1961     initializated to -111., for all the 14 media definited in GPAMELA.
1962     In GPDAT these parameter are changed. In GPSPTM the GSTPAR GEANT routine is
1963     called only if the corrisponding parameter to be changed is different from
1964     -111.
1965     For the moment only the SICA and W media has been changed following M. Masini
1966     & M.P. De Pascale suggestions.
1967    
1968     13 Mar. 1996, Bari
1969     HOUSEKEEPING OF CALO ROUTINES
1970     Some bugs were found into GPCALV. The Y view plane is now rotated,
1971     wasn't before.
1972    
1973     CHERENKOV DETECTOR MOVED
1974     The CHE variable has been forced to FALSE in GPDAT. This will cause
1975     the skiping of all the CHE definition.
1976    
1977     MAX NUMBER OF HITS CHANGED
1978     The max number of hits to be retrived for each detector is changed.
1979     It's no more the same but the calorimeter, now the GPPHIT sequence
1980     contains the NHMxxx parameter, xxx being the detector name. Thie paremeter
1981     is used in the corresponding GPDxxx routine and stored into the generic NHM
1982     variable.
1983     The CWN definition in GPHBK routine has been changed accordingly.
1984    
1985     CALO HITS STRUCTURE CHANGED
1986     GEANT doesn't understand if two detector with the same name depend from
1987     sets. It just doesn't consider them detectors. This is the case for CASI or
1988     CAST in CAL and CANW.
1989     Now a new detector has been introduced CANW to describe the NO tungsten
1990     calorimeter plane case.
1991    
1992     12 Mar. 1996, Bari
1993     HCNW DATA CARD ADDED
1994     A data card to control the CWN booking and filling has been added.
1995     HCWN 1
1996     will enable the CWN booking and filling of the group corresponding to the
1997     detector in use.
1998     This measn that the CWN will not be enable for the detector deleted with the
1999     NDET card.
2000     The DATA card check is performed in GPDAT. The UGINIT, GPHB, GUOUT, UGLAST
2001     routines has been updated considering this new data card.
2002    
2003     THE NCWN PARAMETER ADDED.
2004     The CWN number is now passed into a parameter filled up in the sequence
2005     GPPNTP. This sequence contains the record size and the number of the standard
2006     n-tple. The routine the n-tpla is called from are been updated as well, i.e.
2007     GPHBK, GPOUT.
2008    
2009     SPETCROMETER DIMENTIONS CHANGED
2010     Following Paolo I have changed some magnet and tracker ladders dimentions.
2011     Here follow the changes:
2012     SPEB/12.1,11.6,0./,MGPL/12.1,11.6,4./,MGPI/8.1,7.1,4./,TRPB/12.1,11.6,0.4/
2013     TRPL/8.,7.,0.4/,TRSL/0.,7.,0./,TSPA/0.,3.5,0.015/,TSKP/2.6666,7.,0.0025/
2014     TRCP/8.,7.,0.015/,TRRP/8.,7.,0.25/,NTRSL/3/
2015    
2016     11 Mar. 1996, Bari
2017     HITS STRUCTURE FILL UP CHANGED
2018     The HIT structure is now filled only if there is an ionization loss into the
2019     corresponding detector.
2020     The SAVE logical ha been added to all the GPUxxx routines. This is switched
2021     TRUE if an ionization has been encountered.
2022     This action to avoid the gamma to be counted.
2023    
2024     MAGNET DIMENTIONS UPDATED
2025     The magnet dimentions have been updated following Paolo Papini update.
2026     Here are the new dimentions: SPEB/12.1,11.6,0./,MGPL/12.1,11.6,4./,
2027     MGPI/8.1,7.1,4./,TRPB/12.1,11.6,0.35/
2028    
2029     28 Feb. 1996, Bari-Rome
2030     REVIEW OF THE HITS RETRIVAL PROCEDURE
2031     The GIUDIGI routine has been created. There is a call for each instrument.
2032     The corresponding routines are named GPDxxx, xxx being the detector name.
2033     Each routine simply call GPRHIT, a genral pourpuse routine that retrives the
2034     hit structure corresponding to the IS-th and ID-th set and detector.
2035     Each routine needs the GPRHIT sequence containing the arrays to be passed to
2036     the GPRHIT routine.
2037     The GPPHIT sequence has been updated adding new parameter to fiw the maximum
2038     number of hits to be read for each detector.
2039     The GPHBK routine has been changed accordingly.
2040    
2041     21 Feb. 1996, Bari
2042     CHANGE IN CAL HIT STRUCTURE
2043     After the GPAMELA meeting in Bari, the CAL hist structure have been reduced.
2044     Due to the great number of tracks we will be deling with following an e.m.
2045     shower, is it convinient to have just the XYZ coordinates of the origin of
2046     the detector, i.e. the strip, instead of the IN and OUT coord.
2047     The Path lenght is meaningless as well.
2048    
2049     GPHBK UPDATES & HBOOK CWN SEQUENCE ADDED
2050     The GPTOFT, GPTOFM, GPTOFB, GPCHE, GPTRD, GPCAT, GPCAS, GPSPE, GPCAL
2051     sequences have been added. These commons conting the variable to be stored
2052     into the standard CWN ntple filled by GPAMELA.
2053     The GPHBK routine have been updated accordling, both INTER and -INTER cases
2054     have been considered.
2055    
2056     20 Feb. 1996, Bari
2057     NEW SEQUENCES ADDED.
2058     THE GPCDES/$GPUNIT & $GPDUNIT, have been added.
2059     The commons contining the logical unit numbers and the file name for all the
2060     files open from GPAMELA have been stored.
2061    
2062     16 Feb. 1996, Bari
2063     MAGNETIC FIELD ADDED
2064     The GPFIELD patchy has been added. The GUFLD routine as well.
2065     This routine call FIN3 to interpolated the mangetic field value red from the
2066     GPFIELD.MAP. This file is red into GPDAT routine, it's opened into GPFIL and
2067     closed in GULAST.
2068    
2069     13 Feb. 1996, Bari
2070     CALO DIVISION AND CONTROL CARD ADDED
2071     To create calorimeter divisions a DATA CARD word is checked. Using:
2072     GEOM 'DCAL'
2073     will force the CALDIV variable in /GPKEY/ to TRUE and the CASI detector,
2074     CAlorimeter SIlicon paddle, will be divided into NCALSTR division along X
2075     axis.
2076     The new volume will be called CAST, CAlorimeter STrip.
2077    
2078     12 Feb. 1996, Bari
2079     NEW VOLUME ADDED
2080     To correctly simulate the aluminium shell the SHEL volume has been added with
2081     the previous PAME dimention. The PAME volume is now a full tube filled uo
2082     with nitrogen.
2083    
2084     8 Feb. 1996, Bari
2085     NEW CALORIMETER GEOMETRY
2086     After the PAMELA week in Dec. 95 the calorimeter geometry has been changend.
2087     No more two silicon layer glued back to back and place into a ceramic support
2088     but a sandwich of two G10 planes interleaved with a radiator, tungsten, plate
2089     supports two planes of silicon "chips". The Y view is place on the top of
2090     this layer and the X on the back. This simplifies the calorimeter geometry
2091     gratly. It is now definited just one volume, CASI, for the silicon 6x6 cm^2
2092     chip. These volumes are place on the top and back sandwich plane into che
2093     CAPL volume that simulate a clorimeter plane.
2094     Due to the still indefined number of chips for each plane two variable, NCISX
2095     and NCISY, have been definited to fix the number of si chips along X and Y
2096     dimentions respectively. The CAPL, CALB volume dimentions are calculate
2097     accordling. Besides the variable DCASIX & DCASIY have been introduced to take
2098     care of the distance between two chip along X and Y view.
2099    
2100     CAS VARIABLE NAME CHANGED
2101     The name of the vector with the side anticoincidence counters, CAS, have been
2102     changed from CAS to CASP
2103    
2104     NEW ROUTINES FOR CAS AND CAT GEOMETRY DEFINITION
2105     The CAT and CAS, anticoincidence counters, volume definition have been moved
2106     from GPTOFV routine to GPCATV and GPCASV, brand new routines. In this way is
2107     much more easy to exclude these detectors from the simulation (see NEW KEY
2108     "NDET" DEFINITED note).
2109    
2110     NEW KEY "NDET" DEFINITED
2111     A new user data card has been definited: NDET.
2112     Its action is to exclude single detector from the simulation.
2113     It has 7 values: TOF, CHE, TRD, CAT, CAS, SPE, CAL.
2114     NOTE. This has to be character*4 !!!!!!
2115     Usage:
2116     NDET 'TOF ' 'SPE '
2117     the previous line in the DATA CAD file, will exclude from the simulation the
2118     TOF, TOP, MIDDLE and BOTTOM ones, and the whole spectrometer, i.e. silicon
2119     ladders and magnet planes.
2120     Please note, for the SPE case the magnetic field is not excluded, the MAGN
2121     data card is responsible for switching on or off the magnetic field.
2122    
2123     7 Feb. 1996, Bari
2124     MATERIAL AND TRACKING MEDIA ADDENDUM
2125     More material definited and tracking media correspondly.
2126     For general comment see the 6th of Feb. HISTORY.
2127     Please note, for the moment the KAPTON, ROACELL and CARBON FIBER materials
2128     are substituted by scintillator.
2129     Here follows the updated list:
2130    
2131     17. Plast. sci: H 50%, C 50% , Rho=1.032 g/cm**3 from P.D.Book
2132     18. G10 : SiO2 60%, Epoxy 40%, Rho=1.7 g/cm**3 from P.D.Book
2133     Epoxy from CRC handbook (Raw estimation)
2134     19. N2 (Gas) : A=14.01, Z=7, Rho=1.25 g/l
2135     20. Silicon : A=28.09, Z=14,Rho=2.33 g/cm**3, X0=9.36 from P.D.Book
2136     21. Xenon : A=131.29, Z=54,Rho=5.858 g/l, X0=1447.6cm from P.D.Book
2137     22. TRD rad. : Carbon fiber with density 0.060 g/cm**3, used in TS93
2138     23. Aerogel : A=96.11, Z=54 (Comp. n(SiO2)+2n(H2O)), Rho=.2g/cm**3 (Ave.),
2139     X0=150 cm, from P.D.Book
2140    
2141     The left numbers are the materiale namber has declared to GEANT.
2142    
2143     Tracking media:
2144     Not sensitive:
2145     1. ALUMINIUM
2146     2. G10
2147     3. N2 GAS
2148     4. TUNGSTEN
2149     5. IRON
2150     6. KAPTON
2151     7. TRD RADIATOR
2152     8. ROACELL
2153     9. CARBON FIBER
2154    
2155     Sensitive:
2156     10. SCINTILLATOR
2157     11. SICALO
2158     12. SITRACKER
2159     13. XENON
2160     14. AEROGEL
2161    
2162     6 Feb. 1996, Bari
2163     NEW GEOMETRY DEFINITION
2164     After the PAMELA week the geometrical structure of the tracker has been
2165     modified. Is now possible to select the number of silicon paddle to be placed
2166     into a silicon ladder. The dimentions are scaled accordling. Change the
2167     NTRSL variable initialization into the deck //GPAMELA/GPCDES/GPDGEO,
2168     containing DATA statement for the geometry.
2169    
2170     MATERIAL AND TRACKING MEDIA DEFINITION
2171     Some material has been definited, namely:
2172    
2173     17. Plast. sci: H 50%, C 50% , Rho=1.032 g/cm**3 from P.D.Book
2174     18. G10 : SiO2 60%, Epoxy 40%, Rho=1.7 g/cm**3 from P.D.Book
2175     Epoxy from CRC handbook (Raw estimation)
2176     19. N2 (Gas) : A=14.01, Z=7, Rho=1.25 g/l
2177     20. Silicon : A=28.09, Z=14,Rho=2.33 g/cm**3, X0=9.36 from P.D.Book
2178     21. Xenon : A=131.29, Z=54,Rho=5.858 g/l, X0=1447.6cm from P.D.Book
2179    
2180     The left numbers are the materiale namber has declared to GEANT.
2181     Tracking media have been definited as well:
2182     Not sensitive:
2183     1. ALUMINIUM
2184     2. G10
2185     3. N2 GAS
2186     4. TUNGSTEN
2187     5. IRON
2188     Sensitive:
2189     6. SCINTILLATOR
2190     7. SICALO
2191     8. SITRACKER
2192     9. XENON
2193    
2194     The numbers are the tracking media ones.
2195     The tracking media parameter has been initialized into GPDAT routine but
2196     EPSIL. This is a critical parameter and define the tracking precision. M.
2197     Boezio suggested to set it as 1% of the volume thickness. This is way this
2198     parameter is set directly into GPMED routine, where the tracking media are
2199     definited. Please note that for the aluminium the value of 10 microns have
2200     been used.
2201     Here there are the tracking parameter used as user default:
2202     FIELDM = 40.
2203     TMAXFD = 1.
2204     STEMAX = 100.
2205     DEEMAX = 0.05
2206     STMIN = 0.0005
2207     The FFIELD variable, switching ON or OFF the magnetic field, is definited via
2208     the DATA card MAGN
2209    
2210     28 Nov. 1995, Gran Sasso
2211     FILE ORGANIZATION
2212     The CMZ file GPAMELA has been created. The overall structure of $HISTORY,
2213     $INFORM, $VERSION and the pilot patchy *GPAMELA has been created.

  ViewVC Help
Powered by ViewVC 1.1.23