Next: IOPA001 The I/O
Up: GEANT
Previous: HITS500 Digitisation for
CALL GCDRIF (RADD,ZMIN,ZMAX,DETREP,HITREP,IOUT*)
- RADD
- ( REAL) radius of cylindrical chamber in cm;
- ZMIN
- ( REAL) z of lower end of cylindrical chamber;
- ZMAX
- ( REAL) z of upper end of cylindrical chamber;
- DETREP
- ( REAL) array of 8 with detector description:
- 1
- number of wires;
- 2
- wire spacing in
(radians);
- 3
- cosine of wire angle with respect to the z axis;
- 4
- sine of wire angle with respect to the z axis
(signed like
);
- 5
-
along wire;
- 6
-
of point with z=0 on wire 1;
- 7
- drift velocity (cm
);
- 8
- if >0 user routine GUDTIM
will be called to calculate drift time;
- HITREP
- ( REAL) array of 4 describing the track:
- 1
-
coordinate of intersection;
- 2
- z coordinate of intersection;
- 3
-
;
- 4
-
;
- IOUT
- ( INTEGER) array of 4 with digitisation information:
- 1
- wire number (1... NWI with increasing phi), -1 if DETREP
parameters are inconsistent;
- 2
- drift time in nsec, >0 if
;
- 3
- digitised current division information
(relative position of charge along wire, per mille);
- 4
- amount of charge deposited onto wire.
Digitisation routine for a cylindrical drift chamber.
Charge
. | .
| . |
========================================= SENSE WIRE
...................................................> Z (cm)
Z Z Z
l u
...............................................> ICD (0<ICD<1000)
0 ICD 1000
ICD (1000-ICD)
Figure: Coordinate system along the wire
Knowing the position Z of the deposit of charge we can calculate
where L=1000 in the
program. This is the information stored into IOUT(3).
CALL GCDERR (ICD*,ERP,ERS)
- ICD
- ( INTEGER) digitised current division information
(
), overwritten on output with the
modified value taking into account the errors;
- ERP
- ( REAL) variance of Gaussian pedestal errors
on the measured
pulse heights relative to the sum of the pulse heights;
- ERS
- ( REAL) variance of Gaussian slope
errors on the measured
pulse heights relative to the each pulse heights.
Routine to calculate the error on the current division
information as obtained by GCDRIF.
Here we assume that ICD has been determined by measuring the pulse heights
at the two ends of the wire with the formula:
Its error is determined by:
and
are of dimension [I] and represent the
pedestal errors.
and
are the slope errors.
Errors are independent (no correlations), with a Gaussian distribution with
average 0 and ERP as relative variance for pedestals
and ERS as variance for slopes
. This gives the final result
GCDERR sets the ICD obtained from GCDRIF to
with
.
GUDTIMVALUE = GUDTIM(DETREP,HITREP,IW1,DIS)
The arguments have the same meaning than for GCDRIF apart from:
- IW1
- ( INTEGER) wire number which will generate a signal;
- DIS
- ( REAL) distance from the track to the wire;
This function has to be written by the user to return the drift time
in nanoseconds.
R.Brun
IOPA001
Next: IOPA001 The I/O
Up: GEANT
Previous: HITS500 Digitisation for
Janne Saarela
Mon Apr 3 12:46:29 METDST 1995