22.05.2014 Views

CERN Program Library Long Writeup W5013 - CERNLIB ...

CERN Program Library Long Writeup W5013 - CERNLIB ...

CERN Program Library Long Writeup W5013 - CERNLIB ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Geant 3.10 GEANT User’s Guide HITS400<br />

Origin : R.Brun,H. Boerner Submitted: 01.10.81<br />

Revision : Revised: 18.12.93<br />

Documentation :<br />

Intersection of a track with a cylinder or a plane<br />

CALL GICYL<br />

(R,X1,X2,S1,S2,IC,XINT*,SINT*,PZINT*,IFLAG*)<br />

R<br />

X1<br />

X2<br />

S1<br />

S2<br />

IC<br />

XINT<br />

SINT<br />

PZINT<br />

IFLAG<br />

(REAL) radius of cylinder in cm;<br />

(REAL) array of 6, (x, y, z, dx/ds, dy/ds, dz/ds) of1 st point;<br />

(REAL) array of 6, (x, y, z, dx/ds, dy/ds, dz/ds) of2 nd point;<br />

(REAL) track length s at 1 st point;<br />

(REAL) track length s at 2 nd point;<br />

(INTEGER) type of interpolation:<br />

1 straight line defined as (Xi(1),Xi(2),Xi(3)) +s (Xi(4),Xi(5),Xi(6)), where i<br />

is 1 or 2 according to which of the two points is inside the cylinder;<br />

2 straight line going from (X1(1),X1(2),X1(3))to(X2(1),X2(2),X2(3));<br />

3 third degree curve with:<br />

(<br />

⃗P (s) =⃗a s 3 + ⃗ bs 2 + ⃗c s+ d ⃗ dP<br />

Xi = ⃗P (Si),<br />

⃗ )<br />

∣ i =1, 2<br />

ds<br />

(REAL) array of 6 x, y, z, dx/ds, dy/ds, dz/ds at intersection point;<br />

(REAL) S at intersection point;<br />

(REAL) φ, z, dφ/dr, dz/dr in cylindrical coordinates at intersection point;<br />

(INTEGER) return flag:<br />

0 track does not intersect cylinder;<br />

1 track intersects cylinder.<br />

∣ s=Si<br />

Calculates intersection of track with a cylinder of radius R. The track is approximated by a cubic in the track<br />

length. To improve stability, the coordinate system is shifted.<br />

CALL GIPLAN<br />

(YC,X1,X2,S1,S2,IC,XINT*,SINT*,PZINT*,IFLAG*)<br />

The arguments have the same meaning than in the previous routine, apart from:<br />

YC<br />

(REAL) y coordinate of plane;<br />

Calculates intersection of track with a plane parallel to x − z. The track is approximated by a cubic in the<br />

track length. To improve stability, the coordinate system is shifted.<br />

Note: the default accuracy is 10 microns. The value of EPSI (internal variable) must be changed for a better<br />

precision.<br />

170 HITS400 – 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!