/[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.14 - (hide annotations) (download)
Fri Jun 30 15:38:16 2006 UTC (18 years, 7 months ago) by pam-ba
Branch: MAIN
CVS Tags: v4r7
Changes since 3.13: +16 -1 lines
File MIME type: text/plain
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)

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

  ViewVC Help
Powered by ViewVC 1.1.23