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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CALL GPVERT<br />

(IVTX)<br />

Prints vertex parameters.<br />

IVTX<br />

(INTEGER) vertex number to be printed, all vertices if IVTX=0;<br />

CALL GSKINE<br />

(PLAB,IPART,NV,UBUF,NUBUF,NT*)<br />

PLAB (REAL) array of 3 containing the components of the momentum of the particle in GeV c −1 ;<br />

IPART (INTEGER) particle code (see [CONS300]);<br />

NV (INTEGER) number of the vertex origin of track;<br />

UBUF (REAL) array of NUBUF user words to be stored with the track;<br />

NUBUF (INTEGER) number of user words;<br />

NT (INTEGER) number of the stored track (0 in case of error).<br />

This routine stores the parameters of a track in the JKINE data structure (see [KINE199]). This data structure<br />

survives for the whole event, and it is wiped out by GTRIGI at the beginning of each new event. There are<br />

two reasons to store tracks in the JKINE data structure:<br />

• at the beginning of an event, from within GUKINE,todefine the initial kinematics of the event, i.e. the<br />

particles which GEANT will transport. This must be done through GSKINE after that the vertices from<br />

which the particles originate have been defined through GSVERT;<br />

• during tracking, to preserve the kinematic information of a particular track till the end of the current<br />

event. In this case the user should not call GSKINE directly, but rather set the appropriate flags in the<br />

/GCKING/ common block and call GSKING. This is explained in detail in [TRAK300].<br />

CALL GSKINU<br />

(NT,NUBUF,UBUF,IADR*)<br />

NT<br />

NUBUF<br />

UBUF<br />

IADR<br />

(INTEGER) track number;<br />

(INTEGER) number of user words;<br />

(REAL) array of user words;<br />

(INTEGER) position where information is stored in the user bank of the track.<br />

This routine stores the first NUBUF words of array BUF in the user bank attached to track NT, starting at<br />

location IADR+1. On exit IADR is set to IADR+NUBUF, allowing subsequent filling. This allows effectively to<br />

add information to an existing track, whether or not it has already an user buffer. This is the only way to add<br />

user information to a track which has been created at tracking time by the routine GSKING via an appropriate<br />

setting of parameters in the common /GCKING/.<br />

CALL GFKINE<br />

(ITRA,VERT*,PVERT*,IPART*,NVERT*,UBUF*,NUBUF*)<br />

Retrieves long-life track parameters. The parameters have the same meaning than the ones of GSKINE.<br />

CALL GPKINE<br />

(ITRA)<br />

Prints initial track parameters.<br />

ITRA<br />

(INTEGER) track to be printed, all tracks if IVTX=0;<br />

KINE100 – 2 186

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

Saved successfully!

Ooh no, something went wrong!