next up previous index
Next: IOPA001 The I/O Up: GEANT Previous: HITS500 Digitisation for

HITS510 Digitisation for drift chambers

Routine ID: HITS510
Author(s): Submitted: 21.02.85
Origin: W.MitaroffRevised: 19.12.93

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 dφ/dz );
5
dφ/dz along wire;
6
φ of point with z=0 on wire 1;
7
drift velocity (cm nsec-1 );
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
dφ/dr ;
4
dz/dr ;
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 φ(hit)>φ(wire) ;
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

ICD= L {Z-ZlZu-Zl}

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 (≤ICD≤1000 ), 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 I1, I2 at the two ends of the wire with the formula:

ICD= L  {I2I+}&sp;with&sp;I+= I1+I2

Its error is determined by:

δICD= - {ICDI+}δI1+ {L-ICDI+}δI2&sp;and&sp;δI1= δ1+ ε1 I1&sp;;&sp;δI2= δ2+ ε2 I2

δ1 and δ2 are of dimension [I] and represent the pedestal errors. ε1 and ε2 are the slope errors. Errors are independent (no correlations), with a Gaussian distribution with average 0 and ERP as relative variance for pedestals δi/I+

and ERS as variance for slopes εi . This gives the final result

δICD= -{δ1I+}ICD+ {δ2I+}(L-ICD)pedestals+ (ε21){ICD(L-ICD)L}slope

GCDERR sets the ICD obtained from GCDRIF to ICD=ICD+δICD with 0 ≤ICD≤L .

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 up previous index
Next: IOPA001 The I/O Up: GEANT Previous: HITS500 Digitisation for


Janne Saarela
Mon Apr 3 12:46:29 METDST 1995